Result

AC

Code [DL]

while read a;do b=$[2#$a];for ((i=0;b>0;b-=++i));do :;done;echo $[!b];done;

stdin

00000001
11111010
01001110
11110000
01011011
10011100
10001100
00011100
00111101
00110010
11111101
00011100
11011111
10000111
00001010
00010101
10111110
00100101
01101111
01111000
10111001
00001111
00111011
00001110
10110001
00100100
11101110
00000110
00000000
10011001
11100111
01101001
11011001
10011111
10001110
01001000
00101101
00000011
11010010
10101011
10101110
01101000
10000011
00010101
11100110
01000010
10001000
00110111
10110110
11011010

stdout

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

stderr

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

strace