QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#795666#9783. Duloc Networkucup-team5995#AC ✓26ms3908kbC++142.3kb2024-11-30 22:54:212024-11-30 22:54:21

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3644kb

input:

4
1
3
2
2
2
1
1
2
0
0

output:

? 1000
? 0100
? 1100
? 1100
? 0010
? 1110
? 1110
? 0001
? 1111
? 1111
! 1

result:

ok Correct answer with 10 queries.

Test #2:

score: 0
Accepted
time: 0ms
memory: 3684kb

input:

2
0
0
0

output:

? 10
? 01
? 11
! 0

result:

ok Correct answer with 3 queries.

Test #3:

score: 0
Accepted
time: 1ms
memory: 3580kb

input:

4
1
3
2
2
2
1
1
2
0
0

output:

? 1000
? 0100
? 1100
? 1100
? 0010
? 1110
? 1110
? 0001
? 1111
? 1111
! 1

result:

ok Correct answer with 10 queries.

Test #4:

score: 0
Accepted
time: 1ms
memory: 3536kb

input:

2
0
0
0

output:

? 10
? 01
? 11
! 0

result:

ok Correct answer with 3 queries.

Test #5:

score: 0
Accepted
time: 3ms
memory: 3584kb

input:

50
3
1
4
1
4
2
1
5
2
1
5
2
2
4
9
4
4
4
8
5
5
3
6
5
6
2
2
9
3
3
1
9
2
3
1
9
4
2
2
10
8
5
5
5
10
8
6
3
9
6
5
5
10
8
6
3
9
5
5
3
3
8
6
8
2
6
4
3
3
3
8
6
7
7
12
8
9
1
6
2
2
1
1
6
2
8
2
7
10
3
4
7
7
6
6
6
10
12
5
5
5
9
6
12
3
7
7
4
6
6
10
7
11
1
5
7
7
1
6
11
5
5
5
9
7
11
1
5
3
3
1
1
9
3
7
2
8
6
3
3
3
8
7...

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 10100000000000000000000000000000000000000000000000
? 011000000000000000000000000000000...

result:

ok Correct answer with 363 queries.

Test #6:

score: 0
Accepted
time: 0ms
memory: 3880kb

input:

50
10
13
19
19
8
21
21
6
22
22
13
30
30
8
32
32
10
33
33
8
34
34
8
35
35
8
35
35
9
34
34
13
35
35
15
36
36
11
35
35
9
34
34
10
33
33
14
32
32
6
31
31
16
31
31
10
30
30
15
29
29
10
28
28
7
27
27
8
26
26
10
25
25
10
24
24
10
23
23
13
22
22
10
21
21
15
20
20
9
19
19
10
18
18
11
17
17
5
16
16
16
15
15
1...

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 111000000000000000000000000000000...

result:

ok Correct answer with 148 queries.

Test #7:

score: 0
Accepted
time: 3ms
memory: 3644kb

input:

50
1
3
4
1
2
4
4
8
5
3
7
4
7
1
6
5
4
1
6
8
2
1
10
3
2
2
2
7
7
3
1
10
3
1
1
6
6
2
3
11
6
4
5
5
8
10
6
1
8
3
6
1
8
3
6
2
1
9
7
2
2
1
7
4
3
3
3
8
9
4
4
3
7
5
4
4
3
3
10
9
2
2
2
8
4
7
3
5
11
9
8
5
5
5
10
8
5
5
5
11
7
8
8
13
10
9
1
5
3
2
2
2
12
4
3
1
12
3
3
1
10
10
2
0
0
11
2
2
1
11
10
2
1
1
11
3
3
3
13
...

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 10100000000000000000000000000000000000000000000000
? 011000000000000000000000000000000...

result:

ok Correct answer with 404 queries.

Test #8:

score: 0
Accepted
time: 1ms
memory: 3884kb

input:

50
2
14
15
15
8
21
21
8
24
24
7
27
27
12
30
30
12
33
33
8
33
33
8
33
33
9
33
33
9
32
32
10
32
32
8
31
31
8
30
30
4
31
31
8
31
31
9
31
31
9
31
31
9
31
31
11
30
30
13
29
29
11
28
28
8
27
27
7
26
26
9
25
25
12
24
24
7
23
23
5
22
22
6
21
21
4
20
20
7
19
19
8
18
18
10
17
17
5
16
16
5
15
15
10
14
14
8
13
...

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 111000000000000000000000000000000...

result:

ok Correct answer with 148 queries.

Test #9:

score: 0
Accepted
time: 3ms
memory: 3584kb

input:

50
3
1
4
1
4
2
1
3
2
2
2
3
3
2
4
2
2
3
3
1
3
3
1
3
3
2
1
5
2
2
1
5
3
2
5
9
6
6
5
5
8
6
6
5
5
7
5
6
4
4
6
6
5
1
5
2
5
2
6
7
3
1
6
6
3
1
6
6
2
2
2
7
7
3
1
6
6
2
3
1
10
3
3
2
3
11
7
4
6
6
12
8
5
5
5
10
7
6
6
1
7
3
2
6
1
5
3
3
1
1
6
3
2
6
2
7
5
6
6
6
11
8
7
7
1
4
4
2
0
0
10
2
1
1
1
11
4
2
1
1
11
3
2
1
1...

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 10100000000000000000000000000000000000000000000000
? 011000000000000000000000000000000...

result:

ok Correct answer with 436 queries.

Test #10:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

100
1
2
3
1
2
3
1
4
2
1
4
2
2
1
5
2
2
1
5
3
0
0
4
1
1
1
5
3
1
3
8
4
4
3
8
4
4
6
1
7
2
4
4
1
7
5
4
2
2
7
5
5
2
2
8
6
5
3
3
9
10
4
2
2
8
6
5
3
4
10
10
7
4
4
4
10
9
7
5
1
7
9
2
5
2
8
10
7
3
2
10
7
6
5
3
3
9
10
7
4
6
6
12
13
7
7
2
8
9
4
8
1
7
4
2
2
1
1
7
8
3
7
2
10
8
9
3
2
10
9
7
6
6
6
14
12
9
7
1
9
8
4...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 995 queries.

Test #11:

score: 0
Accepted
time: 0ms
memory: 3652kb

input:

100
11
13
23
23
9
27
27
11
33
33
8
40
40
7
43
43
15
48
48
12
50
50
8
53
53
8
55
55
7
57
57
6
58
58
9
61
61
12
63
63
11
64
64
9
63
63
10
62
62
9
64
64
11
66
66
16
67
67
10
67
67
8
67
67
9
66
66
8
65
65
10
65
65
6
64
64
8
64
64
9
65
65
13
65
65
10
66
66
9
65
65
7
64
64
5
63
63
11
62
62
14
61
61
6
60
6...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 298 queries.

Test #12:

score: 0
Accepted
time: 3ms
memory: 3540kb

input:

100
5
3
8
3
8
6
4
11
8
8
8
11
11
2
8
10
2
8
10
4
2
15
8
9
9
15
11
11
8
16
8
8
8
14
10
16
16
22
18
4
10
6
20
5
9
9
6
6
6
13
6
6
6
13
22
4
10
7
7
7
16
21
21
27
24
4
10
9
9
9
30
10
10
31
2
23
11
11
32
2
22
22
22
32
32
3
34
34
4
36
36
6
37
37
5
38
38
1
39
4
38
38
38
39
3
4
40
40
41
3
4
41
41
42
2
3
43
5...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 370 queries.

Test #13:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

100
1
1
2
1
2
2
3
5
4
1
3
2
4
1
4
4
2
3
6
7
4
1
7
3
4
4
10
6
5
5
5
11
7
6
1
7
3
2
6
2
9
4
7
3
3
10
10
4
5
4
10
7
8
3
3
10
12
4
5
1
11
8
3
4
1
11
8
6
2
2
13
10
6
3
4
15
14
9
9
4
4
15
13
8
5
1
12
13
3
5
3
19
9
7
6
2
2
13
14
4
6
2
18
9
5
3
3
3
14
15
5
7
1
17
8
4
2
2
2
13
15
4
6
3
19
12
8
5
2
18
11
7
4
...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 982 queries.

Test #14:

score: 0
Accepted
time: 5ms
memory: 3848kb

input:

100
1
1
2
2
3
3
3
5
5
1
3
3
4
3
7
6
4
2
6
6
5
1
8
5
3
1
8
5
3
2
1
7
5
2
2
2
7
6
4
3
1
7
6
2
2
2
7
6
4
3
1
7
6
2
3
1
7
7
3
2
4
13
9
5
5
1
10
6
3
5
1
12
5
6
2
1
11
6
5
2
2
12
6
7
3
2
12
7
7
4
1
11
6
4
2
3
3
12
8
8
5
1
11
8
4
2
4
4
13
9
8
6
2
12
9
4
3
3
3
12
8
7
7
3
13
7
3
2
2
2
11
8
6
6
1
11
9
6
3
1
1...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1067 queries.

Test #15:

score: 0
Accepted
time: 8ms
memory: 3644kb

input:

150
4
2
6
3
7
5
2
8
5
2
8
5
4
3
12
5
5
2
11
6
5
4
15
9
6
3
13
9
6
4
4
17
9
6
3
16
7
5
5
5
18
11
7
4
16
10
7
7
7
21
12
8
8
8
17
15
12
2
16
8
10
2
15
7
5
5
5
17
11
11
11
18
18
15
4
16
9
6
7
7
14
14
18
6
18
19
12
12
19
19
23
1
13
14
13
3
15
16
15
4
2
16
24
13
13
13
25
26
16
14
3
17
13
10
10
10
22
25
13...

output:

? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 820 queries.

Test #16:

score: 0
Accepted
time: 8ms
memory: 3692kb

input:

150
4
2
6
2
6
4
1
7
3
2
8
4
3
1
9
2
3
1
9
4
2
8
16
13
11
11
11
16
14
12
1
7
4
12
2
8
5
13
3
1
9
13
2
3
3
11
16
4
4
4
12
16
5
5
4
12
17
5
6
6
14
18
7
7
2
10
15
3
5
5
13
17
6
6
1
9
14
2
6
4
12
8
7
5
5
12
18
6
10
3
11
15
14
13
13
13
20
20
14
18
2
10
9
7
15
1
7
3
2
2
1
1
9
8
6
14
4
12
11
22
5
3
16
10
17...

output:

? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 858 queries.

Test #17:

score: 0
Accepted
time: 14ms
memory: 3592kb

input:

150
3
1
4
4
7
5
1
5
5
4
8
8
5
2
10
3
6
3
11
8
5
1
10
5
5
1
1
9
6
4
1
10
8
2
3
12
10
4
4
1
14
5
2
4
1
14
6
4
2
4
20
9
5
5
5
20
13
9
6
8
8
24
13
7
7
7
20
12
10
8
7
21
13
11
9
9
24
19
13
15
15
25
18
18
15
15
21
22
18
16
1
11
7
2
16
2
12
9
15
15
15
25
21
16
16
1
11
8
2
16
2
15
7
17
3
3
15
7
6
5
5
5
17
1...

output:

? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1375 queries.

Test #18:

score: 0
Accepted
time: 8ms
memory: 3656kb

input:

150
4
4
8
5
9
9
4
12
9
2
10
5
5
5
13
9
2
10
6
7
5
17
10
7
3
15
9
7
7
7
19
12
9
1
13
8
8
4
20
12
8
8
8
20
11
14
14
26
15
16
2
14
5
16
2
14
10
5
5
5
15
8
19
3
13
10
6
6
6
17
9
20
1
13
17
7
1
13
15
3
13
13
25
16
19
2
14
5
8
15
2
16
9
15
4
3
17
23
5
5
3
17
13
11
7
7
7
19
27
9
9
3
16
23
21
9
15
15
27
29
...

output:

? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1141 queries.

Test #19:

score: 0
Accepted
time: 12ms
memory: 3816kb

input:

150
2
1
3
1
3
2
3
6
4
2
5
3
5
2
6
5
4
2
6
7
4
1
8
5
3
1
8
3
3
1
1
8
4
3
1
8
4
3
2
1
8
5
2
2
2
7
5
4
3
1
8
4
2
3
2
9
6
4
3
2
10
7
3
4
2
10
6
4
3
3
3
11
8
4
5
1
9
6
4
4
1
10
5
3
2
2
2
9
7
5
5
3
11
6
5
4
3
3
11
8
6
6
3
13
6
5
4
4
4
12
9
7
6
6
14
12
7
8
2
10
8
5
8
2
11
6
3
3
2
2
11
8
5
8
1
12
5
4
2
3
3
...

output:

? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1519 queries.

Test #20:

score: 0
Accepted
time: 7ms
memory: 3652kb

input:

200
1
3
4
1
2
4
3
7
4
3
5
4
4
4
8
5
1
5
2
5
1
6
5
2
1
6
6
2
1
10
3
2
1
10
3
2
2
2
12
4
3
3
1
11
4
2
3
3
13
8
7
6
6
6
13
9
7
8
2
10
5
4
8
2
10
5
10
4
1
10
5
9
3
1
10
11
5
2
3
13
14
6
4
1
11
12
4
2
4
2
12
9
3
3
2
2
12
13
5
3
5
1
10
6
4
3
2
2
2
11
13
5
3
5
1
11
13
3
4
3
1
11
14
5
3
2
1
13
13
6
2
2
2
14...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2447 queries.

Test #21:

score: 0
Accepted
time: 18ms
memory: 3824kb

input:

200
3
2
5
2
5
4
2
7
4
2
7
4
4
2
9
4
4
1
8
5
3
1
10
5
2
1
10
5
2
2
4
15
7
5
5
2
12
8
7
3
3
15
11
8
6
6
14
10
7
7
1
11
3
3
1
1
9
5
7
2
2
12
10
3
3
2
12
11
3
4
2
14
10
4
4
2
14
10
6
4
1
19
5
5
3
1
19
7
5
2
2
21
9
5
3
1
20
8
4
2
3
1
21
9
3
3
2
3
23
12
6
4
4
1
23
9
4
2
4
1
23
9
5
4
2
2
26
10
7
3
3
2
26
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2233 queries.

Test #22:

score: 0
Accepted
time: 12ms
memory: 3600kb

input:

200
1
2
3
1
2
3
1
4
2
1
4
2
2
3
7
4
4
1
5
3
4
1
6
5
2
2
7
6
3
3
1
7
4
4
1
1
6
5
3
2
2
8
7
3
3
3
9
9
4
5
2
10
6
4
4
4
10
10
5
6
3
12
7
5
7
1
10
5
7
4
3
14
7
10
4
2
13
10
6
5
1
13
11
5
3
3
15
12
5
4
4
4
16
13
8
6
1
13
10
5
3
5
2
15
11
7
6
3
3
16
15
9
2
2
2
15
11
7
6
4
1
14
13
7
3
3
1
15
14
7
3
2
1
13
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2119 queries.

Test #23:

score: 0
Accepted
time: 7ms
memory: 3896kb

input:

200
1
1
2
1
2
2
1
3
2
1
3
2
2
2
5
3
3
3
6
5
5
2
6
5
5
1
5
4
4
3
1
6
6
3
2
4
9
11
5
5
1
8
7
2
5
2
9
8
7
3
2
12
5
5
2
2
9
8
8
3
3
11
5
3
2
2
2
10
7
6
5
3
3
11
8
5
7
2
10
7
8
5
3
14
5
5
3
3
11
8
9
6
1
12
5
8
4
2
13
10
8
1
1
12
5
8
4
1
12
9
7
2
2
14
11
4
2
2
2
13
10
8
3
2
14
12
6
4
3
15
13
6
6
3
3
15
13...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1970 queries.

Test #24:

score: 0
Accepted
time: 9ms
memory: 3600kb

input:

200
1
3
4
2
3
5
2
6
4
3
7
5
5
3
9
5
6
2
8
7
5
2
10
8
4
2
10
8
4
4
2
13
7
4
4
3
14
10
5
5
2
15
8
6
4
4
4
15
11
6
6
1
14
7
5
2
2
2
15
9
4
4
1
16
7
8
3
3
16
9
5
5
4
19
9
8
5
5
18
11
8
7
4
19
11
6
8
8
21
14
11
10
3
18
10
5
11
4
19
10
7
6
5
5
20
13
7
13
4
18
10
11
5
5
23
13
7
13
3
21
11
11
3
3
3
21
11
8
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1152 queries.

Test #25:

score: 0
Accepted
time: 9ms
memory: 3656kb

input:

200
6
6
11
11
5
16
5
16
10
3
19
8
3
18
14
7
7
21
12
1
15
6
8
3
22
10
4
2
21
10
5
4
28
18
9
9
9
28
12
11
11
30
13
12
6
25
9
17
4
25
15
5
14
14
33
17
20
5
25
18
16
7
7
37
10
13
5
36
29
15
15
15
41
18
21
3
31
10
18
7
33
27
14
20
20
36
30
25
21
21
36
34
33
33
33
48
39
34
5
20
12
34
34
49
40
35
3
16
12
9...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 834 queries.

Test #26:

score: 0
Accepted
time: 10ms
memory: 3656kb

input:

200
2
9
11
4
6
11
11
13
4
6
13
13
15
6
8
19
4
19
10
2
17
8
6
3
23
18
8
8
23
10
12
4
21
8
12
5
20
18
7
16
16
24
20
22
22
28
24
26
5
13
9
27
4
11
9
6
7
7
16
11
29
5
14
30
8
8
8
17
13
13
13
20
15
35
7
16
29
20
6
14
12
7
7
7
21
26
26
26
38
28
39
3
17
16
29
3
17
42
4
4
18
17
30
5
19
42
17
17
17
31
21
42
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1325 queries.

Test #27:

score: 0
Accepted
time: 3ms
memory: 3648kb

input:

200
4
3
7
3
7
4
4
8
1
5
5
5
13
6
5
13
6
10
4
13
9
9
1
10
11
5
1
15
10
2
4
18
13
5
5
5
23
13
12
9
8
8
21
15
12
11
11
22
20
12
2
13
11
3
12
12
23
21
13
2
13
11
3
12
12
23
21
13
2
13
11
3
13
13
24
22
14
1
12
10
2
14
5
21
10
18
6
3
19
20
8
15
15
31
20
20
16
5
21
14
10
9
9
25
14
24
10
4
20
23
9
18
18
34
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1440 queries.

Test #28:

score: 0
Accepted
time: 3ms
memory: 3856kb

input:

