Result

AC

Code [DL]

a=255.times.map{|i|i.times.inject(&:+)}
50.times{puts a.index(gets.to_i(2))?1:0}

stdin

11101001
00000011
01011000
01010110
11100111
01001110
00011111
01000010
00101101
10000000
01011011
00001010
00110001
11010100
01110111
00110110
10111011
10111110
11010010
00100010
11100010
01011011
01100100
10011001
11111101
11101011
00001111
00000001
01101001
10001000
10100010
01111000
00011110
01101001
00000110
00100000
11100011
00011100
11110100
00110111
01000110
00100100
10101110
11000111
10101011
10111001
00000000
01011110
00010101
00001000

stdout

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

stderr

strace