Result

AC

Duration

909ms

Code [DL]

gets.gsub! /1(?!....1......1....1)/,?0;print

stdin

10000100000111010010001101000010100000010100001000

stdout

00000000000001000000000000000000000000000000000000

stderr