Result

AC

Duration

604ms

Code [DL]

z=0;gets.chop.bytes{|c|p z^=c%2}

stdin

1000011100100111100110110011111100010101011110111111101110111000000101100110110010011011101011000111

stdout

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

stderr

strace