200
6
1
7
8
14
9
4
11
10
10
16
11
8
14
13
13
13
23
14
7
17
16
16
16
29
17
3
17
19
6
20
22
9
3
32
16
15
15
15
22
31
18
2
25
5
17
6
28
12
11
11
11
30
14
26
4
23
21
7
18
18
37
21
29
10
26
13
23
23
42
26
39
39
42
50
42
6
20
9
43
43
46
54
46
6
20
9
48
48
51
59
51
7
21
10
51
51
54
62
54
1
15
4
52
3
15
4
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1157 queries.

Test #29:

score: 0
Accepted
time: 0ms
memory: 3600kb

input:

200
7
4
11
6
13
10
3
12
8
8
8
14
12
4
14
11
11
17
15
2
12
13
3
12
9
6
6
14
17
3
11
14
9
1
20
7
4
9
27
16
14
14
14
28
20
17
4
18
13
18
6
26
23
10
2
22
18
4
4
4
24
23
9
9
9
23
19
23
4
24
20
8
16
16
30
26
25
7
23
9
7
7
7
35
25
17
17
44
21
21
21
39
30
25
3
29
20
18
18
18
41
27
22
4
36
8
22
4
33
24
22
22...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 751 queries.

Test #30:

score: 0
Accepted
time: 17ms
memory: 3548kb

input:

200
2
2
4
2
4
4
1
5
3
1
5
3
2
2
8
3
3
1
7
3
3
1
8
4
2
2
9
5
3
3
1
9
4
2
3
2
10
6
4
3
1
11
5
2
3
1
11
5
4
2
1
12
5
4
2
1
12
7
3
2
2
12
7
4
4
2
2
12
8
4
3
3
12
9
6
4
2
2
12
9
4
3
2
14
8
4
4
1
13
7
3
3
3
1
15
6
3
1
1
1
13
7
3
3
3
3
16
10
5
4
4
4
15
8
7
6
3
3
14
10
5
5
2
13
9
4
4
5
2
15
8
5
5
4
4
17
10
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2155 queries.

Test #31:

score: 0
Accepted
time: 17ms
memory: 3900kb

input:

200
1
1
2
2
3
3
3
5
5
1
3
3
4
1
5
4
2
1
5
5
2
3
10
5
4
2
9
4
3
5
1
9
3
4
3
1
9
6
3
2
2
11
8
3
3
1
10
7
3
3
2
10
9
4
1
1
10
7
3
3
3
11
8
5
3
3
3
11
9
5
5
3
12
9
6
6
1
10
8
6
4
3
15
7
4
3
3
3
12
9
8
6
1
13
6
7
4
1
13
6
7
4
2
2
15
9
8
3
3
2
15
12
6
3
4
3
17
15
5
5
5
1
15
13
5
3
4
1
16
11
7
6
2
2
16
12
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2060 queries.

Test #32:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

200
1
2
3
4
5
6
1
4
5
2
5
6
3
3
10
4
5
3
10
6
6
1
9
6
4
1
9
6
4
2
4
14
10
3
3
3
11
8
6
4
2
12
7
5
4
4
12
9
7
5
3
13
9
4
7
2
12
9
6
5
4
17
12
7
5
5
15
12
9
8
2
15
10
5
7
2
15
10
10
4
3
17
11
8
4
4
17
11
12
6
2
17
10
8
7
3
3
16
10
11
7
1
16
9
10
4
3
16
9
4
2
2
2
17
10
11
5
1
16
13
5
2
4
4
19
10
13
7
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2057 queries.

Test #33:

score: 0
Accepted
time: 9ms
memory: 3896kb

input:

200
1
1
2
3
4
4
3
5
6
3
5
6
6
1
6
4
4
3
8
9
4
3
11
7
6
2
10
6
5
5
1
12
5
4
3
1
12
8
3
2
5
16
9
6
6
5
5
16
12
7
6
3
15
11
4
8
3
15
11
9
6
1
16
7
9
4
1
16
12
7
2
1
19
12
5
2
1
19
12
5
2
2
3
23
14
8
3
3
3
21
14
7
4
4
3
23
14
8
4
7
7
25
16
11
8
6
6
24
15
10
7
1
19
10
5
2
7
1
21
11
3
7
2
2
22
13
9
3
3
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2189 queries.

Test #34:

score: 0
Accepted
time: 20ms
memory: 3628kb

input:

200
2
1
3
2
4
3
2
5
4
2
5
4
4
3
8
5
5
3
8
7
6
3
10
8
6
1
8
6
4
4
1
10
7
4
2
1
10
10
2
2
3
15
10
4
4
3
15
10
5
6
1
16
6
5
4
1
16
7
7
2
2
20
8
6
3
2
18
7
5
4
2
2
20
8
6
3
1
19
7
5
2
3
2
21
10
4
4
3
2
21
11
5
3
4
3
23
12
5
4
4
4
23
13
7
5
6
3
23
12
6
5
5
5
24
14
8
6
7
1
19
8
6
1
1
1
23
10
4
2
3
2
24
13...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2149 queries.

Test #35:

score: 0
Accepted
time: 14ms
memory: 3652kb

input:

200
3
3
6
2
5
5
2
7
5
4
4
7
6
3
8
7
2
7
6
5
2
10
7
5
5
10
7
8
3
8
6
6
3
3
11
5
5
5
13
7
2
7
5
4
4
12
6
3
7
5
5
5
11
9
7
7
11
9
2
7
6
3
3
7
10
3
11
7
7
7
11
10
1
6
3
3
3
10
6
3
9
7
7
7
10
9
9
12
2
5
9
9
12
2
3
3
3
11
11
2
10
10
2
9
9
3
8
8
2
7
7
2
6
6
2
5
5
2
4
4
3
3
3
2
2
2
2
1
1
2
0
0
3
3
2
2
5
2
5...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1500 queries.

Test #36:

score: 0
Accepted
time: 12ms
memory: 3656kb

input:

200
1
2
1
1
2
1
1
2
1
1
3
2
2
2
2
2
3
3
3
2
3
3
3
4
4
3
5
5
2
5
5
3
6
6
2
6
6
3
7
7
3
8
8
3
9
9
2
9
9
3
10
10
2
9
9
3
9
9
2
9
9
3
10
10
2
10
10
2
9
9
3
9
9
2
8
8
3
8
8
2
8
8
2
8
8
3
9
9
2
9
9
2
8
8
3
8
8
2
7
7
3
6
6
3
6
6
2
5
5
3
5
5
2
4
4
3
4
4
2
3
3
3
3
3
2
2
2
3
1
1
3
1
1
2
1
1
2
1
1
2
1
1
2
1
1
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1038 queries.

Test #37:

score: 0
Accepted
time: 20ms
memory: 3660kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
1
7
5
3
2
10
6
3
2
10
6
3
4
2
12
5
4
4
2
12
7
4
4
2
14
7
4
4
2
14
7
6
4
2
15
8
6
4
2
15
10
6
4
2
17
10
6
4
2
17
10
6
4
4
2
19
10
6
4
4
2
19
12
6
4
4
2
21
12
6
4
4
2
21
12
8
4
4
2
20
11
8
4
4
2
2
20
12
6
4
3
3
3
22
13
7
5
5
2
21
10
8
4
2
2
21
13
6
4
4
2
21
13
8
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2179 queries.

Test #38:

score: 0
Accepted
time: 25ms
memory: 3628kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
1
7
5
3
2
10
6
3
2
10
6
3
4
2
12
5
4
4
2
12
7
4
4
2
14
7
4
4
2
14
7
6
4
2
15
8
6
4
2
15
10
6
4
2
17
10
6
4
2
17
10
6
4
4
2
19
10
6
4
4
2
19
12
6
4
4
2
21
12
6
4
4
2
21
12
8
4
4
2
20
11
8
4
4
2
2
20
12
6
4
3
3
3
22
13
7
5
5
2
21
10
8
4
2
2
21
13
6
4
4
2
21
13
8
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2230 queries.

Test #39:

score: 0
Accepted
time: 13ms
memory: 3896kb

input:

200
3
1
4
2
5
3
1
5
3
1
5
3
2
2
8
3
3
2
8
4
4
1
8
4
3
2
9
4
2
2
2
9
5
4
1
8
4
3
3
1
9
5
3
2
1
9
7
2
2
2
12
7
3
3
3
13
8
5
5
3
15
7
6
6
1
13
6
4
1
1
1
13
5
5
4
2
13
8
6
3
3
3
14
7
7
6
1
12
6
7
4
2
15
8
8
3
1
14
7
7
2
3
2
16
10
6
4
3
1
15
12
4
2
3
3
18
13
9
6
3
3
3
17
14
6
4
5
1
16
12
4
3
4
1
16
12
6
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2202 queries.

Test #40:

score: 0
Accepted
time: 18ms
memory: 3560kb

input:

200
2
1
3
2
4
3
4
7
6
2
5
4
6
2
7
6
4
1
6
7
3
2
11
6
3
1
10
5
2
3
3
14
6
5
4
2
12
6
5
3
3
15
6
5
4
1
13
6
2
3
3
15
6
5
4
1
13
6
2
4
3
17
7
6
4
3
17
7
7
5
5
19
9
8
6
1
15
5
5
6
1
16
7
7
2
1
16
8
7
2
3
20
13
5
4
2
19
10
6
3
5
5
22
13
7
6
2
19
10
4
3
7
1
19
8
5
3
3
3
20
10
5
4
8
2
20
9
4
7
5
2
20
10
8
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1893 queries.

Test #41:

score: 0
Accepted
time: 6ms
memory: 3896kb

input:

200
3
2
5
1
4
3
2
7
3
4
9
5
6
3
9
5
7
2
8
8
5
1
9
7
4
4
4
10
8
7
1
9
6
5
2
9
7
2
2
2
10
7
6
2
10
7
6
4
1
11
8
3
3
2
12
11
4
3
6
19
14
7
8
2
15
10
5
8
1
18
6
9
3
1
17
8
6
1
1
1
18
6
9
3
1
18
8
9
2
1
20
12
4
2
2
21
13
5
3
3
3
24
14
5
4
5
1
22
13
3
3
4
3
25
15
6
6
4
1
22
10
7
3
2
2
25
14
5
5
3
1
24
13
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2097 queries.

Test #42:

score: 0
Accepted
time: 11ms
memory: 3608kb

input:

200
4
4
8
1
5
5
1
9
2
3
11
4
4
2
10
10
2
2
10
5
3
2
13
3
4
2
13
5
4
3
15
7
5
2
14
6
4
5
1
15
5
4
3
1
15
8
3
2
3
19
10
4
4
2
16
11
8
6
4
4
19
11
5
5
3
18
10
5
7
1
16
12
3
1
1
1
17
8
3
5
2
20
8
7
3
2
20
9
7
4
2
21
11
7
4
4
4
20
11
9
6
2
21
10
5
4
4
20
11
9
6
1
18
10
6
1
1
1
19
8
6
3
5
26
13
8
6
2
22
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2038 queries.

Test #43:

score: 0
Accepted
time: 11ms
memory: 3548kb

input:

200
1
1
1
1
2
3
3
4
5
2
5
5
2
5
5
4
2
8
4
4
3
9
7
5
2
10
5
4
3
3
9
7
6
2
10
7
5
3
11
8
6
4
4
12
9
7
4
10
7
7
4
4
14
9
7
1
11
6
4
5
4
14
8
5
5
4
4
13
9
7
8
3
14
7
6
4
4
13
9
8
8
2
13
9
6
6
1
12
11
7
4
4
4
15
9
8
8
1
11
5
2
2
1
1
15
6
5
5
3
17
12
7
4
4
21
14
5
7
1
18
11
5
5
2
20
13
7
5
5
5
19
15
9
9
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2150 queries.

Test #44:

score: 0
Accepted
time: 6ms
memory: 3596kb

input:

200
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 598 queries.

Test #45:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

200
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 621 queries.

Test #46:

score: 0
Accepted
time: 5ms
memory: 3852kb

input:

200
16
14
28
28
18
44
44
11
53
53
22
73
73
8
79
79
14
91
91
26
115
115
11
124
124
12
136
15
139
25
25
149
14
138
37
37
161
20
144
55
55
179
9
133
62
62
186
1
123
123
123
185
1
63
122
122
184
1
63
121
121
183
1
61
61
61
182
1
120
120
120
181
1
62
119
119
180
1
62
118
118
179
1
60
60
60
178
1
117
117
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 977 queries.

Test #47:

score: 0
Accepted
time: 5ms
memory: 3896kb

input:

200
15
15
28
28
16
42
42
19
59
59
17
74
74
16
88
88
13
99
99
16
113
113
6
117
117
17
132
132
13
143
143
16
157
157
13
168
168
20
186
186
1
185
185
1
184
184
1
183
183
1
182
182
1
181
181
1
180
180
1
179
179
1
178
178
1
177
177
1
176
176
1
175
175
1
174
174
1
173
173
1
172
172
1
171
171
1
170
170
1
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 598 queries.

Test #48:

score: 0
Accepted
time: 12ms
memory: 3828kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
8
6
4
2
2
10
6
4
2
8
4
4
2
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
12
8
4
4
2
2
12
8
4
4
2
14
8
2
2
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
2
18
10
6
4
2
2
2
18
10
6
4
4
2
18
10
6
4
2
2
2
18
10
6
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2124 queries.

Test #49:

score: 0
Accepted
time: 5ms
memory: 3820kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
3
3
11
7
5
2
10
6
4
5
2
12
6
5
4
2
12
9
4
4
2
14
9
4
4
2
14
9
6
4
2
16
9
6
4
2
16
11
6
4
2
19
10
6
4
2
19
10
4
4
2
2
19
10
6
4
2
19
10
6
4
4
2
21
10
6
4
4
2
21
12
6
4
4
2
22
11
8
4
3
3
22
13
7
5
5
2
23
10
8
4
2
2
21
12
7
4
4
2
23
13
6
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2146 queries.

Test #50:

score: 0
Accepted
time: 8ms
memory: 3864kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
1
13
7
3
3
2
14
8
6
3
2
14
8
4
4
2
2
14
8
6
3
2
16
6
6
2
2
14
8
6
3
2
16
8
5
4
2
16
10
5
4
2
18
9
6
4
2
18
7
4
2
2
2
18
9
6
4
2
18
9
6
4
4
2
20
9
6
4
4
2
20
11
6
3
3
3
21
10
7
5
5
2
20
11
6
3
3
3
21
10
7
5
6
2
20...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2225 queries.

Test #51:

score: 0
Accepted
time: 15ms
memory: 3552kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
10
8
4
2
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
2
18
12
4
4
2
2
18
10
6
4
4
2
20
10
6
4
4
2
20
12
6
4
4
2
22
12
6
4
4
2
22
12
8
4
4
2
23
14
8
4
3
3
23
13
8
6
5
4
4
24
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2139 queries.

Test #52:

score: 0
Accepted
time: 12ms
memory: 3660kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
6
4
2
2
2
14
8
4
4
2
13
8
6
3
3
15
9
5
5
2
14
6
4
2
2
2
14
9
4
4
2
12
6
4
2
2
2
14
9
4
4
2
14
9
6
4
2
17
8
6
4
2
17
10
6
4
2
19
10
6
4
2
19
10
4
4
2
2
19
10
6
4
2
19
10
6
4
4
2
21
10
6
4
4
2
21
12...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2084 queries.

Test #53:

score: 0
Accepted
time: 23ms
memory: 3600kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
2
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
11
8
3
3
3
13
7
5
5
2
12
8
4
5
2
14
8
5
4
2
14
8
7
4
2
15
10
5
3
3
3
15
9
8
5
2
16
9
6
5
2
16
11
7
4
2
18
11
7
4
2
18
11
7
4
4
2
20
12
6
4
4
2
20
14
6
4
4
2
23
13
6
4
4
2
20
9
7
5
4
3
3
22
11
9
3
3
3
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2107 queries.

Test #54:

score: 0
Accepted
time: 18ms
memory: 3892kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
9
6
3
3
3
9
7
5
2
8
4
2
2
2
9
6
4
2
11
6
4
2
11
6
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
6
4
2
17
7
5
3
3
3
16
9
7
5
2
17
8
6
5
2
17
9
5
3
3
3
18
9
7
6
2
17
10
6
3
3
3
18
9
8
6
2
17
10
8
5
2
18
11
5
3
3
3
18
11
9
6
2
19
11
8
5
2
19
11
7
5
4
4
21
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2150 queries.

Test #55:

score: 0
Accepted
time: 17ms
memory: 3596kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
2
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
12
8
6
2
2
12
8
4
4
2
14
8
4
4
2
14
6
4
4
2
2
14
8
4
4
2
13
8
6
3
3
15
9
5
5
2
14
8
6
5
2
16
8
6
3
3
3
15
9
7
6
2
16
7
5
4
3
3
15
10
7
6
2
14
8
4
2
2
2
15
9
6
5
2
17
9
7
4
2
16
11
5
3
3
3
18
10
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2095 queries.

Test #56:

score: 0
Accepted
time: 9ms
memory: 3544kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
8
6
4
2
2
8
6
4
2
10
6
4
2
8
6
2
2
2
10
6
4
2
8
4
4
2
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
4
2
2
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
2
20
10
6
4
4
2
20
12
6
4
4
2
22
12
6
4
4
2
22
12
8
4
4
2
24
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2106 queries.

Test #57:

score: 0
Accepted
time: 18ms
memory: 3632kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
5
4
3
3
9
7
5
2
10
5
4
3
3
9
7
6
2
10
7
5
2
10
7
5
4
2
12
8
4
4
2
12
9
7
5
4
4
14
9
6
6
2
12
9
4
6
2
15
8
6
4
2
15
8
8
4
2
15
10
5
4
3
3
15
9
9
5
2
16
10
6
5
2
16
12
7
4
2
18
12
7
4
2
18
12
7
4
4
2
19
12
5
3
3
3
19
13
8
5
4
4
20
14
9
6
2
18
12
7
4
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2123 queries.

Test #58:

score: 0
Accepted
time: 24ms
memory: 3552kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
3
3
7
5
2
6
4
4
4
8
6
3
7
5
7
2
8
6
5
2
8
9
4
2
12
7
4
2
12
7
4
4
2
15
6
4
4
2
15
8
4
4
2
17
8
4
4
2
17
8
6
4
2
19
8
6
4
2
19
10
6
4
2
21
10
6
4
2
21
10
6
4
4
2
22
14
8
5
5
5
22
13
9
7
7
2
20
13
5
4
3
3
23
10
6
5
4
4
24
12
8
6
2
22
10
6
4
6
2
24
10
6
6
4
2
24
12
8
4
4
1
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2135 queries.

