by@kurgm
AC
1609ms
import std.stdio;void main(){int i=0;for(string s=readln;i<50;i++)write(i<33?s[i]&s[i+5]&s[i+12]&s[i+17]&1:0);}
11101111111001001000110100110111011110010100100011
00001000000000000000000000000000000000000000000000