by@akouryy1
AC
1156ms
g x=[t|t<-[0..32],all(\i->x!!(t+i)>'0')[0,5,12,17]] f x|[i]<-g x=([1..i]>>"0")++'1':([i..48]>>"0") main=interact$f
10101000000000000000100111010000100100110111110011
00000000000000000000000000010000000000000000000000