Test #59:

score: 0
Accepted
time: 17ms
memory: 3664kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
13
8
5
4
3
3
13
9
5
5
2
14
8
4
5
2
14
8
7
4
2
16
8
7
4
2
16
11
6
4
2
18
11
6
4
2
18
11
6
4
4
2
20
11
6
4
4
2
20
13
6
4
4
2
22
12
8
6
5
3
3
21
14
7
5
5
2
22
13
6
4
5
2
22
13
8
5
4
2
24
13
7
6
3
3
23
14
9
6
5
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2126 queries.

Test #60:

score: 0
Accepted
time: 12ms
memory: 3888kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
8
6
4
2
2
10
6
4
2
8
6
4
2
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
4
4
2
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
2
20
10
6
4
4
2
20
11
7
5
3
3
3
21
11
7
5
5
2
20
12
6
4
5
2
19
9
5
5
3
3
3
19
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2151 queries.

Test #61:

score: 0
Accepted
time: 18ms
memory: 3608kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
2
2
2
6
4
2
6
4
4
2
8
3
3
3
7
5
5
2
8
4
5
2
8
7
4
2
10
7
4
2
10
7
4
4
2
12
7
5
3
3
3
11
8
5
5
2
11
6
6
2
2
11
7
4
4
2
14
6
2
2
2
11
7
4
4
2
14
6
4
4
2
14
8
3
3
3
15
7
5
5
2
14
7
6
3
3
15
7
6
5
2
14
9
4
5
2
16
9
5
4
2
14
7
4
2
2
2
16
9
5
4
2
16
9
7
4
2
17
10
6
5
3
3
17
10
8
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2160 queries.

Test #62:

score: 0
Accepted
time: 8ms
memory: 3892kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
14
10
4
4
2
2
14
8
6
4
2
16
7
5
3
3
3
15
9
7
5
2
16
6
6
2
2
14
8
7
4
2
16
9
6
4
2
16
11
6
4
2
18
10
6
3
3
3
17
12
7
5
2
18
11
6
5
2
17
9
5
3
3
3
19
12
7
6
2
16
10
6
4
2
2
19
11
6
5
2
19
11...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2062 queries.

Test #63:

score: 0
Accepted
time: 18ms
memory: 3696kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
16
8
6
4
2
2
16
9
6
4
3
3
17
9
7
5
2
16
10
6
5
2
18
10
7
4
2
18
10
7
4
4
2
20
10
7
4
4
2
19
12
5
4
3
3
21
9
7
5
3
3
19
11
8
5
5
2
20
10
7
4
5
2
20
13
6
5
4
2
20
12
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2133 queries.

Test #64:

score: 0
Accepted
time: 4ms
memory: 3596kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
6
6
2
2
8
4
4
2
8
6
4
2
10
6
3
3
9
7
5
2
8
6
4
2
2
8
7
4
2
11
6
4
2
11
6
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
6
4
2
17
8
6
4
2
16
11
5
3
3
3
18
9
7
5
2
17
10
6
5
2
19
10
7
4
2
19
10
7
4
4
2
21
10
7
4
4
2
20
12
7
6
3
3
22
11
8
5
5
2
21
13
6
4
5
2
23
13
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2165 queries.

Test #65:

score: 0
Accepted
time: 8ms
memory: 3596kb

input:

200
2
2
2
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
1
9
5
3
2
10
6
4
3
2
10
6
6
2
2
10
6
4
3
2
11
8
3
3
3
11
7
5
4
2
12
6
3
5
2
11
7
5
3
3
3
13
6
4
4
4
12
9
6
5
2
12
7
3
6
2
12
8
6
4
2
15
9
4
4
2
15
9
6
4
2
16
10
6
3
3
3
16
10
7
5
2
17
9
6
5
2
17
11
7
4
2
18
12
7
4
2
18
12
7
4
4
2
22
11
6
4
4
2
20
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2154 queries.

Test #66:

score: 0
Accepted
time: 22ms
memory: 3596kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
1
9
5
3
3
2
12
6
4
3
2
12
8
3
4
2
12
8
4
2
2
2
12
8
3
4
2
14
7
4
4
2
14
7
6
4
2
15
9
5
4
3
3
15
8
7
5
2
15
10
5
4
3
3
16
8
7
5
2
17
6
5
3
3
16
8
8
5
2
17
8
6
5
2
17
10
7
4
2
19
10
7
4
2
19
10
7
4
4
2
20
12
6
4
4
2
20
12
7
7
2
2
20
12
6
4
4
2
20
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2091 queries.

Test #67:

score: 0
Accepted
time: 12ms
memory: 3632kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
1
9
5
3
2
10
6
4
3
2
12
6
3
4
2
12
7
4
4
2
14
7
4
4
2
14
7
6
4
2
16
7
6
4
2
16
9
6
4
2
17
10
6
4
2
17
10
6
4
4
2
19
8
4
2
2
2
17
10
6
4
4
2
19
10
6
4
4
2
19
12
6
4
4
2
21
12
6
4
3
3
20
13
7
5
5
2
21
10
8
4
2
2
19
12
7
4
4
2
21
13
6
4
4
2
21
13
8
4
4
2
23...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2090 queries.

Test #68:

score: 0
Accepted
time: 21ms
memory: 3596kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
2
2
2
6
4
4
2
8
4
4
2
8
5
4
3
3
9
5
5
2
8
6
5
2
10
7
4
2
10
7
4
4
2
12
7
4
4
2
12
9
4
4
2
15
8
4
4
2
15
8
6
2
2
15
8
4
4
2
15
8
4
4
2
2
15
8
4
4
2
15
8
6
4
2
16
10
6
4
4
4
16
10
8
6
2
16
8
6
6
2
16
10
8
4
3
18
10
6
4
4
4
18
12
10
6
2
18
10
8
6
2
18
10
8
6
4
2
20
12
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2174 queries.

Test #69:

score: 0
Accepted
time: 12ms
memory: 3892kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
9
5
3
3
3
9
7
5
2
10
6
5
2
10
5
3
3
3
11
7
6
2
10
6
5
5
2
12
7
5
4
2
12
10
4
4
2
14
9
7
5
4
4
14
11
6
6
2
14
9
4
6
2
14
9
8
4
2
15
10
4
2
2
2
14
9
8
4
2
17
8
8
4
2
17
12
5
3
3
3
18
9
9
5
2
17
12
6
5
2
17
10
4
4
2
2
17
12
6
5
2
19
12
7
4
2
17
10
4
2
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2108 queries.

Test #70:

score: 0
Accepted
time: 14ms
memory: 3596kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
3
3
13
9
5
5
2
14
8
4
5
2
14
8
7
4
2
15
9
6
4
3
3
15
9
8
5
2
16
8
7
5
2
16
11
7
4
2
18
11
7
4
2
18
11
7
4
4
2
20
12
6
4
4
2
20
14
6
4
2
2
20
12
6
4
4
2
20
14
6
4
4
2
22
14
6
4
4
2
22
14
8
4
4
2
25
13
8
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2076 queries.

Test #71:

score: 0
Accepted
time: 0ms
memory: 3700kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
2
18
12
4
4
2
2
18
10
6
4
4
2
20
10
6
4
4
2
20
12
6
4
4
2
22
12
6
4
4
2
22
12
8
4
4
2
24
12
6
4
2
2
2
22
12
8
4
4
2
24
10
8
4
2
2
22
12
8
4
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2140 queries.

Test #72:

score: 0
Accepted
time: 16ms
memory: 3860kb

input:

200
2
2
3
3
2
5
2
5
4
2
7
4
2
7
4
4
2
8
6
4
4
4
8
6
6
2
8
4
6
2
8
8
4
2
10
8
4
2
10
8
4
4
2
14
6
4
4
2
14
8
4
4
2
16
8
4
4
2
16
8
6
4
2
18
8
6
4
2
16
10
6
4
4
4
18
10
8
6
2
16
10
6
6
2
16
10
6
4
2
2
16
10
6
6
2
18
10
8
4
2
18
10
8
4
4
2
20
10
8
4
4
2
18
12
6
2
2
2
20
10
8
4
4
2
18
12
4
4
2
2
20
10
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2181 queries.

Test #73:

score: 0
Accepted
time: 19ms
memory: 3632kb

input:

200
2
2
4
2
2
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
4
4
2
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
16
8
4
2
2
2
18
10
6
4
2
16
8
4
2
2
2
18
10
6
4
2
18
10
6
4
4
2
20
10
4
4
2
2
18
10
6
4
4
2
20
8
6
2
2
2
18
10
6
4
4
2
20
10
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2067 queries.

Test #74:

score: 0
Accepted
time: 20ms
memory: 3612kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
11
8
3
3
3
11
7
5
5
2
10
6
6
2
2
11
6
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
6
4
2
15
11
4
2
2
2
15
8
6
4
2
15
11
4
4
2
2
15
8
6
4
2
17
8
6
4
2
17
10
6
4
2
19
10
6
4
2
19
10
6
4
4
2
21
10
6
4
4
2
20
12
8
5
3
3
3
22
11
7
5
5
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2096 queries.

Test #75:

score: 0
Accepted
time: 12ms
memory: 3664kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
8
6
4
2
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
11
8
3
3
3
13
7
5
5
2
12
8
4
5
2
14
8
5
4
2
14
8
7
4
2
16
9
6
4
2
16
11
6
4
2
18
11
6
4
2
18
11
6
4
4
2
20
11
6
4
4
2
20
13
6
2
2
2
20
11
6
4
4
2
20
13
6
4
4
2
23
12
6
4
4
2
23
12
8
4
4
2
25
12
8
4
4
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2154 queries.

Test #76:

score: 0
Accepted
time: 13ms
memory: 3656kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
9
6
4
3
3
11
7
5
2
10
6
4
5
2
12
6
5
4
2
12
9
2
2
2
12
6
5
4
2
12
9
4
4
2
14
9
4
4
2
14
9
6
4
2
14
8
4
2
2
2
14
9
6
4
2
16
9
6
4
3
17
12
7
5
2
19
10
6
5
2
19
9
6
4
3
3
20
11
7
6
2
19
10
6
5
5
2
21
10
7
5
4
2
21
12
8
2
2
2
21
10
7
5
4
2
21
12
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2216 queries.

Test #77:

score: 0
Accepted
time: 19ms
memory: 3864kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
5
3
3
3
9
5
5
2
8
6
5
2
10
7
4
2
10
7
4
4
2
12
7
4
4
2
12
9
4
4
2
15
8
4
4
2
15
8
6
4
2
17
8
6
4
2
17
10
6
4
2
17
10
7
4
2
2
17
10
6
4
2
19
10
6
4
2
19
10
6
4
4
2
18
12
5
5
2
2
19
9
5
3
3
3
20
11
7
5
2
19
10
6
4
5
2
21
10
6
5
4
2
21
12
7
4
4
2
23
12
7
4
4
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2194 queries.

Test #78:

score: 0
Accepted
time: 9ms
memory: 3860kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
9
5
4
3
3
17
11
7
5
2
18
10
6
5
2
18
10
6
5
4
2
20
10
7
4
4
2
20
12
7
4
4
2
21
11
7
5
3
3
3
21
13
8
5
5
2
22
13
6
4
5
2
22
12
7
6
3
3
23
14
7
5
6
2
21
11
7
5
3
3
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2128 queries.

Test #79:

score: 0
Accepted
time: 12ms
memory: 3660kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
2
2
10
6
4
4
2
12
6
4
4
2
10
6
6
2
2
12
6
4
4
2
12
8
4
4
2
13
7
5
4
3
3
13
9
5
5
2
14
8
4
5
2
14
8
7
4
2
16
8
7
4
2
16
11
6
4
2
18
9
4
4
2
2
16
11
6
4
2
18
11
4
4
2
2
16
11
6
4
2
18
11
6
4
2
18
11
6
4
4
2
20
11
6
2
2
2
18
11
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2107 queries.

Test #80:

score: 0
Accepted
time: 10ms
memory: 3892kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
11
7
6
3
3
11
7
5
5
2
12
6
4
5
2
12
8
5
4
2
14
9
4
4
2
14
7
4
2
2
2
14
9
4
4
2
14
9
6
4
2
16
9
6
4
2
16
11
6
4
2
18
11
6
2
2
16
11
6
4
2
18
11
4
4
2
2
16
11
6
4
2
18
11
6
4
1
16
9
4
3
2
2
18
11
6
4
2
18
11
6
4
4
2
21
10
6
4
4
2
21
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2121 queries.

Test #81:

score: 0
Accepted
time: 20ms
memory: 3888kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
11
7
6
3
3
13
7
5
5
2
12
8
4
5
2
14
8
5
4
2
14
8
7
4
2
14
8
4
2
2
2
14
8
7
4
2
16
9
6
4
2
16
11
6
4
2
18
11
6
2
2
16
11
6
4
2
18
11
6
4
2
18
11
6
4
4
2
20
11
6
4
4
2
20
13
6
4
4
2
23
12
6
4
4
2
23
12
8
4
4
2
23
14
6
4
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2145 queries.

Test #82:

score: 0
Accepted
time: 13ms
memory: 3828kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
3
3
3
13
9
5
5
2
14
8
4
5
2
14
8
7
4
2
16
8
7
4
2
16
11
6
4
2
18
11
6
4
2
18
9
6
3
3
3
19
11
7
5
2
18
10
6
4
5
2
20
9
5
4
3
3
19
11
5
5
3
3
19
11
8
5
2
18
10
7
4
5
2
19
12
6
3
3
3
19
11
8
5
6
2
20
10
7
5
5...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2132 queries.

Test #83:

score: 0
Accepted
time: 17ms
memory: 3692kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
14
10
4
4
2
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
16
8
4
4
2
2
18
10
6
4
2
18
10
6
4
4
2
20
10
6
4
4
2
20
12
6
4
4
2
22
12
6
4
4
2
20
10
8
2
2
2
22
12
6
4
4
2
22
12
8
4
4
2
24
12...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2203 queries.

Test #84:

score: 0
Accepted
time: 14ms
memory: 3660kb

input:

200
1
2
3
2
3
4
2
5
4
2
5
4
4
2
7
4
4
2
7
6
4
2
9
6
4
2
9
6
4
4
2
11
6
4
4
2
11
8
4
4
2
13
6
6
2
2
11
8
4
4
2
13
8
4
4
2
13
8
6
4
2
15
8
4
4
2
2
13
8
6
4
2
15
8
6
4
2
15
10
6
4
2
17
10
6
4
2
15
9
6
4
2
2
17
10
6
4
2
17
10
6
4
4
2
19
10
6
4
4
2
19
12
6
4
4
2
21
12
6
4
4
2
21
10
6
4
4
2
2
21
12
6
4
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2177 queries.

Test #85:

score: 0
Accepted
time: 11ms
memory: 3604kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
9
5
4
3
3
11
7
5
2
8
6
2
2
2
11
6
4
2
11
6
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
6
4
2
17
8
6
4
2
15
11
4
2
2
2
17
8
6
4
2
17
8
4
4
2
2
17
8
6
4
2
17
10
6
4
2
19
8
6
4
2
2
17
10
6
4
2
19
10
6
4
2
19
10
6
4
4
2
20
13
6
3
3
3
20
11
7
5
5
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2154 queries.

Test #86:

score: 0
Accepted
time: 15ms
memory: 3660kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
10
8
4
2
2
12
6
4
4
2
12
8
2
2
2
12
6
4
4
2
12
8
4
4
2
13
7
6
3
3
13
9
5
5
2
14
8
4
5
2
14
8
7
4
2
16
8
7
4
2
16
11
6
4
2
18
11
6
4
2
16
10
6
4
2
2
18
11
6
4
2
18
11
6
4
4
2
20
11
6
4
4
2
20
13
6
4
3
3
21
12
7
5
5
2
18
12...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2126 queries.

Test #87:

score: 0
Accepted
time: 16ms
memory: 3604kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
3
3
3
13
9
5
5
2
14
8
4
5
2
14
8
7
4
2
14
8
6
4
2
2
14
8
7
4
2
16
8
7
4
2
15
9
5
3
3
3
17
9
8
5
2
15
10
5
3
3
3
16
11
6
4
4
4
16
10
9
6
2
16
8
7
6
2
16
11
8
4
2
17
10
5
3
3
3
17
12
9
5
2
18
10
6
4
4
4
18
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2133 queries.

Test #88:

score: 0
Accepted
time: 20ms
memory: 3824kb

input:

200
2
2
4
2
4
3
3
5
2
4
5
2
7
4
2
4
4
2
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
9
5
4
3
3
9
7
5
2
10
6
5
2
10
6
5
4
2
12
7
4
4
2
12
9
4
4
2
12
8
4
2
2
2
12
9
4
4
2
14
9
4
4
2
14
9
6
4
2
17
8
6
4
2
17
10
6
4
2
19
10
6
4
2
19
8
6
2
2
2
19
10
6
4
2
19
10
6
4
4
2
21
10
6
4
4
2
21
12
6
4
4
2
23
12
6
4
4
2
23
11
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2082 queries.

Test #89:

score: 0
Accepted
time: 13ms
memory: 3596kb

input:

200
2
2
4
2
4
4
2
6
3
3
5
5
2
6
5
2
6
5
4
2
9
4
4
2
9
6
4
2
11
6
4
2
11
6
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
6
4
2
17
6
4
2
2
2
15
8
6
4
2
17
8
6
4
2
17
10
4
2
2
2
17
8
6
4
2
17
8
6
4
2
2
17
8
6
4
2
16
10
6
5
3
3
18
9
7
5
2
17
10
6
5
2
19
10
7
4
2
19
10
7
4
4
2
21
10
7
4
4
2
21
13
5
4
3
3
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2115 queries.

Test #90:

score: 0
Accepted
time: 19ms
memory: 3592kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
4
4
2
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
2
20
10
6
4
4
2
19
12
5
3
3
3
21
11
7
5
5
2
20
12
6
4
5
2
22
12
6
5
4
2
22
12
9
4
4
1
23
11
8
3
3
2
24
14
9
4
3
2
24...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2177 queries.

Test #91:

score: 0
Accepted
time: 23ms
memory: 3700kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
1
13
7
3
3
2
14
8
6
3
2
14
8
6
4
2
2
14
8
6
3
2
16
8
5
4
2
15
10
5
3
3
3
17
9
6
5
2
16
8
6
2
2
2
16
9
4
4
2
2
14
8
7
4
2
15
9
5
4
3
3
15
9
8
5
2
16
9
6
5
2
16
11
7
4
2
18
11
7
2
2
16
11
7
4
2
18
11
7
4
2
18
11
7
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2066 queries.

