Result

WA

Code [DL]

for(c=new util.Scanner(lang.System.in);;)print(+!(Math.sqrt(8*c.nextInt(2)+1)%1))

stdin

10110101
00010101
01001110
11010010
11011110
10110000
01000110
11111101
10001000
11111000
11101000
00001010
01000100
00000110
01010101
00110111
11010100
00101011
00100100
11110011
01101111
00101101
00001010
11110101
00000001
00001111
01000010
01111000
01011011
01111110
11100111
11110010
00000011
00000000
00001011
10111001
10011001
10111110
01110110
10000010
11111010
10101011
10111010
10001000
10000000
10001100
01101001
00011100
00100110
11000000

stdout

stderr

js: uncaught JavaScript runtime exception: ReferenceError: "util" is not defined.

strace