import std.stdio; void main(){ string s = readln; for(int i=0;i<34;i++)write(s[i-1]&s[i+4]&s[i+11]&s[i+16]-48); for(int i=0;i<16;i++)write(0): }