Test #92:

score: 0
Accepted
time: 20ms
memory: 3896kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
6
4
2
2
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
3
3
3
11
7
5
2
10
6
4
5
2
12
6
5
4
2
12
9
4
4
2
14
9
4
4
2
14
9
6
4
2
16
9
4
2
2
2
14
9
6
4
1
15
8
5
3
2
16
11
6
3
2
19
10
5
4
2
19
10
5
4
4
2
21
10
5
4
4
2
21
9
6
4
2
2
2
21
10
5
4
4
2
21
11
6
4
4
2
23
11
6
4
4
2
21
12
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2155 queries.

Test #93:

score: 0
Accepted
time: 11ms
memory: 3856kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
6
4
4
2
2
8
4
4
2
8
6
4
2
10
6
4
2
8
4
2
2
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
3
3
17
9
7
5
2
16
10
6
5
2
18
10
7
4
2
18
10
7
4
4
2
19
12
5
4
3
3
19
11
8
5
5
2
19
11
8
3
3
3
20
11
8
5
5
2
21
10
7
2
2
2
19
10
7
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2060 queries.

Test #94:

score: 0
Accepted
time: 12ms
memory: 3824kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
5
3
2
2
2
7
5
4
3
3
7
5
5
2
8
4
5
2
8
7
4
2
10
7
4
2
10
7
4
4
2
13
6
4
4
2
13
7
5
3
3
3
14
7
5
5
2
13
8
4
5
2
15
8
5
4
2
13
6
6
2
2
15
8
5
4
2
15
8
7
4
2
17
9
6
4
2
17
9
6
3
3
3
18
9
7
5
2
17
10
6
3
3
18
9
7
5
2
15
8
4
2
2
2
18
8
6
4
2
18
10
6
4
2
20
8
4
2
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2103 queries.

Test #95:

score: 0
Accepted
time: 14ms
memory: 3664kb

input:

200
2
1
3
2
4
3
2
5
4
2
5
4
4
2
7
4
4
2
7
6
4
2
9
6
4
2
9
6
4
4
2
11
6
4
4
2
11
8
4
4
2
12
6
5
3
3
12
9
5
5
2
13
6
4
4
2
2
11
9
4
4
2
13
9
4
4
2
13
9
6
4
2
15
9
6
4
2
15
11
4
4
2
2
15
9
6
4
2
15
11
6
4
2
18
10
6
4
2
18
10
6
4
4
2
20
10
6
4
4
2
20
12
6
4
4
2
22
12
6
4
4
2
22
12
8
4
4
2
22
11
5
5
2
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2128 queries.

Test #96:

score: 0
Accepted
time: 17ms
memory: 3632kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
4
4
2
2
8
4
4
2
8
6
4
2
10
6
4
2
8
6
2
2
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
4
2
2
2
14
8
4
4
2
14
8
5
4
3
3
15
9
5
5
2
14
6
4
2
2
2
14
9
4
4
2
14
7
5
3
3
3
15
9
5
5
2
14
8
6
5
2
16
8
7
4
2
15
9
6
3
3
3
17
9
8
5
2
16
10
7
5
2
18
10
5
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2088 queries.

Test #97:

score: 0
Accepted
time: 17ms
memory: 3824kb

input:

200
2
2
4
2
4
4
2
6
4
2
4
4
2
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
5
3
3
3
15
9
7
5
2
16
8
6
5
2
15
10
6
3
3
17
9
7
6
2
15
9
5
4
3
3
18
9
7
6
2
17
10
7
5
2
19
10
5
5
2
2
17
10
7
4
2
17
9
7
4
2
2
16
10
7
4
3
3
18
9
7
6
2
17
10
7
5
2
19
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2117 queries.

Test #98:

score: 0
Accepted
time: 7ms
memory: 3656kb

input:

200
14
17
31
17
31
31
31
45
15
28
28
28
56
56
17
69
69
21
82
82
38
108
108
22
116
116
20
122
122
22
128
128
26
134
134
24
140
140
24
147
147
25
151
151
28
154
154
20
158
158
26
163
163
22
167
167
23
168
168
29
169
169
22
171
171
24
170
170
18
170
170
17
169
169
25
169
169
26
168
168
24
167
167
21
16...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 602 queries.

Test #99:

score: 0
Accepted
time: 6ms
memory: 3592kb

input:

200
96
82
137
137
89
166
166
89
179
179
96
186
186
99
188
188
94
188
188
101
190
190
91
190
190
95
190
190
97
189
189
91
188
188
86
187
187
90
186
186
86
185
185
95
184
184
95
183
183
89
182
182
90
181
181
83
180
180
97
179
179
94
178
178
95
177
177
107
176
176
93
175
175
99
174
174
86
173
173
82
17...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 598 queries.

Test #100:

score: 0
Accepted
time: 7ms
memory: 3628kb

input:

200
99
99
98
98
99
97
97
99
96
96
99
95
95
99
94
94
99
93
93
99
92
92
99
91
91
99
90
90
99
89
89
99
88
88
99
87
87
99
86
86
99
85
85
99
84
84
99
83
83
99
82
82
99
81
81
99
80
80
99
79
79
99
78
78
99
77
77
99
76
76
99
75
75
99
74
74
99
73
73
99
72
72
99
71
71
99
70
70
99
69
69
99
68
68
99
67
67
99
66...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 795 queries.

Test #101:

score: 0
Accepted
time: 10ms
memory: 3832kb

input:

200
99
99
98
98
99
97
97
99
96
96
99
95
95
99
94
94
99
93
93
99
92
92
99
91
91
99
90
90
99
89
89
99
88
88
99
87
87
99
86
86
99
85
85
99
84
84
99
83
83
99
82
82
99
81
81
99
80
80
99
79
79
99
78
78
99
77
77
99
76
76
99
75
75
99
74
74
99
73
73
99
72
72
99
71
71
99
70
70
99
69
69
99
68
68
99
67
67
99
66...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 795 queries.

Test #102:

score: 0
Accepted
time: 0ms
memory: 3696kb

input:

200
100
99
99
99
99
98
98
99
97
97
99
96
96
99
95
95
99
94
94
99
93
93
99
92
92
99
91
91
99
90
90
99
89
89
99
88
88
99
87
87
99
86
86
99
85
85
99
84
84
99
83
83
99
82
82
99
81
81
99
80
80
99
79
79
99
78
78
99
77
77
99
76
76
99
75
75
99
74
74
99
73
73
99
72
72
99
71
71
99
70
70
99
69
69
99
68
68
99
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 598 queries.

Test #103:

score: 0
Accepted
time: 18ms
memory: 3656kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
9
5
3
3
3
9
7
5
2
10
6
5
2
10
6
5
4
2
12
7
4
4
2
12
9
4
4
2
14
9
4
4
2
14
9
6
4
2
17
8
6
4
2
17
10
6
4
2
19
10
6
4
2
19
10
6
4
4
2
21
10
6
4
4
2
21
12
6
4
4
2
23
12
6
4
4
2
23
11
8
3
3
3
24
13
7
5
5
2
23
12
7
5
3
3
3
24
13
8
5
5
2
23
10
8
4
2
2
23
13
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2203 queries.

Test #104:

score: 0
Accepted
time: 3ms
memory: 3592kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
5
3
3
3
9
7
5
2
10
6
5
2
10
6
5
4
3
13
8
5
5
2
12
9
4
5
2
12
8
4
4
2
2
12
9
4
5
2
14
9
5
4
2
14
9
7
3
3
15
10
6
5
2
12
6
4
4
2
2
15
9
5
4
2
15
9
7
4
2
15
11
6
2
2
15
8
7
4
2
17
9
6
4
2
17
10
5
3
3
3
18
10
7
5
2
17
11
6
5
2
17
11
4
4
2
2
17
11
6
5
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1976 queries.

Test #105:

score: 0
Accepted
time: 13ms
memory: 3632kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
3
3
15
9
7
5
2
16
8
6
5
2
16
10
7
4
2
17
9
6
4
3
3
17
11
8
3
3
17
9
7
6
2
16
10
7
5
2
18
8
4
4
2
2
16
10
7
5
2
18
10
8
4
2
17
10
5
4
3
3
19
11
9
5
2
18
10
8
4
5
2
18
12
6
2
2
2
18
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2082 queries.

Test #106:

score: 0
Accepted
time: 7ms
memory: 3596kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
2
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
11
7
5
4
3
3
11
7
5
5
3
3
11
7
5
5
2
12
4
4
2
2
10
6
5
4
2
10
8
2
2
2
10
6
5
4
2
12
7
4
4
2
12
9
4
4
2
14
9
4
4
2
12
6
6
2
2
14
9
4
4
2
14
9
6
4
2
17
8
6
4
2
14
7
5
3
3
3
16
9
7
5
3
3
15
10
7
5
2
17
6
4
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2107 queries.

Test #107:

score: 0
Accepted
time: 9ms
memory: 3608kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
1
15
7
5
3
2
15
9
6
4
3
3
16
9
7
5
2
15
8
6
4
2
2
15
8
7
4
2
15
11
6
4
2
17
11
6
4
2
17
11
6
4
4
2
19
11
6
4
4
2
19
13
6
4
4
3
22
12
10
5
3
3
20
14
7
5
5
2
19
11
6
6
2
2
20
13
6
4
4
2
22
13
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2116 queries.

Test #108:

score: 0
Accepted
time: 9ms
memory: 3596kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
3
3
7
5
2
6
4
5
2
7
5
3
3
3
7
5
6
2
8
5
4
4
8
6
7
2
8
5
6
2
8
9
4
2
11
8
4
2
11
8
4
4
2
15
6
4
4
2
13
8
5
4
4
15
8
6
6
2
13
8
4
6
2
15
8
6
4
2
15
8
8
4
2
17
10
6
4
2
17
10
4
4
2
2
17
10
6
4
2
17
12
6
4
2
19
12
6
4
2
19
12
6
4
4
2
21
12
6
4
4
2
21
14
6
4
4
2
25
12
6
4
4
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2022 queries.

Test #109:

score: 0
Accepted
time: 13ms
memory: 3864kb

input:

200
2
2
4
2
4
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
12
6
4
2
2
2
14
8
4
4
2
14
8
4
4
2
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
3
19
11
7
5
5
2
20
10
6
4
5
2
20
12
6
5
4
2
22
12
7
4
4
2
20
12
6
4
4
2
2
22
12
7
4
4
2
22
12
9
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2096 queries.

Test #110:

score: 0
Accepted
time: 18ms
memory: 3664kb

input:

200
2
1
3
2
4
3
2
5
4
2
5
4
4
2
7
4
4
2
7
6
4
2
9
6
4
2
9
5
3
3
3
10
7
5
2
9
6
4
5
2
11
6
5
4
2
9
7
2
2
2
11
6
5
4
2
11
9
4
4
2
13
9
4
4
2
13
9
6
4
2
15
9
6
4
2
15
11
6
4
2
17
9
6
3
3
3
16
12
7
5
2
18
10
6
5
2
18
10
6
5
4
2
20
9
5
4
3
3
19
11
7
6
5
2
20
10
7
4
5
2
20
12
7
5
4
2
22
11
8
4
3
3
21
13
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1928 queries.

Test #111:

score: 0
Accepted
time: 16ms
memory: 3628kb

input:

200
1
2
3
2
3
4
2
5
4
2
5
4
4
2
7
4
4
2
7
6
4
2
9
6
4
2
9
6
4
4
2
11
6
4
4
2
11
8
4
4
2
13
8
4
4
2
13
8
6
3
3
14
9
5
5
2
13
7
5
4
3
3
14
10
5
5
2
13
9
6
5
2
14
9
5
4
3
3
14
10
7
6
2
13
7
5
4
2
2
14
9
6
5
2
16
9
7
4
2
16
11
7
4
2
17
8
3
1
1
1
16
10
6
3
2
20
11
6
3
2
20
11
6
3
4
2
22
9
6
5
2
2
20
11
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2080 queries.

Test #112:

score: 0
Accepted
time: 9ms
memory: 3604kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
7
5
3
3
3
7
5
5
2
8
4
5
2
8
7
4
2
10
7
4
2
10
7
4
4
2
13
6
4
4
2
13
8
4
4
2
12
8
4
4
2
2
12
8
4
4
2
12
8
6
2
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
2
19
12
5
3
3
3
19
10
7
4
4
4
20
12
8
6
2
18
10
6
4
6
2
20
10
6
6
4
2
20
12
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2218 queries.

Test #113:

score: 0
Accepted
time: 15ms
memory: 3660kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
11
7
5
4
3
3
13
7
5
5
2
11
7
5
4
3
3
14
7
5
5
2
13
8
4
5
2
15
8
5
4
2
15
8
7
4
2
17
9
6
4
2
17
11
6
4
2
19
11
6
4
2
19
11
6
4
4
2
21
11
6
4
4
2
21
13
6
4
4
2
24
12
6
4
3
3
22
14
7
5
5
2
23
12
9
4
3
3
23
14
7
5
5
2
25
10
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2163 queries.

Test #114:

score: 0
Accepted
time: 19ms
memory: 3860kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
8
4
2
2
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
12
8
4
2
2
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
16
8
6
2
2
2
18
10
6
4
2
18
10
6
4
4
2
20
10
6
4
4
2
20
12
6
4
4
2
22
12
4
2
2
2
20
12
6
4
4
2
22
11
8
4
3
3
21...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2164 queries.

Test #115:

score: 0
Accepted
time: 10ms
memory: 3800kb

input:

200
2
2
4
2
4
4
1
5
3
2
6
4
3
2
8
3
4
1
7
4
3
2
9
6
3
2
9
6
3
4
2
11
5
4
4
2
10
7
5
3
3
3
12
6
5
5
2
11
7
4
5
2
13
7
5
4
2
13
7
7
4
2
14
9
6
4
2
14
11
6
4
2
15
8
5
4
3
3
15
12
7
5
2
16
11
6
5
2
16
11
6
5
4
2
18
11
7
4
4
2
16
11
5
2
2
2
18
11
7
4
4
2
16
9
8
3
2
2
18
11
7
4
4
2
16
9
6
4
4
2
2
18
11
7
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2164 queries.

Test #116:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

200
2
2
4
2
4
4
2
6
4
2
5
3
3
3
7
5
2
6
4
5
2
8
5
4
2
8
7
4
2
11
6
4
2
11
6
4
4
2
13
6
4
2
2
11
6
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
6
4
2
16
11
5
4
3
3
16
9
7
5
2
15
11
4
2
2
2
16
8
6
4
2
18
8
6
4
2
18
10
6
4
2
20
8
4
2
2
2
18
10
6
4
2
20
10
6
4
2
19
11
7
4
3
3
21
11
7
5
2
20
10
6
4
2
2
20...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2153 queries.

Test #117:

score: 0
Accepted
time: 19ms
memory: 3888kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
6
4
4
2
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
12
6
6
2
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
2
20
10
6
4
4
2
20
12
6
4
4
2
22
12
6
4
4
2
22
11
7
5
4
3
3
23
13
7
5
5
2
22
12
8
4
5
2
24
12
8
5
4
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2159 queries.

Test #118:

score: 0
Accepted
time: 9ms
memory: 3592kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
3
3
9
7
5
2
9
6
3
3
3
10
7
5
2
11
6
5
2
11
6
5
4
2
13
7
4
4
2
13
9
4
4
2
15
8
6
4
4
4
15
10
6
5
5
16
9
7
7
2
13
6
4
4
2
2
13
9
4
4
2
13
11
4
4
2
13
7
6
3
3
13
12
5
5
2
13
8
5
4
3
3
14
12
5
5
2
15
11
4
5
2
15
11
7
4
2
20
8
7
4
1
19
10
5
3
2
22
11
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2042 queries.

Test #119:

score: 0
Accepted
time: 15ms
memory: 3824kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
6
4
4
2
2
14
8
6
4
2
16
8
6
4
2
15
9
5
3
3
3
17
9
7
5
2
16
10
6
5
2
18
10
7
4
2
18
10
7
4
4
2
20
10
7
4
4
2
20
13
6
4
4
2
22
13
6
4
4
2
22
13
8
4
4
2
23
14
8
4
3
3
23
14
9
5
5
2
23
13
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2108 queries.

Test #120:

score: 0
Accepted
time: 9ms
memory: 3632kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
11
7
5
3
3
3
11
7
5
5
2
12
6
4
5
2
12
8
5
4
2
14
9
4
2
2
12
8
5
4
2
14
9
4
4
2
14
9
6
4
2
16
9
6
4
2
16
11
6
4
2
18
11
6
4
2
18
11
6
4
4
2
21
10
6
4
4
2
21
12
6
4
4
2
22
11
7
6
3
3
22
13
7
5
5
2
23
12
6
4
5
2
23
12
8
5
4
2
24
14
8
5...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2109 queries.

Test #121:

score: 0
Accepted
time: 11ms
memory: 3660kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
3
3
9
5
5
2
8
6
5
2
10
7
4
2
10
7
4
4
2
11
8
3
3
3
11
8
5
5
2
12
7
4
5
1
11
8
4
3
2
13
8
4
4
2
2
11
9
5
4
2
14
8
5
3
3
3
12
10
6
5
2
14
9
4
5
2
14
9
7
4
2
16
9
7
4
2
15
9
6
3
3
3
17
10
8
5
2
16
12
6
5
2
18
10
7
5
2
2
16
12
6
5
2
18
12
7
4
2
18
11
6
5
3
3
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2099 queries.

Test #122:

score: 0
Accepted
time: 15ms
memory: 3668kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
7
6
3
3
9
5
5
2
8
6
5
2
10
7
4
2
10
7
4
4
2
12
7
4
4
2
12
9
4
4
2
14
8
5
3
3
3
13
10
5
5
2
15
8
4
4
4
14
11
6
6
2
15
8
4
6
2
15
8
8
4
2
17
8
8
4
2
17
12
6
4
2
19
12
6
4
2
19
12
6
4
4
2
19
10
8
2
2
2
19
12
6
4
4
2
21
12
6
4
4
2
19
12
5
3
3
3
21
13
7
5
5
2
20
14...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2134 queries.

Test #123:

