Result

AC

Duration

566ms

Code [DL]

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

stdin

1111110111110010100010111001000011010001001001001011011100101010011111101001001001101101100011000111

stdout

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

stderr

strace