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