by@akouryy1
AC
909ms
gets.gsub! /1(?!....1......1....1)/,?0;print
10000100000111010010001101000010100000010100001000
00000000000001000000000000000000000000000000000000