Result

ERROR

Duration

575ms

Code [DL]

i=0;gets.chop.chars.map{|c|p i^=c.to_i}

stdin

0111010000111100110100000101011111001011100001011011100100100001010111101001100101110101000101010111

stdout

0
1
0
1
1
0
0
0
0
0
1
0
1
0
0
0
1
0
0
1
1
1
1
1
1
0
0
1
1
0
1
0
1
0
0
0
1
1
0
1
0
0
0
0
0
1
1
0
1
1
0
1
0
0
0
1
1
1
0
0
0
0
0
1
1
0
0
1
0
1
0
0
1
1
1
0
1
1
1
0
0
1
0
1
1
0
0
1
1
1
1
0
0
1
1
0
0
1
0
1

stderr

strace