Result

AC

Code [DL]

importPackage(java.io);importPackage(java.lang);s=new BufferedReader(new InputStreamReader(System.in));while(l=s.readLine()){print(+![0,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,136,153,171,190,210,231,253].every(function(i){return i-parseInt(l,2)}))}

stdin

10101011
00110111
10001100
01011011
00001111
10011001
01101101
01010010
01011011
10111110
01110010
01110110
11010010
11111001
10110111
01101011
01001110
01101001
11010001
10000000
00111011
00110011
10111000
11100001
00010101
00000001
00101101
00111111
10001000
00000000
00000011
00100000
11111101
10001101
11100111
11110001
10110101
10111110
00101001
10100100
01111000
11100110
10000010
11100010
00011100
00101000
00100100
00000110
00001010
01000010

stdout

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

stderr

strace