Result

WA

Code [DL]

process.stdin.on('data',n=>(''+n).split("\n").map(n=>console.log(parseInt(n,2))))

stdin

00000001
01101001
10010000
00010101
11100111
00100100
00101101
00000000
10101111
11000000
01110101
01100100
01000010
11010001
11110100
01111110
00111000
00010001
00100010
01001110
10011001
10101001
10111110
00110111
00000110
10011111
00100101
10010011
00001010
10101011
00011100
00011011
01111100
00010110
00001111
10101100
10110001
10001000
01001000
00000011
01111000
01100001
00101101
11111101
00110111
01011011
11010010
10001010
11101011
00001011

stdout

1
105
144
21
231
36
45
0
175
192
117
100
66
209
244
126
56
17
34
78
153
169
190
55
6
159
37
147
10
171
28
27
124
22
15
172
177
136
72
3
120
97
45
253
55
91
210
138
235
11
NaN

stderr

strace