Result

WA

Code [DL]

50.times{a=(((8*gets.to_i+1)**(0.5)-1)/2);p(a.to_i==a ?1:0)}

stdin

10100101
10000110
01110011
01111000
01011011
00110001
10011001
10010111
00100100
10101011
10011000
00101101
01000110
01001111
00000001
11010010
01101001
11100100
10101101
00010101
01101100
10011111
11001010
00010010
01000101
10000010
01001110
00011100
01011010
01000010
00101000
01001100
00101101
00110111
00001111
11110101
00001010
00100010
10101011
11100111
01001101
00000011
10001000
00000000
10001111
11111101
00000110
10111110
00110110
11110111

stdout

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

stderr

strace