score: 0
Accepted
time: 9ms
memory: 3824kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
3
3
15
9
5
5
2
13
8
5
3
3
3
14
9
6
4
4
4
14
10
6
6
2
14
8
4
6
2
14
8
8
4
2
16
8
6
4
4
4
16
10
8
6
2
16
8
6
6
2
16
10
8
4
2
18
10
8
4
2
18
10
8
4
4
1
19
11
5
3
3
2
20
14
6
4
3
2
22
14
4
4
2
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2045 queries.

Test #124:

score: 0
Accepted
time: 21ms
memory: 3592kb

input:

200
2
2
4
2
4
4
3
7
5
2
6
4
5
2
8
5
4
2
8
7
4
2
11
6
4
2
11
6
4
4
2
13
6
4
4
2
13
8
4
4
2
15
6
6
2
2
13
8
4
4
2
15
8
4
4
2
13
6
6
2
2
15
8
4
4
2
15
8
6
4
2
15
11
4
4
2
2
15
8
6
4
2
16
10
6
4
4
4
16
10
8
6
2
15
9
5
4
3
3
17
9
7
5
2
16
12
4
4
2
2
17
8
6
4
2
19
8
6
4
2
19
8
6
4
2
2
19
8
6
4
2
19
10
6
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2043 queries.

Test #125:

score: 0
Accepted
time: 19ms
memory: 3548kb

input:

200
2
2
4
2
4
4
2
4
4
2
2
4
4
2
6
4
2
6
4
4
2
8
4
4
3
9
7
5
2
10
6
5
2
10
6
5
4
2
12
7
4
4
2
12
9
4
4
2
14
9
4
4
2
14
9
6
4
2
17
8
6
4
2
17
10
6
4
2
19
10
4
4
2
2
17
10
6
4
3
19
11
6
4
4
4
19
12
8
6
2
18
9
6
4
3
3
20
11
7
5
2
21
10
6
5
2
21
10
6
5
4
2
23
10
7
4
4
2
23
12
7
4
4
2
23
12
6
6
2
2
23
12
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2064 queries.

Test #126:

score: 0
Accepted
time: 4ms
memory: 3644kb

input:

200
2
3
4
4
2
6
2
6
4
2
8
2
2
6
4
2
8
4
2
8
4
4
2
10
4
4
2
10
6
4
2
12
6
4
2
12
6
4
4
2
14
6
4
4
2
14
8
4
4
2
16
8
4
4
2
16
8
6
4
2
17
11
8
3
3
3
17
9
7
5
2
18
6
6
2
2
16
8
7
4
2
18
9
6
4
2
18
11
6
4
2
20
11
6
4
2
20
11
6
4
4
2
20
12
8
8
2
2
20
10
7
4
3
3
21
12
7
5
2
20
11
6
4
5
2
22
9
7
2
2
2
20
11...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2088 queries.

Test #127:

score: 0
Accepted
time: 11ms
memory: 3596kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
8
4
4
2
2
10
6
4
2
10
6
2
2
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
7
5
4
3
3
13
9
5
5
2
14
8
4
5
2
14
8
7
4
2
16
8
7
4
2
16
11
6
4
2
18
11
6
4
2
17
9
6
3
3
3
19
12
7
5
2
16
10
4
2
2
2
19
11
6
4
2
19
11
6
4
4
2
21
11
6
4
4
2
20
13
5
4
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2086 queries.

Test #128:

score: 0
Accepted
time: 13ms
memory: 3824kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
3
3
7
5
5
2
8
4
5
2
8
7
4
2
10
7
4
2
10
7
4
4
3
13
9
4
4
4
12
9
6
6
2
13
6
4
6
2
12
8
4
4
4
14
8
6
8
2
12
8
6
6
2
14
10
6
4
2
14
10
8
4
2
16
10
8
4
4
16
12
8
6
2
16
10
6
6
2
16
12
8
4
2
18
12
8
4
2
18
12
5
3
3
3
19
13
7
5
2
17
10
6
3
3
3
20
13
7
5
2
16
9
5
3
3
3
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2102 queries.

Test #129:

score: 0
Accepted
time: 5ms
memory: 3672kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
3
13
7
7
3
3
13
7
5
5
2
12
8
4
5
2
14
8
5
4
2
13
7
5
4
3
3
15
9
6
5
2
14
8
7
5
2
14
10
6
2
2
14
8
7
5
2
15
10
5
3
3
3
15
9
8
6
2
16
8
6
4
4
16
10
9
7
2
16
9
7
6
2
16
11
9
4
2
18
12
8
3
3
17
12
10
5
2
18
12
8
5
2
18
12
8
5
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2017 queries.

Test #130:

score: 0
Accepted
time: 0ms
memory: 3656kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
12
8
4
2
2
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
14
8
6
4
2
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
2
20
10
6
4
4
2
20
10
6
6
2
2
20
10
6
4
4
2
19
11
7
5
3
3
3
21
9
5
3
3
3
19
11
7
5
5
2
20
8
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2200 queries.

Test #131:

score: 0
Accepted
time: 14ms
memory: 3824kb

input:

200
2
2
4
2
4
4
2
6
2
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
2
20
10
6
4
3
3
19
11
7
5
5
2
20
10
6
4
5
2
18
10
6
4
2
2
2
20
10
6
4
5
2
20
12
6
5
4
2
22
12
7
4
2
2
20
12
6
5
4
2
22
12
7
2
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2120 queries.

Test #132:

score: 0
Accepted
time: 16ms
memory: 3896kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
2
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
2
2
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
16
10
6
2
2
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
1
19
9
5
3
3
2
20
12
6
4
3
2
22
12
6
3
4
2
22
12
7
4
4
2
24
11
8
3
3
3
23
13
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2150 queries.

Test #133:

score: 0
Accepted
time: 12ms
memory: 3656kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
3
3
9
7
5
2
10
6
5
2
8
6
4
2
2
10
6
5
2
10
6
5
4
2
12
7
4
4
2
12
9
4
4
2
14
9
4
4
2
14
9
6
4
2
17
8
6
4
2
17
8
4
2
2
2
17
8
6
4
2
15
8
6
2
2
2
17
8
6
4
2
17
10
6
4
2
19
10
6
4
2
18
9
5
4
3
3
20
11
7
5
2
19
10
6
4
5
2
21
10
6
5
4
2
21
12
7
4
4
2
23...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2126 queries.

Test #134:

score: 0
Accepted
time: 26ms
memory: 3860kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
1
9
5
3
2
10
6
4
3
2
12
6
3
4
2
12
7
4
4
2
14
7
4
4
2
14
7
6
4
2
16
7
6
4
2
16
9
6
4
2
17
10
6
4
2
16
9
5
3
3
3
18
11
7
5
2
17
10
6
4
5
2
19
10
6
5
4
2
19
12
7
4
4
2
21
12
7
4
4
2
21
10
7
5
4
3
3
22
12
9
4
4
4
21
14
9
6
6
2
21
11
8
3
3
3
20
15
8
5
5
2
21...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2199 queries.

Test #135:

score: 0
Accepted
time: 17ms
memory: 3692kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
3
3
9
5
5
2
8
6
5
2
10
7
4
2
10
7
4
4
2
12
7
4
4
2
12
9
4
4
2
14
7
5
3
3
3
13
10
5
5
1
14
7
3
4
2
15
8
7
3
2
17
8
6
2
2
15
8
7
3
2
15
10
7
2
2
15
8
7
3
2
17
8
6
4
2
17
11
5
4
2
19
10
6
4
2
19
10
4
4
2
2
19
10
6
4
2
19
10
6
4
4
2
21
10
6
4
4
2
21
12
6
4
4
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2174 queries.

Test #136:

score: 0
Accepted
time: 17ms
memory: 3600kb

input:

200
2
2
4
2
4
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
13
7
5
4
3
3
13
9
5
5
2
14
8
4
5
2
13
8
5
3
3
3
15
9
5
6
2
14
8
7
5
2
16
8
8
4
2
16
11
7
4
2
15
10
5
4
3
3
17
10
5
3
3
3
17
9
9
5
2
16
9
6
2
2
2
16
9
8
4
2
16
12
5
3
3
3
17
10
8
5
2
16
12
6
5
2
17
10
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2171 queries.

Test #137:

score: 0
Accepted
time: 18ms
memory: 3908kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
15
9
6
3
3
3
17
9
7
5
2
16
10
6
5
2
18
10
7
4
2
18
10
7
4
4
2
20
10
7
4
4
2
20
13
6
4
4
2
22
13
6
4
4
2
22
13
8
4
4
2
23
13
7
5
4
3
3
23
14
9
5
5
2
24
13
8
4
5
2
22
14
8
4
2
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2173 queries.

Test #138:

score: 0
Accepted
time: 6ms
memory: 3856kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
17
9
5
4
3
3
19
11
7
5
2
18
10
6
4
5
2
20
10
6
2
2
2
18
10
6
4
4
2
20
10
6
4
4
2
20
12
6
4
4
2
22
12
6
4
4
2
22
11
8
4
3
3
23
13
7
5
5
2
20
10
6
4
2
2
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2168 queries.

Test #139:

score: 0
Accepted
time: 17ms
memory: 3856kb

input:

200
2
2
4
2
4
4
3
7
5
2
6
4
5
2
8
5
4
2
8
7
2
2
8
5
4
2
8
7
4
2
11
6
4
2
11
6
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
4
2
2
2
15
8
4
4
2
15
8
6
4
2
17
8
4
4
2
2
15
8
6
4
2
17
8
6
4
2
17
10
6
4
2
19
10
6
4
2
19
10
6
4
4
2
21
10
6
4
4
2
21
12
6
4
4
2
23
12
4
4
2
2
21
12
6
4
4
2
23
12
6
2
2
2
21
12...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2166 queries.

Test #140:

score: 0
Accepted
time: 24ms
memory: 3600kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
3
15
9
5
5
2
13
8
5
3
3
3
16
9
5
5
2
14
7
5
4
3
3
17
9
5
5
2
16
8
6
5
2
18
6
4
2
2
2
16
8
6
5
2
18
8
7
4
2
18
10
7
4
2
20
11
6
4
2
20
11
6
4
4
2
22
10
6
4
4
4
22
12
8
6
6
2
22
9
5
3
3
3
21
13
7
5
5
2
22
12
6
4
5
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2106 queries.

Test #141:

score: 0
Accepted
time: 8ms
memory: 3824kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
2
2
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
13
7
5
4
3
3
15
9
5
5
2
14
8
6
5
2
16
8
7
4
2
16
10
7
4
2
18
11
6
4
2
17
9
6
4
3
3
19
12
7
5
2
18
11
6
4
5
2
20
8
6
2
2
2
18
10
6
4
5
2
20
8
6
2
2
2
18
10
6
4
5
2
20
10
6
5
4
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2041 queries.

Test #142:

score: 0
Accepted
time: 20ms
memory: 3608kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
3
3
3
13
7
5
5
2
12
8
4
5
2
14
8
5
4
2
14
8
7
4
2
16
9
6
4
2
14
8
6
2
2
2
16
9
6
4
2
16
11
6
4
2
18
11
6
4
2
18
11
6
4
3
3
19
12
7
5
2
18
11
6
4
5
2
20
11
6
5
4
2
20
13
7
4
4
2
21
12
6
6
2
2
20
13
7
4
4
2
22
12
8
3
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2059 queries.

Test #143:

score: 0
Accepted
time: 5ms
memory: 3828kb

input:

200
2
2
4
2
4
4
2
4
4
2
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
4
4
2
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
6
6
2
2
12
8
4
4
2
14
8
4
4
2
14
7
6
3
3
15
9
5
5
2
14
8
6
5
2
16
8
7
4
2
16
10
7
4
2
18
11
6
4
2
18
11
6
4
4
2
20
11
6
4
4
3
21
14
7
5
5
2
21
11
7
5
3
3
3
22
12
8
5
5
3
3
22
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2210 queries.

Test #144:

score: 0
Accepted
time: 12ms
memory: 3900kb

input:

200
2
3
3
3
2
5
2
5
4
2
7
4
2
7
4
4
2
9
4
4
2
7
5
3
3
3
9
5
5
2
8
6
5
2
10
5
4
3
3
9
7
5
2
10
6
5
2
10
6
5
4
2
12
6
4
4
4
12
8
6
6
2
10
6
4
4
2
2
12
6
4
4
2
14
6
4
4
2
14
8
4
4
2
16
8
4
4
2
16
8
6
4
2
18
8
6
4
2
18
10
6
4
2
20
10
6
4
2
20
10
6
4
4
2
22
10
6
4
4
2
22
12
5
4
3
3
23
11
7
5
5
2
22
12
6
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2075 queries.

Test #145:

score: 0
Accepted
time: 16ms
memory: 3548kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
6
6
2
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
6
4
2
2
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
3
20
12
9
4
4
4
20
12
8
6
6
2
20
10
6
4
6
2
20
12
6
6
4
2
22
12
8
4
4
2
22
12
10
4
4
2
21
12
8
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2165 queries.

Test #146:

score: 0
Accepted
time: 6ms
memory: 3604kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
5
3
3
3
11
7
5
2
10
6
4
5
2
12
6
5
4
2
12
9
4
4
2
14
9
4
4
2
14
9
6
4
2
16
9
6
4
2
16
11
6
4
2
19
10
6
4
2
17
8
6
4
2
2
19
10
6
4
2
19
10
6
4
3
3
20
11
7
5
2
19
10
6
4
5
2
21
10
5
4
3
3
20
11
7
5
6
2
19
12
4
4
2
2
20
10
6
4
5
2
22
10
6
5
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2093 queries.

Test #147:

score: 0
Accepted
time: 21ms
memory: 3668kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
9
6
4
3
3
17
11
7
5
2
18
10
6
5
2
18
10
6
5
4
2
20
10
6
4
4
4
20
12
8
6
6
3
21
11
7
5
7
2
20
10
8
4
2
2
20
10
7
4
6
2
18
12
4
4
2
2
20
10
7
4
6
2
20
13
6
6
4
2
22...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2049 queries.

Test #148:

score: 0
Accepted
time: 5ms
memory: 3656kb

input:

200
2
3
5
2
4
5
2
7
2
2
4
5
2
7
4
2
7
4
4
2
9
4
4
2
9
6
4
2
11
6
4
2
11
6
4
4
1
12
5
3
3
2
13
8
4
3
2
13
9
4
4
2
2
13
8
4
3
2
15
8
3
4
2
15
8
5
4
2
17
7
6
4
2
16
11
5
4
3
3
18
8
7
5
2
17
9
6
5
2
18
11
5
4
3
3
18
10
5
3
3
3
18
8
8
5
2
17
9
7
5
2
19
10
7
4
2
17
11
6
4
2
2
19
10
7
4
2
19
10
7
4
4
2
21
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2131 queries.

Test #149:

score: 0
Accepted
time: 15ms
memory: 3700kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
6
4
2
2
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
12
6
4
2
2
2
12
8
4
4
2
14
6
6
2
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
2
20
10
6
4
4
2
20
12
6
4
4
2
22
12
6
4
4
2
22
12
8
4
4
2
24
12
8
4
4
2
24
12...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2179 queries.

Test #150:

score: 0
Accepted
time: 19ms
memory: 3596kb

input:

200
2
3
5
2
4
5
2
7
4
2
7
4
4
2
9
4
4
2
9
6
4
2
11
6
4
2
11
6
4
4
2
11
9
2
2
2
11
6
4
4
2
13
6
4
4
2
13
8
4
4
2
15
6
4
4
2
2
13
8
4
4
2
15
8
4
4
2
15
8
6
4
2
17
8
6
4
2
17
10
6
4
2
19
10
6
4
2
18
10
7
4
3
3
20
11
7
5
2
19
10
6
4
5
2
20
12
9
4
3
3
20
11
7
5
6
2
19
11
7
7
2
2
20
10
6
4
5
2
22
10
6
5
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2119 queries.

Test #151:

score: 0
Accepted
time: 21ms
memory: 3604kb

input:

200
2
2
4
2
4
4
2
4
4
2
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
5
3
3
3
9
5
5
3
8
6
4
4
4
11
6
6
2
9
6
6
2
11
8
4
2
11
8
4
4
2
13
8
4
4
2
13
10
4
4
2
17
8
4
4
2
17
8
6
4
2
19
8
6
4
2
19
8
4
2
2
2
19
8
6
4
2
18
11
7
4
5
5
18
14
7
7
5
5
18
11
9
7
1
16
7
5
6
2
17
10
9
3
2
19
10
8
4
2
19
10
8
4
4
2
21
13
5
4
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2038 queries.

Test #152:

score: 0
Accepted
time: 9ms
memory: 3596kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
6
6
2
2
6
4
3
3
7
5
2
6
4
5
2
8
5
4
1
7
6
3
2
11
5
3
3
3
9
7
5
2
11
5
5
2
11
5
5
4
2
12
7
4
4
2
12
9
4
4
2
12
8
6
2
2
12
9
4
4
2
14
9
4
4
2
14
9
6
4
2
17
8
6
4
2
17
10
6
4
2
19
8
6
2
2
2
17
10
6
4
2
19
10
6
4
2
19
10
6
4
4
2
21
10
6
4
4
2
21
12
6
4
4
2
23
12
6
4
4
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2189 queries.

Test #153:

score: 0
Accepted
time: 12ms
memory: 3824kb

input:

200
1
2
3
2
3
4
2
5
4
2
5
4
4
3
8
5
5
2
7
6
5
2
9
7
4
2
9
7
4
4
2
11
6
4
4
4
11
8
6
6
3
12
7
5
7
2
11
8
6
5
2
11
5
3
1
1
1
11
7
5
4
2
14
10
5
3
2
14
10
6
4
2
16
11
5
4
2
14
8
6
2
2
2
16
11
5
4
2
16
12
6
4
2
17
9
5
4
3
3
17
13
7
5
3
19
10
7
4
4
4
18
13
8
6
2
18
11
6
6
2
18
11
6
6
4
2
20
11
8
4
3
3
19...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2105 queries.

Test #154:

score: 0
Accepted
time: 10ms
memory: 3600kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
3
3
3
7
5
5
2
8
4
5
2
8
7
4
2
10
7
4
2
10
6
4
4
4
12
8
6
2
10
6
4
6
2
12
6
6
4
2
12
10
4
4
2
12
6
6
2
2
12
10
4
4
2
14
10
4
4
2
13
8
6
3
3
15
11
5
5
2
14
9
7
4
5
5
17
12
7
7
2
14
9
6
7
2
16
9
9
4
2
16
11
9
4
2
19
13
6
4
2
19
13
6
4
4
2
21
13
6
4
4
2
21
13
9
4
4
2
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2143 queries.

