Result

AC

Duration

599ms

Code [DL]

100.times{p$.^=$<.getc.to_i}

stdin

1000101111101011111111011011110110001101100101010110000000110000011010010100011011111011111100011101

stdout

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

stderr

strace