Result

WA

Duration

649ms

Code [DL]

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

stdin

1011100001110100110011000011010110010111110010001001101000000011000011110101111010001011000000101001

stdout

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

stderr

strace