Result

AC

Duration

590ms

Code [DL]

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

stdin

0001001110111001001011000010101000011110011101010000000000000100101010000010000000010001100010110000

stdout

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

stderr

strace