Test #155:

score: 0
Accepted
time: 15ms
memory: 3656kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
2
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
14
8
6
2
2
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
9
5
4
3
3
19
11
7
5
2
18
10
6
4
5
2
20
9
6
4
3
3
19
11
7
5
6
2
18
12
4
4
2
2
19
10
6
4
5
3
21
12
8
6
5
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2208 queries.

Test #156:

score: 0
Accepted
time: 17ms
memory: 3656kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
12
8
6
2
2
14
8
4
4
2
14
8
6
4
2
16
8
6
3
3
15
9
7
5
2
16
8
6
5
2
16
10
7
4
2
18
8
4
2
2
2
16
10
7
4
2
18
10
6
4
4
4
18
12
8
6
2
18
10
6
6
2
18
10
6
6
4
2
20
10
8
4
4
2
19
11
7
5
4
3
3
21
11
9
5
5
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2130 queries.

Test #157:

score: 0
Accepted
time: 12ms
memory: 3696kb

input:

200
2
2
4
2
3
3
3
5
2
4
5
2
7
3
3
5
6
2
7
5
2
7
5
4
2
10
4
4
2
10
6
4
2
12
6
4
2
12
6
4
4
2
14
6
4
4
2
14
8
4
4
2
16
8
4
4
2
16
6
6
2
2
16
8
4
4
2
16
8
6
4
2
18
8
6
4
2
18
10
6
4
2
19
12
5
4
3
3
19
11
7
5
2
20
10
6
5
2
20
10
6
5
4
2
20
12
8
5
2
2
2
20
10
6
5
4
2
22
10
7
4
4
2
22
12
7
4
4
2
24
13
6
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2138 queries.

Test #158:

score: 0
Accepted
time: 24ms
memory: 3604kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
3
3
7
5
5
2
8
4
5
2
8
7
4
2
10
7
4
2
10
7
4
4
2
12
7
5
3
3
3
11
8
5
5
2
13
6
4
5
2
13
8
5
4
2
15
9
4
4
2
15
9
6
4
2
17
9
6
4
2
17
11
6
4
2
18
9
6
3
3
3
18
12
7
5
2
19
11
6
5
2
19
11
6
5
4
2
22
9
5
3
3
3
20
12
7
6
5
2
22
10
7
4
5
2
21
12
7
5
3
3
3
23
11
8
5
6
2
22
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2026 queries.

Test #159:

score: 0
Accepted
time: 6ms
memory: 3596kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
8
4
4
2
2
8
6
4
2
10
6
4
2
10
6
2
2
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
5
3
3
3
17
9
7
5
2
16
10
6
5
2
18
10
7
4
2
18
10
7
4
4
2
20
9
5
3
3
3
19
11
8
5
5
2
19
11
7
5
4
3
3
20
11
8
5
5
2
21
10
7
4
5
2
21
13...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2075 queries.

Test #160:

score: 0
Accepted
time: 8ms
memory: 3668kb

input:

200
1
2
3
2
3
4
2
5
4
2
5
4
2
2
5
4
2
5
4
4
2
7
4
4
2
7
6
4
2
9
6
4
2
9
6
4
4
2
11
6
4
4
2
11
8
4
4
2
13
8
4
4
2
13
8
6
4
2
15
8
6
4
2
15
10
6
4
2
17
10
6
4
2
15
7
5
2
2
2
17
10
6
4
2
17
10
6
4
4
2
19
10
6
4
4
2
19
10
6
6
2
2
19
10
6
4
4
2
19
12
6
4
4
2
21
10
8
4
2
2
19
12
6
4
4
2
21
10
8
4
2
2
19
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2130 queries.

Test #161:

score: 0
Accepted
time: 9ms
memory: 3620kb

input:

200
3
2
5
2
5
4
2
7
4
2
7
4
4
2
9
4
4
1
8
5
3
2
11
6
3
2
10
7
3
3
3
12
5
3
3
3
10
6
5
2
11
5
5
2
11
5
5
4
2
12
7
4
4
2
12
9
4
4
2
14
9
4
4
2
12
7
5
3
3
3
14
10
5
5
2
13
9
6
5
2
16
8
7
4
2
16
10
7
4
2
17
9
5
4
3
3
17
11
8
5
2
18
11
6
5
2
18
11
6
5
4
2
20
11
7
4
4
2
20
13
7
4
4
2
22
13
8
6
4
4
4
22
14...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2197 queries.

Test #162:

score: 0
Accepted
time: 12ms
memory: 3600kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
2
2
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
17
9
5
4
3
3
19
11
7
5
2
18
10
6
4
5
2
20
10
6
5
3
3
19
11
7
5
6
2
20
10
6
5
5
2
20
12
7
5
4
2
22
12
8
4
4
2
22
10
6
4
4
2
2
22
12
8
4
4
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2122 queries.

Test #163:

score: 0
Accepted
time: 18ms
memory: 3596kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
9
5
4
3
3
9
7
5
2
8
6
4
2
2
8
7
4
2
11
6
4
2
11
6
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
6
4
2
17
8
6
4
2
17
8
6
2
2
2
17
8
6
4
2
17
8
4
4
2
2
17
8
6
4
2
17
10
6
4
2
19
10
6
4
2
19
10
6
4
4
2
19
11
6
6
2
2
19
10
6
4
4
2
21
10
6
4
4
2
21
12
6
4
4
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2176 queries.

Test #164:

score: 0
Accepted
time: 8ms
memory: 3652kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
9
6
4
3
3
9
7
5
2
10
6
5
1
9
5
4
3
2
12
7
4
3
2
12
7
5
4
3
3
13
7
5
4
2
12
8
3
5
2
14
7
5
4
2
14
7
7
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
2
2
18
10
6
4
2
18
10
6
4
4
2
18
12
6
4
2
2
18
11
6
4
4
2
20
11
6
4
4
2
20
13
6
4
4
2
23
12
6
4
4
2
23...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2204 queries.

Test #165:

score: 0
Accepted
time: 8ms
memory: 3608kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
3
3
15
9
5
5
2
14
8
6
5
2
15
9
6
3
3
3
15
9
7
6
2
16
8
7
5
2
15
9
5
3
3
3
17
9
8
6
2
16
10
8
5
2
18
11
8
4
2
18
11
8
4
4
2
20
12
7
4
4
2
20
15
6
4
4
2
22
15
6
4
4
1
20
11
7
3
2
2
22
15
6
4
4
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2249 queries.

Test #166:

score: 0
Accepted
time: 8ms
memory: 3548kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
6
4
2
2
2
6
4
4
2
8
4
4
2
8
6
4
2
9
6
4
3
3
9
7
5
2
10
6
5
2
10
6
5
4
2
12
7
4
4
2
12
9
4
4
2
14
9
4
4
2
14
9
6
4
2
15
10
4
2
2
2
14
9
6
4
2
17
8
6
4
2
17
10
6
4
2
17
10
6
3
3
3
17
11
7
5
2
18
10
6
5
2
18
10
6
2
2
2
18
10
6
4
2
16
10
6
2
2
2
18
10
6
4
1
17
9
5
3
3
2
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2202 queries.

Test #167:

score: 0
Accepted
time: 14ms
memory: 3492kb

input:

200
2
3
5
2
4
5
3
8
5
2
6
4
4
4
9
6
2
7
4
6
2
9
6
4
2
9
8
4
2
11
7
4
4
4
11
8
6
2
11
6
6
2
11
6
6
4
2
13
8
4
4
2
13
10
4
4
2
13
9
4
4
2
2
13
10
4
4
1
14
9
3
3
2
13
7
5
4
3
3
14
11
5
5
2
13
10
6
5
2
17
8
7
4
2
17
10
7
4
2
19
11
6
4
2
16
6
2
2
2
2
18
8
4
4
2
2
18
10
7
4
2
20
11
6
4
2
20
10
5
4
3
3
21
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2049 queries.

Test #168:

score: 0
Accepted
time: 10ms
memory: 3668kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
3
3
7
5
5
2
8
4
5
2
8
7
4
2
10
7
4
2
10
7
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
3
3
3
14
9
5
5
2
15
8
4
5
2
15
8
7
4
2
17
8
7
4
2
17
11
6
2
2
17
8
7
4
2
17
11
6
4
2
19
11
6
4
2
19
11
6
4
4
2
21
11
6
4
4
2
21
12
9
4
3
3
22
12
7
5
5
2
20
12
7
5
4
3
3
23
12
7
5
5
2
22
13
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2135 queries.

Test #169:

score: 0
Accepted
time: 18ms
memory: 3672kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
13
8
6
3
3
13
9
5
5
2
13
8
5
4
3
3
14
9
5
5
2
15
8
4
5
2
15
8
7
4
2
17
8
7
4
2
17
11
6
4
1
18
10
5
3
2
19
11
6
4
3
2
21
11
6
3
4
2
21
13
5
4
4
2
23
13
5
4
4
2
21
13
6
4
2
2
2
23
13
5
4
4
2
22
12
7
5
4
3
3
24
14...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2289 queries.

Test #170:

score: 0
Accepted
time: 6ms
memory: 3892kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
9
6
3
3
3
9
7
5
1
9
5
4
2
10
6
5
3
2
12
7
3
4
2
12
8
3
3
3
13
8
4
4
4
12
8
7
5
2
11
8
3
3
3
13
7
6
4
2
14
7
3
5
2
14
8
5
4
2
16
9
4
4
2
15
7
6
3
3
17
10
5
5
2
16
9
6
5
2
19
8
7
4
2
19
10
7
4
2
20
12
6
4
2
19
11
6
3
3
3
21
13
7
5
2
18
12
6
3
3
3
21
13
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2175 queries.

Test #171:

score: 0
Accepted
time: 19ms
memory: 3844kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
2
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
14
10
6
2
2
14
8
6
4
2
16
7
6
3
3
15
9
7
5
2
16
8
6
5
2
14
10
4
2
2
2
16
8
6
5
2
16
10
7
4
2
17
10
6
4
3
3
17
11
8
5
2
18
10
7
5
2
16
8
4
2
2
2
18
10
7
5
2
18
10
7
5
4
2
20
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2162 queries.

Test #172:

score: 0
Accepted
time: 16ms
memory: 3596kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
2
2
6
4
4
2
7
5
3
3
3
7
5
5
2
8
4
5
2
8
7
4
2
10
7
4
2
10
7
4
4
2
11
6
4
2
2
2
10
7
4
4
2
13
6
4
4
2
13
6
4
2
2
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
6
4
2
2
2
15
8
4
4
2
15
8
6
4
2
17
8
6
4
2
17
8
6
2
2
2
17
8
6
4
2
17
10
6
4
2
19
10
6
4
2
17
10
7
4
2
2
19
10
5
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2116 queries.

Test #173:

score: 0
Accepted
time: 15ms
memory: 3592kb

input:

200
2
1
3
2
4
3
2
5
4
2
5
3
3
3
6
5
2
5
4
5
2
7
5
4
2
7
7
4
2
10
6
4
2
10
6
4
4
2
12
5
4
3
3
11
7
5
5
2
12
6
4
5
2
12
8
5
4
2
14
9
4
4
2
14
9
6
4
2
16
9
6
4
2
16
11
6
3
3
17
10
7
5
2
16
10
6
4
4
4
18
11
8
6
2
16
11
6
6
2
18
11
8
4
2
18
11
8
4
4
2
21
7
5
3
3
3
19
10
8
5
3
3
19
12
9
5
2
17
9
4
4
2
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2185 queries.

Test #174:

score: 0
Accepted
time: 7ms
memory: 3892kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
7
5
4
3
3
7
5
5
2
8
4
5
3
9
8
5
2
10
7
5
2
10
7
5
4
2
13
7
4
4
2
13
9
4
4
2
15
9
4
4
2
14
7
5
4
3
3
16
10
5
5
2
15
9
6
5
2
18
8
7
4
2
17
10
7
4
4
19
10
9
6
2
17
10
5
5
2
2
17
8
7
6
2
17
10
9
2
2
17
8
7
6
2
17
10
9
4
2
18
10
6
4
4
4
18
12
11
6
2
18
9
4
4
2
2
16
12
9
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2032 queries.

Test #175:

score: 0
Accepted
time: 16ms
memory: 3592kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
12
6
6
2
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
15
10
5
4
3
3
17
9
7
5
2
14
8
4
4
2
2
17
8
6
4
2
15
9
5
2
2
2
17
8
6
4
2
17
10
6
4
2
19
10
6
4
2
19
10
6
4
4
2
21
10
6
4
4
2
20
12
9
4
3
3
22
11
7
5
5
2
21...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1978 queries.

Test #176:

score: 0
Accepted
time: 24ms
memory: 3608kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
3
11
7
5
5
2
12
6
4
5
2
12
8
5
4
2
12
8
6
2
2
12
8
5
4
2
14
9
4
4
2
14
9
6
4
2
16
9
6
4
2
16
10
6
4
4
4
18
10
8
6
2
16
10
6
6
2
16
8
6
4
2
2
16
10
6
6
2
18
10
8
4
2
18
10
8
4
4
2
20
10
8
4
4
2
18
12
6
2
2
2
20
10
8
4
4
2
20
14
6
4
3
3
21
11
9
5
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2087 queries.

Test #177:

score: 0
Accepted
time: 20ms
memory: 3656kb

input:

200
2
2
4
1
3
3
2
6
3
2
5
3
3
3
7
4
2
6
3
5
2
7
5
4
2
7
7
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
2
20
10
6
4
4
2
20
12
6
4
4
2
22
12
6
4
4
2
22
12
8
4
4
2
24
12
8
4
2
2
22
12
8
4
4
2
22
12
7
5
5
2
2
22
12
8
4
4
2
24
10
6
4
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2202 queries.

Test #178:

score: 0
Accepted
time: 21ms
memory: 3544kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
13
7
5
3
3
3
13
9
5
5
2
14
8
4
5
2
14
8
5
2
2
2
14
8
4
5
2
14
8
7
4
2
16
8
7
4
2
16
11
6
4
2
18
11
6
4
2
18
11
6
4
4
2
20
11
6
4
4
2
20
13
6
4
4
2
20
10
6
4
2
2
2
20
13
6
4
4
2
20
12
6
4
4
2
2
20
13
6
4
4
2
22
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2088 queries.

Test #179:

score: 0
Accepted
time: 18ms
memory: 3664kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
3
3
3
11
7
5
5
2
12
6
4
5
2
10
6
4
4
2
2
12
6
4
5
2
12
8
5
4
2
13
7
6
3
3
13
9
6
5
2
14
9
2
2
2
12
8
5
5
2
14
9
3
3
3
13
9
6
5
2
14
7
4
2
2
2
12
8
6
4
4
4
14
8
6
7
2
12
8
5
6
1
13
8
5
3
2
14
9
8
3
2
16
11
5
4
2
16
13
5
4
2
17
9...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1981 queries.

Test #180:

score: 0
Accepted
time: 10ms
memory: 3892kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
3
13
7
5
4
4
12
8
6
6
2
12
6
4
6
3
13
9
7
5
2
13
8
6
3
3
13
10
7
5
2
15
10
4
5
2
15
10
7
4
2
17
10
7
4
2
16
9
6
4
3
3
18
11
8
5
2
17
13
6
5
2
19
13
7
4
2
19
11
7
5
5
5
22
13
9
7
7
7
22
15
11
10
2
19
10
5
2
2
2
17
10
11
5
2
19
10
12
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2079 queries.

Test #181:

score: 0
Accepted
time: 13ms
memory: 3636kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
2
2
2
10
6
4
2
10
5
4
3
3
11
7
4
4
10
8
6
2
10
6
6
2
10
6
6
4
2
12
8
4
4
2
12
10
4
4
2
14
10
4
4
2
14
10
6
4
2
18
6
6
2
2
14
10
6
4
2
18
8
6
4
2
18
10
6
4
2
20
10
6
4
2
20
10
6
4
4
2
22
9
5
4
3
3
21
11
7
5
5
2
22
10
6
4
5
2
21
12
8
3
3
3
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2100 queries.

Test #182:

score: 0
Accepted
time: 12ms
memory: 3656kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
9
5
3
3
3
11
7
5
2
10
6
4
5
2
12
6
5
4
2
12
9
4
4
2
14
9
4
4
2
14
9
6
4
2
14
8
6
4
2
2
14
9
6
4
2
16
9
6
4
2
16
11
6
4
2
19
7
4
4
2
2
16
11
5
3
3
3
17
10
7
5
2
16
11
6
5
2
19
10
7
4
2
19
9
5
3
3
3
20
11
8
5
2
19
10
7
4
5
2
21
10
7
5
4
2
19
10
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2152 queries.

Test #183:

score: 0
Accepted
time: 8ms
memory: 3824kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
9
5
4
3
3
11
7
5
2
10
6
4
5
2
12
6
5
4
2
12
8
5
3
3
3
13
7
6
5
2
12
9
4
5
2
14
9
5
4
2
14
9
7
4
2
16
10
6
4
2
16
12
6
4
2
19
11
6
4
2
19
11
6
4
4
2
21
11
6
4
4
2
21
13
6
4
4
2
24
12
6
4
4
2
24
12
8
4
4
2
25
13
8
5
3
3
3
25
13
9
5
5
2
26
11
8
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2238 queries.

Test #184:

score: 0
Accepted
time: 20ms
memory: 3660kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
7
6
3
3
13
7
5
5
2
12
8
4
5
2
13
8
5
3
3
3
13
9
5
6
2
14
8
5
5
2
14
8
8
4
2
16
9
7
4
2
16
12
6
4
2
18
12
6
4
2
16
8
4
2
2
2
18
12
6
4
2
18
12
6
4
4
2
20
12
6
4
4
2
20
13
10
4
3
3
21
13
7
5
5
2
20
14
6
4
5
2
23
13
6
5
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2159 queries.

Test #185:

score: 0
Accepted
time: 14ms
memory: 3888kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
7
5
4
3
3
13
9
5
5
2
14
8
4
5
2
14
8
7
4
2
16
8
7
4
2
16
11
6
4
1
17
10
5
3
2
18
11
6
4
3
2
20
11
6
3
4
2
20
13
5
4
4
2
21
11
7
6
3
3
21
14
6
5
5
2
22
13
5
4
5
2
22
12
9
4
3
3
23
14
6
5
6
2
20
12
6
6
2
2
23
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2208 queries.

Test #186:

