QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#805056#9783. Duloc Networkucup-team902#AC ✓15ms3900kbC++201.7kb2024-12-08 12:33:462024-12-08 12:33:46

Judging History

你现在查看的是最新测评结果

  • [2024-12-08 12:33:46]
  • 评测
  • 测评结果:AC
  • 用时:15ms
  • 内存:3900kb
  • [2024-12-08 12:33:46]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
const int maxn = 205;
int deg[maxn];
int n;
string pre;
vector<int> un[maxn], bel, cand;
int query(vector<int> x) {
    string now = pre;
    for (int v : x) now[v - 1] = '1';
    cout << "? " << now << endl;
    int res;
    cin >> res;
    return res;
}
void solve(int rt, vector<int> now) {
    int degnow = deg[rt];
    for (int v : now) degnow += deg[v];
    vector<int> nowpos;
    for (int x : now)
        for (int v : un[x]) nowpos.push_back(v);
    nowpos.push_back(rt);
    int res = query(nowpos);
    if (degnow == res) return;
    if (now.size() == 1) {
        bel.push_back(now[0]);
        return;
    }
    vector<int> ls, rs;
    int len = now.size();
    for (int i = 0; i < len / 2; ++i) ls.push_back(now[i]);
    for (int i = len / 2; i < len; ++i) rs.push_back(now[i]);
    solve(rt, ls);
    solve(rt, rs);
}
void solve() {
    cin >> n;
    pre = "\0";
    for (int i = 1; i <= n; ++i) pre = pre + "0";
    for (int i = 1; i <= n; ++i) {
        deg[i] = query({i});
        bel.clear();
        cand.clear();
        for (int j = 1; j < i; ++j) {
            if (un[j].size()) {
                cand.push_back(j);
            }
        }
        solve(i, cand);
        for (int x : bel) {
            for (int v : un[x]) un[i].push_back(v);
            un[x].clear();
        }
        un[i].push_back(i);
        deg[i] = query(un[i]);
    }
    if ((int)un[n].size() == n) {
        cout << "! 1" << endl;
        return;
    }
    cout << "! 0" << endl;
    return;
}
int main() {
    int T = 1;
    // cin >> T;
    while (T--) solve();
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
1
1
1
3
2
2
2
1
1
2
0
0

output:

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

result:

ok Correct answer with 12 queries.

Test #2:

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

input:

2
0
0
0
0
0
0

output:

? 10
? 10
? 10
? 01
? 11
? 01
! 0

result:

ok Correct answer with 6 queries.

Test #3:

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

input:

4
1
1
1
3
2
2
2
1
1
2
0
0

output:

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

result:

ok Correct answer with 12 queries.

Test #4:

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

input:

2
0
0
0
0
0
0

output:

? 10
? 10
? 10
? 01
? 11
? 01
! 0

result:

ok Correct answer with 6 queries.

Test #5:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 010000000000000000000000000000000...

result:

ok Correct answer with 364 queries.

Test #6:

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

input:

50
10
10
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
1...

output:

? 10000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 110000000000000000000000000000000...

result:

ok Correct answer with 150 queries.

Test #7:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 010000000000000000000000000000000...

result:

ok Correct answer with 396 queries.

Test #8:

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

input:

50
2
2
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...

output:

? 10000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 110000000000000000000000000000000...

result:

ok Correct answer with 150 queries.

Test #9:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 010000000000000000000000000000000...

result:

ok Correct answer with 380 queries.

Test #10:

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

input:

100
1
1
1
2
3
2
1
4
1
1
5
1
1
6
1
1
7
1
1
6
5
2
2
1
2
0
0
1
7
1
3
10
3
3
13
3
1
14
1
1
15
1
2
16
7
5
4
2
4
11
2
3
16
8
11
10
4
4
3
4
2
2
4
19
9
14
10
4
10
8
4
1
20
1
2
22
2
2
21
10
13
5
3
4
10
7
4
5
5
6
2
23
2
1
22
7
3
2
2
1
2
5
16
1
2
24
2
2
24
10
16
7
11
8
6
4
5
6
1
25
1
2
25
10
17
9
10
3
3
2
9
2
...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 934 queries.

Test #11:

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

input:

100
11
11
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
...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 300 queries.

Test #12:

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

input:

100
5
5
5
3
8
3
3
11
3
4
14
8
10
8
2
16
2
2
18
2
2
19
8
13
9
6
9
8
24
14
18
8
18
10
16
16
4
28
4
5
29
9
8
6
25
5
25
6
4
30
21
7
18
13
7
10
21
4
31
5
30
9
25
10
2
32
23
11
11
2
32
22
12
32
3
34
34
4
36
36
6
37
37
5
38
38
1
39
1
4
39
38
5
38
3
41
4
40
40
3
42
4
41
41
2
44
2
5
46
6
45
43
7
43
5
47
6
46...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 360 queries.

Test #13:

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

input:

100
1
1
1
1
2
1
1
3
1
3
6
3
1
7
1
1
8
1
3
11
3
1
12
1
4
14
10
8
6
6
5
5
5
1
15
1
2
17
2
3
20
3
4
22
11
15
9
3
10
10
3
1
23
1
1
24
1
2
26
2
4
29
17
16
9
4
9
11
4
1
30
1
3
31
16
18
10
8
5
6
2
11
2
2
32
15
19
11
10
7
3
6
5
3
1
32
14
19
10
10
6
5
2
4
2
3
35
3
2
37
2
4
39
17
10
11
4
3
5
11
26
3
1
38
16
7...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 924 queries.

Test #14:

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

input:

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

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 974 queries.

Test #15:

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

input:

150
4
4
4
2
6
2
3
9
3
2
11
2
2
13
2
3
16
3
2
18
2
4
22
4
3
24
13
9
7
6
4
14
4
3
26
14
15
7
5
5
11
5
4
28
14
10
8
7
5
18
9
6
7
13
8
2
30
2
2
29
12
7
5
4
7
19
11
10
8
4
11
4
32
11
25
12
7
9
17
7
6
37
13
30
13
23
17
12
12
1
38
1
3
41
3
2
42
14
30
15
17
13
6
13
3
41
15
29
12
5
10
20
10
5
46
5
3
47
17
33...

output:

? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 816 queries.

Test #16:

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

input:

150
4
4
4
2
6
2
2
8
2
1
9
1
2
11
2
1
12
1
1
13
1
8
20
15
11
12
13
11
1
21
1
2
23
2
1
24
1
3
26
11
18
15
6
4
5
4
4
4
4
28
12
20
16
8
5
7
5
6
6
2
27
10
19
14
7
3
6
3
5
5
1
28
1
4
31
11
7
6
5
8
24
5
3
33
10
26
15
13
5
14
13
2
35
2
1
34
7
4
1
4
4
28
1
4
38
4
3
41
3
1
41
13
29
19
2
18
6
13
11
13
1
42
1
4...

output:

? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 814 queries.

Test #17:

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

input:

150
3
3
3
1
4
1
4
8
4
1
9
1
4
13
4
2
15
2
3
18
3
1
17
9
9
6
4
1
4
1
1
18
1
3
21
3
1
22
1
1
23
1
4
27
4
5
29
20
13
12
6
11
8
8
14
10
9
4
10
7
7
32
17
11
13
9
11
22
11
7
11
18
8
17
11
13
15
1
33
1
2
33
11
24
6
20
6
16
15
3
15
1
34
1
2
36
2
3
38
14
7
5
5
10
27
5
4
39
14
29
22
8
18
5
17
11
5
10
6
8
21
2...

output:

? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1356 queries.

Test #18:

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

input:

150
4
4
4
4
8
4
5
13
5
4
17
4
2
17
10
9
5
6
5
2
19
2
5
24
5
3
26
15
14
7
10
7
1
27
1
4
29
16
17
10
6
8
11
10
5
14
2
31
2
2
32
13
6
9
6
5
21
5
3
34
12
6
9
25
6
1
35
1
1
34
20
7
14
2
13
15
13
2
36
2
2
38
2
3
41
3
3
43
16
9
10
4
9
5
7
30
7
3
45
18
30
18
4
17
15
5
15
15
8
48
23
33
12
9
11
10
9
29
11
26
...

output:

? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1146 queries.

Test #19:

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

input:

150
2
2
2
1
3
1
1
4
1
3
7
3
2
9
2
2
11
2
2
13
2
1
14
1
1
13
8
6
3
3
1
4
1
1
14
1
1
13
6
4
3
2
2
8
2
1
14
1
2
16
2
2
18
2
2
19
10
6
6
4
4
3
3
11
3
1
20
1
1
20
8
4
2
3
5
13
2
3
22
9
7
5
4
4
4
3
16
3
3
23
10
7
6
4
5
4
4
16
8
11
7
7
5
5
6
2
25
2
2
26
8
5
2
5
5
20
2
1
26
9
18
6
3
4
3
2
13
3
2
28
2
1
28
1...

output:

? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1432 queries.

Test #20:

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

input:

200
1
1
1
3
4
3
1
5
1
3
8
3
3
9
5
4
4
7
4
1
10
1
1
11
1
1
12
1
1
13
1
1
14
1
2
16
2
1
17
1
3
19
12
5
10
6
7
6
4
10
6
2
21
2
2
23
2
1
24
1
1
25
1
3
28
3
1
29
1
2
30
11
8
5
3
3
2
4
21
2
1
29
10
5
3
3
2
2
6
20
2
1
30
1
1
31
1
1
32
1
2
32
19
15
8
5
5
3
4
3
3
9
3
2
34
2
1
35
1
1
36
1
1
37
1
2
39
2
1
38
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2242 queries.

Test #21:

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

input:

200
3
3
3
2
5
2
2
7
2
2
9
2
2
11
2
2
13
2
1
14
1
1
15
1
1
16
1
4
20
4
2
20
12
7
7
3
6
10
5
7
3
6
3
5
6
1
20
10
11
3
3
1
9
1
2
22
2
2
24
2
2
26
2
2
28
2
1
29
1
1
30
1
2
32
2
1
33
1
1
34
1
3
37
3
1
38
1
1
39
1
2
41
2
2
43
2
2
44
26
20
10
6
3
5
6
12
3
3
46
27
22
11
14
8
9
4
8
4
1
47
1
2
49
2
1
49
26
12...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2074 queries.

Test #22:

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

input:

200
1
1
1
2
3
2
1
4
1
1
5
1
1
6
1
3
9
3
1
10
1
1
11
1
2
13
2
1
13
6
8
5
4
1
4
1
2
15
2
3
18
3
2
19
8
13
7
4
5
8
4
3
22
3
1
23
1
3
26
3
2
28
2
1
29
1
3
31
13
21
14
7
4
6
10
10
4
1
32
1
2
34
2
3
35
16
22
14
11
6
8
7
4
2
5
2
1
36
1
1
37
1
1
36
16
5
2
2
1
4
12
21
1
2
38
2
2
40
2
1
40
19
6
14
7
8
4
5
22
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2008 queries.

Test #23:

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

input:

200
1
1
1
1
2
1
1
3
1
1
4
1
1
5
1
2
7
2
3
10
3
2
12
2
1
13
1
1
14
1
4
18
4
1
19
1
2
21
2
2
22
9
15
8
9
6
2
6
5
2
3
22
8
4
2
5
7
17
8
6
5
4
4
12
3
2
24
2
3
25
12
16
9
10
5
3
5
8
3
1
26
1
2
26
12
16
9
9
7
4
5
1
1
1
27
1
2
28
11
5
8
5
5
5
2
19
2
2
30
2
3
32
17
18
13
8
4
3
4
7
3
2
34
2
1
35
1
3
37
18
7
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1794 queries.

Test #24:

score: 0
Accepted
time: 2ms
memory: 3704kb

input:

200
1
1
1
3
4
3
2
6
2
2
8
2
3
11
3
3
14
3
2
16
2
2
18
2
2
20
2
2
22
2
3
25
3
2
26
12
6
8
4
6
4
4
16
4
1
26
11
5
7
3
5
2
4
16
2
1
26
11
5
7
3
5
3
3
16
3
4
29
14
19
10
5
9
13
5
4
32
14
22
13
13
6
11
7
8
8
3
35
3
4
38
15
10
9
6
7
5
6
27
5
4
41
17
28
12
8
8
5
7
20
5
3
42
14
9
8
5
6
3
6
31
3
3
44
18
29
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1114 queries.

Test #25:

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

input:

200
6
6
6
6
11
11
5
16
5
5
21
5
3
24
3
3
26
18
14
7
11
7
1
27
1
3
30
3
2
32
2
4
33
23
14
10
9
5
8
6
6
11
6
39
6
4
42
23
23
7
20
14
10
14
5
46
23
16
12
10
7
28
7
5
50
21
15
11
34
15
3
53
3
7
55
20
13
14
8
13
42
27
20
14
22
19
10
33
5
56
17
44
12
37
8
34
34
3
57
14
7
10
46
9
40
13
7
60
14
53
10
50
39
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 826 queries.

Test #26:

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

input:

200
2
2
2
9
11
9
4
13
6
11
11
4
15
6
13
13
6
21
6
4
25
4
2
27
2
3
29
18
14
8
9
8
4
33
4
5
34
22
7
20
16
9
17
7
15
11
9
22
5
39
5
4
42
12
34
7
31
7
5
44
12
7
10
8
7
37
27
15
10
10
13
7
51
7
6
53
28
7
27
8
25
31
26
3
56
3
3
57
23
37
10
30
29
4
4
5
60
24
7
22
10
17
41
12
34
30
9
42
3
61
10
54
10
47
7
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1344 queries.

Test #27:

score: 0
Accepted
time: 2ms
memory: 3716kb

input:

200
4
4
4
3
7
3
3
8
7
4
4
1
9
1
5
14
5
5
19
5
4
23
4
1
24
1
1
25
1
4
29
4
5
32
18
12
9
8
11
19
14
10
6
9
6
8
11
2
33
17
18
7
13
3
12
12
2
33
17
18
7
13
3
12
12
2
34
17
19
7
14
3
13
13
1
35
1
5
40
5
3
42
22
23
5
21
15
9
15
5
46
24
27
7
25
6
24
9
20
9
4
49
23
30
6
28
5
27
18
13
18
2
50
20
6
6
2
16
32
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1482 queries.

Test #28:

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

input:

200
6
6
6
1
7
1
8
15
8
4
17
10
11
5
10
10
8
24
13
19
13
7
30
8
29
16
20
16
3
33
3
6
39
6
3
41
16
4
15
28
15
2
43
2
6
48
26
28
11
23
11
4
51
24
31
18
17
18
10
56
27
11
26
23
13
39
12
37
21
26
39
6
60
10
56
8
54
17
43
43
6
65
10
61
8
59
17
48
48
7
68
11
64
9
62
18
51
51
1
69
1
3
70
7
4
6
6
3
66
3
9
72...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1228 queries.

Test #29:

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

input:

200
7
7
7
4
11
4
6
17
6
3
18
8
13
8
4
21
8
17
10
11
11
2
23
2
3
25
12
6
9
16
6
3
28
3
1
29
1
9
37
27
14
22
19
14
4
41
4
6
47
6
2
47
23
15
10
8
4
26
17
11
6
7
9
4
49
23
30
17
5
16
17
16
7
52
23
17
13
9
11
36
11
7
11
32
21
3
54
9
48
12
39
18
24
18
4
58
4
4
57
19
42
22
24
20
8
38
3
56
9
50
12
41
7
37
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 730 queries.

Test #30:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1972 queries.

Test #31:

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

input:

200
1
1
1
1
2
1
2
4
2
3
7
3
1
8
1
1
9
1
1
10
1
3
13
3
2
15
2
1
16
1
1
17
1
2
19
2
1
20
1
2
20
11
11
6
1
7
7
1
3
21
10
5
4
4
4
3
8
14
3
3
24
3
1
25
1
3
26
13
8
8
5
6
6
3
16
3
1
27
1
1
28
1
2
30
2
2
32
2
3
35
3
1
36
1
1
35
16
20
10
5
6
2
5
11
2
2
34
16
9
9
5
4
3
6
20
11
11
7
6
5
3
3
2
4
2
36
2
4
40
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1880 queries.

Test #32:

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

input:

200
1
1
1
2
3
2
4
7
4
1
8
1
2
10
2
3
13
3
3
16
3
1
17
1
1
18
1
4
20
12
12
9
7
7
4
3
5
3
2
21
10
13
7
8
4
6
4
3
24
3
2
26
2
4
29
14
19
11
12
8
8
7
5
5
2
31
2
2
33
2
3
34
16
21
9
4
8
4
7
15
4
2
35
15
22
10
14
8
7
3
8
3
1
36
1
3
37
15
8
2
9
10
25
2
1
37
17
8
10
6
5
2
4
21
4
2
38
17
8
4
6
5
3
11
23
5
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1936 queries.

Test #33:

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

input:

200
1
1
1
1
2
1
3
5
3
3
8
3
3
11
3
1
12
1
3
15
3
3
18
3
2
20
2
1
21
1
1
22
1
5
26
15
6
6
5
14
16
5
3
29
3
3
32
3
1
33
1
1
34
1
1
35
1
1
36
1
3
38
22
19
12
4
3
4
11
10
3
3
38
22
19
14
8
4
7
9
8
5
6
2
7
6
1
39
1
1
40
1
2
42
2
2
43
22
23
10
7
5
4
5
15
4
1
44
1
1
44
23
12
12
7
6
3
4
2
3
22
3
2
45
22
13
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1990 queries.

Test #34:

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

input:

200
2
2
2
1
3
1
2
5
2
2
7
2
2
9
2
3
12
3
3
15
3
3
18
3
1
19
1
1
20
1
1
21
1
3
24
3
3
27
3
1
28
1
1
29
1
2
31
2
2
31
18
7
5
4
4
2
13
15
2
1
32
1
2
34
2
2
36
2
3
38
21
20
12
11
6
5
4
8
4
3
39
21
21
12
12
6
9
5
7
5
5
5
1
38
19
20
10
11
2
1
2
10
1
2
39
20
21
11
12
5
9
4
7
6
3
6
1
39
19
21
9
4
2
3
6
13
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2046 queries.

Test #35:

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

input:

200
3
3
3
3
6
3
2
8
2
2
9
5
6
4
4
4
3
12
3
2
14
2
2
15
7
10
5
7
5
3
15
6
6
3
12
5
10
5
2
14
7
9
4
7
4
3
13
7
5
5
9
5
7
7
2
14
3
13
3
3
14
7
10
7
6
7
1
13
3
11
3
3
12
5
10
7
6
9
2
12
5
9
9
2
11
3
10
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
3
2
5
2
2
7
2
3
8
4
3
4
7
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1486 queries.

Test #36:

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

input:

200
1
1
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
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1090 queries.

Test #37:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
1
13
1
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
35
2
2
37
2
2
39
2
2
41
2
2
40
18
10
6
6
4
4
4
2
10
4
3
3
8
24
3
2
40
21
21
10
6
6
2
6
13
2
2
42
2
2
42
19
9
6
5
4
3
2
3
12
25
2
2
42
21
23
10
4
4
2
8
15
2
2
43
21
24
11
6
7
4
5
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2026 queries.

Test #38:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
1
13
1
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
35
2
2
37
2
2
39
2
2
41
2
2
40
18
10
6
6
4
4
4
2
10
4
3
3
8
24
3
2
40
21
21
10
6
6
2
6
13
2
2
42
2
2
42
19
9
6
5
4
3
2
3
12
25
2
2
42
21
23
10
4
4
2
8
15
2
2
43
21
24
11
6
7
4
5
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2070 queries.

Test #39:

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

input:

200
3
3
3
1
4
1
2
6
2
1
7
1
1
8
1
2
10
2
2
12
2
1
13
1
2
14
9
7
4
2
4
5
2
1
15
1
1
16
1
1
17
1
2
19
2
3
22
3
3
25
3
1
24
13
12
5
8
2
2
1
7
1
2
25
13
7
5
4
3
3
8
14
3
1
26
1
2
28
2
1
29
1
2
31
2
1
32
1
3
34
17
20
13
6
3
6
10
10
3
1
35
1
1
36
1
2
38
2
2
40
2
2
42
2
1
43
1
1
44
1
2
44
26
20
12
10
6
6
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2050 queries.

Test #40:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1754 queries.

Test #41:

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

input:

200
3
3
3
2
5
2
1
6
1
2
8
2
4
12
4
3
15
3
2
17
2
1
17
7
11
6
3
4
6
4
1
18
1
2
19
9
7
4
2
4
12
2
2
21
2
1
22
1
2
24
2
6
30
6
2
32
2
1
33
1
1
33
17
8
10
6
5
5
1
17
1
1
34
1
1
35
1
2
37
2
3
40
3
1
41
1
3
44
3
1
44
23
12
6
7
3
5
4
2
12
22
2
1
45
1
2
47
2
2
49
2
1
50
1
3
52
33
22
12
13
9
7
5
5
5
3
3
2
53...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1954 queries.

Test #42:

score: 0
Accepted
time: 2ms
memory: 3760kb

input:

200
4
4
4
4
8
4
1
9
1
1
10
1
3
13
3
2
14
10
6
2
6
2
2
16
2
2
18
2
3
21
3
2
23
2
1
24
1
1
25
1
3
28
3
2
28
16
9
6
5
4
3
9
14
4
3
31
3
1
30
13
9
5
1
5
18
1
2
32
2
2
34
2
2
34
17
8
4
6
11
19
4
2
34
16
20
13
9
5
6
4
4
4
1
33
13
7
7
4
1
4
4
21
1
5
38
5
2
39
18
23
11
8
6
4
5
14
4
4
40
20
24
12
9
7
6
5
16
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1844 queries.

Test #43:

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

input:

200
1
1
1
1
1
1
2
3
2
3
6
3
2
8
2
2
10
2
2
12
2
3
15
3
2
16
8
10
6
6
3
5
3
2
18
2
3
20
11
12
8
7
6
4
4
4
22
10
7
7
7
4
16
4
1
23
1
4
25
10
5
5
4
9
19
4
3
26
12
17
8
4
7
12
4
2
28
2
1
28
14
15
6
10
4
7
4
1
28
14
15
5
5
1
11
1
3
31
3
4
35
4
1
36
1
2
37
18
8
12
5
9
5
6
21
5
3
37
20
20
7
5
5
7
1
16
1
3
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2014 queries.

Test #44:

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

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
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 600 queries.

Test #45:

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

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
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 624 queries.

Test #46:

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

input:

200
16
16
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
12
15
149
139
25
25
14
161
138
37
37
20
179
144
55
55
9
186
133
62
62
1
185
123
63
123
1
184
63
122
122
1
183
63
121
121
1
182
61
122
61
1
181
120
62
120
1
180
62
119
119
1
179
62
118
118
1
178
60
119
60
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 980 queries.

Test #47:

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

input:

200
15
15
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
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 600 queries.

Test #48:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
16
8
6
4
4
2
10
2
2
16
8
4
4
2
6
10
2
2
18
2
2
20
2
2
22
2
2
22
10
6
6
2
6
14
2
2
22
12
12
8
6
2
6
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
34
16
8
4
2
4
6
10
20
2
2
34
18
18
10
10
6
6
4
4
2
4
2
2
35
18
19
9
6
5
4
3
12
3
2
37
2
2
39
2
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1922 queries.

Test #49:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
17
10
9
6
5
4
3
3
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
33
19
16
10
8
4
4
2
6
2
2
35
2
2
37
2
2
39
2
2
40
20
10
12
5
3
4
9
22
3
2
40
21
21
10
6
6
4
4
2
4
13
2
2
42
2
2
44
2
2
45
23
24
12
14
8
4
6
4
4
8
4
2
46
22
12
12
7
7
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2008 queries.

Test #50:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
1
23
1
2
25
2
2
25
12
6
4
4
2
4
8
15
2
2
25
14
13
6
4
4
4
2
9
2
2
27
2
2
29
2
2
31
2
2
31
16
10
8
6
4
4
2
17
2
2
33
2
2
35
2
2
36
19
19
10
11
6
7
4
5
3
4
3
2
37
19
20
10
12
6
8
4
6
3
5
3
2
39
2
2
41
2
2
43
2
2
45
2
2
47
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2060 queries.

Test #51:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
20
10
6
6
4
4
4
2
12
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
34
16
10
8
4
4
2
6
20
2
2
36
2
2
38
2
2
40
2
2
42
2
2
42
21
12
11
6
7
4
5
4
3
23
12
13
7
4
5
3
4
8
4
2
44
2
2
44
20
12
10
4
2
4
8
26
2
2
46
2
2
48
2
2
48
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1970 queries.

Test #52:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
24
14
12
6
2
6
8
2
2
25
13
8
7
4
5
4
3
14
3
2
25
14
13
8
7
2
7
2
2
25
12
6
2
6
8
15
2
2
27
2
2
29
2
2
31
2
2
33
2
2
33
18
17
11
8
4
4
2
6
2
2
35
2
2
37
2
2
39
2
2
40
19
9
5
3
4
6
12
23
3
2
42
2
2
44
2
2
44
22
11
6
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1902 queries.

Test #53:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
16
10
8
6
4
4
2
2
2
18
2
2
20
2
2
21
11
6
7
4
5
3
4
12
3
2
23
2
2
25
2
2
27
2
2
28
13
8
7
3
6
17
3
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
40
2
2
42
2
2
41
20
11
5
4
3
8
11
6
7
2
7
23
3
2
43
2
2
44
22
12
12
7
7
3
6
24
3
2
46
2
2
48
2
2
50
2
2
52...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1958 queries.

Test #54:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
15
7
4
5
4
3
10
3
2
15
6
2
6
11
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
28
15
15
7
4
5
3
4
10
3
2
30
2
2
31
17
16
8
10
5
4
3
7
3
2
32
17
17
8
11
6
3
5
7
3
2
34
2
2
35
16
7
4
5
4
3
11
21
3
2
37
2
2
38
19
21
12
11
6
4
4
7
4
2
40
2
2
42
2
2
42
19...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1976 queries.

Test #55:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
10
6
6
4
4
4
2
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
22
12
12
6
2
6
8
2
2
24
2
2
24
14
12
6
2
6
8
2
2
25
14
13
7
4
5
4
3
8
3
2
27
2
2
28
14
16
7
4
5
4
3
11
3
2
29
14
17
7
3
6
12
3
2
29
12
6
2
6
8
19
2
2
31
2
2
32
15
8
9
5
3
4
6
19
3
2
34
2
2
36
2
2
38
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1944 queries.

Test #56:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
14
8
8
4
2
4
6
2
2
16
2
2
16
8
6
4
2
4
10
2
2
16
8
4
4
2
6
10
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
26
14
14
8
8
4
4
2
6
2
2
28
2
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
40
2
2
42
2
2
44
2
2
44
24
22
10
6
6
4
4
2
4
14
2
2
44
24
22
12
12
6
4
4
4
2
8
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1920 queries.

Test #57:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1940 queries.

Test #58:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
9
6
5
4
3
3
2
10
6
6
4
4
4
3
13
3
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
35
2
2
37
2
2
38
20
11
6
7
4
5
11
20
5
2
38
18
11
9
5
4
3
6
22
9
5
3
4
6
15
4
2
40
2
2
42
2
2
44
2
1
45
1
2
46
22
12
6
8
4
6
5
3
12
26
3
2
48
2
2
50
2
2
49
25
26
15...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1962 queries.

Test #59:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
23
11
6
7
4
5
4
3
14
3
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
35
2
2
37
2
2
39
2
2
40
20
22
12
7
7
3
6
12
3
2
42
2
2
44
2
2
45
21
11
6
7
3
6
12
26
3
2
47
2
2
48
24
11
5
3
4
8
15
26
3
2
48
25
25
12
15
9
8
5
5
4
3
3
2
48
23
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1948 queries.

Test #60:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
16
8
6
4
4
2
10
2
2
16
10
8
6
4
2
4
2
2
18
2
2
20
2
2
22
2
2
24
2
2
24
14
12
8
6
4
4
2
4
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
36
2
2
37
20
19
9
5
3
4
6
12
3
2
39
2
2
38
17
7
5
3
4
4
2
4
12
23
3
2
40
2
2
42
2
2
44
2
2
46
2
2
45
24
23
13
12
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1988 queries.

Test #61:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
8
6
4
2
4
2
2
10
2
2
11
6
7
4
5
3
4
3
2
13
2
2
15
2
2
17
2
2
19
2
2
20
9
5
3
4
6
13
3
2
20
9
4
4
2
7
13
2
2
20
11
11
4
4
2
9
2
2
22
2
2
23
13
12
7
7
4
5
3
4
3
2
24
13
13
7
8
3
7
3
2
26
2
2
28
2
2
28
13
9
6
4
4
4
2
17
2
2
30
2
2
31
15
8
4
6
3
5
9
18
3
2
33
2
2
35
2
2
37
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1962 queries.

Test #62:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
26
12
8
6
4
4
4
2
16
2
2
27
14
15
7
3
6
10
3
2
27
14
15
6
4
4
2
4
11
2
2
29
2
2
31
2
2
32
15
8
9
6
5
4
3
19
3
2
34
2
2
35
17
9
5
3
4
6
10
20
3
2
35
18
19
9
5
2
5
6
12
2
2
37
2
2
37
18
21
9
5
5
2
6
14
2
2
37
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1900 queries.

Test #63:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
29
14
8
8
4
2
4
6
17
9
6
5
4
3
10
3
2
31
2
2
33
2
2
35
2
2
37
2
2
36
19
10
11
5
4
3
8
19
8
4
4
2
6
13
3
2
38
2
2
40
2
2
39
18
10
10
6
6
4
4
2
4
23
13
12
6
8
4
6
4
2
41
2
2
40
20
22
13
11
6
7
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1984 queries.

Test #64:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
12
6
4
4
4
2
8
2
2
14
2
2
15
8
9
6
5
4
3
3
2
15
6
4
4
4
2
11
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
30
16
7
4
5
4
3
11
16
3
2
32
2
2
34
2
2
36
2
2
38
2
2
39
20
9
6
5
3
4
13
21
3
2
41
2
2
41
21
22
13
11
4
2
4
9
2
2
43
2
2
45
2
2
47
2
2
49
2
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1982 queries.

Test #65:

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

input:

200
2
2
2
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
1
15
1
2
17
2
2
17
8
6
4
2
4
11
2
2
18
9
6
5
3
4
11
3
2
20
2
2
20
10
5
3
4
7
4
5
3
4
12
4
2
22
2
2
24
2
2
26
2
2
28
2
2
29
12
7
4
5
3
4
7
19
3
2
31
2
2
33
2
2
35
2
2
37
2
2
39
2
2
39
20
7
6
3
1
4
15
21
1
2
41
2
2
41
23
20
13
9
4
4
2
7
2
2
42
23
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1996 queries.

Test #66:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
1
17
1
2
19
2
2
21
2
2
21
10
6
6
4
4
2
4
13
2
2
23
2
2
25
2
2
26
13
7
4
5
3
4
8
15
3
2
27
13
8
7
3
6
16
3
2
28
13
17
7
3
6
12
3
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
38
17
10
9
5
6
4
4
4
2
23
2
2
40
2
2
40
19
23
15
10
4
2
4
8
2
2
42
2
2
42
20
12...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1904 queries.

Test #67:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
1
15
1
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
33
17
18
8
4
4
2
6
12
2
2
35
2
2
37
2
2
38
19
21
12
11
6
7
4
5
4
3
3
2
38
19
21
10
6
6
4
4
4
2
13
2
2
40
2
2
42
2
2
42
21
23
12
13
7
4
5
2
5
8
2
2
44
2
2
44
21
12
11
5
4
3
4
1
8
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1928 queries.

Test #68:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
10
6
6
4
4
2
4
2
2
12
2
2
13
8
7
4
5
3
4
3
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
25
15
12
8
6
4
4
4
2
2
2
25
15
12
8
6
4
4
2
4
2
2
27
2
2
28
14
8
8
4
6
4
4
16
4
2
30
2
2
32
2
3
34
16
8
4
7
11
21
4
2
36
2
2
38
2
2
40
2
2
42
2
2
44
2
2
46
2
2
48
2
2
49
24
27
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2018 queries.

Test #69:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
15
7
3
6
10
3
2
17
2
2
18
9
6
5
4
3
11
3
2
20
2
2
22
2
2
24
2
2
25
12
15
9
5
6
4
4
8
4
2
27
2
2
29
2
2
29
15
16
6
2
6
12
2
2
31
2
2
32
17
17
10
9
5
3
4
6
3
2
34
2
2
34
15
8
9
4
2
4
7
21
2
2
36
2
2
36
19
19
10
6
6
2
6
11
2
2
38
2
2
40
2
2
39
21
8
6
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1954 queries.

Test #70:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
23
12
13
8
7
4
5
4
3
3
2
25
2
2
27
2
2
28
13
8
7
3
6
17
3
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
38
20
20
12
10
6
6
4
4
4
2
2
2
40
2
2
42
2
2
44
2
2
46
2
2
48
2
2
47
23
10
4
4
2
8
15
26
14
9
7
4
5
3
4
14
3
2
49
2
2
51
2
2
5...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1904 queries.

Test #71:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
34
16
10
8
6
4
2
4
20
2
2
36
2
2
38
2
2
40
2
2
42
2
2
42
22
22
12
12
6
4
4
2
4
8
2
2
42
22
22
10
6
6
4
4
4
2
14
2
2
43
21
12
11
6
7
3
6
24
3
2
45
2
2
46
24
24
12
14
7
4
5
3
4
9
3
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1960 queries.

Test #72:

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

input:

200
2
2
2
2
3
3
2
5
2
2
7
2
2
9
2
2
11
2
2
12
6
4
4
8
4
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
30
16
8
10
6
4
4
6
16
4
2
32
2
2
32
14
8
8
6
4
4
2
20
2
2
34
2
2
36
2
2
38
2
2
38
20
20
12
10
4
2
4
8
2
2
38
18
10
10
4
4
2
8
22
2
2
40
2
2
41
19
10
11
6
7
4
5
4
3
24
3
2
42
19
9
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2022 queries.

Test #73:

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

input:

200
2
2
2
2
4
2
2
4
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
12
8
6
4
4
2
4
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
32
16
8
4
2
4
6
10
18
2
2
32
18
16
10
8
6
4
2
4
2
2
34
2
2
34
18
18
10
10
4
4
2
8
2
2
34
18
18
8
6
4
2
4
12
2
2
36
2
2
36
18
10
10
6
6
2
6
20
2
2
38
2
2
40
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1908 queries.

Test #74:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
19
9
6
5
4
3
12
3
2
19
8
6
4
2
4
13
2
2
21
2
2
23
2
2
25
2
2
27
2
2
27
12
6
4
4
4
2
8
17
2
2
27
12
6
4
4
4
2
8
17
2
2
29
2
2
31
2
2
33
2
2
35
2
2
37
2
2
38
20
9
5
3
4
6
13
20
3
2
40
2
2
41
21
22
11
6
7
4
5
3
4
13
3
2
43
2
2
43
23
22
10...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1944 queries.

Test #75:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
16
8
6
4
4
2
10
2
2
18
2
2
20
2
2
21
12
11
5
4
3
8
3
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
35
2
2
37
2
2
37
20
19
11
10
6
6
4
4
2
4
2
2
39
2
2
41
2
2
43
2
2
45
2
2
45
25
22
12
12
6
4
4
4
2
8
2
2
45
25
22
10
6
6
2
6
14
2
2
46
25
23
12
13...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1946 queries.

Test #76:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
17
9
6
5
4
3
10
3
2
19
2
2
21
2
2
21
12
11
6
7
5
4
2
4
2
2
23
2
2
25
2
2
27
2
2
27
12
6
2
6
8
17
2
2
29
2
3
32
3
2
34
2
2
35
19
18
9
6
5
3
4
11
3
2
37
2
2
39
2
2
39
21
20
10
12
7
7
5
4
2
4
2
2
41
2
2
43
2
2
44
22
11
6
7
4
5
4
3
13
24
3
2
46
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2064 queries.

Test #77:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
13
8
7
3
6
3
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
31
17
16
8
4
2
4
6
10
2
2
33
2
2
35
2
2
34
16
10
8
7
3
2
3
20
3
2
36
2
2
38
2
2
40
2
2
42
2
2
44
2
2
46
2
2
47
25
24
13
13
7
3
6
8
3
2
49
2
2
50
24
12
14
9
7
4
5
4
3
28
3
2
52
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2020 queries.

Test #78:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
31
16
17
9
6
5
3
4
10
3
2
33
2
2
35
2
2
37
2
2
39
2
2
40
19
9
5
3
4
6
12
23
3
2
42
2
2
43
22
23
12
5
3
4
9
13
3
2
44
22
24
13
13
5
4
3
10
3
2
46
2
2
48
2
2
50
2
2
50
22
12
12
8
6
2
6
30
2
2
52
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1958 queries.

Test #79:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
18
10
10
6
6
4
4
4
2
2
2
20
2
2
20
10
6
6
2
6
12
2
2
22
2
2
23
11
5
4
3
8
14
3
2
25
2
2
27
2
2
29
2
2
31
2
2
31
16
17
9
4
4
2
7
10
2
2
31
16
17
11
8
4
4
2
6
2
2
33
2
2
35
2
2
35
18
19
11
10
6
6
4
4
2
4
2
2
37
2
2
37
20
19
9
5
5
2
6
12
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1938 queries.

Test #80:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
19
9
6
5
3
4
12
3
2
21
2
2
23
2
2
25
2
2
25
12
8
6
4
4
4
2
15
2
2
27
2
2
29
2
2
31
2
2
31
16
17
11
8
6
4
4
2
2
2
31
16
17
11
8
6
4
2
4
2
2
33
2
1
33
17
9
9
4
2
3
6
17
2
2
35
2
2
37
2
2
39
2
2
41
2
2
42
23
21
12
11
6
7
4
5
4
3
3
2
42
23...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1982 queries.

Test #81:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
21
11
6
7
3
6
12
3
2
23
2
2
25
2
2
27
2
2
27
12
6
2
6
8
17
2
2
29
2
2
31
2
2
31
16
17
11
8
6
4
4
2
2
2
33
2
2
35
2
2
37
2
2
39
2
2
41
2
2
43
2
2
43
21
10
6
6
4
4
4
2
13
24
2
2
45
2
2
47
2
2
47
25
24
14
12
8
6
4
4
2
4
2
2
49
2
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1988 queries.

Test #82:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
23
12
13
8
7
4
5
3
4
3
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
33
18
17
9
6
5
3
4
10
3
2
35
2
2
34
18
18
10
10
4
2
4
8
3
7
3
2
36
2
2
37
17
10
9
6
5
4
3
22
3
2
39
2
2
41
2
2
43
2
2
43
22
23
12
6
8
3
7
13
3
2
43
22
23
13
12
5...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1958 queries.

Test #83:

score: 0
Accepted
time: 2ms
memory: 3776kb

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
28
14
8
8
6
4
2
4
16
2
2
30
2
2
32
2
2
32
16
8
4
4
2
6
10
18
2
2
34
2
2
36
2
2
38
2
2
40
2
2
40
20
10
6
6
2
6
12
22
2
2
42
2
2
44
2
2
45
23
11
5
3
4
8
14
24
3
2
46
23
11
5
4
3
8
14
25
3
2
48
2
2
49
23...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2038 queries.

Test #84:

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

input:

200
1
1
1
2
3
2
2
5
2
2
7
2
2
9
2
2
11
2
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
21
11
12
8
6
2
6
2
2
23
2
2
25
2
2
25
13
14
8
8
6
4
2
4
2
2
27
2
2
29
2
2
31
2
2
31
15
9
8
6
4
4
2
18
2
2
33
2
2
35
2
2
37
2
2
39
2
2
39
21
20
10
4
2
4
8
12
2
2
41
2
2
43
2
2
45
2
2
45
21
11
12
6
4
4
2
4
8
26
2
2
47
2
2
47...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1960 queries.

Test #85:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
17
9
5
4
3
6
10
3
2
17
8
4
4
2
6
11
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
29
15
6
4
4
4
2
11
16
2
2
29
17
14
6
2
6
10
2
2
31
2
2
31
17
16
8
6
4
2
4
10
2
2
33
2
2
35
2
2
36
18
10
10
7
5
3
4
20
3
2
38
2
2
40
2
2
42
2
2
44
2
2
44
23
23
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1982 queries.

Test #86:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
20
10
6
6
4
4
4
2
12
2
2
20
12
10
6
6
2
6
2
2
22
2
2
23
11
6
7
3
6
14
3
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
33
16
10
8
4
4
2
6
19
2
2
35
2
2
37
2
2
38
20
20
11
11
6
7
4
5
4
3
3
2
38
20
20
11
11
4
4
2
9
2
2
40
2
2
40
20
22
13
11...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1962 queries.

Test #87:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
23
12
13
8
7
4
5
3
4
3
2
25
2
2
27
2
2
27
12
8
6
2
6
17
2
2
29
2
2
30
15
7
3
6
10
17
3
2
29
15
7
4
5
4
3
10
16
9
9
6
5
4
3
4
2
31
2
2
33
2
2
34
16
20
10
7
5
4
3
12
3
2
35
16
21
10
6
4
4
6
13
4
2
37
2
2
39
2
2
40
18
24
11
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1966 queries.

Test #88:

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

input:

200
2
2
2
2
4
2
2
5
4
3
3
2
7
2
2
9
2
2
8
4
4
2
6
2
2
10
2
2
12
2
2
14
2
2
15
7
4
5
4
3
10
3
2
17
2
2
19
2
2
21
2
2
23
2
2
23
10
6
6
2
6
15
2
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
33
19
16
8
6
4
2
4
10
2
2
35
2
2
37
2
2
39
2
2
41
2
2
40
23
19
11
5
4
3
8
10
4
2
4
8
3
2
42
2
2
44
2
2
45
22
12
12
6
5
3
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1926 queries.

Test #89:

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

input:

200
2
2
2
2
4
2
2
6
2
2
7
4
5
4
3
3
2
9
2
2
11
2
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
27
15
14
6
4
4
2
4
10
2
2
29
2
2
29
17
14
8
8
4
2
4
6
2
2
29
17
14
6
4
4
4
2
10
2
2
30
16
9
9
5
3
4
6
16
3
2
32
2
2
34
2
2
36
2
2
38
2
2
39
21
20
10
12
7
7
3
6
3
2
41
2
2
43
2
2
42
20
10
6
6
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1964 queries.

Test #90:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
28
16
14
8
8
6
4
2
4
2
2
30
2
2
32
2
2
34
2
2
36
2
2
37
19
10
11
5
4
3
8
20
3
2
39
2
2
41
2
2
43
2
1
44
1
2
46
2
2
46
22
10
4
2
4
8
14
26
2
2
46
22
12
12
6
2
6
8
26
2
2
48
2
2
49
25
14
13
8
7
4
5
4
3
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1992 queries.

Test #91:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
1
23
1
2
25
2
2
25
12
8
6
2
6
15
2
2
27
2
2
28
15
8
9
5
3
4
6
15
3
2
27
16
13
4
2
4
4
2
11
2
2
28
13
7
4
5
3
4
8
17
3
2
30
2
2
32
2
2
32
16
18
11
9
7
4
4
2
2
2
34
2
2
36
2
2
38
2
2
39
19
10
11
5
3
4
8
22
3
2
41
2
2
43
2
2
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1898 queries.

Test #92:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
12
6
2
6
8
2
2
14
2
2
16
2
2
17
10
9
6
5
3
4
3
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
27
14
15
9
8
4
4
2
6
2
1
28
1
2
30
2
2
32
2
2
34
2
2
36
2
2
36
21
17
8
4
2
4
6
11
2
2
38
2
2
40
2
2
40
21
12
11
6
7
5
4
2
4
21
2
2
40
21
10
6
6
4
4
4
2
13
21
2
2
41
23
20
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1942 queries.

Test #93:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
12
6
4
4
2
4
8
2
2
14
2
2
16
2
2
16
8
4
2
4
6
10
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
29
16
15
8
9
6
5
4
3
3
2
31
2
2
33
2
2
35
2
2
36
17
10
9
5
4
3
6
21
3
2
37
17
9
5
4
3
6
10
22
3
2
37
18
21
11
12
4
4
2
10
2
2
39
2
2
41
2
2
43
2
2
43
20
12
10
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1898 queries.

Test #94:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
11
5
2
5
3
4
8
3
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
22
13
11
5
3
4
8
3
2
24
2
2
26
2
2
26
13
6
2
6
9
15
2
2
28
2
2
30
2
2
30
17
15
7
4
5
3
4
10
3
2
30
17
15
8
9
6
5
4
3
3
2
30
15
6
4
4
4
2
11
17
2
2
32
2
2
32
15
9
8
6
4
2
4
19
2
2
34
2
2
36
2
2
37
19
20
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1932 queries.

Test #95:

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

input:

200
2
2
2
1
3
1
2
5
2
2
7
2
2
9
2
2
11
2
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
22
10
5
7
3
6
14
3
2
22
11
13
6
4
4
2
4
9
2
2
24
2
2
26
2
2
28
2
2
28
15
15
9
8
6
4
2
4
2
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
40
2
2
42
2
2
42
20
11
11
6
7
4
5
2
5
24
2
2
44
2
2
45
23
11
14
8
8
5
5
3
4
24
3
2
46
23
11
14
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1972 queries.

Test #96:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
12
8
6
4
4
2
4
2
2
14
2
2
16
2
2
16
8
6
4
2
4
10
2
2
18
2
2
20
2
2
22
2
2
24
2
2
24
14
12
8
6
2
6
2
2
25
14
13
8
7
3
6
3
2
25
12
8
6
4
4
4
2
15
2
2
25
14
13
8
7
4
5
3
4
3
2
27
2
2
29
2
2
30
15
8
9
6
5
3
4
17
3
2
32
2
2
33
15
8
9
6
5
4
3
20
3
2
35
2
2
37
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1922 queries.

Test #97:

score: 0
Accepted
time: 2ms
memory: 3776kb

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
8
4
4
2
6
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
27
14
15
8
9
5
4
3
6
3
2
29
2
2
30
15
8
9
6
5
4
3
17
3
2
31
15
7
4
5
4
3
10
18
3
2
33
2
2
32
16
18
11
9
7
4
2
4
2
2
31
14
6
4
4
4
2
10
19
11
10
7
5
4
3
3
2
33
2
2
35
2
2
37
2
2
39
2
2
40
19
9
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1896 queries.

Test #98:

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

input:

200
14
14
14
17
31
17
17
45
31
31
31
15
56
28
43
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...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 604 queries.

Test #99:

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

input:

200
96
96
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...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 600 queries.

Test #100:

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

input:

200
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
67
67...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 798 queries.

Test #101:

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

input:

200
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
67
67...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 798 queries.

Test #102:

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

input:

200
100
100
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...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 600 queries.

Test #103:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
15
7
3
6
10
3
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
35
2
2
37
2
2
39
2
2
41
2
2
42
23
21
11
6
7
4
5
3
4
12
3
2
43
23
22
11
6
7
4
5
4
3
13
3
2
43
23
22
10
6
6
4
4
2
4
14
2
2
45
2
2
47
2
2
49
2
2
49
25
26
14
14
8
3
7
8
3
2
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2038 queries.

Test #104:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
15
8
9
5
4
3
6
3
2
17
2
2
19
2
3
22
3
2
24
2
2
24
12
14
7
2
7
9
2
2
26
2
2
27
15
14
9
7
4
5
4
3
3
2
27
13
6
4
4
2
4
9
16
2
2
29
2
2
28
12
8
6
4
4
2
4
18
2
2
30
2
2
31
16
8
10
5
4
3
7
17
3
2
33
2
2
33
15
8
9
4
2
4
7
20
2
2
35
2
2
37
2
2
39
2
2
41
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1826 queries.

Test #105:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
27
14
15
8
9
6
5
4
3
3
2
29
2
2
31
2
2
30
15
8
9
5
3
4
6
17
10
9
7
4
2
4
3
2
32
2
2
32
16
18
8
4
4
2
6
12
2
2
34
2
2
35
17
10
9
5
3
4
6
20
3
2
37
2
2
37
16
10
8
4
4
2
6
23
2
2
37
18
21
10
5
3
4
7
13
3
2
38
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1936 queries.

Test #106:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1942 queries.

Test #107:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
1
27
1
2
28
15
8
9
5
3
4
6
15
3
2
28
16
14
6
4
4
4
2
10
2
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
3
39
21
21
13
11
5
3
5
9
3
2
39
18
10
10
6
6
2
6
23
2
2
41
2
2
42
22
22
11
6
7
4
5
4
3
13
3
2
42
22
22
12
12
7
7
4
5...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1960 queries.

Test #108:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
9
6
5
4
3
3
2
11
2
2
12
5
3
4
9
3
2
13
6
9
5
6
4
4
4
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
23
13
6
9
5
6
4
4
12
4
2
25
2
2
27
2
2
29
2
2
31
2
2
31
17
16
8
2
8
10
2
2
33
2
2
35
2
2
37
2
2
39
2
2
41
2
2
43
2
2
45
2
2
46
24
13
13
6
9
4
7
5
4
24
5
2
48
2
2
49
24
12
5
3
4
9
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1844 queries.

Test #109:

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

input:

200
2
2
2
2
4
2
2
4
4
2
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
24
12
6
2
6
8
14
2
2
24
14
12
8
6
2
6
2
2
26
2
2
28
2
2
30
2
2
32
2
3
35
3
2
37
2
2
39
2
2
41
2
2
41
20
12
10
4
2
4
8
23
2
2
43
2
2
45
2
2
47
2
2
49
2
2
49
24
12
6
4
4
2
4
8
14
27
2
2
49
24
14
12
6
4
4
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1928 queries.

Test #110:

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

input:

200
2
2
2
1
3
1
2
5
2
2
7
2
2
9
2
2
11
2
2
13
2
2
15
2
2
16
9
9
5
3
4
6
3
2
18
2
2
20
2
2
20
9
5
6
4
4
2
4
13
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
31
15
7
10
5
4
3
7
18
3
2
33
2
2
35
2
2
36
18
20
9
5
4
3
6
13
3
2
38
2
2
40
2
2
40
20
22
11
6
7
4
5
4
3
13
3
3
41
21
23
11
7
7
5
5
5
3
15
3
2
43
2
2
44...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1752 queries.

Test #111:

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

input:

200
1
1
1
2
3
2
2
5
2
2
7
2
2
9
2
2
11
2
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
24
13
13
8
7
4
5
4
3
3
2
25
13
14
7
4
5
3
4
9
3
2
27
2
2
28
12
7
7
4
5
4
3
18
3
2
28
11
7
6
2
6
19
2
2
30
2
2
32
2
2
32
13
5
1
6
10
21
1
2
34
2
2
36
2
2
36
19
19
10
7
5
5
2
11
2
2
38
2
2
40
2
2
42
2
2
44
2
2
46
2
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1928 queries.

Test #112:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
11
5
3
4
8
3
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
22
10
6
6
4
4
4
2
14
2
2
22
10
6
6
4
4
4
2
14
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
34
18
18
8
5
4
3
5
3
4
12
4
2
36
2
2
38
2
2
40
2
2
42
2
2
44
2
2
46
2
2
48
2
2
48
24
26
14
6
2
6
10
14
2
2
50
2
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2016 queries.

Test #113:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
21
11
5
4
3
8
12
3
2
22
12
12
6
8
4
6
3
5
3
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
40
2
2
41
21
22
13
11
6
7
4
5
4
3
3
2
42
20
9
6
5
4
3
13
24
3
2
42
22
22
10
6
6
4
4
4
2
14
2
2
42
22
22
10
4
2
4
8
14
2
2
44
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1954 queries.

Test #114:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
14
6
2
6
10
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
24
12
6
4
4
4
2
8
14
2
2
26
2
2
28
2
2
30
2
2
32
2
2
32
16
8
4
4
2
6
10
18
2
2
34
2
2
36
2
2
38
2
2
38
20
20
12
10
4
4
2
8
2
2
39
20
21
11
6
7
4
5
4
3
12
3
2
40
19
10
11
6
7
3
6
23
3
2
41
20
23
12
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1998 queries.

Test #115:

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

input:

200
2
2
2
2
4
2
2
6
2
1
7
1
2
9
2
2
11
2
1
12
1
2
14
2
2
16
2
2
18
2
2
19
10
5
3
4
7
11
3
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
30
13
6
3
5
9
19
3
2
32
2
2
34
2
2
36
2
2
36
17
9
10
3
3
2
9
21
2
2
36
17
7
5
4
2
4
12
21
2
2
36
19
19
9
6
5
2
5
12
2
2
36
17
8
11
6
7
3
6
21
3
2
38
2
2
40
2
2
40
18
8
5
5
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1972 queries.

Test #116:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
9
5
3
4
6
3
2
11
2
2
13
2
2
15
2
2
17
2
2
19
2
2
19
11
10
6
6
4
4
4
2
2
2
21
2
2
23
2
2
25
2
2
27
2
2
28
14
8
8
5
5
4
3
16
3
2
28
13
8
7
5
4
2
4
17
2
2
30
2
2
32
2
2
32
15
8
9
7
4
4
2
19
2
2
34
2
2
35
18
11
9
5
4
3
6
19
3
2
34
19
17
11
8
6
4
4
2
2
2
36
2
2
38
2
2
40
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2026 queries.

Test #117:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
12
6
4
4
2
4
8
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
22
10
4
4
2
8
14
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
40
2
2
41
22
21
11
5
4
3
8
12
3
2
43
2
2
45
2
2
44
24
22
12
12
6
4
4
4
2
8
5
5
3
4
3
2
46
2
2
47
24
25
11
6
7
4
5
4
3
16
3
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1978 queries.

Test #118:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
15
8
9
6
5
4
3
3
2
16
7
4
5
4
3
11
3
2
18
2
2
20
2
2
22
2
2
24
2
2
24
12
14
9
5
6
4
4
7
4
5
3
4
5
2
24
12
14
7
9
4
7
2
7
2
2
26
2
2
26
12
16
7
3
6
11
3
2
27
11
6
7
4
5
3
4
18
3
2
29
2
2
31
2
2
33
2
1
34
1
2
36
2
2
38
2
2
40
2
2
42
2
2
44
2
2
46
2
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1894 queries.

Test #119:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
26
14
14
6
4
4
4
2
10
2
2
28
2
2
29
15
7
3
6
10
16
3
2
31
2
2
33
2
2
35
2
2
37
2
2
39
2
2
41
2
2
43
2
2
44
21
12
11
6
7
4
5
3
4
25
3
2
45
21
11
6
7
4
5
3
4
12
26
3
2
45
20
12
10
6
6
2
6
27
2
2
45
22
25
11
7
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1926 queries.

Test #120:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
19
9
5
3
4
6
12
3
2
21
2
2
23
2
2
23
12
13
8
7
5
4
4
2
2
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
35
2
2
37
2
2
39
2
2
40
20
9
5
4
3
6
13
22
3
2
42
2
2
44
2
2
45
22
12
12
5
3
4
9
25
3
2
47
2
2
49
2
2
50
24
12
14
9
7
4
5
4
3
28
3
2
52
2
2
5...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1952 queries.

Test #121:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
13
8
7
4
5
4
3
3
2
15
2
2
17
2
2
19
2
2
20
9
6
5
4
3
13
3
2
22
2
1
23
1
2
23
11
6
7
4
5
2
5
14
2
2
24
12
6
8
4
6
5
3
14
3
2
26
2
2
28
2
2
30
2
2
31
17
7
4
5
4
3
12
16
3
2
33
2
2
33
18
17
8
5
5
5
2
11
2
2
35
2
2
36
18
11
9
7
4
3
3
20
3
2
38
2
2
40
2
2
42
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1932 queries.

Test #122:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
13
7
4
5
4
3
8
3
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
24
11
6
7
3
6
15
3
2
25
13
14
8
8
4
6
4
4
4
2
27
2
2
29
2
2
31
2
2
33
2
2
35
2
2
37
2
2
37
19
20
10
4
4
2
8
12
2
2
39
2
2
39
19
10
11
5
3
4
8
22
3
2
41
2
2
43
2
2
42
21
12
11
6
7
4
5
3
4
23
3
2
44
2
2
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1974 queries.

Test #123:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
25
14
13
8
7
4
5
4
3
3
2
24
13
8
7
3
6
13
8
7
4
5
4
3
4
2
26
2
2
28
2
2
28
14
16
8
10
6
4
4
6
4
2
30
2
2
32
2
2
34
2
2
36
2
1
37
1
2
39
2
2
39
20
21
14
9
6
5
2
5
2
2
41
2
2
41
20
10
6
6
4
4
4
2
12
23
2
2
43
2
2
44
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1882 queries.

Test #124:

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

input:

200
2
2
2
2
4
2
2
6
2
3
9
3
2
11
2
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
23
13
12
8
6
2
6
2
2
25
2
2
25
13
6
4
4
4
2
9
14
2
2
27
2
2
27
13
9
6
4
4
2
4
16
2
2
28
14
8
4
6
4
4
8
16
4
2
29
13
7
4
5
3
4
8
18
3
2
29
14
17
8
11
4
2
4
9
2
2
31
2
2
31
14
8
8
6
4
4
2
19
2
2
33
2
2
35
2
2
37
2
2
38
17
9...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1866 queries.

Test #125:

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

input:

200
2
2
2
2
4
2
2
6
2
2
6
4
4
2
4
2
2
8
2
2
10
2
2
12
2
3
15
3
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
31
17
16
10
8
6
4
2
4
2
3
33
17
9
11
6
5
4
8
19
4
2
34
16
8
10
5
3
4
7
20
3
2
36
2
2
38
2
2
40
2
2
42
2
2
42
19
8
6
4
2
4
13
25
2
2
44
2
2
45
22
12
6
8
4
6
4
4
12
25
4
2
46
21
11
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1906 queries.

Test #126:

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

input:

200
2
2
2
3
4
4
2
6
2
2
8
2
2
8
6
4
4
2
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
29
15
9
6
5
4
3
8
16
3
2
29
16
15
6
4
4
4
2
11
2
2
31
2
2
33
2
2
35
2
2
37
2
2
36
20
18
8
5
4
3
5
2
5
12
3
2
38
2
2
38
20
20
11
11
4
4
2
9
2
2
40
2
2
42
2
2
44
2
2
46
2
2
46
25
23
11
4
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1936 queries.

Test #127:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
16
8
4
4
2
6
10
2
2
16
10
8
4
4
2
6
2
2
18
2
2
20
2
2
22
2
2
23
12
13
7
4
5
4
3
8
3
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
34
17
9
5
4
3
6
10
19
3
2
34
16
8
6
4
2
4
10
20
2
2
36
2
2
38
2
2
39
20
10
12
5
3
4
9
21
3
2
41
2
2
42
20
10
12
6
8
3
7
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1954 queries.

Test #128:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
11
6
7
4
5
4
3
3
2
13
2
2
15
2
2
17
2
2
19
2
3
21
10
7
6
5
4
14
4
2
23
2
2
24
12
6
8
4
6
4
4
14
4
2
26
2
2
28
2
2
30
2
2
30
14
18
10
10
6
4
4
6
4
2
32
2
2
34
2
2
36
2
2
35
20
17
10
9
5
3
4
6
3
2
36
19
10
11
5
3
4
8
19
3
2
35
17
7
5
3
4
4
4
2
12
20
3
2
37
2
2
39
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1938 queries.

Test #129:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
3
21
13
11
7
7
3
7
3
2
23
2
2
25
2
2
26
13
7
4
5
3
4
8
15
3
2
28
2
2
28
12
8
6
4
4
4
2
18
2
2
29
13
8
7
3
6
18
3
2
30
14
18
8
4
6
12
4
2
32
2
2
34
2
2
35
16
21
11
12
9
5
4
3
3
2
37
2
2
39
2
2
41
2
2
43
2
2
45
2
2
47
2
2
49
2
2
51
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1816 queries.

Test #130:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
24
12
8
6
2
6
14
2
2
26
2
2
28
2
2
28
16
14
8
8
4
2
4
6
2
2
30
2
2
32
2
2
34
2
2
36
2
2
36
20
18
8
4
4
2
6
12
2
2
35
17
9
5
3
4
6
10
6
6
4
4
4
2
20
3
2
35
18
19
8
4
2
4
6
13
2
2
37
2
2
37
18
8
6
4
2
4
12
21
2
2
39
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2030 queries.

Test #131:

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

input:

200
2
2
2
2
4
2
2
6
2
2
6
4
4
4
2
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
35
18
19
10
11
6
7
4
5
4
3
3
2
37
2
2
37
18
8
4
2
4
6
12
21
2
2
39
2
2
39
20
21
12
11
7
6
4
4
4
2
2
2
39
20
21
12
11
7
6
4
4
2
4
2
2
39
18
8
6
4
4
2
12
23
2
2
40
20
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1940 queries.

Test #132:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
10
6
6
4
4
4
2
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
22
12
12
8
6
4
4
2
4
2
2
24
2
2
26
2
2
28
2
2
30
2
2
30
14
8
8
6
4
4
2
18
2
2
32
2
2
34
2
1
35
1
2
37
2
2
39
2
2
41
2
2
42
22
22
11
6
7
4
5
4
3
13
3
2
41
20
12
10
6
6
4
4
4
2
23
11
6
7
4
5
3
4
14
3
2
42...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1982 queries.

Test #133:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
15
8
9
6
5
4
3
3
2
17
2
2
17
8
6
4
4
2
11
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
29
17
14
6
2
6
10
2
2
29
15
6
4
4
4
2
11
16
2
2
31
2
2
33
2
2
34
18
9
5
4
3
6
11
18
3
2
36
2
2
38
2
2
40
2
2
42
2
2
43
23
22
12
12
7
7
4
5
3
4
3
2
43
23
22
12
12...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2012 queries.

Test #134:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
1
15
1
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
32
16
9
5
3
4
6
9
18
3
2
34
2
2
36
2
2
38
2
2
40
2
2
40
21
21
10
5
3
4
7
3
6
13
4
2
41
19
24
13
13
6
9
3
8
3
2
42
19
25
13
14
5
3
4
11
3
2
44
2
2
44
21
25
11
6
7
4
5
5
2
16
2
2
44
21
25
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2008 queries.

Test #135:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
13
8
7
4
5
4
3
3
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
24
11
5
3
4
8
15
3
1
25
1
2
27
2
2
27
15
14
8
8
7
3
3
2
2
2
27
13
8
7
4
5
5
2
16
2
2
29
2
2
31
2
2
33
2
2
33
19
16
10
8
4
4
2
6
2
2
35
2
2
37
2
2
39
2
2
41
2
2
43
2
2
43
24
21
11
12
8
6
4
4
2
4
2
2
45
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2034 queries.

Test #136:

score: 0
Accepted
time: 2ms
memory: 3744kb

input:

200
2
2
2
2
4
2
2
4
4
2
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
23
11
5
4
3
8
14
3
2
25
2
2
26
13
7
4
5
4
3
8
15
3
2
28
2
2
30
2
2
32
2
2
31
13
8
7
5
3
4
4
2
4
20
3
2
31
14
8
8
6
4
2
4
19
2
2
31
17
16
7
4
5
3
4
11
3
2
33
2
2
34
16
8
10
5
3
4
7
20
3
2
36
2
2
38
2
2
40
2
2
42
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1988 queries.

Test #137:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
29
15
7
4
5
4
3
10
16
3
2
31
2
2
33
2
2
35
2
2
37
2
2
39
2
2
41
2
2
43
2
2
44
21
11
5
4
3
8
12
25
3
2
46
2
2
46
22
12
12
8
6
2
6
26
2
2
48
2
2
50
2
2
52
2
2
54
2
2
53
28
13
7
3
6
8
17
27
14
15
7
3
6
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2004 queries.

Test #138:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
33
17
9
5
4
3
6
10
18
3
2
35
2
2
34
18
18
10
10
6
6
4
4
2
4
2
2
36
2
2
38
2
2
40
2
2
41
22
21
11
6
7
4
5
3
4
12
3
2
41
20
10
4
2
4
8
12
23
2
2
41
20
10
4
4
2
8
12
23
2
2
43
2
2
45
2
1
46...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1936 queries.

Test #139:

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

input:

200
2
2
2
2
4
2
2
6
2
3
9
3
2
11
2
2
13
2
2
13
8
7
5
4
4
2
2
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
25
15
12
8
6
2
6
2
2
27
2
2
27
15
14
8
8
6
4
2
4
2
2
29
2
2
31
2
2
33
2
2
35
2
2
37
2
2
39
2
2
39
21
20
12
10
6
6
2
6
2
2
39
21
20
12
10
6
6
2
6
2
2
41
2
2
41
21
13
10
4
4
2
8
22
2
2
41
23
20
12
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1970 queries.

Test #140:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
3
25
3
2
26
13
8
7
3
6
15
3
2
27
13
7
4
5
3
4
8
16
3
2
29
2
2
29
12
8
6
4
4
4
2
19
2
2
31
2
2
33
2
2
35
2
2
37
2
2
38
18
22
12
8
6
4
4
12
4
2
39
17
10
9
6
5
3
4
24
3
2
41
2
2
41
20
10
12
6
8
4
6
3
5
23
3
2
43
2
3
45
22
26
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1980 queries.

Test #141:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
20
12
10
6
6
4
4
2
4
2
2
22
2
2
24
2
2
25
13
7
4
5
3
4
8
14
3
2
27
2
2
29
2
2
31
2
2
33
2
2
34
17
9
6
5
3
4
10
19
3
2
36
2
2
35
18
19
8
6
4
2
4
13
2
2
35
18
19
10
11
6
7
5
4
2
4
2
2
37
2
2
39
2
2
41
2
3
42
21
13
11
5
5
3
9
24
3
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1906 queries.

Test #142:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
21
12
11
6
7
4
5
3
4
3
2
23
2
2
25
2
2
27
2
2
29
2
2
29
14
6
4
4
4
2
10
17
2
2
31
2
2
33
2
2
34
18
18
11
9
6
5
4
3
3
2
36
2
2
38
2
2
40
2
2
40
19
10
11
6
7
2
7
23
2
2
41
20
10
12
6
8
3
7
23
3
2
42
20
9
6
5
3
4
13
24
3
2
43
21
24...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1900 queries.

Test #143:

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

input:

200
2
2
2
2
4
2
2
6
2
2
6
4
4
2
4
2
2
8
2
2
10
2
2
12
2
2
12
8
6
4
4
2
4
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
22
12
12
8
6
2
6
2
2
24
2
2
25
14
13
8
7
3
6
3
2
27
2
2
29
2
2
31
2
2
33
2
2
35
2
2
37
2
3
40
3
2
39
19
9
5
3
4
6
12
22
11
4
2
4
9
13
3
2
41
2
2
41
18
10
10
4
4
2
8
25
2
2
43
2
2
45
2
2
47...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2042 queries.

Test #144:

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

input:

200
2
2
2
3
3
3
2
5
2
2
7
2
2
9
2
2
11
2
2
13
2
2
13
7
3
6
8
3
2
15
2
2
15
8
9
6
5
3
4
3
2
17
2
2
19
2
2
20
10
12
6
8
4
6
4
2
20
8
4
2
4
6
14
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
39
22
19
10
11
6
7
3
6
3
2
41
2
2
43
2
2
44
24
22
12
12
6
8
4
6
4
2
45
24
23
11
6
7
4
5
4
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1900 queries.

Test #145:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
20
12
10
6
6
2
6
2
2
22
2
2
24
2
2
24
14
12
6
2
6
8
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
3
36
18
10
7
6
5
4
11
21
4
2
38
2
2
40
2
2
42
2
2
44
2
2
43
19
10
6
6
4
4
2
4
11
5
4
3
8
26
3
2
45
2
2
46
22
26
14
14
7
4
5
4
3
9
3
2
48
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2008 queries.

Test #146:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
17
10
9
5
3
4
6
3
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
33
17
8
6
4
4
2
11
18
2
2
34
19
17
10
9
6
5
4
3
3
2
36
2
2
37
19
20
10
12
5
4
3
9
3
2
37
17
10
9
4
2
4
7
22
2
2
39
2
2
41
2
2
42
21
23
12
6
8
4
6
4
4
13
4
2
44
2
2
45...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1924 queries.

Test #147:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
31
16
17
10
9
5
3
4
6
3
2
33
2
2
35
2
2
36
18
20
10
12
6
8
4
6
4
3
39
3
2
39
20
21
8
6
4
4
2
15
2
2
39
18
10
10
6
6
2
6
23
2
2
41
2
2
43
2
2
45
2
2
47
2
2
47
24
25
15
12
6
4
4
2
4
8
2
2
49
2
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1888 queries.

Test #148:

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

input:

200
2
2
2
3
5
3
2
7
2
2
7
4
5
5
2
2
2
9
2
2
11
2
2
13
2
2
15
2
2
17
2
2
19
2
1
20
1
2
22
2
2
22
11
7
6
4
4
4
2
13
2
2
24
2
2
26
2
2
28
2
2
29
16
9
9
5
4
3
6
15
3
2
31
2
2
30
17
15
7
5
4
4
2
10
5
4
3
7
3
2
32
2
2
34
2
2
34
16
11
7
4
4
2
5
20
2
2
36
2
2
38
2
2
38
20
20
10
5
2
5
7
12
2
2
40
2
2
40
18
9...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1944 queries.

Test #149:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
12
6
2
6
8
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
22
10
6
6
4
4
4
2
14
2
2
22
12
12
6
4
4
4
2
8
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
40
2
2
42
2
2
44
2
2
44
24
22
10
6
6
2
6
14
2
2
44
24
22
10
4
2
4
8
14
2
2
45
24
23
11
6
7
3
6
14
3
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1968 queries.

Test #150:

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

input:

200
2
2
2
3
5
3
2
7
2
2
9
2
2
11
2
2
13
2
2
15
2
2
17
2
2
19
2
2
19
9
7
4
4
2
12
2
2
21
2
2
23
2
2
23
13
12
6
4
4
2
4
8
2
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
34
18
11
9
6
5
3
4
18
3
2
36
2
2
37
18
10
7
5
4
3
10
21
3
2
37
17
9
7
4
2
4
10
22
2
2
39
2
2
41
2
2
41
21
22
13
11
7
6
4
4
4
2
2
2
43
2
2
45
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1936 queries.

Test #151:

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

input:

200
2
2
2
2
4
2
2
6
2
2
6
4
4
2
4
2
2
8
2
2
10
2
2
12
2
2
13
8
7
3
6
3
3
15
8
4
7
10
4
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
31
19
14
6
2
6
10
2
2
30
18
8
12
7
7
5
4
14
8
8
6
4
4
2
5
1
31
1
2
33
2
2
35
2
2
37
2
2
39
2
2
41
2
2
43
2
2
45
2
2
47
2
2
49
2
2
51
2
2
53
2
2
53
27
28
16...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1854 queries.

Test #152:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
9
6
5
2
5
3
4
3
2
11
2
2
13
2
1
14
1
2
15
8
9
6
5
3
5
3
2
17
2
2
19
2
2
21
2
2
23
2
2
23
11
6
7
4
5
5
2
14
2
2
25
2
2
27
2
2
29
2
2
31
2
2
31
17
16
8
6
4
4
2
10
2
2
33
2
2
35
2
2
37
2
2
39
2
2
41
2
2
41
21
10
4
4
2
8
13
22
2
2
41
23
20
12
10
6
6
4
4
4
2
2
2
42
22...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1980 queries.

Test #153:

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

input:

200
1
1
1
2
3
2
2
5
2
2
7
2
2
9
2
3
12
3
2
14
2
2
16
2
2
18
2
2
19
9
12
6
4
4
8
4
3
22
3
2
24
2
2
24
9
3
1
4
8
17
1
2
26
2
2
28
2
2
30
2
2
30
14
6
4
4
2
4
10
18
2
2
32
2
2
33
17
7
3
6
12
18
3
3
33
17
9
11
7
7
4
6
19
4
2
35
2
2
37
2
2
38
17
9
5
4
3
6
10
23
3
2
40
2
2
42
2
2
43
19
10
11
7
6
2
6
26
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1942 queries.

Test #154:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
11
6
7
4
5
3
4
3
2
13
2
2
15
2
2
17
2
2
18
10
10
6
4
4
6
4
2
20
2
2
22
2
2
24
2
2
24
10
6
6
2
6
16
2
2
26
2
2
27
13
8
7
3
6
16
3
2
28
15
8
9
4
7
4
5
15
5
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
40
2
2
40
18
10
10
6
6
4
4
4
2
24
2
2
42
2
2
44
2
2
46
2
2
48
2
2
50
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1992 queries.

Test #155:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
20
12
10
6
6
4
4
4
2
2
2
22
2
2
24
2
2
26
2
2
28
2
2
28
14
6
4
4
4
2
10
16
2
2
30
2
2
32
2
2
33
18
17
9
5
3
4
6
10
3
2
35
2
2
36
18
20
9
6
5
3
4
13
3
2
36
16
10
8
4
4
2
6
22
2
3
38
18
10
6
5
4
7
11
23
4
2
40
2
2
39
20
21
11
12
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2026 queries.

Test #156:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
24
12
8
6
4
4
4
2
14
2
2
26
2
2
27
14
15
8
9
6
5
4
3
3
2
29
2
2
31
2
2
31
16
17
8
4
2
4
6
11
2
2
32
16
18
10
10
6
4
4
6
4
2
34
2
2
36
2
2
38
2
2
39
19
9
5
4
3
6
12
22
3
2
41
2
2
43
2
2
45
2
2
47
2
2
49
2
2
51
2
2
5...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1994 queries.

Test #157:

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

input:

200
2
2
2
2
4
2
2
5
3
4
3
2
7
2
2
8
4
6
5
3
3
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
26
16
12
6
4
4
4
2
8
2
2
28
2
2
30
2
2
32
2
2
33
17
10
9
6
5
3
4
18
3
2
35
2
2
37
2
2
37
18
10
5
2
5
7
10
21
2
2
39
2
2
41
2
2
43
2
2
42
21
11
5
2
5
8
12
23
2
2
44
2
2
44
23
23
11
4
4
2
9
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1972 queries.

Test #158:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
11
6
7
4
5
4
3
3
2
13
2
2
15
2
2
17
2
2
19
2
2
20
9
5
3
4
6
13
3
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
33
16
7
4
5
3
4
11
19
3
2
35
2
2
37
2
2
38
20
20
9
5
3
4
6
13
3
2
40
2
2
41
21
11
12
6
8
3
7
22
3
2
43
2
2
45
2
2
44
24
22
13
11
7
6
3
5
3
4
4
2
43
21
10
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1842 queries.

Test #159:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
14
6
4
4
2
4
10
2
2
16
2
2
16
10
8
6
4
2
4
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
29
16
15
8
9
5
4
3
6
3
2
31
2
2
33
2
2
35
2
2
36
18
20
9
5
4
3
6
13
3
2
37
17
10
9
5
4
3
6
22
3
2
39
2
2
41
2
2
43
2
2
43
22
23
13
12
8
6
4
4
4
2
2
2
45
2
2
44
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1900 queries.

Test #160:

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

input:

200
1
1
1
2
3
2
2
5
2
2
7
2
2
7
5
4
4
2
2
2
9
2
2
11
2
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
31
15
7
5
4
2
4
10
18
2
2
33
2
2
35
2
2
35
19
18
8
4
4
2
6
12
2
2
37
2
2
37
19
20
10
6
6
4
4
2
4
12
2
2
37
19
20
12
10
6
6
4
4
2
4
2
2
37
17
9
10
6
6
4
4
4
2
22
2
2
37
17
9
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1974 queries.

Test #161:

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

input:

200
3
3
3
2
5
2
2
7
2
2
9
2
2
11
2
2
13
2
1
14
1
2
16
2
2
15
10
7
5
3
4
7
4
2
4
5
3
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
25
12
7
3
6
7
15
3
2
27
2
2
29
2
2
31
2
2
32
15
7
3
6
10
19
3
2
34
2
2
36
2
2
38
2
2
40
2
2
41
20
23
12
6
4
4
8
13
4
2
43
2
2
45
2
2
47
2
2
49
2
2
49
22
10
4
2
4
8
14
29
2
2
51
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2040 queries.

Test #162:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
8
6
4
2
4
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
33
17
9
5
4
3
6
10
18
3
2
35
2
2
36
18
20
10
12
6
8
4
6
5
3
3
2
38
2
2
40
2
2
42
2
2
42
22
22
10
4
2
4
8
14
2
2
41
22
21
12
5
3
4
9
11
7
6
4
4
4
2
3
2
41
20
23
11
4
4
2
9
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1962 queries.

Test #163:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
15
7
4
5
3
4
10
3
2
15
6
4
4
4
2
11
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
29
17
14
6
4
4
4
2
10
2
2
29
17
14
6
4
4
2
4
10
2
2
31
2
2
33
2
2
35
2
2
35
17
8
4
4
2
6
11
20
2
2
37
2
2
39
2
2
41
2
2
41
21
11
4
4
2
9
12
22
2
2
41
22
13
11
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1988 queries.

Test #164:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
15
8
9
5
3
4
6
3
2
17
2
1
18
1
2
20
2
2
20
12
10
5
4
3
7
3
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
32
17
17
11
8
6
4
4
2
2
2
34
2
2
35
16
10
8
6
4
4
2
21
2
2
37
2
2
39
2
2
41
2
2
43
2
2
43
23
22
10
6
6
4
4
4
2
14
2
2
43
23
22
12
12
6
4
4
2
4
8
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2010 queries.

Test #165:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
25
14
13
8
7
4
5
4
3
3
2
27
2
2
28
13
7
4
5
4
3
8
17
3
2
30
2
2
31
15
7
3
6
10
18
3
2
33
2
2
35
2
2
37
2
2
39
2
2
41
2
2
43
2
1
43
21
11
11
5
7
2
6
23
2
2
43
23
22
14
10
4
2
4
8
2
2
45
2
2
47
2
2
49
2
2
51
2
2
50
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2090 queries.

Test #166:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
10
4
2
4
8
2
2
12
2
2
14
2
2
15
7
4
5
4
3
10
3
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
27
12
8
6
2
6
17
2
2
29
2
2
31
2
2
31
15
8
9
6
5
3
4
18
3
2
33
2
2
32
18
16
10
8
6
4
2
4
2
2
32
18
16
10
8
4
4
2
6
2
1
33
1
2
33
17
10
9
6
5
3
4
18
10
10
5
4
3
7
4
2
35
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2018 queries.

Test #167:

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

input:

200
2
2
2
3
5
3
2
7
2
3
10
3
2
11
6
4
4
7
4
2
13
2
2
15
2
2
17
2
2
17
9
10
6
4
4
6
4
2
19
2
2
21
2
2
23
2
2
25
2
2
25
11
6
7
5
4
2
4
16
2
1
26
1
2
26
15
7
4
5
4
3
10
13
3
2
28
2
2
30
2
2
32
2
2
34
2
2
33
18
8
4
2
4
6
12
17
9
6
5
2
5
10
2
2
35
2
2
36
19
12
9
6
5
3
4
19
3
2
38
2
2
40
2
2
41
22
11
5
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1862 queries.

Test #168:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
11
6
7
4
5
4
3
3
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
24
13
13
8
7
4
5
3
4
3
2
26
2
2
28
2
2
30
2
2
30
17
15
8
9
7
4
4
2
2
2
32
2
2
34
2
2
36
2
2
38
2
2
39
21
20
11
11
5
3
4
8
3
2
40
20
9
5
4
3
6
13
22
3
2
42
2
2
42
19
9
6
5
4
3
12
25
3
2
44
2
2
44
23
23
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1986 queries.

Test #169:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
23
12
13
7
3
6
8
3
2
24
11
6
7
4
5
4
3
15
3
2
26
2
2
28
2
2
30
2
2
32
2
1
33
1
2
35
2
2
37
2
2
39
2
2
41
2
2
41
21
12
11
6
7
4
5
2
5
22
2
2
42
23
11
5
4
3
8
14
21
3
2
42
22
10
6
6
2
6
14
22
2
2
42
22
12
12
7
7
3
6
22
3
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2100 queries.

Test #170:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
15
7
4
5
4
3
10
3
1
16
1
2
18
2
2
20
2
2
20
12
10
7
5
3
4
3
3
4
2
21
9
6
5
3
4
14
3
2
23
2
2
25
2
2
27
2
2
28
14
8
8
4
6
3
5
16
3
2
30
2
2
32
2
2
34
2
2
36
2
2
37
21
18
10
6
6
3
5
10
3
2
37
19
10
11
4
3
3
9
20
3
2
39
2
2
39
18
10
10
7
5
5
2
23
2
2
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2024 queries.

Test #171:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
8
6
4
4
2
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
26
14
14
6
2
6
10
2
2
27
14
15
7
4
5
4
3
10
3
2
29
2
2
29
14
8
8
4
4
2
6
17
2
2
31
2
2
32
15
8
9
6
5
3
4
19
3
2
34
2
2
34
16
8
4
2
4
6
10
20
2
2
36
2
2
36
18
20
11
11
7
6
4
4
2
4
2
2
38
2
2
40
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2026 queries.

Test #172:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
10
6
6
4
4
4
2
2
2
11
5
3
4
8
3
2
13
2
2
15
2
2
17
2
2
19
2
2
19
8
6
4
4
2
13
2
2
21
2
2
21
11
6
7
4
5
5
2
12
2
2
23
2
2
25
2
2
25
13
8
7
5
4
2
4
14
2
2
27
2
2
29
2
2
29
17
14
6
4
4
2
4
10
2
2
31
2
2
33
2
2
32
17
11
8
4
2
4
6
17
10
9
5
4
3
6
3
2
33
17
18
10
10
6
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1946 queries.

Test #173:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2006 queries.

Test #174:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
11
5
4
3
8
3
2
13
2
3
16
3
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
27
14
8
8
3
7
15
3
2
29
2
2
31
2
2
32
17
8
11
7
6
4
4
17
4
2
32
17
17
8
11
5
5
2
8
2
2
32
17
17
8
11
7
6
6
2
2
2
34
2
2
35
16
8
10
6
4
4
6
21
4
2
35
14
8
8
6
4
4
2
23
2
2
37
2
2
39
2
2
39
18
23
13
12...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1888 queries.

Test #175:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
22
10
6
6
2
6
14
2
2
24
2
2
26
2
2
28
2
2
29
15
8
9
5
4
3
6
16
3
2
29
14
6
4
4
2
4
10
17
2
2
29
14
6
2
6
10
17
2
2
31
2
2
33
2
2
35
2
2
37
2
2
38
19
9
5
4
3
6
12
21
3
2
40
2
2
42
2
2
44
2
2
46
2
2
46
23
12
13
6
2
6
9
25
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1792 queries.

Test #176:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
3
19
3
2
21
2
2
23
2
2
23
12
13
6
2
6
9
2
2
25
2
2
27
2
2
29
2
2
30
16
16
8
4
6
10
4
2
32
2
2
32
14
8
8
4
2
4
6
20
2
2
34
2
2
36
2
2
38
2
2
38
18
10
10
4
4
2
8
22
2
2
39
20
21
12
11
6
7
4
5
4
3
3
2
41
2
2
43
2
2
44
22
24
13
7
4
5
8
13
5
2
46
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1932 queries.

Test #177:

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

input:

200
2
2
2
2
4
2
1
5
1
2
7
2
2
8
5
3
4
5
3
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
40
2
2
42
2
2
42
22
22
12
12
8
6
4
4
4
2
2
2
42
20
10
5
7
4
5
5
2
12
24
2
2
42
22
22
10
4
4
2
8
14
2
1
41
21
21
9
3
3
1
7
13
1
2
43
2
2
45
2
2
44
21
10...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2018 queries.

Test #178:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
23
11
5
3
4
8
14
3
2
25
2
2
25
14
13
6
4
4
4
2
9
2
2
27
2
2
29
2
2
31
2
2
33
2
2
35
2
2
37
2
2
39
2
2
39
18
10
10
6
6
4
4
4
2
23
2
2
39
19
10
11
4
4
2
9
22
2
2
41
2
3
44
3
2
46
2
2
47
25
24
12
14
8
8
3
7
3
2
49
2
2
51
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1898 queries.

Test #179:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
19
10
11
6
7
4
5
3
4
3
2
21
2
2
21
10
4
4
2
8
13
2
2
23
2
2
24
11
5
4
3
8
15
3
2
24
12
14
9
7
2
7
2
2
24
12
14
9
7
4
5
3
4
3
2
23
10
6
6
4
4
4
2
15
9
8
4
6
4
4
4
2
25
2
1
26
1
2
28
2
2
30
2
2
32
2
2
33
16
8
10
6
6
5
3
19
3
2
33
15
8
9
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1846 queries.

Test #180:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
3
20
11
12
7
8
5
6
5
4
4
2
22
2
3
25
3
2
26
12
16
7
3
6
11
3
2
28
2
2
30
2
2
32
2
2
33
15
8
9
5
3
4
6
20
3
2
35
2
2
37
2
2
37
19
10
11
6
7
5
4
20
11
7
5
4
6
11
7
2
37
16
23
9
7
4
2
4
16
2
2
39
2
2
41
2
2
43
2
2
43
19
10
11
6
7
2
7
26
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1912 queries.

Test #181:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
16
10
8
6
4
2
4
2
2
16
10
8
5
4
3
5
3
4
4
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
28
14
16
10
8
4
2
4
6
2
2
30
2
2
32
2
2
34
2
2
36
2
2
37
20
19
9
5
4
3
6
12
3
2
39
2
2
40
21
10
13
6
9
6
5
3
4
21
3
2
42
2
2
42
22
22
12
12
7
7
2
7
2
2
44
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1920 queries.

Test #182:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
17
9
5
3
4
6
10
3
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
27
12
6
4
4
4
2
8
17
2
2
29
2
2
31
2
2
30
17
15
7
4
4
2
5
4
3
10
3
2
32
2
2
34
2
2
35
18
10
10
6
6
5
3
19
3
2
37
2
2
39
2
2
39
19
8
4
4
2
6
13
22
2
2
39
19
10
11
7
6
4
4
4
2
22
2
2
41
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1970 queries.

Test #183:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
17
9
5
4
3
6
10
3
2
19
2
2
21
2
2
22
11
6
7
4
5
4
3
13
3
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
40
2
2
42
2
2
44
2
2
45
23
11
6
7
3
6
14
24
3
2
46
24
24
11
6
7
4
5
3
4
15
3
2
47
24
25
12
15
8
9
3
8
3
2
48
24
26
11
6
7
4
5
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2094 queries.

Test #184:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
21
12
11
6
7
3
6
3
2
23
2
2
24
11
6
7
4
5
3
4
15
3
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
34
16
8
4
2
4
6
10
20
2
2
36
2
2
38
2
2
39
21
20
10
7
5
4
3
12
3
2
41
2
2
43
2
2
45
2
2
47
2
2
47
26
23
10
6
6
4
4
2
4
15
2
2
48
26
24
12
14...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2018 queries.

Test #185:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
23
12
13
7
4
5
4
3
8
3
2
25
2
2
27
2
2
29
2
2
31
2
1
32
1
2
34
2
2
36
2
2
38
2
2
39
19
9
6
5
3
4
12
22
3
2
41
2
2
42
23
21
10
6
6
4
4
3
3
13
3
2
42
21
12
11
6
7
4
5
2
5
23
2
2
44
2
2
45
22
12
12
6
8
3
7
25
3
2
47
2
2
48
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2054 queries.

Test #186:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
10
6
6
2
6
2
2
12
2
2
14
2
2
16
2
2
16
10
8
4
2
4
6
2
2
18
2
2
20
2
2
22
2
2
24
2
2
25
14
13
7
3
6
8
3
2
26
13
8
7
4
5
3
4
15
3
2
28
2
2
29
14
17
8
11
7
6
4
4
4
2
31
2
2
33
2
2
35
2
2
37
2
2
39
2
2
41
2
2
42
19
10
11
6
7
3
6
25
3
2
44
2
2
44
23
23
13
7
3
6
8
12
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1970 queries.

Test #187:

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

input:

200
3
3
3
2
5
2
2
7
2
2
9
2
2
11
2
2
13
2
2
15
2
3
16
8
4
7
11
4
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
28
14
16
10
8
4
4
2
6
2
2
28
14
16
8
6
4
4
2
10
2
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
40
2
2
41
21
9
5
4
3
6
14
22
3
2
43
2
2
43
24
21
12
11
4
4
2
9
2
2
44
24
22
11
6
7
4
5
4
3
13
3
2
46
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1930 queries.

Test #188:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
17
9
6
5
4
3
10
3
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
35
2
2
37
2
2
38
20
10
12
6
8
3
7
20
3
1
38
20
19
9
11
4
2
3
8
2
2
40
2
2
42
2
2
42
21
12
11
5
2
5
8
23
2
2
44
2
2
44
23
23
10
6
6
4
4
2
4
15
2
2
46
2
2
47
24
11
6
7
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1938 queries.

Test #189:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1844 queries.

Test #190:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
11
6
7
4
5
3
4
3
2
13
2
3
16
3
2
18
2
2
20
2
2
20
8
6
4
2
4
14
2
2
22
2
2
24
2
2
26
2
2
28
2
2
28
16
14
6
4
4
2
4
10
2
2
30
2
2
32
2
2
34
2
2
36
2
2
36
20
18
10
10
4
2
4
8
2
2
38
2
2
40
2
3
42
23
22
13
12
6
4
5
9
4
2
44
2
2
45
23
13
12
7
7
3
6
24
3
3
46
23
14
12
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1888 queries.

Test #191:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
17
10
9
6
5
4
3
3
2
19
2
2
21
2
2
23
2
2
25
2
2
25
14
13
7
4
5
3
4
8
3
2
27
2
2
29
2
1
30
1
2
32
2
2
33
18
17
11
8
5
4
3
5
3
2
33
16
10
8
6
4
4
2
19
2
2
35
2
2
37
2
2
39
2
2
41
2
2
43
2
2
44
21
11
6
7
3
6
12
25
3
2
46
2
2
48
2
2
48
23
10
4
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1898 queries.

Test #192:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
17
9
6
5
3
4
10
3
2
19
2
2
21
2
2
23
2
2
24
11
6
7
4
5
3
4
15
3
2
25
12
15
9
8
4
6
4
4
4
2
27
2
2
27
14
15
7
5
4
4
2
10
2
2
29
2
2
31
2
2
31
15
8
9
6
5
4
3
18
3
2
30
16
16
10
8
6
4
4
2
2
2
32
2
2
34
2
2
35
18
19
11
7
6
3
6
10
3
2
37
2
2
39
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1972 queries.

Test #193:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
13
7
4
5
3
4
8
3
2
15
2
2
17
2
2
19
2
2
21
2
2
20
12
10
4
2
4
8
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
40
2
2
40
22
20
12
10
4
2
4
8
2
2
42
2
2
42
22
22
10
6
6
4
4
2
4
14
2
2
44
2
3
46
25
24
13
14
8
5
6
4
5
9
4
2
48
2
2
47
24
25...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1994 queries.

Test #194:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
3
19
3
2
21
2
2
23
2
2
25
2
2
26
13
7
3
6
8
15
3
2
28
2
2
30
2
2
31
15
7
4
5
4
3
10
18
3
2
33
2
2
33
17
18
11
9
6
5
3
4
3
2
35
2
2
37
2
2
37
17
8
4
2
4
6
11
22
2
2
39
2
2
41
2
2
42
21
23
13
6
5
3
9
12
3
2
42
19
10
11
5
4
3
8
25
3
2
42
19
10
11
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1888 queries.

Test #195:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
11
6
7
3
6
3
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
31
17
16
8
6
4
2
4
10
2
2
31
17
16
10
8
4
2
4
6
2
2
33
2
2
35
2
2
35
19
18
10
10
6
6
4
4
4
2
2
2
36
19
19
10
11
6
7
3
6
3
2
36
19
19
10
11
6
7
2
7
2
2
36
19
19
10
11
4
4
2
9
2
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2010 queries.

Test #196:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
10
6
6
4
4
2
4
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
25
13
7
4
5
4
3
8
14
3
2
27
2
2
29
2
2
29
16
15
8
9
5
2
5
6
2
2
30
15
8
9
6
5
3
4
17
3
2
32
2
2
33
16
19
10
5
3
4
7
11
3
2
35
2
2
37
2
2
39
2
2
41
2
2
42
21
23
13
12
7
7
3
6
3
2
41
21
22
10
6
6
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2022 queries.

Test #197:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
18
10
10
6
6
4
4
4
2
2
2
20
2
2
20
10
4
4
2
8
12
2
2
20
12
10
6
6
4
4
2
4
2
2
21
12
11
5
3
4
8
3
2
23
2
2
23
12
13
6
4
4
4
2
9
2
2
25
2
2
26
14
14
8
4
6
4
4
8
4
2
28
2
2
30
2
2
30
16
16
6
4
4
4
2
12
2
2
32
2
2
34
2
2
36
2
2
38
2
2
38
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2028 queries.

Test #198:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
3
19
3
2
21
2
2
23
2
2
25
2
2
27
2
2
27
14
15
7
2
7
10
2
2
28
14
16
8
4
6
4
4
10
4
2
28
12
6
4
4
2
4
8
18
2
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
38
20
20
11
5
4
3
8
11
6
7
4
5
3
4
4
2
39
17
10
9
5
4
3
6
24
3
2
39
18
23
10
8
4
2
4
15
2
2
39
16
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1858 queries.

Test #199:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
3
15
3
2
17
2
2
19
2
2
21
2
2
23
2
2
23
11
5
3
4
8
14
8
4
6
4
4
8
5
2
25
2
2
27
2
2
29
2
2
29
14
17
6
4
4
4
2
13
2
1
30
1
2
31
15
8
9
6
5
3
4
18
3
2
31
14
8
8
6
4
2
4
19
2
2
33
2
2
35
2
2
35
21
16
7
6
3
4
1
11
1
2
37
2
2
37
19
10
11
4
2
4
9
20
2
2
39
2
3
39
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1934 queries.

Test #200:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
23
12
13
7
3
6
8
3
2
24
11
6
7
4
5
4
3
15
3
2
24
12
14
8
8
4
6
3
5
3
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
34
18
18
10
5
4
3
7
10
3
2
36
2
2
38
2
1
39
1
2
39
18
10
10
4
4
2
8
23
2
2
41
2
2
43
2
2
45
2
2
47
2
2
49
2
2
51
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1982 queries.

Test #201:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
27
14
15
8
9
5
3
4
6
3
2
29
2
2
31
2
2
31
15
7
3
6
10
18
9
6
5
4
3
11
4
2
33
2
2
35
2
2
37
2
2
39
2
2
41
2
2
42
19
9
6
5
3
4
12
25
3
2
44
2
2
44
22
12
12
5
4
3
9
24
13
6
9
6
5
3
4
13
4
2
46
2
2
48
2
2
49
22
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1946 queries.

Test #202:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
1
11
1
2
12
8
6
4
4
4
2
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
23
11
8
5
4
3
4
1
14
1
2
25
2
2
27
2
2
27
16
13
8
7
3
2
3
6
2
2
29
2
2
31
2
2
33
2
2
33
18
17
7
4
2
4
5
12
2
2
34
18
18
8
5
5
4
3
12
3
2
36
2
2
38
2
2
39
19
9
6
5
3
4
12
22
3
2
40
19
23
12
13
7
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1946 queries.

Test #203:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
13
8
7
4
5
3
4
3
2
15
2
2
17
2
2
19
2
2
19
10
11
7
6
2
6
2
2
20
9
5
4
3
6
13
3
2
22
2
2
24
2
2
26
2
2
28
2
2
29
14
7
4
5
4
3
9
17
3
2
29
13
6
4
4
2
4
9
18
2
2
31
2
2
33
2
2
34
18
18
9
6
5
4
3
11
3
2
35
18
19
10
5
3
4
7
11
3
2
35
18
19
11
10
4
2
4
8
2
2
37
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1850 queries.

Test #204:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
26
12
6
2
6
8
16
2
2
28
2
2
28
16
14
8
8
6
4
2
4
2
2
30
2
2
30
16
16
10
8
4
4
2
6
2
2
30
14
6
4
4
2
4
10
18
2
2
31
16
17
10
9
6
5
3
4
3
2
33
2
2
35
2
2
37
2
2
39
2
2
41
2
2
41
22
21
13
10
6
6
4
4
2
4
2
2
42
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1960 queries.

Test #205:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
13
7
4
5
3
4
8
3
2
13
8
7
2
7
2
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
29
17
14
8
8
4
2
4
6
2
3
32
3
2
34
2
2
35
19
18
10
10
6
6
4
4
4
2
37
2
2
38
19
21
9
6
5
3
4
14
3
2
40
2
2
42
2
2
43
20
10
12
6
4
4
8
25
4
2
45
2
2
45
20
10
6
6
2
6
12...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1966 queries.

Test #206:

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

input:

200
2
2
2
2
4
2
3
7
3
2
9
2
2
10
6
6
4
4
4
2
11
6
7
4
5
5
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
22
12
5
3
4
9
12
3
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
38
19
13
8
5
3
4
5
4
3
21
4
2
40
2
2
40
22
20
8
6
4
4
2
14
2
2
40
20
13
9
4
2
4
7
22
2
2
42
2
2
44
2
2
46
2
2
48
2
2
50
2
2
50
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1914 queries.

Test #207:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
17
9
6
5
4
3
10
3
2
19
2
2
21
2
2
23
2
2
24
12
14
9
7
3
6
3
2
26
2
2
28
2
2
28
14
16
9
9
7
4
4
2
2
2
28
14
16
7
2
7
11
2
2
30
2
2
31
17
16
8
4
6
3
5
10
3
2
33
2
2
35
2
2
37
2
2
39
2
2
41
2
2
43
2
2
45
2
2
44
24
22
12
6
8
4
6
4
4
12
6
4
4
2
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2014 queries.

Test #208:

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

input:

200
2
2
2
2
4
2
2
4
2
4
2
2
6
2
2
8
2
2
10
2
2
10
6
6
4
4
2
4
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
25
13
7
3
6
8
14
3
2
27
2
2
28
13
7
4
5
4
3
8
17
3
2
30
2
2
32
2
2
31
16
17
8
5
4
3
5
4
3
11
4
2
32
16
18
7
4
5
3
4
13
3
2
34
2
2
34
15
8
9
6
5
4
3
21
11
12
8
6
5
3
4
2
36
2
2
38
2
2
39...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1832 queries.

Test #209:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
9
6
5
3
4
3
2
11
2
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
30
16
8
10
7
5
4
3
16
3
2
32
2
2
34
2
2
35
18
10
6
6
3
5
10
19
3
2
36
19
19
9
5
4
3
6
12
3
2
36
17
11
8
6
4
2
4
21
2
2
38
2
2
40
2
2
40
21
21
11
12
6
3
5
8
3
2
41
20
10
5
3
4
7
12
23
3
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1932 queries.

Test #210:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
3
11
3
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
21
11
6
7
4
5
2
5
12
2
2
21
12
5
3
4
9
11
6
7
4
5
3
4
4
2
23
2
2
23
13
12
4
4
2
10
2
2
25
2
2
26
13
15
9
4
7
4
5
8
5
2
28
2
2
30
2
2
30
13
9
6
4
4
2
4
19
2
2
32
2
2
34
2
2
36
2
2
38
2
2
40
2
2
41
21
22
12
9
5
3
4
12
3
2
41
21
22...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1930 queries.

Test #211:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
23
12
13
7
3
6
8
3
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
33
16
8
4
2
4
6
10
19
2
2
33
18
17
11
8
4
4
2
6
2
2
35
2
2
37
2
2
39
2
2
41
2
2
43
2
2
44
23
23
11
5
4
3
8
14
3
2
46
2
2
47
24
12
14
7
4
5
3
4
9
25
3
2
49
2
2
51
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2074 queries.

Test #212:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
1
17
1
2
19
2
2
19
10
6
6
4
4
4
2
11
2
2
21
2
2
23
2
2
25
2
2
25
12
6
4
4
4
2
8
15
2
2
27
2
2
29
2
2
31
2
2
33
2
2
35
2
2
37
2
2
39
2
2
40
21
21
11
6
7
4
5
3
4
12
3
2
42
2
2
44
2
2
45
23
24
11
5
3
4
8
15
3
2
47
2
2
48
23
27
14
15
9
8
4
6
4
4
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1946 queries.

Test #213:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
12
8
6
4
4
2
4
2
2
14
2
2
16
2
2
18
2
2
19
9
5
4
3
6
12
3
2
20
10
12
5
4
3
9
3
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
30
14
6
4
4
2
4
10
18
2
2
30
15
6
4
4
2
4
11
17
2
2
32
2
2
34
2
2
36
2
2
38
2
2
40
2
2
42
2
2
44
2
2
46
2
2
47
26
23
12
13
8
7
4
5
4
3
3
2
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1938 queries.

Test #214:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
15
7
4
5
4
3
10
3
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
35
2
2
36
19
19
10
11
6
7
3
6
3
2
38
2
2
40
2
2
41
21
22
12
12
6
8
5
5
3
4
3
2
43
2
2
45
2
2
46
22
11
6
7
4
5
4
3
13
26
3
2
47
22
12
12
6
5
3
8
27
3
2
46
23
25
13
14
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1950 queries.

Test #215:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
1
17
1
2
18
9
5
3
4
6
11
3
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
30
14
8
8
6
4
4
2
18
2
2
31
14
8
8
5
4
3
5
19
3
2
33
2
2
34
18
18
10
10
5
4
3
7
3
2
36
2
2
38
2
2
40
2
2
42
2
2
44
2
2
46
2
2
47
24
25
14
13
7
3
6
8
3
2
49
2
2
49
23
12
13
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1970 queries.

Test #216:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
13
8
7
4
5
4
3
3
2
15
2
2
15
8
9
4
4
2
7
2
2
17
2
2
19
2
2
21
2
3
24
3
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
37
19
10
11
7
6
4
4
2
4
20
10
7
5
4
3
12
3
2
39
2
2
40
21
21
11
12
6
8
4
6
4
4
4
3
42
21
10
7
6
5
4
14
24
4
2
44
2
2
44
22
24
12
14
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1778 queries.

Test #217:

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

input:

200
2
2
2
2
4
2
2
4
4
2
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
19
10
11
5
3
4
8
3
2
19
8
6
4
2
4
13
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
29
16
15
7
3
6
10
3
2
30
15
7
3
6
10
17
3
2
32
2
2
34
2
2
33
17
9
6
5
4
3
10
18
8
4
4
2
6
12
3
2
35
2
2
36
17
9
5
3
4
6
10
21
3
2
38
2
2
40
2
2
41
19...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1946 queries.

Test #218:

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

input:

200
2
2
2
2
4
2
2
6
2
3
9
3
2
11
2
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
21
12
5
4
3
9
11
5
4
3
8
4
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
31
17
16
10
8
4
4
2
6
2
2
33
2
2
35
2
2
36
18
10
5
3
4
7
10
20
3
2
38
2
2
39
21
20
10
12
6
8
4
6
5
3
3
2
40
21
21
9
6
5
4
3
14
3
2
40
21
21
10
13
6
9
3
8
3
2
42
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1854 queries.

Test #219:

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

input:

200
2
2
2
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
13
8
7
3
6
3
2
15
2
2
15
8
9
6
5
3
4
3
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
35
2
2
34
19
17
7
5
4
3
4
2
4
12
3
2
36
2
2
38
2
2
40
2
2
42
2
2
44
2
2
44
23
23
12
13
9
6
4
4
2
4
2
2
46
2
2
47
24
11
6
7
4
5
4
3
15
25
3
2
48
24...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1930 queries.

Test #220:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
13
7
4
5
3
4
8
3
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
26
15
13
7
4
5
3
4
8
3
2
28
2
2
30
2
2
32
2
2
31
14
8
8
6
4
2
4
19
2
2
33
2
2
35
2
2
37
2
2
39
2
2
40
19
10
11
5
3
4
8
23
3
2
42
2
2
44
2
2
44
23
23
10
6
6
4
4
2
4
15
2
2
46
2
2
48
2
2
50
2
2
52
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2028 queries.

Test #221:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
9
6
5
3
4
3
2
11
2
2
12
5
3
4
9
3
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
25
14
13
8
7
4
5
3
4
3
2
26
14
14
8
8
3
7
3
2
28
2
2
28
16
14
8
8
3
7
3
1
29
1
2
30
15
8
4
6
3
5
9
17
3
2
32
2
2
34
2
2
36
2
2
38
2
2
40
2
2
42
2
2
43
22
12
12
6
8
4
6
4
4
23
4
2
43
22
23
13
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1994 queries.

Test #222:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
11
6
7
4
5
3
4
3
2
13
2
2
15
2
2
14
8
8
4
4
2
6
2
2
14
8
8
6
4
4
2
2
2
16
2
2
18
2
2
20
2
2
22
2
2
23
12
13
7
4
5
3
4
8
3
2
25
2
2
27
2
2
29
2
2
30
15
7
4
5
3
4
10
17
3
2
32
2
2
33
15
8
9
5
3
4
6
20
3
2
35
2
2
37
2
2
39
2
2
41
2
2
42
20
10
12
6
8
4
6
4
4
24
4
1
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1984 queries.

Test #223:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
39
20
21
12
11
5
3
4
8
3
2
41
2
2
43
2
2
44
22
24
11
5
4
3
8
15
3
2
43
22
23
11
5
3
4
8
14
7
4
5
4
3
9
4
2
45
2
2
47
2
2
47
22
10
6
6
4
4
2
4
14
27
2
2
48
23
12
13
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1958 queries.

Test #224:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
17
10
9
5
4
3
6
3
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
35
2
2
37
2
2
37
19
10
11
6
7
2
7
20
2
2
39
2
2
39
19
8
6
4
2
4
13
22
2
2
41
2
2
41
21
10
6
6
2
6
13
22
2
2
43
2
2
45
2
2
45
23
13
12
8
6
4
4
2
4
24
2
2
47
2
2
48
24
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1922 queries.

Test #225:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
26
12
8
6
4
4
4
2
16
2
2
28
2
2
29
16
15
7
4
5
3
4
10
3
2
31
2
2
33
2
2
33
18
17
8
6
4
4
2
11
2
2
35
2
2
37
2
2
36
18
8
4
4
2
6
12
20
10
6
6
3
5
12
3
2
38
2
2
39
20
21
11
12
6
8
4
6
4
4
4
2
40
19
9
6
5
4
3
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1898 queries.

Test #226:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
10
6
6
4
4
2
4
2
2
12
2
2
14
2
2
16
2
2
17
9
6
5
4
3
10
3
2
17
8
6
4
4
2
11
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
34
19
17
9
6
5
4
3
10
3
3
36
20
19
11
11
7
7
5
5
5
2
38
2
2
40
2
2
42
2
2
42
21
23
10
6
6
2
6
15
2
2
44
2
2
46
2
2
46
23
25
15
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2010 queries.

Test #227:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
28
14
6
4
4
4
2
10
16
2
2
30
2
2
31
16
17
9
5
3
4
6
10
3
2
33
2
2
33
18
17
10
9
4
2
4
7
2
2
35
2
2
37
2
2
38
20
20
9
6
5
4
3
13
3
2
40
2
2
42
2
2
44
2
2
45
22
25
13
14
9
7
4
5
3
4
3
2
45
22
25
13
14
9...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2002 queries.

Test #228:

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

input:

200
2
2
2
2
4
2
2
6
2
2
6
4
4
2
4
2
2
7
4
5
3
4
3
2
9
2
2
9
6
5
5
2
2
2
11
2
2
13
2
3
14
8
5
6
3
6
9
3
2
16
2
2
18
2
2
19
10
7
5
4
3
11
3
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
29
16
15
7
4
5
3
4
10
3
2
31
2
2
33
2
2
34
18
18
10
10
7
5
3
4
3
2
36
2
2
36
20
18
8
4
2
4
6
12
2
2
37
20
19
11
10
7
5
3
4
3
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1944 queries.

Test #229:

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

input:

200
2
2
2
2
4
2
2
6
2
2
6
4
4
4
2
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
28
14
8
8
4
2
4
6
16
2
2
30
2
2
32
2
2
34
2
2
36
2
2
36
18
8
6
4
2
4
12
20
2
2
38
2
2
38
18
8
4
2
4
6
12
22
2
2
40
2
2
42
2
2
42
20
12
10
6
6
4
4
2
4
24
2
2
44
2
2
46
2
2
48
2
2
48
26
24...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2070 queries.

Test #230:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
10
4
4
2
8
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
29
16
15
8
9
5
4
3
6
3
2
29
16
15
8
9
6
5
2
5
2
2
31
2
2
33
2
2
34
17
10
9
5
4
3
6
19
3
2
36
2
2
38
2
2
40
2
2
42
2
2
42
20
12
10
6
6
2
6
24
2
2
44
2
2
46
2
2
46
25
23
11
6
7
4
5
5
2
14...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1958 queries.

Test #231:

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

input:

200
2
2
2
2
4
2
1
3
1
3
1
2
3
4
1
1
2
5
2
2
7
2
2
9
2
2
11
2
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
22
10
4
4
2
8
14
2
3
24
12
7
8
5
6
4
5
15
4
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
36
2
2
38
2
2
40
2
2
40
20
22
13
7
4
5
8
11
6
7
4
5
4
3
6
2
40
20
22
10
14
6
10
4
8
4
6
6
2
42
2
2
44
2
2
46
2
2
46
20
10...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2004 queries.

Test #232:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1952 queries.

Test #233:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
12
6
4
4
4
2
8
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
29
16
15
8
9
5
4
3
6
3
2
29
14
6
4
4
4
2
10
17
2
2
31
2
3
34
3
2
36
2
2
35
17
9
5
3
4
6
10
20
10
12
7
7
4
5
5
2
3
2
35
16
10
8
6
4
2
4
21
2
2
37
2
2
38
17
10
9
6
5
4
3
23
3
2
40
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1854 queries.

Test #234:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
23
11
6
7
4
5
4
3
14
3
2
25
2
2
27
2
2
29
2
2
29
14
8
8
4
4
2
6
17
2
2
31
2
2
33
2
3
34
17
9
5
3
5
7
11
20
3
2
36
2
2
38
2
2
38
21
19
8
4
4
2
6
13
2
2
40
2
2
40
19
10
11
6
7
2
7
23
2
3
41
22
22
12
7
8
5
6
5
4
13
4
2
42
21...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1942 queries.

Test #235:

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

input:

200
2
2
2
2
4
2
1
5
1
2
7
2
2
9
2
2
11
2
2
11
5
2
5
8
2
2
13
2
2
14
6
3
5
10
3
3
17
3
2
19
2
1
20
1
2
22
2
2
23
10
5
7
4
5
3
4
15
3
2
25
2
2
27
2
2
29
2
2
31
2
2
33
2
2
33
19
16
8
5
5
3
4
10
3
2
35
2
2
36
19
19
8
5
5
4
3
13
3
2
37
18
9
11
6
3
5
7
21
3
2
39
2
2
41
2
2
43
2
2
45
2
2
47
2
2
49
2
2
51
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1956 queries.

Test #236:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
19
10
11
5
4
3
8
3
2
19
8
4
4
2
6
13
2
2
21
2
2
23
2
2
25
2
2
26
14
14
9
7
4
5
4
3
3
2
28
2
2
30
2
2
32
2
2
34
2
2
35
19
18
11
9
6
5
4
3
3
2
37
2
2
39
2
2
40
21
21
11
12
6
8
5
5
3
4
3
2
42
2
2
44
2
2
46
2
2
48
2
2
50
2
2
49
23
10
4
2
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1914 queries.

Test #237:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
15
8
9
6
5
4
3
3
2
16
8
10
5
4
3
7
3
2
18
2
2
20
2
2
20
10
12
5
2
5
9
2
2
22
2
2
24
2
2
26
2
2
26
14
8
8
4
6
5
3
14
3
2
28
2
2
30
2
2
31
16
8
10
6
3
5
6
17
3
2
31
17
16
8
10
5
5
2
7
2
2
32
17
17
7
3
6
12
3
2
33
17
18
8
4
6
4
4
12
4
2
34
16
8
10
6
4
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1888 queries.

Test #238:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
32
2
2
34
2
2
35
18
19
10
11
6
7
4
5
3
4
3
2
35
18
19
8
6
4
2
4
13
2
2
37
2
2
38
19
10
11
6
7
4
5
4
3
21
3
2
40
2
2
41
20
23
12
13
7
8
4
6
4
4
4
2
43
2
2
45
2
2
45
20
10
4
2
4
8
12
27
2
2
46
22...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1930 queries.

Test #239:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
20
10
4
4
2
8
12
2
2
22
2
2
24
2
2
25
13
7
4
5
4
3
8
14
3
2
25
14
13
6
4
4
4
2
9
2
2
25
14
13
6
2
6
9
2
2
27
2
2
29
2
2
31
2
2
33
2
2
33
17
9
5
4
3
6
10
18
10
7
5
3
4
10
4
2
35
2
2
36
18
20
11
11
6
7
5
4
5
2
38
2
2
38
18
22
11
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1946 queries.

Test #240:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
16
8
4
4
2
6
10
2
2
18
2
2
20
2
2
22
2
2
23
12
13
8
7
4
5
3
4
3
2
25
2
2
26
14
14
7
4
5
4
3
9
3
2
28
2
1
27
11
5
1
5
7
17
1
2
29
2
2
30
15
8
9
5
3
4
6
17
3
2
32
2
2
34
2
2
36
2
2
38
2
2
40
2
2
42
2
2
44
2
2
46
2
2
47
26
23
11
4
3
3
9
14
3
2
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1968 queries.

Test #241:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
27
13
8
7
4
5
4
3
16
3
2
29
2
2
29
14
8
8
4
4
2
6
17
2
2
29
16
15
6
4
4
2
4
11
2
2
30
16
16
7
3
6
11
3
3
33
3
2
35
2
2
37
2
2
39
2
2
41
2
2
40
20
22
11
7
6
4
4
2
4
13
4
2
41
20
23
12
13
6
9
3
8
3
2
41
20
23
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1910 queries.

Test #242:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
11
6
7
4
5
4
3
3
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
29
15
8
9
7
4
2
4
16
2
2
31
2
2
31
15
8
9
5
2
5
6
18
2
2
32
16
7
4
5
4
3
11
18
3
2
32
17
17
10
9
4
2
4
7
2
2
32
17
17
8
6
4
4
2
11
2
2
34
2
2
36
2
2
38
2
2
40
2
2
42
2
2
43
22
13
11...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1974 queries.

Test #243:

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

input:

200
2
2
2
3
5
3
2
7
2
1
8
1
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
22
2
2
24
2
2
26
2
2
28
2
2
30
2
2
31
16
17
10
9
6
5
4
3
3
2
31
16
17
8
6
4
2
4
11
2
2
33
2
2
35
2
2
35
16
8
7
3
2
3
10
21
2
2
37
2
2
39
2
2
41
2
2
41
20
10
7
5
3
4
4
2
12
23
2
2
43
2
2
45
2
2
47
2
2
49
2
2
49
27
24
14
12
6
2
6
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1880 queries.

Test #244:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
17
9
5
3
4
6
10
3
2
19
2
2
21
2
2
23
2
2
25
2
2
26
13
8
7
4
5
4
3
15
3
2
27
14
15
8
5
5
3
4
9
3
2
29
2
2
29
14
17
7
5
4
2
4
12
2
2
31
2
2
32
17
17
8
4
6
4
4
11
4
3
34
18
19
9
4
8
13
4
1
35
1
2
35
15
6
4
4
4
2
11
22
2
2
37
2
2
36
20
18
9
6
5
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1942 queries.

Test #245:

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

input:

200
3
3
3
2
5
2
2
7
2
2
9
2
2
11
2
2
13
2
2
15
2
2
17
2
2
19
2
2
21
2
2
21
13
10
6
6
4
4
2
4
2
2
23
2
2
25
2
2
27
2
2
29
2
2
30
17
15
7
4
5
4
3
10
3
2
32
2
2
34
2
2
35
19
18
10
10
6
4
4
6
4
2
36
18
10
6
4
4
6
10
20
4
2
38
2
2
39
18
23
10
15
6
11
5
8
5
2
41
2
2
41
20
23
8
4
2
4
6
17
2
2
43
2
2
45
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1944 queries.

Test #246:

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

input:

200
2
2
2
2
4
2
2
6
2
2
6
2
6
2
3
9
3
2
11
2
2
13
2
2
13
6
2
6
9
2
2
15
2
2
17
2
2
19
2
2
21
2
2
23
2
2
25
2
2
27
2
2
29
2
2
28
16
9
9
5
3
4
6
14
6
2
6
10
3
2
27
15
14
8
8
6
4
4
2
2
2
29
2
2
31
2
2
33
2
2
32
19
15
7
5
3
4
4
2
4
10
3
2
34
2
2
36
2
2
38
2
2
40
2
2
41
21
22
11
6
7
3
6
13
3
1
42
1
2
44
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1966 queries.

Test #247:

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

input:

200
2
2
2
2
4
2
2
6
2
2
8
2
2
10
2
2
12
2
2
14
2
2
16
2
2
18
2
2
20
2
2
21
11
5
3
4
8
12
3
2
23
2
2
25
2
2
27
2
2
29
2
2
29
16
15
9
8
4
4
2
6
2
2
31
2
2
33
2
2
34
18
18
10
6
3
5
6
10
3
1
35
1
2
36
17
9
6
5
4
3
10
21
3
2
38
2
2
40
2
2
42
2
2
42
21
12
11
4
2
4
9
23
2
2
42
23
21
12
11
7
6
4
4
3
3
4
2
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1928 queries.