Result

AC

Duration

616ms

Code [DL]

p$.^=C.to_i while ?/<C=$<.getc

stdin

1101000111010100101010001010101111001101001001101100100111000011101100100111001100000010010100100100

stdout

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

stderr

/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here
/volume/CODE:1: warning: already initialized constant C
/volume/CODE:1: warning: previous definition of C was here

strace