score: 0
Accepted
time: 18ms
memory: 3664kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
6
6
2
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
4
2
2
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
13
8
5
4
3
3
15
9
5
5
2
13
8
6
3
3
16
9
5
5
2
15
8
6
5
2
17
8
6
4
4
4
17
10
8
6
2
17
8
6
6
2
17
10
8
4
2
19
10
8
4
2
19
10
8
4
4
2
21
12
6
4
4
2
21
14
6
4
4
2
22
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2127 queries.

Test #187:

score: 0
Accepted
time: 6ms
memory: 3864kb

input:

200
3
2
5
2
5
4
2
7
4
2
7
4
4
2
9
4
4
2
9
6
4
3
10
6
4
4
4
10
8
6
2
10
6
6
2
10
6
6
4
2
12
8
4
4
2
12
10
4
4
2
14
10
4
4
2
14
10
6
4
2
18
8
4
2
2
2
14
10
6
4
2
18
6
4
4
2
2
14
10
6
4
2
18
8
6
4
2
18
10
6
4
2
20
10
6
4
2
20
10
6
4
4
2
22
10
6
4
4
2
22
12
6
4
4
2
23
11
7
6
3
3
23
13
7
5
5
2
24
12
6
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2088 queries.

Test #188:

score: 0
Accepted
time: 16ms
memory: 3552kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
9
6
4
3
3
11
7
5
2
10
6
4
5
2
12
6
5
4
2
12
9
4
4
2
14
9
4
4
2
14
9
6
4
2
16
9
6
4
2
16
11
6
4
2
19
10
6
4
2
19
10
6
4
4
2
21
10
6
4
4
2
20
11
8
3
3
3
22
11
7
5
5
1
20
11
4
2
2
2
21
10
7
4
4
2
21
12
7
4
4
2
23
13
6
4
4
2
21
12
7
4
4
2
2
23
13
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2114 queries.

Test #189:

score: 0
Accepted
time: 18ms
memory: 3592kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
5
3
3
3
11
7
5
2
10
6
4
5
2
12
6
5
4
2
12
9
4
4
2
12
6
4
4
2
2
12
9
4
4
2
14
9
4
4
2
14
8
6
3
3
3
15
10
5
5
2
13
7
5
3
3
3
16
10
5
5
2
15
9
5
4
3
3
16
10
5
5
5
16
12
7
7
2
13
9
4
2
2
2
16
9
4
4
2
16
9
7
7
2
2
16
9
4
4
2
18
9
4
4
2
18
9
6
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2025 queries.

Test #190:

score: 0
Accepted
time: 20ms
memory: 3604kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
3
3
3
7
5
5
2
8
4
5
3
9
8
5
2
10
7
5
2
10
7
5
4
2
11
6
6
2
2
10
7
5
4
2
13
7
4
4
2
13
9
4
4
2
15
9
4
4
2
15
9
6
4
2
16
8
6
2
2
2
15
9
6
4
2
18
8
6
4
2
18
10
6
4
2
20
10
6
4
2
20
10
6
4
4
2
22
8
6
4
2
2
20
10
6
4
4
2
22
10
6
4
4
2
22
12
6
4
4
3
25
13
6
4
4
4
24
14
8
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2053 queries.

Test #191:

score: 0
Accepted
time: 24ms
memory: 3660kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
3
3
11
7
5
2
10
6
4
5
2
12
6
5
4
2
12
9
4
4
2
14
9
4
4
2
14
7
5
4
3
3
15
9
5
5
2
14
8
6
5
2
16
8
7
4
1
15
9
6
3
2
18
11
6
3
2
18
11
5
4
3
3
19
12
7
4
2
18
9
4
2
2
2
18
12
6
3
2
18
12
6
3
4
2
21
11
5
4
4
2
21
13
5
4
4
2
23
12
6
4
4
2
23
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2102 queries.

Test #192:

score: 0
Accepted
time: 8ms
memory: 3900kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
9
6
3
3
3
11
7
5
2
10
6
4
5
2
12
6
5
4
2
12
9
4
4
2
13
8
5
4
3
3
13
10
5
5
2
14
9
4
4
4
14
11
6
6
2
14
9
4
6
2
14
9
6
2
2
2
14
9
4
6
2
14
9
8
4
2
16
9
8
4
2
16
11
5
3
3
3
17
9
9
5
2
16
12
6
2
2
16
8
8
4
2
16
12
6
4
2
18
12
6
4
2
18
11
5
4
3
3
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2123 queries.

Test #193:

score: 0
Accepted
time: 24ms
memory: 3600kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
7
5
4
3
3
9
5
5
2
8
6
5
2
10
7
4
2
10
7
4
4
2
12
7
4
4
2
12
6
4
2
2
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
2
20
10
6
4
4
2
20
12
6
4
4
2
22
12
6
4
4
2
22
12
6
4
2
2
2
22
12
6
4
4
2
22
12
8
4
4
2
24
10
6
6
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2147 queries.

Test #194:

score: 0
Accepted
time: 10ms
memory: 3656kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
3
11
7
5
5
2
12
6
4
5
2
12
8
5
4
2
14
9
4
4
2
13
7
5
3
3
3
15
10
5
5
2
14
9
6
5
2
16
9
7
4
2
15
9
6
4
3
3
17
10
8
5
2
16
11
7
5
2
18
12
5
4
3
3
17
12
8
5
2
18
12
6
5
2
18
12
6
5
4
2
19
10
6
4
4
2
2
18
12
6
5
4
2
21
11
7
4
4
2
21
13
7
4
4
2
23
13...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2043 queries.

Test #195:

score: 0
Accepted
time: 25ms
memory: 3668kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
7
6
3
3
7
5
5
2
8
4
5
2
8
7
4
2
10
7
4
2
10
7
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
6
4
2
17
8
6
4
2
17
10
6
4
2
19
8
4
4
2
2
17
10
6
4
2
19
10
4
2
2
2
17
10
6
4
2
19
10
6
4
2
19
10
6
4
4
2
21
10
6
4
2
2
19
10
6
4
4
2
21
10
5
4
3
3
20
11
7
5
5
2
21
10
6
2
2
2
19...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2164 queries.

Test #196:

score: 0
Accepted
time: 10ms
memory: 3636kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
2
2
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
13
7
6
3
3
15
9
5
5
2
14
8
6
5
2
16
8
7
4
2
14
8
6
2
2
2
16
8
7
4
2
15
10
6
3
3
17
9
8
5
2
16
10
7
5
2
18
10
5
4
3
3
17
11
8
6
2
18
11
7
5
2
18
11
7
5
4
2
20
11
8
4
4
2
20
14
7
4
4
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2148 queries.

Test #197:

score: 0
Accepted
time: 20ms
memory: 3652kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
2
2
10
6
4
4
2
12
6
4
4
2
10
6
4
4
2
2
12
6
4
4
2
10
6
4
4
2
2
12
6
4
4
2
12
7
5
4
3
3
13
7
5
5
2
12
8
4
5
2
12
6
4
4
2
2
12
8
4
5
2
14
8
5
4
2
14
8
6
4
4
4
16
10
6
6
2
14
8
6
6
2
16
8
8
4
2
16
8
6
4
2
2
16
8
8
4
2
16
10
8
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2199 queries.

Test #198:

score: 0
Accepted
time: 14ms
memory: 3656kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
3
11
7
5
5
2
12
6
4
5
2
12
8
5
4
2
14
9
4
4
2
14
9
6
4
2
14
10
6
2
2
14
9
6
4
2
16
8
6
4
4
4
16
10
8
6
2
14
8
4
4
2
2
16
8
6
4
2
18
8
6
4
2
18
10
6
4
2
20
10
6
4
2
20
10
6
4
4
2
22
10
6
4
4
2
21
14
6
4
3
3
23
11
7
5
4
4
22
12
8
6
6
2
21
14
6
3
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2054 queries.

Test #199:

score: 0
Accepted
time: 12ms
memory: 3656kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
3
9
7
5
2
10
6
5
2
10
6
5
4
2
12
7
4
4
2
12
9
4
4
2
13
7
5
3
3
3
13
9
7
5
5
5
15
9
7
7
2
12
8
4
7
2
14
8
7
4
2
14
8
9
4
2
14
8
4
2
2
2
14
8
9
4
1
15
10
5
3
2
16
12
5
3
3
3
17
11
7
5
2
16
10
3
3
2
2
16
11
6
4
2
16
13
6
4
2
17
14
6
4
2
15
10
6
4
1
1
17
13
5
3
2
18...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2147 queries.

Test #200:

score: 0
Accepted
time: 18ms
memory: 3596kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
13
8
6
3
3
13
9
5
5
2
13
8
5
4
3
3
14
9
5
5
2
13
8
5
4
3
3
14
9
5
5
2
15
8
4
5
2
15
8
7
4
2
17
8
7
4
2
17
11
6
4
2
19
11
6
4
2
17
10
5
3
3
3
19
12
7
5
2
18
11
6
4
5
2
20
11
6
5
4
1
19
12
6
3
3
2
20
12
6
6
2
2
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2117 queries.

Test #201:

score: 0
Accepted
time: 16ms
memory: 3824kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
7
6
3
3
15
9
7
5
2
16
8
6
5
2
16
10
7
4
2
17
9
5
3
3
3
17
11
7
4
4
4
18
10
8
7
2
16
10
7
6
2
18
10
9
4
2
18
10
9
4
4
2
20
11
8
4
4
2
20
15
6
4
4
2
21
11
8
3
3
3
21
16
7
5
5
2
22
15
6
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2102 queries.

Test #202:

score: 0
Accepted
time: 7ms
memory: 3652kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
1
7
3
3
2
8
6
2
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
11
8
6
1
1
13
7
3
3
2
14
8
6
3
2
16
8
5
4
2
14
10
4
4
2
2
16
8
5
4
2
16
10
5
4
2
18
9
6
4
2
18
9
6
4
4
2
20
7
4
2
2
2
18
9
6
4
4
2
19
12
5
3
3
3
19
10
7
5
5
2
20
9
6
4
5
2
20
11
6
5
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2102 queries.

Test #203:

score: 0
Accepted
time: 17ms
memory: 3608kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
5
4
3
3
9
5
5
2
8
6
5
2
10
7
4
2
10
7
4
4
2
12
5
5
2
2
10
7
4
4
2
11
7
5
4
3
3
11
8
5
5
2
12
7
4
5
2
12
9
5
4
2
15
9
4
4
2
15
9
6
4
2
16
9
6
4
3
3
16
10
7
5
2
15
8
6
2
2
2
16
9
6
4
2
18
9
6
4
2
18
11
6
4
2
19
10
6
5
3
3
19
12
7
5
2
20
10
6
5
3
3
19
13
7
5
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2006 queries.

Test #204:

score: 0
Accepted
time: 12ms
memory: 3596kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
14
8
4
2
2
2
14
8
6
4
2
16
8
6
4
2
16
10
4
4
2
2
16
8
6
4
2
16
10
6
4
2
18
10
4
2
2
2
16
10
6
4
2
16
8
6
2
2
2
16
10
6
4
2
17
9
6
3
3
3
17
11
7
5
2
18
10
6
5
2
18
10
6
5
4
2
20
10
7
4
4
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2155 queries.

Test #205:

score: 0
Accepted
time: 17ms
memory: 3600kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
7
5
4
3
3
9
5
5
2
8
4
4
2
2
8
4
5
2
8
7
4
2
10
7
4
2
10
7
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
6
4
2
17
8
6
4
2
17
8
6
4
2
2
17
8
6
4
3
18
11
7
5
2
19
10
6
5
2
19
10
6
4
4
4
21
12
8
6
2
19
10
6
4
6
2
21
9
6
3
3
3
20
11
7
5
7
2
21
10
6
6
5
2
21
12
8
5
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2086 queries.

Test #206:

score: 0
Accepted
time: 16ms
memory: 3664kb

input:

200
2
2
4
3
5
5
2
6
5
2
6
4
4
4
8
6
2
6
4
5
5
9
7
2
6
4
7
2
8
7
4
2
8
9
4
2
13
6
4
2
13
6
4
4
2
14
7
5
3
3
3
14
7
5
5
2
15
6
4
5
2
15
8
5
4
2
17
9
4
4
2
17
9
6
4
2
19
9
6
4
2
19
11
6
4
2
21
11
6
4
2
21
11
6
4
4
2
22
14
7
5
3
3
3
21
14
6
5
4
4
23
13
8
6
2
21
11
6
4
6
2
24
10
4
2
2
2
21
11
6
4
6
2
22
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2051 queries.

Test #207:

score: 0
Accepted
time: 13ms
memory: 3660kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
9
6
4
3
3
11
7
5
2
10
6
4
5
2
12
6
5
4
2
12
9
4
4
2
14
8
7
3
3
13
10
5
5
2
14
9
4
5
2
14
9
7
4
2
16
9
7
2
2
14
9
7
4
2
14
8
6
4
2
2
14
9
7
4
2
16
9
7
4
2
16
11
6
5
3
3
17
10
8
5
2
16
12
6
5
2
19
11
7
4
2
19
11
7
4
4
2
21
11
7
4
4
2
21
14
6
4
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2193 queries.

Test #208:

score: 0
Accepted
time: 5ms
memory: 3588kb

input:

200
2
2
4
2
2
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
2
2
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
13
7
5
3
3
3
15
9
5
5
2
14
8
6
5
2
15
9
6
4
3
3
15
9
7
6
2
16
8
7
5
2
16
10
8
4
2
18
8
6
3
3
3
17
11
7
4
4
4
18
10
8
7
2
15
9
5
3
3
3
19
9
7
6
2
18
10
7
5
2
20
9
5
3
3
3
19
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2000 queries.

Test #209:

score: 0
Accepted
time: 20ms
memory: 3892kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
3
3
3
7
5
2
6
4
5
2
8
5
4
2
8
7
4
2
11
6
4
2
11
6
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
6
4
2
17
8
6
4
2
16
11
6
3
3
18
9
7
5
2
17
10
6
5
2
19
10
7
4
2
18
10
6
3
3
3
20
11
8
5
2
19
9
6
4
3
3
20
12
8
5
2
19
9
4
2
2
2
19
12
7
4
2
19
12
7
4
4
2
22
11
7
4
4
2
22
12
7
6
3
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2125 queries.

Test #210:

score: 0
Accepted
time: 16ms
memory: 3600kb

input:

200
2
2
4
2
4
4
2
6
4
3
7
5
5
2
8
4
5
2
8
7
4
2
10
7
4
2
10
7
4
4
2
13
6
4
4
2
11
8
2
2
2
13
6
4
4
2
11
7
5
3
3
3
13
9
4
4
4
12
9
6
6
2
13
6
4
6
2
11
8
2
2
2
13
6
4
6
2
13
8
6
4
2
15
9
6
5
5
16
11
7
7
2
15
8
4
7
2
15
8
9
4
2
15
10
7
2
2
15
8
9
4
2
17
8
9
4
2
17
13
6
4
2
19
13
6
4
2
19
13
6
4
4
2
21
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2101 queries.

Test #211:

score: 0
Accepted
time: 18ms
memory: 3856kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
13
8
6
3
3
13
9
5
5
2
14
8
4
5
2
14
8
7
4
2
16
8
7
4
2
16
11
6
4
2
18
11
6
4
2
16
8
4
2
2
2
18
11
6
4
2
18
11
6
2
2
2
18
11
6
4
2
18
11
6
4
4
2
20
11
6
4
4
2
20
13
6
4
4
2
22
13
6
4
4
2
22
13
8
4
4
2
25
11
7
5
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2207 queries.

Test #212:

score: 0
Accepted
time: 12ms
memory: 3600kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
1
9
5
3
3
2
12
6
4
3
2
10
8
4
2
2
12
6
4
3
2
12
8
3
4
2
14
7
4
4
2
14
7
6
4
2
14
8
6
2
2
2
14
7
6
4
2
16
7
6
4
2
16
9
6
4
2
18
9
6
4
2
18
9
6
4
4
2
19
10
6
4
4
2
19
12
6
4
4
2
21
12
6
4
4
2
21
11
8
3
3
3
22
13
7
5
5
2
21
12
8
4
5
2
23
12
8
5
4
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2131 queries.

Test #213:

score: 0
Accepted
time: 19ms
memory: 3544kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
4
4
2
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
11
7
5
4
3
3
11
7
5
5
2
12
5
4
3
3
11
7
6
5
2
12
7
4
5
2
12
9
5
4
2
14
10
4
4
2
14
10
6
4
2
17
9
6
4
2
15
8
6
2
2
2
17
9
6
4
2
15
8
6
4
2
2
17
9
6
4
2
17
11
6
4
2
19
11
6
4
2
19
11
6
4
4
2
22
10
6
4
4
2
22
12
6
4
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2081 queries.

Test #214:

score: 0
Accepted
time: 14ms
memory: 3892kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
9
6
3
3
3
9
7
5
2
10
6
5
2
10
6
5
4
2
12
7
4
4
2
12
9
4
4
2
14
9
4
4
2
14
9
6
4
2
17
8
6
4
2
17
10
6
4
2
19
10
6
4
2
19
10
6
4
4
2
21
10
5
4
3
3
20
11
7
5
5
2
21
10
6
4
5
2
21
12
6
5
4
2
23
12
7
3
3
3
22
13
7
6
5
2
23
12
7
4
5
2
23
12
9
5
4
2
24
13
8
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2140 queries.

Test #215:

score: 0
Accepted
time: 24ms
memory: 3548kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
1
9
5
3
3
2
11
7
5
3
3
3
10
7
5
5
2
11
6
4
5
2
11
8
5
4
2
13
9
4
4
2
13
9
6
4
2
15
9
6
4
2
15
11
6
4
2
15
9
6
4
2
2
15
11
6
4
2
16
9
5
4
3
3
16
12
7
5
2
17
11
6
5
2
16
9
5
4
3
3
18
12
7
6
2
17
11
6
5
5
2
20
10
7
5
4
2
20
12
8
4
4
2
22
13
7
4
4
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2119 queries.

Test #216:

score: 0
Accepted
time: 9ms
memory: 3600kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
3
3
9
5
5
2
8
6
5
2
10
5
2
2
2
8
6
5
2
10
7
4
2
10
7
4
4
2
12
7
4
4
3
13
10
5
5
2
15
8
4
5
2
15
8
7
4
2
17
8
7
4
2
17
11
6
4
2
19
11
6
4
2
19
11
6
4
4
2
21
11
6
4
4
2
19
12
7
2
2
2
21
10
7
4
3
3
20
12
7
5
5
2
21
11
6
4
5
2
21
13
6
4
4
4
23
13
8
6
6
3
21
12...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1925 queries.

