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