Result

AC

Code [DL]

importPackage(java.io);
importPackage(java.lang);
const stdin = new BufferedReader(new InputStreamReader(System.in));
for (i=0;i<50;i++) {
let aLine = stdin.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(aLine,2)}));
}

stdin

01111010
10111110
10000101
00100100
01001110
11101010
10101001
00000000
11110010
01011011
00000010
11100101
01000010
11101101
00100100
10011100
01111110
00001111
01111000
11010010
00011100
01100001
00001011
00101101
11111101
01010000
11010011
11100111
11011101
01100111
01010010
10001000
01010011
00111010
00000011
01111001
00000110
00000001
00110011
11111010
00010101
10011111
10011001
00001010
11111001
10101011
00010101
00110111
01101001
11100110

stdout

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

stderr

strace