Test #217:

score: 0
Accepted
time: 19ms
memory: 3660kb

input:

200
2
2
4
2
4
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
11
8
4
3
3
11
7
5
5
2
10
6
6
2
2
11
6
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
6
4
2
17
8
6
4
2
15
9
6
3
3
3
17
9
7
5
2
15
9
5
3
3
3
18
9
7
5
2
17
10
6
5
2
19
10
7
4
2
18
11
6
3
3
3
20
9
7
5
3
3
18
11
7
6
2
19
10
7
5
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2132 queries.

Test #218:

score: 0
Accepted
time: 13ms
memory: 3632kb

input:

200
2
2
4
2
4
4
3
7
5
2
6
4
5
2
8
5
4
2
8
7
4
2
11
6
4
2
11
6
4
4
2
13
6
4
4
2
12
7
5
4
3
3
14
6
5
4
4
13
8
6
6
2
13
6
4
6
2
13
8
6
4
2
15
10
4
4
2
15
10
6
4
2
17
10
6
4
2
17
12
4
2
2
2
17
10
6
4
2
17
12
6
4
2
19
12
6
4
2
18
10
5
3
3
3
20
13
7
5
2
19
12
6
4
5
2
23
10
6
5
3
3
20
13
7
5
6
2
23
9
6
3
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2014 queries.

Test #219:

score: 0
Accepted
time: 12ms
memory: 3888kb

input:

200
2
2
2
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
5
3
3
3
9
5
5
2
8
6
5
2
10
5
4
3
3
9
7
5
2
10
6
5
2
10
6
5
4
2
12
7
4
4
2
12
9
4
4
2
14
9
4
4
2
14
9
6
4
2
17
8
6
4
2
17
10
6
4
2
19
10
6
4
2
19
10
6
4
4
2
21
7
3
3
3
3
20
9
7
3
3
3
20
11
7
5
2
19
10
6
4
5
2
21
10
6
5
4
2
21
12
7
4
4
2
23
12
7
4
4
2
23...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2103 queries.

Test #220:

score: 0
Accepted
time: 17ms
memory: 3552kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
7
5
4
3
3
9
5
5
2
8
6
5
2
10
7
4
2
10
7
4
4
2
12
7
4
4
2
12
9
4
4
2
15
8
4
4
2
15
7
5
4
3
3
16
9
5
5
2
15
8
6
5
2
17
8
7
4
2
17
10
7
4
2
16
10
4
4
2
2
16
10
7
4
2
18
11
6
4
2
18
11
6
4
4
2
20
11
6
4
4
2
20
13
6
4
4
2
21
11
7
5
4
3
3
21
14
7
5
5
2
22
13
6
4
5
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2163 queries.

Test #221:

score: 0
Accepted
time: 20ms
memory: 3656kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
3
3
3
7
5
2
6
4
5
2
7
5
3
3
3
7
5
6
2
8
5
5
2
8
8
4
2
11
7
4
2
11
7
4
4
2
14
6
4
4
2
14
8
4
4
2
16
8
3
3
3
15
9
5
5
2
16
7
6
3
3
15
9
6
5
2
16
9
4
5
2
16
7
6
3
3
17
9
5
6
1
15
7
6
4
2
17
10
6
3
3
3
16
9
8
6
2
17
8
8
5
2
17
11
8
4
2
19
12
7
4
2
19
12
7
4
4
2
21
13
6
4
4
2
21...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2174 queries.

Test #222:

score: 0
Accepted
time: 15ms
memory: 3696kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
3
3
3
7
5
5
2
8
4
5
2
8
7
4
2
10
4
2
2
2
8
6
4
2
10
6
2
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
7
5
3
3
3
13
9
5
5
2
14
8
4
5
2
14
8
7
4
2
16
8
7
4
2
15
9
5
4
3
3
17
9
8
5
2
16
11
6
5
2
17
10
5
4
3
3
17
12
7
6
2
18
11
7
5
2
18
11
7
5
4
2
20
11
8
4
4
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2099 queries.

Test #223:

score: 0
Accepted
time: 24ms
memory: 3824kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
2
20
10
6
4
4
2
20
12
6
4
4
2
22
11
8
4
3
3
21
13
7
5
5
2
22
12
6
4
5
2
22
12
8
5
4
2
24
11
7
5
3
3
3
23
13
9
6
5
2
23
14
8
4
3
3
23
14
9
4
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2104 queries.

Test #224:

score: 0
Accepted
time: 7ms
memory: 3860kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
5
4
3
3
11
7
5
2
10
6
4
5
2
12
6
5
4
2
12
9
4
4
2
14
9
4
4
2
14
9
6
4
2
16
9
6
4
2
16
11
6
4
2
19
10
6
4
2
19
10
6
4
4
2
21
10
6
4
4
2
19
12
4
2
2
2
21
10
6
4
4
2
21
12
6
4
4
2
21
10
6
6
2
2
21
12
6
4
4
2
23
12
6
4
4
2
21
10
8
2
2
2
23
12
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2111 queries.

Test #225:

score: 0
Accepted
time: 16ms
memory: 3600kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
14
10
4
4
2
2
14
8
6
4
2
16
8
6
4
2
16
9
6
3
3
3
17
9
7
5
2
16
10
6
5
2
18
10
7
4
2
18
10
5
2
2
2
18
10
7
4
2
18
10
7
4
4
2
20
10
7
4
4
2
18
10
6
4
4
2
2
20
9
5
3
3
3
19
11
8
5
5
2
20
10
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2068 queries.

Test #226:

score: 0
Accepted
time: 10ms
memory: 3652kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
2
2
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
9
6
4
3
3
11
7
5
2
10
4
2
2
2
10
7
4
2
10
7
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
6
4
2
17
8
6
4
2
17
10
6
4
2
19
10
6
4
2
19
9
6
4
3
3
20
11
7
5
3
20
11
7
5
5
5
22
13
9
7
2
19
10
6
4
7
2
21
10
6
7
4
2
21
12
9
4
4
2
23
10...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2177 queries.

Test #227:

score: 0
Accepted
time: 10ms
memory: 3632kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
14
8
6
2
2
2
16
8
6
4
2
16
10
6
4
2
18
9
5
3
3
3
17
11
7
5
2
18
10
6
5
2
18
10
4
4
2
2
18
10
6
5
2
18
10
6
5
4
2
20
10
7
4
4
2
19
12
6
4
3
3
21
11
8
5
5
2
20
12
7
4
5
2
22
13
6
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2178 queries.

Test #228:

score: 0
Accepted
time: 16ms
memory: 3632kb

input:

200
2
2
4
2
4
4
2
4
4
2
2
4
4
2
5
4
3
3
5
5
2
6
5
2
6
5
2
2
6
5
2
6
5
4
2
9
4
4
3
8
5
5
3
3
10
5
5
2
9
6
5
2
11
7
4
2
11
6
3
3
3
12
8
5
2
11
7
4
5
2
13
7
5
4
2
13
10
4
4
2
16
9
4
4
2
16
9
6
4
2
18
7
5
3
3
3
17
9
7
5
2
18
8
6
5
2
18
10
7
4
2
20
10
6
5
3
3
19
11
8
5
2
20
10
7
5
2
20
8
4
4
2
2
20
10
7
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2109 queries.

Test #229:

score: 0
Accepted
time: 17ms
memory: 3892kb

input:

200
2
2
4
2
4
4
2
6
2
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
14
8
6
4
2
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
2
20
10
6
4
4
2
18
10
6
6
2
2
20
10
6
4
4
2
20
12
6
4
4
2
20
10
6
4
2
2
2
20
12
6
4
4
2
22
12
6
4
4
2
22
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2224 queries.

Test #230:

score: 0
Accepted
time: 12ms
memory: 3544kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
6
4
4
2
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
5
3
3
3
17
9
7
5
2
16
10
4
2
2
2
16
8
7
4
2
16
10
7
4
2
18
11
6
4
2
17
10
5
4
3
3
19
12
7
5
2
18
11
6
4
5
2
20
11
6
5
4
2
20
13
7
4
4
2
22
13
7
4
4
2
20
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2112 queries.

Test #231:

score: 0
Accepted
time: 13ms
memory: 3660kb

input:

200
2
2
4
1
1
1
1
3
2
4
1
1
3
2
4
3
2
5
4
2
5
4
4
2
7
4
4
2
7
6
4
2
9
6
4
2
9
6
4
4
2
11
6
4
4
2
11
8
4
4
2
12
6
4
4
2
2
12
8
4
4
3
14
9
6
5
4
4
14
10
6
6
2
14
8
4
6
2
14
8
8
4
2
16
8
8
4
2
16
12
6
4
2
18
12
6
4
2
18
12
6
4
4
2
20
12
6
4
4
2
20
14
6
4
4
2
22
13
9
7
5
5
5
23
14
10
8
7
6
6
24
14
10
8
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2174 queries.

Test #232:

score: 0
Accepted
time: 24ms
memory: 3604kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
6
4
4
2
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
5
3
3
3
11
7
5
5
2
12
6
4
5
2
10
6
6
2
2
12
6
4
5
2
12
8
3
3
3
13
7
5
5
2
12
8
4
5
2
14
8
5
4
2
14
7
5
3
3
3
15
9
6
5
2
14
6
4
4
2
2
14
9
5
4
2
14
6
4
4
2
2
14
8
5
4
2
14
8
7
4
2
14
8
4
4
2
2
14
8
7
4
2
16
9
5
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2108 queries.

Test #233:

score: 0
Accepted
time: 12ms
memory: 3548kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
6
6
2
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
5
3
3
3
17
9
7
5
2
14
8
6
4
2
2
17
8
6
4
2
17
10
6
4
3
20
11
7
5
2
19
10
6
4
5
2
20
12
7
5
3
3
3
18
10
5
3
3
3
21
11
7
5
2
20
8
4
2
2
2
20
11
6
4
2
20
11
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2034 queries.

Test #234:

score: 0
Accepted
time: 20ms
memory: 3892kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
13
8
5
4
3
3
13
9
5
5
2
14
8
4
5
2
14
8
7
4
2
16
8
7
4
2
14
10
4
4
2
2
16
8
7
4
2
16
11
6
4
2
18
11
6
4
3
17
9
5
3
3
3
19
12
7
5
2
18
11
6
4
5
2
20
11
6
5
4
2
20
11
9
2
2
2
20
11
6
5
4
2
20
13
7
4
4
2
20
12
8
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2116 queries.

Test #235:

score: 0
Accepted
time: 18ms
memory: 3836kb

input:

200
2
2
4
1
3
3
2
6
3
2
6
3
4
2
7
4
4
2
5
4
2
2
2
7
4
4
2
7
6
4
2
8
5
4
3
3
8
7
5
3
10
7
6
2
9
6
5
5
1
10
6
4
3
2
11
10
4
3
2
12
6
5
3
3
3
12
11
5
4
2
13
10
3
5
2
13
10
6
4
2
16
8
7
4
2
16
11
6
4
2
19
10
6
4
2
19
8
5
3
3
3
20
10
7
5
2
19
9
6
4
5
2
21
8
5
4
3
3
20
10
7
5
6
2
20
10
6
5
4
3
3
21
10
7
5...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2129 queries.

Test #236:

score: 0
Accepted
time: 21ms
memory: 3596kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
5
3
3
3
11
7
5
5
2
10
6
4
4
2
2
11
6
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
6
3
3
16
9
5
5
2
15
8
6
5
2
17
8
7
4
2
17
10
7
4
2
19
11
6
4
2
19
11
6
4
3
3
20
12
7
5
2
19
11
6
4
5
2
21
11
6
5
4
2
21
13
7
3
3
3
22
12
7
6
5
2
21
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2091 queries.

Test #237:

score: 0
Accepted
time: 23ms
memory: 3824kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
3
3
9
7
5
2
10
5
3
3
3
9
8
5
2
10
7
5
2
10
7
5
4
2
13
5
2
2
2
10
7
5
4
2
13
7
4
4
2
13
9
4
4
2
15
9
4
4
2
15
7
5
3
3
3
16
9
5
5
2
15
8
6
5
2
17
8
7
4
2
16
9
6
4
3
3
18
9
8
5
2
17
10
5
5
2
2
17
8
7
5
2
17
9
6
3
3
3
18
9
8
6
2
17
10
7
4
4
4
19
10
9
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2078 queries.

Test #238:

score: 0
Accepted
time: 7ms
memory: 3668kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
4
2
18
10
6
4
4
2
20
10
6
3
3
3
19
11
7
5
5
2
20
8
4
4
2
2
18
11
6
4
4
2
20
11
6
4
4
2
19
12
6
4
3
3
21
12
7
5
5
2
20
13
6
4
5
2
22
13
6
4
4
4
22
15
8
6
6
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2111 queries.

Test #239:

score: 0
Accepted
time: 18ms
memory: 3656kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
10
6
4
4
2
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
13
8
5
3
3
3
15
9
5
5
2
14
8
4
2
2
2
14
8
5
4
2
14
6
6
2
2
14
8
5
4
2
14
8
7
4
2
16
9
6
4
2
16
11
6
4
2
18
11
6
4
2
17
9
6
3
3
3
19
11
7
4
4
4
18
13
8
6
2
18
11
6
6
2
18
11
6
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2131 queries.

Test #240:

score: 0
Accepted
time: 12ms
memory: 3544kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
8
4
4
2
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
3
3
3
13
9
5
5
2
14
8
4
5
2
14
7
6
3
3
15
9
5
6
2
14
8
7
5
1
13
7
3
1
1
1
13
7
6
4
2
16
8
8
3
2
15
10
5
4
3
3
17
9
9
4
2
16
11
6
5
2
18
12
6
4
2
18
12
6
4
4
2
20
11
7
4
4
2
20
14
6
4
4
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2122 queries.

Test #241:

score: 0
Accepted
time: 10ms
memory: 3892kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
15
10
5
4
3
3
15
9
7
5
2
16
8
6
5
2
14
10
4
2
2
2
16
8
6
5
2
16
8
6
4
2
2
16
8
6
5
2
16
9
6
3
3
3
17
9
7
6
3
17
11
8
6
2
18
10
8
5
2
18
10
8
5
4
2
20
11
8
4
4
2
20
14
7
4
4
2
20
12
8
4
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2043 queries.

Test #242:

score: 0
Accepted
time: 25ms
memory: 3824kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
3
3
7
5
5
2
8
4
5
2
8
7
4
2
10
7
4
2
10
7
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
6
4
2
17
8
6
4
2
15
10
5
5
2
2
17
8
6
4
2
17
10
6
4
2
17
8
6
4
2
2
17
10
6
4
2
18
9
6
3
3
3
18
11
7
5
2
19
10
4
4
2
2
17
10
6
5
2
17
10
5
5
2
2
17
10
6
5
2
19
10
7
4
2
19
10
7
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2136 queries.

Test #243:

score: 0
Accepted
time: 15ms
memory: 3592kb

input:

200
2
3
5
2
4
5
1
6
3
2
7
4
3
2
9
3
4
2
9
5
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
12
8
4
4
2
14
8
4
4
2
14
8
6
4
2
16
8
6
4
2
16
10
6
4
2
18
10
6
3
3
17
11
7
5
2
18
8
4
4
2
2
16
11
6
4
2
18
11
6
4
2
18
11
6
4
4
2
18
10
7
7
2
2
18
11
6
4
4
2
20
11
6
4
4
2
20
13
6
4
4
2
23
12
6
4
4
2
21
12
6
4
2
2
2
23
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2044 queries.

Test #244:

score: 0
Accepted
time: 17ms
memory: 3660kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
9
5
3
3
3
11
7
5
2
10
6
4
5
2
12
6
5
4
2
12
9
4
4
2
14
9
4
4
2
14
8
6
3
3
3
15
10
5
5
2
14
8
7
3
3
15
11
5
5
2
14
10
6
5
2
16
8
8
2
2
14
10
6
5
2
16
10
7
4
2
16
11
7
5
4
4
18
11
9
6
3
17
11
8
5
4
4
18
11
11
6
1
15
12
6
5
2
17
8
6
4
2
2
15
13
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2121 queries.

Test #245:

score: 0
Accepted
time: 15ms
memory: 3600kb

input:

200
3
2
5
2
5
4
2
7
4
2
7
4
4
2
9
4
4
2
9
6
4
2
11
6
4
2
11
6
4
4
2
13
6
4
4
2
13
8
2
2
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
6
4
2
17
8
6
4
2
17
9
6
3
3
3
18
9
7
5
2
17
10
6
5
2
19
10
7
4
2
19
10
6
4
4
4
21
12
8
6
2
18
10
6
4
4
4
22
12
8
6
2
20
10
6
4
6
2
21
13
9
7
5
5
5
21
13
9
7
9
2
20
10
6
6
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2116 queries.

Test #246:

score: 0
Accepted
time: 24ms
memory: 3836kb

input:

200
2
2
4
2
4
4
2
4
2
2
2
4
4
3
7
5
2
6
4
5
2
8
5
4
2
6
4
4
2
2
8
5
4
2
8
7
4
2
11
6
4
2
11
6
4
4
2
13
6
4
4
2
13
8
4
4
2
15
8
4
4
2
15
8
6
4
2
17
8
6
4
2
16
11
5
3
3
3
18
7
5
3
3
3
16
9
7
5
2
17
8
6
2
2
15
8
6
4
2
17
8
6
4
2
17
10
6
4
2
19
10
6
4
2
17
11
6
4
2
2
19
9
6
3
3
3
18
11
7
5
2
19
10
6
5
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2141 queries.

Test #247:

score: 0
Accepted
time: 12ms
memory: 3664kb

input:

200
2
2
4
2
4
4
2
6
4
2
6
4
4
2
8
4
4
2
8
6
4
2
10
6
4
2
10
6
4
4
2
12
6
4
4
2
11
7
5
3
3
3
13
7
5
5
2
12
8
4
5
2
14
8
5
4
2
14
8
7
4
2
16
9
6
4
2
16
11
4
2
2
2
16
9
6
4
2
16
11
6
4
2
18
11
6
4
2
17
9
5
3
3
3
19
12
7
5
1
17
10
5
3
4
2
19
11
8
4
3
3
18
12
7
5
6
2
19
11
6
5
5
2
19
13
7
5
4
2
22
12
8
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2081 queries.