import std.stdio; void main(){ s = readln; for(i=0;i<50;i++)write(s[i]&s[i+5]&s[i+12]&s[i+17]); }