Result

ERROR

Duration

668ms

Code [DL]

gets.chop.chars.map{|c|p$.^=c.to_i}

stdin

0010110011101100111011000100011111001111010011111001001000100001110011000100101000011111110010110110

stdout

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

stderr

strace