QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#773863#9783. Duloc Networkucup-team5318#AC ✓45ms6368kbC++143.1kb2024-11-23 10:37:122024-11-23 10:37:12

Judging History

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

  • [2024-11-23 10:37:12]
  • 评测
  • 测评结果:AC
  • 用时:45ms
  • 内存:6368kb
  • [2024-11-23 10:37:12]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
//#define int long long
#define rep(i,j,k) for(int i=(j);i<=(k);i++)
#define per(i,j,k) for(int i=(j);i>=(k);i--)
#define pb emplace_back
#define mp make_pair
#define fi first
#define se second
using vi=vector<int>;
using pi=pair<int,int>;

int n;

map<vi,int> mem;

vector<vi> G;
int ask(const vi &S){
	if(mem.count(S)){
		return mem[S];
	}
	assert(mem.size()<=3500);
	int cnt=0;
	cout<<"? ";
	rep(i,1,n){
		cout<<S[i];
		cnt+= S[i];
	}
	cout<<endl;

	int get; cin>>get;
	//int get=0;
	//rep(u,1,n){
	//	if(S[u]==0){
	//		bool ok=0;
	//		for(int v:G[u]){
	//			if(S[v]){
	//				ok=1;
	//			}
	//		}
	//		get+= ok;
	//	}
	//}
	return mem[S]=get+cnt;
}
bool chc(const vi &A,const vi &B){
	vi C(n+1);
	rep(i,1,n){
		assert(A[i]+B[i]<2);
		C[i]=A[i]|B[i];
	}
	return ask(A)+ask(B)!=ask(C);
}

struct dsu{
	vi fa;
	dsu(int n){
		fa.resize(n);
		fill(fa.begin(), fa.end(), -1);
	}
	int find(int d){
		return fa[d]<0? d: fa[d]=find(fa[d]);
	}
	void merge(int u,int v){
		if((u=find(u))==(v=find(v))){
			return;
		}
		fa[find(u)]=find(v);
	}
};

bool chk(const vector<vi> &S){
	//cout<<"!"<<S.size()<<endl;
	//for(auto x:S){
	//	for(int y:x){
	//		cout<< y <<' ';
	//	}
	//	cout<<endl;
	//}
	if(S.size()==1){
		return 1;
	}
	vector<vi> pre(S.size()+1), suf(S.size()+1);
	pre[0].resize(n+1);
	suf[S.size()].resize(n+1);
	rep(i,0,(int)S.size()-1){
		pre[i+1]=pre[i];
		for(int u:S[i]){
			pre[i+1][u]=1;
		}
	}
	per(i,(int)S.size()-1,0){
		suf[i]=suf[i+1];
		for(int u:S[i]){
			suf[i][u]=1;
		}
	}
	
	auto qry=[&](int pos){
		vi st(n+1);
		for(int u:S[pos]){
			st[u]=1;
		}

		auto qpre=[&](int pos){
			if(!chc(st, pre[pos])){
				return -1;
			}
			int l=1, r=pos;
			while(l<r){
				int mid=(l+r)/2;
				if(chc(st, pre[mid])){
					r=mid;
				}
				else{
					l=mid+1;
				}
			}
			return l-1;
		};
		auto qsuf=[&](int pos){
			if(!chc(st, suf[pos+1])){
				return -1;
			}
			int l=pos+1, r=(int)S.size()-1;
			while(l<r){
				int mid=(l+r+1)/2;
				if(chc(st, suf[mid])){
					l=mid;
				}
				else{
					r=mid-1;
				}
			}
			return l;
		};

		int get=qpre(pos);
		if(get!=-1){
			return get;
		}
		return qsuf(pos);
	};

	vector<vi> tmp(S.size());
	dsu bel(S.size());
	rep(i,0,(int)S.size()-1){
		int get=qry(i);
		if(get==-1){
			return false;
		}
		bel.merge(i, get);
	}
	rep(i,0,(int)S.size()-1){
		tmp[bel.find(i)].insert(tmp[bel.find(i)].end(), S[i].begin(), S[i].end());
	}
	for(auto it=tmp.begin(); it!=tmp.end(); ){
		if((*it).empty()){
			it=tmp.erase(it);
		}
		else{
			it++;
		}
	}
	return chk(tmp);
}

mt19937 rnd(time(0));

signed main(){
	#ifndef ONLINE_JUDGE
	//assert(freopen(".in","r",stdin));
	//assert(freopen(".out","w",stdout));
	#endif
	ios::sync_with_stdio(0);cin.tie(0);

	cin>>n;
	vector<vi> S;
	rep(i,1,n){
		S.pb((vi){i});
	}
	
	G.resize(n+1);
	rep(i,2,n){
		G[i/2].pb(i);
		G[i].pb(i/2);
	}

	bool ans=chk(S);
	cout<<"! "<<ans<<endl;
	//cerr<<mem.size()<<endl;
}

詳細信息

Test #1:

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

input:

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

output:

? 1000
? 0000
? 0111
? 1111
? 0011
? 1011
? 0001
? 1001
? 0100
? 1100
? 0010
? 1110
? 1010
? 1101
! 1

result:

ok Correct answer with 14 queries.

Test #2:

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

input:

2
0
0
0
0

output:

? 10
? 00
? 01
? 11
! 0

result:

ok Correct answer with 4 queries.

Test #3:

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

input:

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

output:

? 1000
? 0000
? 0111
? 1111
? 0011
? 1011
? 0001
? 1001
? 0100
? 1100
? 0010
? 1110
? 1010
? 1101
! 1

result:

ok Correct answer with 14 queries.

Test #4:

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

input:

2
0
0
0
0

output:

? 10
? 00
? 01
? 11
! 0

result:

ok Correct answer with 4 queries.

Test #5:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000
? 01111111111111111111111111111111111111111111111111
? 11111111111111111111111111111111111111111111111111
? 00000000000000000000000001111111111111111111111111
? 100000000000000000000000011111111...

result:

ok Correct answer with 392 queries.

Test #6:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000
? 01111111111111111111111111111111111111111111111111
? 11111111111111111111111111111111111111111111111111
? 00000000000000000000000001111111111111111111111111
? 100000000000000000000000011111111...

result:

ok Correct answer with 342 queries.

Test #7:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000
? 01111111111111111111111111111111111111111111111111
? 11111111111111111111111111111111111111111111111111
? 00000000000000000000000001111111111111111111111111
? 100000000000000000000000011111111...

result:

ok Correct answer with 394 queries.

Test #8:

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

input:

50
2
0
1
0
25
24
31
30
28
29
21
22
12
14
17
19
14
15
8
21
10
8
24
19
10
7
27
18
9
12
30
26
24
14
12
33
28
23
14
8
33
27
20
10
8
33
26
20
10
9
33
29
24
18
10
9
32
26
23
20
11
10
32
31
23
19
12
8
31
30
23
21
10
8
30
33
28
22
10
4
31
34
28
32
30
8
31
34
27
19
10
9
31
33
27
21
11
9
31
33
30
27
23
11
9
3...

output:

? 10000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000
? 01111111111111111111111111111111111111111111111111
? 11111111111111111111111111111111111111111111111111
? 00000000000000000000000001111111111111111111111111
? 100000000000000000000000011111111...

result:

ok Correct answer with 341 queries.

Test #9:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000
? 01111111111111111111111111111111111111111111111111
? 11111111111111111111111111111111111111111111111111
? 00000000000000000000000001111111111111111111111111
? 100000000000000000000000011111111...

result:

ok Correct answer with 392 queries.

Test #10:

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

input:

100
1
0
1
0
31
30
35
36
33
34
32
31
32
31
33
32
32
33
2
3
2
30
30
35
20
22
25
27
29
29
25
25
24
26
1
4
3
30
36
34
34
34
34
34
34
34
34
34
35
1
5
4
30
29
36
36
17
18
25
25
22
22
21
21
20
1
6
5
29
35
18
26
26
31
30
30
1
7
6
30
31
25
26
14
15
9
10
6
7
5
6
1
6
5
7
1
7
30
29
30
18
26
26
28
3
10
7
31
34
3...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok Correct answer with 869 queries.

Test #11:

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

input:

100
11
0
1
0
50
49
68
67
54
57
43
48
33
39
18
25
10
20
13
23
9
27
17
11
33
30
19
8
40
30
18
7
43
31
28
18
15
48
35
33
22
12
50
37
29
20
8
53
39
29
17
8
55
42
31
27
18
7
57
44
31
27
17
6
58
45
31
28
17
9
61
47
34
31
20
12
63
54
40
33
22
11
64
54
40
31
22
9
63
53
36
30
18
10
62
52
37
28
18
9
64
56
45
...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok Correct answer with 777 queries.

Test #12:

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

input:

100
5
0
1
0
43
42
50
49
34
33
22
26
15
19
9
13
4
9
3
8
2
43
43
50
36
24
17
12
12
14
3
11
3
42
52
37
42
44
41
44
42
44
41
44
4
14
11
8
2
16
5
4
44
43
46
45
32
32
19
19
12
11
2
18
6
45
44
46
34
44
43
43
44
44
44
2
19
12
9
6
8
24
21
16
19
4
28
9
8
45
45
47
48
33
22
15
12
8
5
29
19
14
13
4
30
19
15
18
4...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok Correct answer with 817 queries.

Test #13:

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

input:

100
1
0
1
0
31
31
32
32
22
23
29
30
33
33
30
31
1
2
2
32
31
31
21
9
9
4
4
2
3
3
4
1
3
3
31
31
23
30
32
29
31
30
3
6
4
32
31
33
33
19
19
8
8
3
2
1
2
1
7
5
32
33
20
27
27
24
24
24
25
1
8
6
33
33
34
33
33
35
36
34
34
34
35
3
11
7
32
36
32
34
34
35
34
35
35
1
12
8
34
33
32
31
18
9
16
17
18
19
4
14
10
12...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok Correct answer with 871 queries.

Test #14:

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

input:

100
1
0
1
0
30
29
25
26
29
30
28
29
30
29
29
28
29
28
1
2
2
29
30
24
23
28
27
28
27
29
28
31
30
31
2
4
3
28
24
18
18
10
12
15
15
13
13
12
14
3
7
4
30
30
26
29
27
28
26
27
26
29
25
28
1
8
5
29
25
19
19
7
7
4
5
6
6
5
6
3
11
6
30
27
22
23
24
20
23
21
24
2
13
7
29
25
19
8
6
8
1
14
8
30
23
24
18
17
23
22...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 01111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok Correct answer with 877 queries.

Test #15:

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

input:

150
4
0
1
0
62
61
67
67
45
46
30
31
16
20
26
29
24
27
20
23
2
6
2
62
62
68
68
46
31
17
7
9
13
14
3
9
3
62
68
45
33
35
38
40
43
42
44
2
11
4
62
62
68
45
32
35
34
34
34
34
32
32
2
13
5
62
69
46
31
18
28
28
30
3
16
6
63
63
68
68
42
30
18
9
5
7
2
5
2
18
7
62
67
44
55
57
63
62
59
59
56
58
4
22
8
64
63
68...

output:

? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1357 queries.

Test #16:

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

input:

150
4
0
1
0
57
56
56
57
40
43
23
26
14
17
10
13
7
10
5
8
2
6
2
58
58
56
56
42
52
52
44
44
42
42
42
42
40
42
2
8
3
58
56
42
54
54
56
54
54
55
55
1
9
4
59
59
57
64
64
61
62
64
64
65
66
64
65
2
11
5
60
58
65
63
65
66
63
65
1
12
6
60
60
56
56
40
40
23
23
15
20
21
23
23
1
13
7
59
55
41
51
50
43
44
49
48
...

output:

? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1398 queries.

Test #17:

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

input:

150
3
0
1
0
56
55
61
63
41
44
52
55
56
59
58
61
58
60
1
4
2
56
56
58
41
22
22
12
13
17
18
20
20
4
8
3
56
58
42
23
14
8
10
7
9
4
8
1
9
4
55
54
59
63
64
58
58
61
61
62
62
63
63
63
63
4
13
5
55
59
42
24
14
10
11
2
15
6
55
55
58
41
43
51
51
48
48
44
46
47
47
3
18
7
54
57
41
20
13
10
9
7
1
17
10
14
14
1
...

output:

? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1373 queries.

Test #18:

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

input:

150
4
0
1
0
60
59
56
57
27
31
49
51
38
41
36
39
35
38
31
34
4
8
2
61
61
57
57
29
17
19
10
14
15
19
16
20
5
13
3
61
58
30
21
14
6
10
3
7
2
7
4
17
4
61
61
58
28
21
25
29
28
30
27
29
2
17
10
13
2
19
6
5
60
61
56
57
27
28
18
24
26
29
29
5
24
7
59
58
31
20
15
12
16
12
16
3
26
19
11
15
1
27
9
8
61
62
37
3...

output:

? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1359 queries.

Test #19:

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

input:

150
2
0
1
0
50
50
47
47
25
26
13
15
20
21
16
18
18
20
1
3
2
50
49
45
44
26
37
36
32
33
36
35
33
34
1
4
3
49
44
24
14
19
15
15
14
15
14
3
7
4
50
51
46
26
14
7
10
10
12
9
11
8
11
2
9
5
49
44
27
37
32
30
32
32
32
2
11
6
50
51
44
46
54
56
53
54
53
54
53
55
54
55
2
13
7
49
43
24
25
13
14
9
10
9
1
14
8
51...

output:

? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1434 queries.

Test #20:

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

input:

200
1
0
1
0
65
64
57
56
29
28
15
14
8
7
5
6
5
6
3
4
2
66
67
60
64
67
66
68
64
67
65
67
64
66
63
66
1
5
3
67
38
39
26
25
33
32
37
36
39
38
40
39
39
40
3
8
4
67
68
56
57
32
44
47
51
52
46
49
49
50
48
49
3
9
5
4
1
10
6
5
66
65
55
28
16
24
23
21
22
23
22
22
21
1
11
7
67
41
40
57
56
64
65
60
61
59
58
58
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1990 queries.

Test #21:

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

input:

200
3
0
1
0
67
66
64
64
40
40
22
25
29
31
25
27
23
26
2
5
2
68
68
65
42
53
55
61
62
56
57
56
57
55
56
2
7
3
70
45
47
27
26
33
35
32
32
32
34
32
32
31
33
2
9
4
69
68
65
65
42
54
55
48
49
44
45
42
43
41
42
2
11
5
68
67
73
75
70
71
71
72
73
75
71
73
2
13
6
69
68
65
40
22
11
13
16
16
14
16
1
14
7
68
64
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2010 queries.

Test #22:

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

input:

200
1
0
1
0
67
66
64
65
71
72
74
73
72
73
75
74
74
73
73
74
2
3
2
68
69
66
73
73
75
74
75
74
75
75
76
75
1
4
3
68
64
38
39
53
53
45
46
49
49
48
48
48
48
1
5
4
69
69
63
63
39
52
53
57
58
62
63
62
62
61
62
1
6
5
68
62
39
52
44
45
49
50
51
3
9
6
70
69
62
38
22
23
13
14
9
10
4
5
3
4
1
10
7
70
64
72
73
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1967 queries.

Test #23:

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

input:

200
1
0
1
0
75
75
65
66
75
75
72
72
68
69
71
72
72
72
71
72
1
2
2
74
74
66
75
72
68
67
67
67
67
66
67
1
3
3
73
64
41
40
22
23
38
37
30
29
27
26
25
24
1
4
4
74
73
64
63
42
53
54
65
64
57
56
56
55
56
55
1
5
5
73
63
42
54
66
66
65
66
65
64
65
2
7
6
74
73
63
40
23
14
16
17
18
15
17
3
10
7
75
65
42
23
15...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2166 queries.

Test #24:

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

input:

200
1
0
1
0
80
79
74
73
46
46
29
29
17
18
24
25
28
28
26
27
3
4
2
80
79
76
48
31
20
26
23
25
20
22
2
6
3
79
75
48
66
68
73
74
68
70
70
71
69
71
2
8
4
81
80
74
73
46
31
36
38
42
44
45
45
44
44
3
11
5
80
74
49
65
65
52
52
51
52
50
51
50
51
3
14
6
82
81
74
48
31
20
26
25
23
2
16
7
83
75
48
67
71
67
68
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1881 queries.

Test #25:

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

input:

200
6
0
1
0
86
85
101
100
74
76
46
48
29
31
18
21
10
15
5
10
6
11
5
16
3
2
87
87
102
77
50
33
22
14
9
5
21
4
88
88
97
98
76
50
34
39
43
36
41
3
24
5
88
98
75
48
32
41
39
3
26
18
14
1
27
7
6
89
88
97
75
85
86
90
90
88
88
85
86
3
30
8
90
89
96
96
71
72
43
46
62
64
51
53
49
51
48
2
32
9
89
95
72
44
28
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1829 queries.

Test #26:

score: 0
Accepted
time: 27ms
memory: 5644kb

input:

200
2
0
1
0
90
90
101
101
75
76
52
53
30
32
38
40
47
49
9
11
2
91
90
100
77
57
35
16
23
8
16
5
14
4
13
6
4
15
13
6
6
21
5
4
92
91
100
100
77
56
35
21
14
12
18
4
25
6
92
91
104
107
107
108
108
104
107
105
109
105
108
105
109
2
27
7
94
54
54
72
74
62
64
58
60
57
57
56
58
3
29
18
27
23
4
33
9
8
93
92
9...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1819 queries.

Test #27:

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

input:

200
4
0
1
0
87
87
95
95
71
72
43
47
62
64
53
55
49
51
47
49
3
7
2
87
86
96
73
45
22
24
17
19
8
11
14
16
3
8
7
1
9
4
3
87
86
96
97
98
97
99
99
96
97
99
99
98
98
97
98
5
14
5
87
97
73
45
25
20
11
6
9
5
19
6
87
86
96
73
48
64
58
61
63
57
60
4
23
7
86
98
73
45
26
31
35
37
40
35
39
1
24
8
88
87
95
94
72
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1845 queries.

Test #28:

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

input:

200
6
0
1
0
92
91
111
110
80
81
53
56
35
38
23
26
13
17
8
14
1
7
2
93
92
110
81
102
103
108
109
108
107
107
108
8
15
3
92
111
82
57
40
29
19
14
4
17
11
8
24
14
13
7
30
21
14
3
33
7
6
95
94
111
110
83
102
101
97
96
89
90
88
89
85
86
6
39
8
96
95
110
113
80
84
51
57
67
73
72
78
79
83
76
80
3
41
19
9
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1747 queries.

Test #29:

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

input:

200
7
0
1
0
94
94
107
107
77
80
40
45
28
33
17
24
24
31
4
11
2
94
93
107
78
44
60
62
50
54
56
59
54
57
6
17
3
93
107
79
44
32
23
28
21
25
3
18
12
8
4
21
15
21
2
23
6
5
94
93
106
105
77
42
60
51
48
49
42
43
3
25
19
13
10
3
28
8
7
95
95
105
107
76
78
38
40
27
32
34
32
34
30
1
29
9
95
106
104
105
101
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1816 queries.

Test #30:

score: 0
Accepted
time: 33ms
memory: 5824kb

input:

200
2
0
1
0
66
65
57
57
30
32
46
48
51
53
52
54
57
57
54
54
2
4
2
66
65
57
30
18
20
26
28
27
29
29
31
2
6
3
65
56
32
45
39
39
33
35
38
38
35
35
1
7
4
66
67
44
43
61
61
64
65
62
63
62
63
61
62
1
8
5
67
45
25
24
34
35
30
29
33
32
34
33
35
34
2
10
6
66
66
57
30
20
26
24
26
24
26
1
11
7
65
56
30
18
11
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1981 queries.

Test #31:

score: 0
Accepted
time: 28ms
memory: 6064kb

input:

200
1
0
1
0
71
70
61
62
76
75
75
74
67
68
70
69
69
68
67
68
1
2
2
72
73
42
42
60
60
70
70
70
70
71
71
73
73
72
2
4
3
73
62
47
49
54
56
58
59
54
55
54
55
53
55
3
7
4
72
72
60
60
47
30
33
40
43
45
47
42
45
1
8
5
71
59
47
30
17
17
11
12
15
15
14
14
1
9
6
72
71
61
76
77
76
77
72
73
73
72
72
71
73
72
1
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2212 queries.

Test #32:

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

input:

200
1
0
1
0
64
65
44
44
58
58
63
63
61
61
63
63
63
64
64
64
2
3
2
65
66
57
58
35
36
21
22
12
14
16
18
20
22
4
7
3
64
58
39
44
46
38
42
42
46
45
47
43
47
1
8
4
66
66
57
58
64
65
65
66
66
66
67
68
67
67
67
67
2
10
5
66
59
64
58
58
56
58
59
59
60
60
58
58
3
13
6
65
65
60
65
67
59
62
60
63
62
64
62
64
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2050 queries.

Test #33:

score: 0
Accepted
time: 32ms
memory: 5936kb

input:

200
1
0
1
0
69
68
56
57
64
65
68
67
65
66
68
67
69
68
67
68
1
2
2
69
69
57
65
68
68
66
67
69
67
66
3
5
3
70
59
67
70
69
71
69
68
3
8
4
70
69
55
54
30
32
20
22
14
16
9
12
12
14
10
13
3
11
5
69
56
33
46
49
52
55
53
56
54
55
53
56
1
12
6
71
70
54
31
45
41
40
36
35
32
33
3
15
7
71
55
31
22
16
11
5
8
7
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2140 queries.

Test #34:

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

input:

200
2
0
1
0
65
64
63
63
41
42
23
24
11
13
16
17
14
16
1
3
2
66
65
63
41
23
12
16
15
2
5
3
66
65
67
68
65
67
65
66
68
69
65
67
2
7
4
67
67
64
65
43
57
58
52
54
56
58
57
58
57
58
2
9
5
67
64
41
23
13
18
21
21
19
19
3
12
6
67
66
64
42
24
12
8
9
5
8
7
8
3
15
7
67
65
44
60
58
61
60
63
63
66
3
18
8
65
64
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2003 queries.

Test #35:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1892 queries.

Test #36:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1675 queries.

Test #37:

score: 0
Accepted
time: 45ms
memory: 5992kb

input:

200
2
0
1
0
72
71
56
55
39
40
22
24
33
35
38
40
40
41
38
40
2
4
2
73
73
56
39
22
12
12
8
10
12
12
10
12
2
6
3
73
58
67
69
70
72
73
73
74
76
74
74
73
75
2
8
4
74
73
54
55
40
23
13
9
4
5
2
3
2
10
5
75
55
41
53
55
56
57
53
55
55
57
2
12
6
74
73
53
39
22
12
8
4
4
1
13
7
73
53
38
23
32
28
27
26
25
24
23
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2191 queries.

Test #38:

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

input:

200
2
0
1
0
72
71
56
55
39
40
22
24
33
35
38
40
40
41
38
40
2
4
2
73
73
56
39
22
12
12
8
10
12
12
10
12
2
6
3
73
58
66
68
70
72
73
73
74
76
74
74
73
75
2
8
4
74
73
54
55
40
23
13
9
4
5
2
3
2
10
5
75
55
41
53
55
56
57
53
55
55
57
2
12
6
74
73
53
39
22
12
8
4
4
1
13
7
73
53
38
23
32
28
27
26
25
24
23
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2198 queries.

Test #39:

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

input:

200
3
0
1
0
71
71
63
63
40
40
23
23
10
11
7
10
9
10
8
9
1
4
2
72
71
62
41
54
54
48
48
47
47
45
45
43
43
2
6
3
72
63
40
25
28
30
35
35
32
32
31
31
1
7
4
73
72
64
64
41
53
54
59
60
63
64
63
64
1
8
5
72
65
82
81
70
71
80
79
76
77
78
79
2
10
6
74
73
63
40
23
10
9
9
10
2
12
7
74
66
82
82
69
70
64
65
64
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2054 queries.

Test #40:

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

input:

200
2
0
1
0
66
67
67
68
44
45
26
27
16
17
12
13
6
7
4
6
1
3
2
67
66
66
44
26
16
12
7
10
10
2
5
3
66
69
72
72
67
69
67
69
69
71
72
72
72
72
4
9
4
66
65
66
66
46
28
20
20
23
19
23
2
11
5
65
67
46
57
58
55
56
50
52
54
55
53
54
2
13
6
65
64
66
44
26
18
20
19
18
20
1
14
7
66
47
48
31
30
40
39
44
43
46
45...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2084 queries.

Test #41:

score: 0
Accepted
time: 28ms
memory: 5976kb

input:

200
3
0
1
0
76
76
60
61
33
36
50
53
54
57
57
58
56
59
2
5
2
76
75
61
35
52
55
52
54
53
54
53
54
1
6
3
75
61
73
74
76
75
72
71
72
71
72
72
72
73
2
8
4
75
74
60
59
34
21
22
13
15
18
19
17
19
4
12
5
76
62
37
49
52
39
43
44
48
48
52
3
15
6
76
77
61
34
22
16
19
18
15
18
2
17
7
75
59
33
23
25
25
25
27
25
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2164 queries.

Test #42:

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

input:

200
4
0
1
0
71
71
65
69
75
77
67
70
65
68
68
71
68
71
67
70
4
8
2
72
71
64
36
37
26
28
14
18
19
21
17
21
1
9
3
71
66
75
68
71
71
70
71
72
72
71
71
1
10
4
73
73
63
63
36
26
14
9
9
3
3
2
3
3
13
5
73
64
39
48
49
41
44
44
47
49
50
48
49
2
14
10
10
2
16
7
6
74
73
63
37
27
16
21
23
25
2
18
8
73
73
62
63
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2116 queries.

Test #43:

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

input:

200
1
0
1
0
76
75
68
67
45
44
24
25
36
35
31
30
29
30
1
1
2
3
3
2
74
73
69
46
26
37
33
35
36
33
35
3
6
4
75
74
69
71
47
27
39
41
44
46
48
44
46
2
8
5
74
68
44
23
14
14
7
9
12
12
9
9
2
10
6
74
73
69
46
26
37
32
30
25
27
2
12
7
73
69
45
26
38
43
46
44
3
15
8
75
74
65
65
47
22
24
14
5
8
11
9
2
16
8
12
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2073 queries.

Test #44:

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

input:

200
1
0
1
0
100
99
150
149
175
174
187
186
193
192
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
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
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1752 queries.

Test #45:

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

input:

200
1
0
1
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
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
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1628 queries.

Test #46:

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

input:

200
16
0
1
0
14
18
14
24
11
24
8
21
6
19
3
16
2
16
1
15
14
28
18
44
33
11
53
38
27
22
73
50
65
8
79
52
60
14
91
58
86
67
26
115
79
104
99
11
124
64
90
101
12
136
10
9
14
18
14
21
11
20
7
18
5
17
7
18
6
17
17
15
149
88
130
139
14
161
93
138
149
20
179
99
144
168
156
9
186
100
145
169
158
1
185
90
54
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1708 queries.

Test #47:

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

input:

200
15
0
1
0
14
19
14
23
11
22
10
22
5
19
3
18
4
19
15
28
16
42
30
19
59
46
34
17
74
45
58
16
88
58
74
13
99
55
86
72
16
113
75
103
90
6
117
65
94
104
17
132
91
116
129
13
143
87
126
129
16
157
104
133
147
13
168
101
130
155
145
20
186
119
152
176
163
1
185
98
58
28
16
1
184
112
58
28
16
1
183
114
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1685 queries.

Test #48:

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

input:

200
2
0
1
0
77
77
73
73
44
44
24
26
35
35
30
30
28
30
2
4
2
77
78
74
46
60
61
53
55
57
59
60
61
58
59
2
6
3
76
75
78
77
76
76
76
76
73
75
74
76
2
8
4
78
77
71
72
46
61
51
53
55
57
59
58
2
10
5
78
73
77
77
76
76
74
73
75
73
75
2
12
6
79
78
72
45
26
36
32
33
35
2
14
7
79
73
78
78
76
78
76
78
76
78
79
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2231 queries.

Test #49:

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

input:

200
2
0
1
0
71
70
60
59
40
40
25
27
35
35
30
30
28
28
27
27
2
4
2
71
72
61
42
55
57
57
58
55
57
57
58
57
58
2
6
3
70
60
42
57
58
57
58
58
2
8
4
72
71
59
59
40
25
14
16
20
22
23
25
2
10
5
71
61
69
69
67
67
64
64
63
63
62
62
60
2
12
6
72
72
59
42
56
56
47
47
41
43
45
47
2
14
7
71
58
39
25
14
8
8
4
4
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2204 queries.

Test #50:

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

input:

200
2
0
1
0
78
78
56
56
32
32
20
22
27
29
29
29
29
29
28
28
2
4
2
77
77
58
77
77
71
71
63
65
66
66
64
64
64
64
2
6
3
76
56
32
22
27
22
24
26
26
24
26
2
8
4
76
75
54
54
32
20
12
12
6
8
10
10
8
10
2
10
5
75
53
34
47
48
36
38
42
43
40
42
2
12
6
77
77
56
75
75
68
70
75
77
76
76
76
76
75
77
2
14
7
76
56
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2201 queries.

Test #51:

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

input:

200
2
0
1
0
74
75
64
65
37
38
22
23
12
13
8
9
4
6
6
8
2
4
2
75
74
66
76
75
71
70
69
69
68
68
66
66
66
66
2
6
3
74
64
38
23
14
17
19
21
22
19
21
2
8
4
75
74
62
64
74
76
78
77
78
77
78
78
78
78
76
2
10
5
76
63
39
46
48
53
55
56
57
57
58
55
57
2
12
6
76
76
63
39
48
55
57
58
56
2
14
7
77
64
74
76
79
80
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2245 queries.

Test #52:

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

input:

200
2
0
1
0
79
81
47
46
65
65
72
74
66
68
65
67
66
66
65
66
2
4
2
80
80
68
68
40
40
22
24
31
33
36
36
35
37
2
6
3
81
70
84
86
79
81
78
80
78
79
78
79
77
79
2
8
4
80
80
66
66
42
52
52
47
49
49
49
50
50
48
50
2
10
5
79
65
42
54
62
63
58
60
62
63
60
62
2
12
6
78
78
66
40
22
14
14
8
8
4
4
2
4
2
14
7
77
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2224 queries.

Test #53:

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

input:

200
2
0
1
0
70
69
61
61
42
42
23
25
32
33
29
30
27
28
25
27
2
4
2
70
70
63
73
75
73
73
75
77
74
74
75
75
74
76
2
6
3
71
62
44
49
51
54
55
51
53
53
54
53
54
2
8
4
71
73
49
48
63
64
67
69
62
64
62
64
64
65
62
64
2
10
5
71
59
61
71
71
67
67
66
66
63
63
62
64
62
64
2
12
6
71
70
59
42
23
14
14
8
8
4
4
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2195 queries.

Test #54:

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

input:

200
2
0
1
0
72
71
63
65
72
71
71
71
67
67
64
66
67
67
66
66
2
4
2
73
74
65
74
72
73
73
74
73
75
74
75
74
76
2
6
3
72
63
43
45
59
59
53
53
50
50
46
48
48
48
2
8
4
72
71
62
62
44
26
27
14
16
20
21
18
19
16
17
2
10
5
72
64
73
75
73
75
70
72
72
72
70
72
2
12
6
73
74
64
73
74
71
72
68
69
70
68
68
2
14
7
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2159 queries.

Test #55:

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

input:

200
2
0
1
0
70
69
65
65
41
43
55
55
48
48
46
48
48
48
47
49
2
4
2
68
68
65
41
23
23
14
16
19
19
17
17
15
17
2
6
3
67
66
43
57
61
62
58
59
56
58
2
8
4
69
68
66
65
41
25
30
32
35
37
39
39
37
37
2
10
5
69
67
43
54
56
59
60
57
54
56
2
10
8
10
2
12
7
6
68
70
53
52
69
69
67
69
73
73
70
72
71
71
72
72
2
14...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2157 queries.

Test #56:

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

input:

200
2
0
1
0
82
81
73
73
42
44
59
59
53
53
50
52
51
51
49
51
2
4
2
83
82
73
42
24
24
14
16
20
22
23
24
21
22
2
6
3
83
75
81
82
77
79
83
85
81
83
81
83
2
8
4
83
83
72
74
81
77
77
76
76
74
74
73
75
73
75
2
10
5
82
71
41
23
16
19
18
19
16
17
2
12
6
83
82
73
43
26
35
37
39
41
43
44
41
42
2
14
7
84
74
81
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2205 queries.

Test #57:

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

input:

200
2
0
1
0
70
71
65
67
75
76
73
75
76
78
73
75
73
75
2
4
2
70
70
67
75
73
69
69
68
68
67
67
67
67
2
6
3
70
67
75
75
76
75
77
77
77
75
77
2
8
4
68
69
66
67
39
41
59
60
49
51
53
55
57
58
55
56
2
10
5
68
66
39
24
26
34
35
30
31
28
29
26
27
2
12
6
68
69
67
40
25
14
15
8
10
12
14
2
14
7
68
66
39
24
16
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2229 queries.

Test #58:

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

input:

200
2
0
1
0
72
71
65
65
41
43
55
57
64
64
58
58
56
58
2
4
2
73
72
65
41
22
22
13
13
8
10
12
14
2
6
3
75
43
42
60
60
70
70
74
74
73
75
73
75
2
8
4
74
73
64
63
43
53
55
62
61
57
56
58
2
9
6
8
2
10
8
10
3
13
7
6
75
74
65
42
23
14
9
4
7
6
7
2
15
8
74
73
65
64
40
40
20
22
28
30
34
36
38
38
36
38
2
17
9
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2177 queries.

Test #59:

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

input:

200
2
0
1
0
72
72
63
65
76
76
73
75
75
77
74
74
75
75
76
76
2
4
2
73
73
63
43
43
23
23
13
13
8
10
12
12
10
10
2
6
3
73
65
76
73
69
69
67
67
66
66
64
64
2
8
4
73
74
64
66
75
77
73
75
73
74
72
73
72
74
2
10
5
72
63
42
25
35
34
29
31
33
32
31
32
2
12
6
72
71
64
45
59
61
60
62
64
65
64
65
62
63
2
14
7
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2167 queries.

Test #60:

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

input:

200
2
0
1
0
76
75
66
65
41
41
23
23
13
13
7
9
11
11
9
9
2
4
2
77
76
67
42
25
33
34
29
31
33
34
31
32
2
6
3
76
65
42
24
14
9
12
10
2
8
4
77
79
51
50
66
68
60
61
66
67
66
68
67
68
68
69
2
10
5
77
66
67
43
53
54
46
48
47
48
47
49
2
12
6
76
75
68
75
77
82
82
81
83
81
83
82
82
82
82
2
14
7
75
67
42
25
34...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2178 queries.

Test #61:

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

input:

200
2
0
1
0
72
72
64
64
42
42
22
22
14
15
8
9
4
5
2
4
2
4
2
72
72
66
71
71
74
76
75
75
76
76
75
75
76
76
2
6
3
71
66
70
74
68
68
67
67
66
66
64
66
2
8
4
72
72
64
65
43
24
34
35
28
29
26
27
24
25
2
8
6
6
2
10
6
5
73
75
49
48
62
61
68
69
70
72
68
70
68
70
2
11
7
6
2
13
8
7
71
70
65
64
40
42
52
52
47
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2174 queries.

Test #62:

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

input:

200
2
0
1
0
69
68
66
65
40
42
53
54
44
46
50
52
54
55
52
53
2
4
2
70
72
48
47
64
64
70
70
71
73
70
72
68
70
2
6
3
69
68
73
75
75
77
71
73
70
70
71
71
72
72
2
8
4
70
69
65
66
42
56
62
64
63
65
64
66
2
10
5
70
65
40
23
25
32
32
29
29
27
29
2
12
6
71
73
48
48
66
66
69
70
71
72
69
71
71
72
70
72
2
14
7
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2172 queries.

Test #63:

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

input:

200
2
0
1
0
72
71
59
58
42
43
22
23
12
13
6
7
4
5
2
3
2
4
2
73
73
59
42
22
12
8
10
12
2
6
3
73
60
44
47
48
44
45
45
46
43
45
44
45
2
8
4
74
74
57
59
70
71
64
65
65
67
64
66
63
64
64
65
2
10
5
74
57
44
47
47
45
45
46
46
46
47
2
12
6
74
73
57
44
47
47
46
48
47
48
45
47
2
14
7
74
59
69
71
72
74
69
71
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2187 queries.

Test #64:

score: 0
Accepted
time: 34ms
memory: 6292kb

input:

200
2
0
1
0
71
72
62
63
42
44
52
54
58
60
60
62
62
63
60
62
2
4
2
70
71
64
75
77
74
76
73
74
74
76
73
74
74
75
2
6
3
69
64
77
76
73
74
74
74
73
75
2
8
4
71
71
64
73
75
75
75
72
74
74
74
74
74
72
74
2
10
5
71
62
44
51
51
47
49
48
50
49
51
2
12
6
71
70
62
42
23
25
33
33
29
31
31
33
2
12
6
6
2
14
8
7
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2217 queries.

Test #65:

score: 0
Accepted
time: 28ms
memory: 6204kb

input:

200
2
0
1
0
80
80
61
63
75
75
67
67
63
63
61
62
62
63
60
62
2
2
2
4
3
2
79
78
60
42
44
52
52
45
47
49
51
50
50
48
50
2
6
4
80
79
61
60
42
23
25
32
34
38
38
36
36
34
34
2
8
5
80
61
44
52
58
58
56
56
54
56
2
10
6
78
80
52
51
72
71
74
74
76
76
79
79
79
80
2
12
7
80
53
52
73
72
74
74
77
79
75
77
75
75
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2194 queries.

Test #66:

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

input:

200
2
0
1
0
75
75
69
69
45
45
25
25
14
14
8
8
4
6
6
8
2
4
2
75
75
69
45
27
37
37
31
33
35
35
33
35
2
6
3
75
70
46
26
15
9
6
7
2
8
4
76
75
69
68
46
27
39
41
43
44
45
42
44
2
10
5
75
69
46
26
15
10
12
14
2
12
6
76
75
69
47
57
59
61
63
65
65
63
63
62
64
2
14
7
78
51
51
70
70
73
75
72
74
70
72
69
71
2
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2213 queries.

Test #67:

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

input:

200
2
0
1
0
75
76
68
69
43
44
25
27
35
37
39
40
37
38
37
39
2
4
2
75
74
69
44
26
13
14
8
9
4
5
2
3
2
6
3
74
69
45
60
61
55
57
58
59
56
58
2
8
4
74
74
66
66
45
59
59
53
55
58
59
59
58
2
10
5
73
65
43
27
35
31
31
29
31
2
12
6
75
74
66
43
25
13
10
12
12
10
12
2
14
7
75
66
45
59
55
56
55
55
55
1
15
8
75...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2185 queries.

Test #68:

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

input:

200
2
0
1
0
67
67
67
69
78
78
74
76
79
81
79
81
77
79
2
4
2
68
69
68
46
48
63
65
67
69
68
69
67
68
67
69
2
6
3
69
68
47
24
26
36
37
30
31
28
29
26
28
2
8
4
69
71
49
48
60
62
55
56
58
60
57
58
57
59
2
10
5
68
67
66
46
26
36
32
34
34
32
32
2
10
8
8
2
12
7
6
70
70
67
48
62
62
54
54
52
52
50
50
48
48
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2202 queries.

Test #69:

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

input:

200
2
0
1
0
74
74
66
66
36
36
25
25
14
14
8
8
4
4
2
4
2
4
2
75
77
46
45
65
65
68
69
70
72
69
70
70
71
69
71
2
6
3
74
68
73
75
77
77
74
76
78
78
77
79
2
8
4
75
75
65
65
38
56
58
61
63
61
63
65
65
63
63
2
10
5
74
65
38
56
47
49
52
54
54
56
2
12
6
76
76
67
73
75
77
77
74
74
72
74
73
73
74
74
2
14
7
76
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2209 queries.

Test #70:

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

input:

200
2
0
1
0
73
73
69
70
42
43
26
28
33
34
30
32
33
34
31
33
2
4
2
73
73
71
78
78
74
75
70
72
72
74
72
73
71
73
2
6
3
72
70
44
56
58
63
64
60
62
63
64
62
63
2
8
4
74
73
69
69
42
26
14
16
20
22
24
26
2
10
5
74
71
76
78
77
79
75
77
74
76
75
75
76
76
2
12
6
74
71
77
78
73
74
76
74
76
76
77
76
77
2
14
7
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2266 queries.

Test #71:

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

input:

200
2
0
1
0
73
73
58
60
73
74
68
70
71
73
73
74
72
73
72
74
2
4
2
74
74
58
39
39
24
26
32
32
26
26
24
24
24
25
2
6
3
73
59
40
25
14
15
8
9
4
5
2
4
2
8
4
74
74
59
59
40
26
33
28
30
31
28
29
2
10
5
74
60
41
50
52
55
56
53
54
52
53
50
51
2
12
6
74
74
60
41
52
57
56
58
59
60
58
59
2
14
7
74
59
40
25
15
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2214 queries.

Test #72:

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

input:

200
2
0
1
0
77
77
71
71
38
40
54
56
61
63
66
68
69
71
2
3
2
5
3
2
76
76
73
76
78
80
80
79
79
79
79
80
80
78
78
2
7
4
76
78
49
48
66
67
72
73
75
77
74
76
72
74
2
9
5
76
70
40
54
56
61
63
64
66
67
69
2
11
6
76
76
69
40
54
47
49
50
52
52
54
2
12
6
4
3
2
14
8
7
77
76
66
36
36
21
23
28
30
30
32
34
34
32
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2145 queries.

Test #73:

score: 0
Accepted
time: 32ms
memory: 6080kb

input:

200
2
0
1
0
78
78
62
64
84
84
78
80
83
85
86
86
86
86
84
86
2
4
2
77
77
64
85
80
85
87
87
86
2
4
2
2
6
4
3
78
77
61
61
44
46
54
54
49
51
51
51
49
49
48
50
2
8
5
79
62
45
26
28
36
38
40
42
42
43
40
42
2
10
6
78
77
62
45
27
14
16
20
21
18
19
16
17
2
12
7
77
63
85
84
75
75
69
71
72
74
76
76
74
76
2
12
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2203 queries.

Test #74:

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

input:

200
2
0
1
0
79
79
71
73
83
85
77
79
77
77
78
78
77
77
76
78
2
4
2
77
76
70
45
45
25
27
35
37
40
40
38
38
37
39
2
6
3
78
72
46
27
36
29
31
33
34
31
32
2
8
4
78
77
71
71
45
27
35
31
35
2
10
5
77
72
47
58
59
51
53
54
55
53
54
51
53
2
12
6
77
78
73
82
83
76
78
78
79
77
78
77
78
76
77
2
14
7
76
70
44
26
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2185 queries.

Test #75:

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

input:

200
2
0
1
0
78
77
57
56
35
37
51
53
54
54
52
52
50
52
2
4
2
77
76
59
76
75
68
68
64
64
61
61
60
62
60
62
2
6
3
76
58
36
21
23
28
29
25
26
23
24
21
23
2
8
4
77
77
57
58
36
22
14
16
18
19
16
17
16
17
2
10
5
77
58
37
49
51
53
55
55
56
56
57
56
2
12
6
77
76
57
37
49
46
48
47
47
46
48
2
14
7
77
58
37
50
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2286 queries.

Test #76:

score: 0
Accepted
time: 27ms
memory: 6268kb

input:

200
2
0
1
0
74
73
62
61
38
39
24
25
12
14
18
19
16
18
2
4
2
75
76
63
40
52
53
46
48
48
50
50
52
2
6
3
74
62
40
52
46
43
43
42
44
43
43
2
8
4
75
75
62
64
75
76
69
70
64
65
62
64
63
65
2
10
5
74
61
38
25
13
8
9
4
5
2
3
2
12
6
76
75
63
40
51
44
46
46
48
50
51
50
2
14
7
75
64
75
74
67
67
65
65
65
65
65
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2193 queries.

Test #77:

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

input:

200
2
0
1
0
64
64
59
61
66
67
65
67
63
65
64
65
64
66
2
4
2
65
64
60
36
38
49
51
53
55
56
57
56
57
55
56
2
6
3
66
61
67
66
64
65
62
63
62
64
62
64
2
8
4
66
68
48
48
62
64
57
59
51
53
51
51
50
52
2
10
5
65
57
58
37
22
23
14
16
17
19
20
21
18
20
2
12
6
65
65
57
36
22
16
19
22
2
13
8
11
9
2
15
8
7
66
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2245 queries.

Test #78:

score: 0
Accepted
time: 30ms
memory: 6012kb

input:

200
2
0
1
0
64
65
65
67
68
70
67
69
67
68
68
69
68
69
67
68
2
4
2
65
64
65
38
40
55
56
49
51
52
54
53
54
51
53
2
6
3
65
66
39
23
24
12
13
8
9
4
6
6
8
2
8
4
65
64
64
63
38
25
34
34
29
31
32
34
2
10
5
65
65
40
55
57
59
61
62
59
61
2
12
6
66
65
64
40
55
59
63
64
64
62
64
2
14
7
65
63
37
22
11
7
4
2
2
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2165 queries.

Test #79:

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

input:

200
2
0
1
0
83
82
69
69
44
45
24
25
14
15
8
9
4
6
6
7
2
4
2
82
82
71
81
81
76
76
71
73
74
76
74
76
2
6
3
83
71
82
78
82
84
80
82
81
82
81
82
2
8
4
83
82
69
69
44
26
32
34
38
38
36
36
34
34
2
10
5
82
69
44
24
14
10
12
14
2
12
6
83
82
68
43
23
15
10
13
10
11
2
14
7
82
68
44
26
32
30
30
28
30
2
16
8
84...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2140 queries.

Test #80:

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

input:

200
2
0
1
0
77
76
67
67
40
42
55
57
63
63
58
58
56
56
54
56
2
4
2
77
78
68
41
25
26
14
16
20
21
18
19
16
18
2
6
3
76
66
41
27
35
37
36
38
38
39
36
37
2
8
4
78
77
67
67
40
26
16
21
19
17
2
10
5
77
67
42
53
53
47
47
44
44
42
42
40
42
2
12
6
79
79
69
81
83
82
82
81
81
82
82
82
82
81
83
2
14
7
78
69
80
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2174 queries.

Test #81:

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

input:

200
2
0
1
0
75
75
63
64
41
43
55
56
49
51
54
55
52
54
2
4
2
75
75
65
74
74
71
73
73
75
73
73
74
74
75
75
2
6
3
76
65
75
72
69
70
66
67
64
65
64
66
2
8
4
76
75
61
63
74
75
71
72
68
70
69
71
71
73
2
10
5
76
63
74
71
68
65
65
64
63
2
12
6
75
74
61
43
55
57
58
60
58
60
60
60
60
60
2
14
7
76
63
72
73
72
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2165 queries.

Test #82:

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

input:

200
2
0
1
0
73
73
71
73
74
76
75
75
74
76
75
75
76
76
75
77
2
4
2
73
72
70
39
39
21
21
13
15
19
19
17
19
2
6
3
74
73
76
73
75
76
77
78
79
76
77
77
2
8
4
73
72
69
69
41
57
59
63
65
65
65
65
65
65
65
2
10
5
74
71
73
74
72
73
73
74
73
74
72
73
72
2
12
6
74
73
69
41
57
49
51
53
55
55
57
2
14
7
74
69
41
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2186 queries.

Test #83:

score: 0
Accepted
time: 29ms
memory: 6016kb

input:

200
2
0
1
0
76
75
68
70
77
79
83
82
80
82
79
81
82
82
81
81
2
4
2
77
77
68
41
43
56
56
51
51
48
48
45
46
43
44
2
6
3
76
67
40
24
24
14
16
18
18
16
18
2
8
4
77
76
67
69
76
76
72
72
68
68
67
67
67
67
68
2
10
5
76
66
40
24
16
20
22
22
20
22
2
12
6
77
77
69
74
75
72
73
66
67
67
69
67
68
69
2
14
7
76
67
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2203 queries.

Test #84:

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

input:

200
1
0
1
0
80
80
69
70
78
79
80
80
75
76
77
78
78
79
2
3
2
81
80
69
43
44
24
25
14
16
20
21
18
19
16
17
2
5
3
80
71
80
77
76
78
77
78
75
77
2
7
4
80
80
69
69
43
26
34
36
40
42
43
43
42
42
2
9
5
79
69
43
26
36
40
38
40
2
11
6
79
79
69
45
57
57
50
52
53
53
52
54
2
13
7
80
71
76
77
71
73
74
76
75
76
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2212 queries.

Test #85:

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

input:

200
2
0
1
0
74
73
68
68
36
38
55
57
63
65
64
64
62
64
2
4
2
75
77
48
48
68
68
71
71
71
73
68
70
70
72
2
6
3
76
69
38
56
48
50
51
52
50
51
48
49
2
8
4
76
75
67
67
37
21
23
28
29
25
27
26
27
25
27
2
10
5
76
69
81
83
83
83
86
86
85
87
85
85
86
86
2
12
6
77
76
69
79
79
74
76
78
80
81
81
79
81
2
14
7
76
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2183 queries.

Test #86:

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

input:

200
2
0
1
0
73
75
48
47
67
68
69
71
69
71
66
68
65
66
66
67
2
4
2
74
73
69
68
38
38
24
24
14
16
20
20
18
20
2
6
3
73
69
38
26
36
36
30
30
28
30
2
8
4
75
75
69
70
39
26
38
38
39
38
39
36
37
2
10
5
74
70
39
25
15
8
10
12
14
2
12
6
76
76
70
39
26
38
39
39
38
2
14
7
76
69
40
56
56
47
47
43
43
41
41
40
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2196 queries.

Test #87:

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

input:

200
2
0
1
0
74
75
63
64
37
38
22
23
12
13
8
9
4
6
6
8
2
4
2
73
72
63
39
49
51
55
55
51
51
49
49
48
50
2
6
3
72
65
72
72
72
72
69
71
70
70
69
71
2
8
4
74
74
62
63
38
23
14
16
17
16
18
2
10
5
73
62
37
24
29
31
34
36
36
36
36
36
2
12
6
75
75
63
38
23
13
9
5
2
4
2
14
7
75
62
39
47
47
43
43
41
41
39
41
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2186 queries.

Test #88:

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

input:

200
2
0
1
0
80
79
68
70
82
81
74
75
70
72
76
77
74
76
2
4
2
80
82
45
47
22
24
13
13
18
19
20
22
18
20
2
5
4
2
7
4
3
80
81
67
68
42
43
23
25
32
34
36
38
40
42
2
9
5
79
68
43
24
14
15
8
9
4
6
6
8
2
8
4
4
4
2
10
6
5
79
78
67
42
25
34
36
34
36
2
12
7
79
79
66
67
41
21
23
30
32
35
32
33
33
2
14
8
78
67
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2209 queries.

Test #89:

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

input:

200
2
0
1
0
68
68
70
70
45
46
24
26
36
38
42
44
44
45
42
44
2
4
2
69
69
71
46
26
38
44
45
43
2
6
3
69
70
46
25
13
15
19
21
23
24
21
23
2
7
6
2
9
5
4
69
69
68
70
69
69
72
74
73
73
71
73
74
74
73
73
2
11
6
70
69
68
45
24
15
21
23
23
2
13
7
71
69
47
58
59
50
51
45
47
49
50
47
49
2
15
8
70
70
66
67
45
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2144 queries.

Test #90:

score: 0
Accepted
time: 33ms
memory: 5996kb

input:

200
2
0
1
0
78
78
66
68
67
68
72
73
71
73
72
73
73
74
73
74
2
4
2
78
77
66
34
36
53
54
47
48
42
43
38
40
40
41
2
6
3
77
65
36
52
47
42
38
36
36
2
8
4
79
79
64
65
36
51
53
59
61
63
65
64
66
2
10
5
80
66
66
68
76
77
70
71
67
68
68
69
69
2
12
6
77
77
66
67
69
75
75
70
70
70
69
71
2
14
7
76
66
67
71
71
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2216 queries.

Test #91:

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

input:

200
2
0
1
0
81
80
71
71
49
49
26
26
14
14
8
10
12
12
10
12
2
4
2
81
81
71
49
26
14
8
4
4
2
4
2
6
3
80
70
49
26
14
9
6
6
8
2
8
4
80
79
69
69
49
26
16
20
22
24
24
22
22
2
10
5
79
68
51
59
60
54
55
51
52
51
53
2
12
6
80
80
70
51
61
67
68
62
64
65
67
2
14
7
79
69
51
60
56
56
57
54
55
54
56
2
16
8
81
81
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2233 queries.

Test #92:

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

input:

200
2
0
1
0
73
72
69
69
42
42
24
26
33
33
27
29
31
33
2
4
2
73
73
69
44
60
60
48
50
54
56
58
58
56
56
2
6
3
73
69
42
24
14
16
18
18
16
18
2
8
4
73
72
68
68
42
26
33
27
26
28
2
10
5
73
70
75
75
74
75
73
75
73
75
75
76
73
75
2
12
6
73
73
68
42
24
16
20
22
24
2
12
6
4
2
2
14
8
7
73
73
67
67
40
42
56
46...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2242 queries.

Test #93:

score: 0
Accepted
time: 27ms
memory: 5992kb

input:

200
2
0
1
0
79
79
66
66
45
45
25
25
14
14
8
8
4
6
6
8
2
4
2
80
80
66
45
27
35
37
41
41
39
39
37
39
2
6
3
79
67
46
26
16
20
21
18
20
2
8
4
81
80
66
65
45
27
35
31
33
35
35
33
35
2
10
5
81
66
45
25
15
10
12
13
10
11
2
12
6
81
80
65
46
26
16
22
24
25
22
23
2
12
6
4
4
2
14
8
7
81
80
64
64
43
45
59
61
61...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2200 queries.

Test #94:

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

input:

200
2
0
1
0
76
76
67
68
40
41
23
25
34
35
28
29
26
27
25
26
2
4
2
77
77
67
40
25
34
28
26
25
2
6
3
76
69
76
76
72
74
74
76
75
75
73
75
2
8
4
77
76
66
66
40
25
36
35
37
39
39
37
39
2
10
5
77
68
76
77
71
72
68
69
69
71
69
70
70
71
2
12
6
77
77
66
42
57
59
64
66
64
66
66
66
66
66
2
11
5
3
2
2
13
8
7
78...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2205 queries.

Test #95:

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

input:

200
2
0
1
0
79
78
74
75
48
49
24
26
36
38
42
43
40
41
38
39
1
3
2
79
80
49
48
66
67
58
58
61
62
61
61
62
62
60
61
2
5
3
79
76
88
88
85
85
81
83
83
85
85
85
84
86
2
7
4
80
80
74
76
86
87
86
81
82
77
79
81
82
79
81
2
9
5
79
75
49
25
14
15
8
10
12
13
10
11
2
11
6
81
80
73
47
24
16
20
22
24
24
22
22
2
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2225 queries.

Test #96:

score: 0
Accepted
time: 31ms
memory: 5912kb

input:

200
2
0
1
0
71
70
71
70
44
45
22
24
33
35
39
41
42
44
2
4
2
71
70
72
46
64
66
69
70
67
68
65
66
63
65
2
6
3
72
73
76
77
82
83
78
80
81
83
82
83
82
83
2
8
4
71
72
72
73
45
24
35
40
37
38
35
36
2
10
5
71
73
46
62
63
54
55
50
52
54
55
52
53
2
12
6
71
70
72
44
22
14
16
20
21
18
19
16
17
2
12
8
10
10
2
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2135 queries.

Test #97:

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

input:

200
2
0
1
0
75
74
69
68
45
45
24
26
35
37
39
41
43
43
41
43
2
4
2
73
74
71
73
75
73
74
74
75
77
78
75
77
2
6
3
72
70
46
25
14
15
8
10
12
13
10
11
2
8
4
74
75
67
68
46
25
16
18
20
22
23
20
21
2
8
4
4
2
10
6
5
74
74
67
45
26
35
29
29
28
28
26
28
2
12
7
73
66
45
24
14
8
4
6
6
6
2
14
8
74
74
65
65
43
22...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2212 queries.

Test #98:

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

input:

200
14
0
1
0
100
99
149
149
166
167
144
147
104
110
74
82
47
58
21
35
17
31
2
101
100
148
166
147
112
83
58
37
17
45
31
15
56
44
28
17
69
45
30
21
82
61
49
32
38
108
79
66
50
22
116
73
52
35
20
122
70
48
34
22
128
81
60
48
34
26
134
84
67
55
39
24
140
96
67
54
37
24
147
96
64
51
36
25
151
117
72
52
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1764 queries.

Test #99:

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

input:

200
96
0
1
0
100
99
150
149
175
174
186
186
189
191
181
187
136
168
78
143
82
137
89
166
144
89
179
159
138
96
186
166
144
99
188
182
169
153
94
188
179
166
144
101
190
190
171
152
91
190
186
168
145
95
190
190
181
164
141
97
189
191
182
168
146
91
188
192
177
161
138
86
187
190
178
165
142
90
186
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1752 queries.

Test #100:

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

input:

200
99
0
1
0
0
99
50
49
75
74
87
86
93
92
96
95
98
97
99
98
99
98
99
97
98
99
96
97
98
99
95
97
98
99
94
96
97
98
99
93
96
97
98
99
92
95
97
98
99
91
95
97
98
99
90
94
96
97
98
99
89
94
96
97
98
99
88
93
96
97
98
99
87
93
96
97
98
99
86
92
95
97
98
99
85
92
95
97
98
99
84
91
95
97
98
99
83
91
95
97
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1725 queries.

Test #101:

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

input:

200
99
0
1
0
0
99
50
49
75
74
87
86
93
92
96
95
98
97
99
98
99
98
99
97
98
99
96
97
98
99
95
97
98
99
94
96
97
98
99
93
96
97
98
99
92
95
97
98
99
91
95
97
98
99
90
94
96
97
98
99
89
94
96
97
98
99
88
93
96
97
98
99
87
93
96
97
98
99
86
92
95
97
98
99
85
92
95
97
98
99
84
91
95
97
98
99
83
91
95
97
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1725 queries.

Test #102:

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

input:

200
100
0
1
0
1
99
51
149
76
174
88
186
94
192
97
195
99
197
100
198
99
99
99
98
99
99
97
98
99
99
96
98
99
99
95
97
98
99
99
94
97
98
99
99
93
96
98
99
99
92
96
98
99
99
91
95
97
98
99
99
90
95
97
98
99
99
89
94
97
98
99
99
88
94
97
98
99
99
87
93
96
98
99
99
86
93
96
98
99
99
85
92
96
98
99
99
84
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1752 queries.

Test #103:

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

input:

200
2
0
1
0
71
73
47
47
61
61
65
65
71
71
71
71
72
72
70
72
2
4
2
72
72
64
65
41
43
53
55
59
60
56
57
55
56
55
57
2
6
3
71
63
40
22
23
10
12
16
17
14
15
12
13
2
8
4
73
73
65
67
70
70
69
70
64
66
65
67
67
68
67
68
2
10
5
74
66
43
53
54
51
53
51
53
51
53
2
12
6
74
74
65
41
24
33
33
28
28
26
26
24
24
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2220 queries.

Test #104:

score: 0
Accepted
time: 31ms
memory: 5976kb

input:

200
2
0
1
0
75
74
67
68
43
44
24
25
13
15
18
20
22
23
20
22
2
4
2
73
72
67
45
59
61
64
65
64
65
62
64
2
6
3
72
66
43
26
36
36
31
33
35
35
33
35
2
8
4
74
74
67
69
71
71
69
70
72
73
70
71
69
71
68
70
2
10
5
74
69
71
71
72
74
71
73
71
71
70
72
2
12
6
74
75
68
45
57
59
64
65
64
64
65
65
2
14
7
74
67
45
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2123 queries.

Test #105:

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

input:

200
2
0
1
0
69
70
58
60
67
69
72
73
71
72
72
74
71
72
71
73
2
4
2
69
71
49
49
63
65
58
58
59
61
57
59
58
58
57
59
2
6
3
68
57
35
36
24
26
30
31
29
31
29
30
30
31
2
8
4
70
69
58
57
37
48
47
41
40
38
37
38
37
37
37
2
10
5
69
57
34
26
29
29
28
30
2
12
6
70
70
60
68
70
72
72
72
67
69
70
70
69
71
2
14
7
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2197 queries.

Test #106:

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

input:

200
2
0
1
0
74
73
57
58
39
41
48
49
46
47
44
45
42
44
42
44
2
4
2
75
74
59
74
74
67
67
64
64
60
62
64
64
62
64
2
6
3
77
47
47
63
63
69
71
66
68
63
65
61
63
2
8
4
76
76
55
55
39
23
25
31
31
27
27
25
25
25
25
2
10
5
76
55
39
24
12
13
8
9
4
5
2
3
2
12
6
77
78
57
70
71
66
68
67
69
70
71
70
71
68
70
2
12...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2163 queries.

Test #107:

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

input:

200
2
0
1
0
77
77
69
69
42
44
59
61
64
66
67
69
67
67
66
68
2
4
2
77
76
69
44
61
64
62
62
60
62
2
6
3
78
70
43
24
25
11
13
18
19
16
17
13
15
2
8
4
76
76
69
84
84
79
81
83
83
80
80
81
81
80
80
2
10
5
75
69
84
81
85
83
85
83
83
84
84
2
12
6
77
76
67
43
25
12
8
9
4
5
2
4
2
14
7
76
68
44
58
59
51
52
46
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2191 queries.

Test #108:

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

input:

200
2
0
1
0
76
75
65
65
43
45
58
58
53
53
48
50
52
52
50
50
2
4
2
76
75
67
72
72
71
73
70
72
74
74
72
74
2
6
3
75
66
44
24
25
13
14
7
8
4
5
2
4
2
8
4
77
76
63
63
43
26
34
36
37
39
41
43
2
9
6
8
2
11
6
5
78
77
64
44
26
36
39
42
39
40
2
12
7
5
3
2
13
9
5
3
2
15
9
8
79
78
64
63
40
22
21
11
13
17
17
15
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2147 queries.

Test #109:

score: 0
Accepted
time: 30ms
memory: 6096kb

input:

200
2
0
1
0
75
77
44
45
65
66
76
77
79
80
78
79
79
80
77
78
2
4
2
76
76
69
70
41
43
56
58
64
66
66
68
67
68
67
69
2
4
4
2
6
4
3
77
77
67
43
54
54
47
49
53
53
51
51
49
51
2
8
5
77
69
74
76
79
81
79
81
80
80
81
81
79
81
2
10
6
78
77
68
42
25
26
13
14
8
10
12
14
2
12
7
77
69
75
75
73
73
72
74
73
73
72
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2247 queries.

Test #110:

score: 0
Accepted
time: 33ms
memory: 6172kb

input:

200
2
0
1
0
80
81
71
72
43
44
23
24
14
15
8
10
12
14
1
3
2
81
80
71
43
23
15
19
19
17
18
2
5
3
80
70
42
25
31
33
37
37
35
37
2
7
4
82
84
51
50
67
69
61
61
61
63
61
63
62
62
63
63
2
9
5
81
69
71
87
87
79
81
82
84
84
86
87
87
86
86
2
11
6
83
82
69
43
23
14
8
4
6
6
8
2
13
7
82
69
43
23
16
21
23
23
21
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2178 queries.

Test #111:

score: 0
Accepted
time: 27ms
memory: 6052kb

input:

200
1
0
1
0
77
77
63
63
44
44
25
25
14
14
8
9
12
12
10
10
2
3
2
78
77
62
46
58
59
53
54
50
52
52
54
2
5
3
77
65
74
73
73
74
72
73
68
69
67
69
66
68
2
7
4
78
78
63
65
74
76
81
81
79
81
80
80
81
81
80
80
2
9
5
77
64
46
56
58
62
63
62
63
60
61
60
2
11
6
77
76
62
43
25
14
10
14
2
13
7
79
51
50
64
66
57
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2135 queries.

Test #112:

score: 0
Accepted
time: 32ms
memory: 6024kb

input:

200
2
0
1
0
75
77
47
49
24
24
36
36
42
42
45
45
47
47
48
48
2
4
2
75
74
52
52
37
38
23
24
13
15
19
21
21
22
21
22
2
6
3
74
52
39
48
50
50
52
48
50
52
52
50
50
2
8
4
76
75
54
73
75
81
81
74
76
78
78
76
78
2
10
5
75
53
39
48
50
51
53
49
51
51
50
2
11
7
5
3
2
13
7
6
76
77
54
72
74
81
82
73
75
77
75
77
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2215 queries.

Test #113:

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

input:

200
2
0
1
0
72
72
58
60
76
77
73
74
67
68
66
67
62
63
60
62
2
4
2
72
72
58
38
40
48
50
52
54
55
55
53
53
54
54
2
6
3
72
60
76
75
75
75
74
76
76
76
74
76
2
8
4
73
72
57
56
38
25
25
14
16
19
21
23
23
21
23
2
10
5
74
59
77
79
78
80
77
78
77
78
78
79
79
80
2
12
6
74
73
57
38
27
33
34
29
31
33
34
31
32
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2266 queries.

Test #114:

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

input:

200
2
0
1
0
68
69
68
69
42
43
23
24
14
15
8
10
12
13
10
11
2
4
2
68
67
67
41
23
14
10
14
2
6
3
69
70
77
78
73
75
77
78
76
77
76
77
75
76
2
8
4
69
69
67
67
42
25
32
34
38
38
36
38
2
10
5
68
66
43
25
33
29
31
30
32
2
12
6
70
69
69
76
76
74
76
76
78
76
78
76
76
75
77
2
14
7
70
69
76
74
70
72
73
73
74
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2158 queries.

Test #115:

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

input:

200
2
0
1
0
76
76
63
63
45
45
24
24
13
15
19
21
22
24
2
4
2
77
77
63
45
24
15
19
17
17
15
17
2
6
3
77
65
76
76
68
70
73
75
77
77
75
75
73
75
1
7
4
76
75
61
61
45
25
34
34
30
31
32
33
2
9
5
75
62
47
54
56
57
58
53
55
57
58
55
57
2
11
6
77
78
63
77
78
66
68
72
73
68
70
71
72
70
71
1
12
7
76
62
76
65
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2227 queries.

Test #116:

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

input:

200
2
0
1
0
67
67
68
70
69
71
69
69
70
70
69
69
68
70
70
70
2
4
2
68
68
68
45
46
26
28
36
37
30
32
34
36
2
6
3
67
69
47
60
62
64
66
68
69
66
67
64
66
2
8
4
69
68
68
68
45
28
36
32
36
2
9
5
3
2
11
6
5
68
67
69
46
27
14
16
20
22
24
25
22
24
2
13
7
70
50
49
62
64
58
57
62
62
63
63
64
64
62
64
2
15
8
68...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2175 queries.

Test #117:

score: 0
Accepted
time: 29ms
memory: 6328kb

input:

200
2
0
1
0
80
79
63
63
41
43
55
55
51
53
52
52
52
52
50
52
2
4
2
79
79
65
81
82
73
75
78
79
77
79
77
79
2
6
3
79
64
42
23
25
31
33
35
37
39
41
2
8
4
80
80
63
64
43
53
55
59
60
57
58
57
58
57
2
10
5
79
64
43
55
61
61
62
59
61
2
12
6
81
80
62
41
25
33
35
34
36
2
12
6
4
4
2
14
8
7
82
81
62
61
40
23
25...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2223 queries.

Test #118:

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

input:

200
2
0
1
0
82
81
76
76
43
43
23
23
13
14
8
9
4
5
2
3
2
4
2
83
84
78
81
83
80
82
85
86
82
83
82
84
2
6
3
82
75
45
64
64
53
55
58
60
62
62
60
60
2
8
4
84
83
74
74
45
62
51
53
56
56
54
56
2
10
5
83
75
45
64
70
72
70
72
74
75
72
73
2
12
6
84
84
74
45
62
53
56
54
53
2
14
7
84
76
80
80
77
79
76
78
78
78
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2177 queries.

Test #119:

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

input:

200
2
0
1
0
80
80
63
63
43
45
53
55
58
60
62
62
60
60
58
60
2
4
2
81
81
63
45
54
46
47
47
48
45
47
47
48
2
6
3
81
64
45
55
60
63
62
2
8
4
81
80
64
66
75
75
71
71
65
65
63
65
64
66
2
10
5
82
66
77
78
79
78
79
78
80
78
79
79
80
2
12
6
82
81
64
43
21
21
10
10
7
9
10
10
9
9
2
14
7
82
66
75
77
78
80
79
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2189 queries.

Test #120:

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

input:

200
2
0
1
0
78
77
68
68
39
41
60
62
68
68
65
67
68
68
66
66
2
4
2
79
79
68
41
62
70
66
68
69
69
68
68
2
6
3
78
69
41
61
49
51
55
57
59
60
57
59
2
8
4
78
77
69
39
21
21
10
12
16
16
14
16
2
10
5
80
51
51
74
74
81
81
81
81
81
81
80
80
80
2
12
6
79
78
69
39
23
29
29
25
27
27
29
2
14
7
78
69
41
59
47
49
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2195 queries.

Test #121:

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

input:

200
2
0
1
0
79
78
66
68
78
78
73
73
64
66
69
71
71
71
70
70
2
4
2
77
76
68
77
75
77
77
75
75
75
75
75
75
2
6
3
77
66
46
48
55
57
61
63
64
64
63
63
61
63
2
8
4
76
75
66
65
46
26
26
14
14
8
8
4
4
2
4
2
10
5
75
68
77
76
71
65
67
68
68
66
68
2
12
6
77
77
67
47
28
38
39
32
33
30
31
28
30
2
13
8
12
2
15
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2184 queries.

Test #122:

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

input:

200
2
0
1
0
73
73
64
65
38
40
52
53
50
52
49
50
49
50
50
51
2
4
2
73
72
64
38
22
24
32
33
28
30
30
31
28
30
2
6
3
72
66
78
80
76
77
77
78
78
80
77
78
77
79
2
8
4
73
73
62
63
40
50
52
56
57
54
55
53
55
2
10
5
72
61
38
24
34
38
38
36
36
34
36
2
12
6
74
75
63
40
51
48
50
50
51
51
2
13
7
6
2
15
8
7
75
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2190 queries.

Test #123:

score: 0
Accepted
time: 36ms
memory: 6092kb

input:

200
2
0
1
0
76
75
66
65
42
41
23
25
34
33
29
30
27
28
25
27
2
4
2
77
76
66
42
23
14
14
8
10
12
12
10
10
2
6
3
76
66
44
57
57
52
52
47
47
45
45
43
43
2
8
4
78
77
65
65
44
58
60
63
63
59
61
61
61
59
61
2
10
5
78
66
43
25
36
38
39
36
38
2
12
6
76
75
67
75
77
80
79
78
78
78
80
79
79
78
80
2
14
7
75
64
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2176 queries.

Test #124:

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

input:

200
2
0
1
0
78
77
71
72
42
43
24
26
35
36
30
32
34
36
2
4
2
79
79
71
42
25
14
15
8
9
4
5
2
4
2
6
3
81
49
48
68
67
71
72
74
75
76
78
74
76
3
9
4
79
78
71
72
43
25
15
11
12
13
10
11
2
11
5
79
72
44
55
56
50
52
50
52
53
54
52
53
2
13
6
79
78
70
42
26
37
39
39
39
39
37
39
2
15
7
79
72
43
26
36
32
35
32
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2176 queries.

Test #125:

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

input:

200
2
0
1
0
65
65
63
63
43
43
24
26
36
38
38
40
41
43
2
4
2
64
65
64
44
26
38
40
42
39
41
2
6
3
64
64
45
53
55
58
59
56
58
56
57
57
58
2
6
4
4
2
8
5
4
64
66
49
50
65
67
59
60
62
63
65
66
65
66
65
67
2
10
6
65
65
62
62
45
53
53
49
51
50
52
52
52
50
52
2
12
7
66
63
44
26
37
30
31
28
30
3
15
8
66
65
60...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2198 queries.

Test #126:

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

input:

200
2
0
1
0
70
70
65
67
79
79
72
72
69
71
68
70
73
73
71
71
3
4
2
6
3
2
71
70
65
35
37
50
52
58
60
63
63
61
61
60
62
2
8
4
72
71
66
66
35
20
20
11
11
7
7
3
5
5
5
2
8
6
8
2
10
6
5
73
73
66
37
50
50
41
43
47
49
48
48
48
48
2
12
7
72
66
36
22
29
31
33
34
31
32
30
31
2
14
8
74
73
64
64
35
35
20
22
27
29...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2194 queries.

Test #127:

score: 0
Accepted
time: 32ms
memory: 5972kb

input:

200
2
0
1
0
81
80
76
75
41
40
24
26
32
33
27
29
30
31
28
29
2
4
2
82
83
77
43
67
68
55
57
61
63
65
66
63
64
2
6
3
81
76
43
67
55
49
49
45
47
47
49
2
8
4
81
81
75
76
42
26
33
29
32
2
10
5
81
75
41
24
14
16
20
20
18
20
2
12
6
82
82
75
42
25
15
8
10
12
14
2
14
7
82
75
41
26
34
36
38
40
42
2
16
8
81
80
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2158 queries.

Test #128:

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

input:

200
2
0
1
0
78
78
70
70
42
44
60
62
66
66
61
61
62
62
62
62
2
4
2
79
78
70
42
21
21
11
13
16
16
15
15
13
13
2
6
3
79
71
44
62
68
67
69
70
72
2
8
4
80
79
72
82
82
74
74
73
73
75
75
72
72
72
2
10
5
80
70
44
60
60
49
49
47
47
45
47
2
11
8
10
2
13
7
6
80
80
70
42
23
32
34
38
38
36
36
34
36
2
15
8
80
80
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2231 queries.

Test #129:

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

input:

200
2
0
1
0
80
79
66
65
45
47
58
58
51
53
55
55
55
55
53
55
2
4
2
81
80
66
47
60
61
63
64
66
66
66
66
66
2
6
3
80
65
45
24
24
14
14
8
8
4
6
6
8
2
8
4
82
81
68
79
78
75
74
71
70
67
67
66
68
67
67
2
10
5
81
68
81
83
82
81
81
80
80
78
80
2
12
6
83
84
68
77
79
81
82
82
83
79
78
79
80
2
14
7
84
68
79
83
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2172 queries.

Test #130:

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

input:

200
2
0
1
0
70
70
63
65
71
71
69
69
70
70
68
68
64
66
66
68
2
4
2
71
71
65
73
69
69
71
71
71
71
69
71
2
6
3
71
64
41
42
22
23
14
15
8
9
4
5
2
3
2
8
4
71
73
47
47
63
63
69
71
67
67
69
69
70
70
68
70
2
10
5
72
63
64
42
23
15
10
12
13
10
11
2
12
6
71
70
62
42
23
15
10
14
2
14
7
71
64
42
23
15
10
13
11
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2156 queries.

Test #131:

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

input:

200
2
0
1
0
72
72
71
73
79
79
75
75
73
73
73
73
72
74
71
73
2
4
2
72
71
70
39
39
19
21
29
29
25
27
27
29
2
6
3
72
72
41
57
59
65
67
71
73
70
72
2
6
6
2
8
5
4
73
74
72
80
82
79
81
77
78
78
79
79
80
79
80
2
10
6
74
73
70
41
56
58
63
65
69
69
67
67
67
2
12
7
73
69
40
21
30
26
23
24
21
23
2
14
8
74
73
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2164 queries.

Test #132:

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

input:

200
2
0
1
0
75
75
72
74
80
82
81
82
85
86
85
87
85
87
2
4
2
76
76
72
38
40
57
59
66
67
62
64
65
67
2
6
3
76
73
40
58
46
47
42
43
40
42
42
43
2
8
4
75
74
71
70
38
18
20
28
28
23
23
22
22
20
20
2
10
5
75
72
40
55
57
66
60
62
63
65
2
10
8
10
2
12
7
6
75
74
70
40
55
45
45
42
42
2
14
8
76
78
50
50
64
64
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2146 queries.

Test #133:

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

input:

200
2
0
1
0
71
70
61
62
36
38
51
53
56
57
52
54
54
56
2
4
2
71
70
60
37
23
24
14
16
18
20
21
23
2
6
3
72
62
37
24
16
20
23
2
8
4
72
72
60
60
36
23
14
8
8
4
6
6
6
2
10
5
71
60
37
25
30
32
33
34
31
33
2
12
6
72
74
52
51
66
65
69
69
69
71
69
69
68
70
2
14
7
72
60
36
25
30
28
30
29
29
29
29
2
15
10
14
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2183 queries.

Test #134:

score: 0
Accepted
time: 38ms
memory: 6300kb

input:

200
2
0
1
0
78
77
68
67
41
41
19
21
31
31
25
27
29
29
27
29
2
4
2
79
80
70
78
79
73
74
71
73
73
75
73
75
2
6
3
79
68
42
21
33
38
39
35
36
33
34
2
8
4
80
79
66
67
43
52
53
46
47
45
46
43
45
2
10
5
79
66
42
21
33
40
39
40
40
41
2
12
6
80
80
66
41
21
33
40
39
40
2
14
7
79
65
41
21
33
38
37
1
15
8
80
79...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2222 queries.

Test #135:

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

input:

200
2
0
1
0
79
79
63
65
76
78
78
78
79
79
78
80
77
79
2
4
2
79
79
63
40
40
22
22
12
12
8
9
4
5
2
3
2
6
3
78
62
41
24
30
31
26
27
24
25
24
26
2
8
4
79
79
62
63
42
47
48
46
48
45
47
45
46
45
47
2
10
5
79
63
41
23
14
16
18
20
21
18
20
2
12
6
80
81
63
42
49
53
55
58
60
62
63
60
61
2
13
8
12
2
15
8
7
81
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2191 queries.

Test #136:

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

input:

200
2
0
1
0
73
72
66
66
38
39
22
23
13
14
8
9
4
5
2
4
2
4
2
73
74
67
40
54
55
48
49
46
48
47
48
47
48
2
4
4
2
6
4
3
74
75
66
67
39
24
31
32
26
28
29
31
2
8
5
73
66
38
22
13
10
12
12
10
10
2
10
6
73
72
67
39
23
15
18
19
16
17
14
16
2
12
7
73
66
38
22
15
20
22
22
20
22
2
14
8
74
74
64
64
36
36
24
29
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2167 queries.

Test #137:

score: 0
Accepted
time: 28ms
memory: 6224kb

input:

200
2
0
1
0
74
75
59
60
40
42
50
51
46
47
45
46
42
44
44
45
2
4
2
75
77
48
47
63
65
54
55
56
58
53
55
55
56
53
55
2
6
3
74
59
42
52
51
53
54
54
55
55
53
53
2
8
4
75
77
50
50
63
63
66
68
65
65
67
67
65
67
2
10
5
74
57
59
74
74
67
67
66
66
62
64
65
65
63
63
2
12
6
75
74
57
41
22
24
31
32
28
29
26
27
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2157 queries.

Test #138:

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

input:

200
2
0
1
0
67
66
69
68
43
43
25
27
37
37
31
33
35
35
33
35
2
4
2
68
69
71
71
72
70
72
72
73
70
72
71
72
69
71
2
6
3
68
69
45
52
54
62
62
56
58
60
60
58
60
2
8
4
68
69
67
68
44
26
13
14
8
10
11
12
10
11
2
10
5
70
43
43
57
58
63
64
66
68
65
66
66
67
67
68
2
12
6
69
69
67
44
26
15
20
21
18
20
2
14
7
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2207 queries.

Test #139:

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

input:

200
2
0
1
0
73
72
68
69
42
44
57
58
51
52
47
49
49
50
47
48
2
4
2
72
74
48
47
63
63
68
68
69
69
71
71
72
72
73
2
6
3
73
69
44
59
61
62
58
60
59
61
3
9
4
72
72
67
69
45
56
58
51
46
48
46
49
2
11
5
71
66
43
23
24
12
14
17
18
16
17
14
16
2
13
6
72
72
69
80
80
77
79
80
80
80
80
80
80
78
80
2
13
8
13
2
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2243 queries.

Test #140:

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

input:

200
2
0
1
0
78
77
75
74
43
45
61
60
52
51
47
48
45
47
45
46
2
4
2
79
79
76
44
25
26
14
15
8
10
12
13
10
11
2
6
3
79
75
43
26
15
10
13
12
2
8
4
78
78
75
77
86
86
83
83
81
81
78
78
76
78
78
78
2
10
5
77
75
45
59
59
50
50
47
48
48
47
2
12
6
79
78
75
45
61
65
67
69
71
73
75
2
14
7
79
76
44
26
16
20
22
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2161 queries.

Test #141:

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

input:

200
2
0
1
0
78
77
63
65
76
76
69
69
65
67
68
68
67
67
66
66
2
4
2
78
78
65
76
69
65
65
67
66
66
67
67
2
6
3
77
62
41
41
24
26
34
36
38
39
38
39
36
38
2
8
4
79
78
62
61
43
56
55
49
51
54
54
53
55
2
10
5
79
62
42
26
36
39
39
38
2
12
6
80
80
64
77
77
68
70
72
74
75
77
77
77
76
78
2
14
7
81
64
79
85
86
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2189 queries.

Test #142:

score: 0
Accepted
time: 33ms
memory: 6052kb

input:

200
2
0
1
0
79
80
71
73
84
85
78
79
80
81
76
78
78
80
2
4
2
79
78
71
42
44
58
58
51
51
47
49
49
49
48
50
2
6
3
78
71
43
25
27
32
33
30
31
28
29
27
28
2
8
4
79
79
69
69
44
56
58
65
65
62
64
66
66
64
64
2
10
5
78
68
41
24
13
15
19
19
17
17
15
15
2
12
6
79
78
70
43
26
14
7
8
4
5
2
4
2
14
7
79
70
44
58
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2130 queries.

Test #143:

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

input:

200
2
0
1
0
66
65
60
62
69
70
67
69
70
71
69
70
70
71
69
70
2
4
2
67
68
62
70
68
65
67
66
68
66
68
2
6
3
68
62
71
69
70
71
73
69
71
69
71
2
6
4
4
2
8
5
4
66
65
61
61
41
41
24
26
32
34
37
39
39
41
2
10
6
67
67
63
70
70
66
66
66
66
62
64
66
66
64
64
2
12
7
69
48
47
62
61
66
65
64
66
67
67
65
67
2
12
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2225 queries.

Test #144:

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

input:

200
2
0
1
0
70
72
47
48
63
65
54
55
58
59
61
62
62
64
61
63
3
3
2
5
3
2
71
70
65
65
45
46
25
26
14
16
20
21
18
19
16
17
2
7
4
72
74
50
49
63
65
55
57
53
53
54
55
55
54
56
2
9
5
73
65
67
75
77
77
79
75
76
77
79
75
77
2
11
6
72
72
67
73
75
77
77
76
76
76
76
77
77
77
2
13
7
72
67
73
71
73
71
72
71
72
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2135 queries.

Test #145:

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

input:

200
2
0
1
0
69
68
59
60
38
40
52
53
47
49
50
52
52
54
2
4
2
70
70
61
73
75
74
74
73
74
72
74
72
73
71
73
2
6
3
70
61
75
74
73
74
74
2
8
4
69
68
57
59
73
72
67
68
62
63
60
61
59
60
60
2
10
5
68
57
38
25
27
32
33
31
32
29
30
27
28
2
12
6
70
71
58
40
53
47
48
42
44
46
47
44
45
2
14
7
70
57
40
52
47
42
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2183 queries.

Test #146:

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

input:

200
2
0
1
0
76
75
64
63
42
44
54
54
50
50
50
50
46
48
48
50
2
4
2
74
73
66
77
76
75
74
73
73
71
71
67
67
66
66
2
6
3
73
64
44
54
50
50
46
44
45
2
8
4
74
74
63
63
44
54
55
50
51
49
48
2
10
5
74
65
77
77
74
74
73
73
69
69
68
67
2
12
6
73
72
64
43
25
27
33
34
31
32
29
30
27
29
2
14
7
74
65
77
78
73
74
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2186 queries.

Test #147:

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

input:

200
2
0
1
0
78
79
72
73
44
46
61
62
53
55
57
58
57
59
2
4
2
78
77
71
45
26
28
34
35
30
32
34
36
2
6
3
77
73
46
62
54
47
48
46
47
44
46
2
8
4
77
76
71
71
44
26
15
15
9
11
13
13
11
11
2
10
5
77
72
46
59
60
51
53
58
55
57
2
12
6
78
77
71
46
59
51
45
47
49
49
49
2
14
7
80
52
52
70
70
78
78
78
79
80
77
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2176 queries.

Test #148:

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

input:

200
2
0
1
0
74
74
57
57
36
38
48
48
42
42
39
39
35
37
37
39
3
5
2
73
72
57
37
22
23
12
15
16
19
20
23
2
7
3
74
58
38
50
49
50
49
50
49
50
47
49
2
7
7
2
9
5
4
74
76
51
50
70
70
71
73
70
72
70
72
71
71
71
71
2
11
6
75
75
55
57
74
76
76
76
77
77
74
74
75
75
76
76
2
13
7
74
57
74
65
65
60
60
58
58
57
57...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2170 queries.

Test #149:

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

input:

200
2
0
1
0
78
80
48
47
68
70
59
59
65
65
65
67
66
66
64
66
2
4
2
79
79
69
70
40
41
24
26
34
36
37
39
38
40
2
6
3
78
71
79
78
78
78
76
76
74
76
76
76
76
76
2
8
4
80
80
70
71
41
26
36
39
39
37
39
2
10
5
79
71
42
57
59
64
66
65
67
68
69
66
68
2
12
6
81
81
70
40
24
12
14
18
18
16
16
14
14
2
12
6
4
2
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2250 queries.

Test #150:

score: 0
Accepted
time: 28ms
memory: 6028kb

input:

200
2
0
1
0
83
82
67
66
39
39
23
23
11
13
17
17
15
17
3
5
2
83
83
70
73
74
71
74
75
76
73
74
74
75
71
74
2
7
3
82
67
41
60
62
64
64
63
63
62
62
60
62
2
9
4
84
84
67
67
39
23
11
7
9
9
11
2
11
5
83
67
41
58
60
62
62
62
60
60
2
13
6
85
84
67
39
24
13
18
16
13
15
2
15
7
85
68
40
24
13
18
17
2
17
8
86
85...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2188 queries.

Test #151:

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

input:

200
2
0
1
0
72
72
71
73
75
77
76
78
74
76
74
74
73
75
2
4
2
73
73
71
45
47
64
65
56
58
62
63
60
61
58
59
2
6
3
73
71
47
66
68
70
70
72
72
72
70
72
2
6
4
4
2
8
5
4
73
72
74
75
74
75
75
73
75
71
73
74
76
2
10
6
73
72
47
62
62
56
56
50
50
48
50
2
12
7
73
74
73
75
76
76
73
73
74
74
75
75
2
13
8
11
9
3
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2157 queries.

Test #152:

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

input:

200
2
0
1
0
75
75
64
64
41
43
53
53
46
48
47
49
51
51
49
51
2
4
2
74
75
65
43
54
47
44
45
44
46
44
46
2
6
3
76
46
48
25
24
37
36
42
42
44
45
44
46
45
46
2
8
4
72
72
62
64
75
77
78
80
72
74
71
73
70
72
2
10
5
71
61
40
21
20
14
14
8
10
12
14
2
9
6
6
2
11
7
6
69
61
42
23
32
33
26
28
30
31
28
30
2
13
8
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2238 queries.

Test #153:

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

input:

200
1
0
1
0
77
78
47
47
65
65
74
74
77
77
79
79
79
79
77
78
2
3
2
78
78
68
68
41
41
22
24
29
29
25
27
29
29
27
29
2
5
3
77
67
41
24
31
35
35
33
33
31
33
2
7
4
78
78
66
67
43
57
58
51
53
52
53
50
52
2
9
5
78
66
41
24
31
35
33
31
3
12
6
79
78
66
42
23
12
13
8
11
12
14
10
13
2
14
7
78
68
82
83
72
74
78...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2147 queries.

Test #154:

score: 0
Accepted
time: 33ms
memory: 5940kb

input:

200
2
0
1
0
77
76
70
72
77
77
75
77
79
79
77
79
80
80
78
80
2
4
2
78
78
70
44
44
23
25
32
32
27
29
30
32
2
6
3
78
72
79
78
80
79
79
82
82
81
81
80
82
2
8
4
79
78
69
71
77
77
75
75
72
74
73
73
73
73
74
74
2
10
5
79
69
44
25
32
29
30
28
30
2
11
8
9
2
13
7
6
77
77
69
44
25
32
29
30
28
2
15
8
78
77
67
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2158 queries.

Test #155:

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

input:

200
2
0
1
0
66
67
57
59
68
70
68
70
68
70
67
68
67
68
67
69
2
4
2
65
64
59
67
61
63
68
67
63
65
67
67
65
67
2
6
3
65
57
37
39
55
55
45
47
49
51
53
55
2
8
4
66
66
55
56
38
24
25
14
16
20
21
18
19
16
18
2
10
5
65
56
38
25
16
21
19
17
2
12
6
69
50
49
63
63
65
66
65
66
66
67
67
68
2
14
7
67
56
39
54
46
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2222 queries.

Test #156:

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

input:

200
2
0
1
0
71
70
64
64
43
43
24
24
15
15
9
11
13
15
2
4
2
72
71
63
44
25
17
21
22
19
20
17
18
2
6
3
73
65
45
57
58
47
49
51
53
55
56
53
54
2
8
4
73
72
64
63
43
24
15
11
13
11
13
2
10
5
75
50
49
67
66
71
72
71
72
70
71
73
71
72
2
12
6
73
73
66
66
68
70
70
70
70
68
68
69
69
68
68
2
14
7
74
65
44
26
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2168 queries.

Test #157:

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

input:

200
2
0
1
0
71
71
66
66
43
43
23
23
14
16
20
20
18
18
16
16
2
4
2
72
71
66
45
55
55
49
49
45
47
47
49
2
5
3
2
7
4
3
73
74
66
68
73
75
72
73
72
73
72
74
73
74
73
74
2
8
6
7
2
10
6
5
72
71
66
45
54
54
49
50
52
52
54
2
12
7
71
66
43
25
33
33
29
29
27
27
25
25
2
14
8
72
71
64
65
41
43
53
45
47
48
49
50
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2192 queries.

Test #158:

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

input:

200
2
0
1
0
79
78
60
59
41
40
25
25
15
15
8
8
4
6
6
8
2
4
2
80
80
60
43
52
54
59
61
60
62
59
61
2
6
3
79
60
43
54
59
53
53
54
54
53
53
2
8
4
78
78
60
43
51
52
46
47
45
46
43
44
43
44
2
10
5
78
59
41
27
32
34
38
40
40
42
2
11
8
10
2
13
7
6
78
78
61
73
75
76
76
73
73
74
76
72
74
2
15
8
78
78
59
61
73
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2169 queries.

Test #159:

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

input:

200
2
0
1
0
77
79
46
45
62
62
69
69
71
73
69
71
67
69
2
4
2
76
77
74
76
79
80
77
79
80
82
80
82
79
80
80
81
2
6
3
75
74
46
47
24
26
36
37
30
31
28
29
26
28
2
8
4
74
73
74
74
48
63
63
55
57
58
60
62
62
60
62
2
10
5
75
76
81
80
82
78
79
79
81
77
79
2
12
6
73
72
74
46
26
38
42
42
40
40
38
38
2
14
7
72
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2241 queries.

Test #160:

score: 0
Accepted
time: 27ms
memory: 6104kb

input:

200
1
0
1
0
75
75
66
66
47
48
61
62
61
62
64
65
66
66
64
65
2
3
2
75
76
67
49
63
62
62
63
62
63
60
62
2
5
3
74
67
49
62
55
56
51
53
53
54
51
53
2
7
4
74
73
65
47
24
26
36
36
30
32
34
34
32
34
2
7
5
7
2
9
6
5
73
72
66
49
59
60
55
57
58
55
57
2
11
7
72
65
47
24
14
16
20
20
18
18
16
18
2
13
8
74
74
64
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2219 queries.

Test #161:

score: 0
Accepted
time: 29ms
memory: 6052kb

input:

200
3
0
1
0
79
78
60
60
38
38
25
26
14
17
19
20
18
19
16
17
2
5
2
80
80
60
39
26
15
8
9
4
5
2
3
2
7
3
79
60
40
55
57
58
60
60
60
59
59
60
60
2
9
4
80
80
60
60
40
53
54
44
46
50
51
48
50
2
11
5
79
61
40
55
58
60
60
61
60
2
13
6
81
81
61
39
26
15
9
5
4
1
14
7
80
59
37
25
14
8
4
2
2
16
8
82
81
60
61
37...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2203 queries.

Test #162:

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

input:

200
2
0
1
0
70
71
62
63
41
42
25
26
13
15
19
20
17
18
15
16
2
4
2
69
69
64
68
70
69
71
69
71
69
69
68
70
2
6
3
68
63
42
27
34
36
37
38
35
37
2
8
4
70
69
63
65
69
68
69
69
65
66
63
65
65
66
65
66
2
8
6
6
2
10
6
5
69
68
63
43
52
52
47
47
43
44
42
43
41
43
2
12
7
70
64
42
27
35
29
30
29
30
27
29
2
14
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2181 queries.

Test #163:

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

input:

200
2
0
1
0
73
72
67
67
41
41
25
26
13
14
8
9
4
5
2
3
2
4
2
74
73
67
43
59
59
52
52
46
46
45
46
43
44
2
6
3
73
67
41
27
36
38
39
39
39
39
37
39
2
8
4
73
74
65
66
43
58
59
50
52
53
55
56
58
2
10
5
72
64
41
27
36
30
31
28
29
27
28
2
12
6
73
72
67
75
74
74
73
72
73
71
73
72
73
70
72
2
14
7
73
65
43
60
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2207 queries.

Test #164:

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

input:

200
2
0
1
0
74
73
71
70
45
45
24
24
12
14
18
20
22
22
20
22
2
4
2
74
76
47
46
65
65
69
71
68
69
70
72
69
70
69
71
2
6
3
73
70
45
26
35
37
41
43
43
43
41
43
2
8
4
75
74
72
74
83
82
78
79
75
76
73
75
75
77
2
10
5
74
72
45
25
13
8
10
10
12
2
12
6
76
75
71
46
26
37
43
44
43
2
14
7
75
71
45
26
35
29
29
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2196 queries.

Test #165:

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

input:

200
2
0
1
0
70
69
67
69
72
73
68
69
67
68
66
68
65
66
66
67
2
4
2
70
71
68
41
43
57
58
49
50
43
45
47
49
2
6
3
71
68
43
58
51
55
57
57
58
57
59
2
8
4
70
70
65
66
42
22
24
31
32
26
28
29
31
2
10
5
69
66
42
23
12
13
6
8
10
12
2
12
6
70
70
67
74
76
72
74
69
71
70
70
71
71
69
71
2
14
7
69
64
43
56
47
43...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2174 queries.

Test #166:

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

input:

200
2
0
1
0
68
68
59
60
39
41
53
54
47
48
44
45
41
42
39
41
2
4
2
67
67
60
40
25
27
33
35
35
37
37
39
2
6
3
66
61
66
66
61
63
61
61
62
62
63
63
63
63
2
8
4
67
68
59
61
66
68
67
69
65
67
64
66
65
66
64
65
2
10
5
69
46
45
62
62
71
72
72
74
74
75
73
74
73
75
2
10
6
4
2
2
12
7
6
65
59
39
27
33
31
31
29
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2185 queries.

Test #167:

score: 0
Accepted
time: 27ms
memory: 6244kb

input:

200
2
0
1
0
79
79
65
66
45
47
61
63
63
65
64
65
63
64
63
64
3
5
2
79
80
68
74
75
74
75
74
77
74
75
74
75
75
76
2
7
3
79
67
76
80
80
78
80
78
78
77
79
3
10
4
80
79
63
63
46
24
25
15
16
9
10
5
6
2
5
2
11
6
4
2
13
6
5
79
79
65
74
76
79
81
79
81
78
80
80
80
80
80
2
15
7
78
62
45
26
36
38
41
41
39
41
2
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2152 queries.

Test #168:

score: 0
Accepted
time: 29ms
memory: 5964kb

input:

200
2
0
1
0
75
75
67
68
45
46
25
26
14
16
19
21
23
25
2
4
2
75
75
67
46
27
36
37
30
32
34
35
32
33
2
6
3
75
67
45
25
14
8
8
4
6
6
8
2
8
4
76
75
66
66
47
59
61
64
64
62
64
64
64
63
63
2
10
5
76
66
47
59
54
54
49
51
53
53
51
51
2
11
8
10
2
13
7
6
76
76
67
47
61
66
66
67
66
67
66
67
2
15
8
77
76
65
65
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2148 queries.

Test #169:

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

input:

200
2
0
1
0
73
74
63
65
75
76
73
74
67
68
66
68
68
69
66
67
2
4
2
72
71
64
32
33
21
22
13
15
15
17
19
20
17
19
2
6
3
71
62
32
22
15
17
20
19
2
8
4
72
73
61
63
75
76
73
75
73
75
72
73
72
73
72
74
2
10
5
71
63
76
75
75
74
73
75
2
12
6
73
72
62
34
47
48
38
40
43
44
41
42
40
41
2
14
7
72
60
34
48
40
45
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2216 queries.

Test #170:

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

input:

200
2
0
1
0
80
79
68
70
73
74
70
71
70
71
69
70
70
72
70
71
2
4
2
80
80
68
46
46
23
23
14
14
8
10
12
14
2
6
3
79
68
46
23
16
20
22
21
21
22
22
2
8
4
80
80
66
66
46
23
16
20
18
18
16
16
2
10
5
82
51
51
71
71
77
79
75
75
76
76
77
77
78
78
2
12
6
79
78
66
48
55
57
59
59
58
58
57
59
2
14
7
78
65
46
25
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2201 queries.

Test #171:

score: 0
Accepted
time: 32ms
memory: 5940kb

input:

200
2
0
1
0
74
74
57
59
74
76
77
77
73
75
77
79
76
78
2
4
2
74
74
59
76
78
77
79
77
77
75
77
2
6
3
74
57
39
39
20
22
30
32
36
37
34
35
32
33
2
8
4
75
74
57
57
39
21
12
14
16
17
16
17
14
16
2
8
6
8
2
10
6
5
76
76
58
40
21
14
18
20
22
2
12
7
75
57
39
20
12
8
8
4
4
2
2
2
14
8
78
55
57
74
76
75
77
78
79...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2153 queries.

Test #172:

score: 0
Accepted
time: 28ms
memory: 6260kb

input:

200
2
0
1
0
80
79
67
69
74
74
67
69
71
71
69
69
67
69
2
4
2
81
81
68
46
48
56
57
51
53
55
57
55
57
2
6
3
81
68
47
25
27
36
37
31
32
29
31
2
8
4
81
80
68
70
75
77
82
83
80
81
76
78
78
79
78
79
2
10
5
81
68
48
55
50
50
51
51
49
49
48
48
2
10
8
10
2
11
7
5
3
2
13
8
7
81
81
68
68
44
44
23
23
11
13
17
17...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2190 queries.

Test #173:

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

input:

200
2
0
1
0
73
72
68
69
41
42
22
23
14
15
8
9
4
6
6
7
1
3
2
73
72
67
40
23
30
31
36
37
40
39
38
37
2
5
3
74
70
69
71
72
74
70
71
71
72
70
72
2
7
4
73
72
69
69
43
59
59
50
52
55
57
57
57
56
56
2
8
5
6
2
10
6
5
72
71
69
43
59
52
55
53
55
2
12
7
74
52
51
69
70
69
70
70
71
74
75
2
14
8
72
74
51
50
68
68...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2215 queries.

Test #174:

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

input:

200
2
0
1
0
70
69
62
61
47
49
59
60
51
53
54
56
58
59
56
58
2
4
2
71
70
61
46
26
26
14
14
8
8
4
4
2
4
2
6
3
71
62
48
28
36
37
31
32
29
30
27
29
2
8
4
72
71
61
62
48
27
15
9
5
3
2
10
5
74
46
45
62
62
67
69
66
66
64
66
67
67
66
66
2
11
7
5
4
2
13
7
6
70
69
61
49
58
49
51
55
57
58
3
16
8
71
72
61
64
71...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2142 queries.

Test #175:

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

input:

200
2
0
1
0
82
81
73
73
43
43
24
26
35
35
29
31
33
33
31
33
2
4
2
83
83
75
86
88
87
88
89
90
88
90
88
89
89
90
2
6
3
83
75
86
83
83
77
79
80
82
82
82
81
83
2
8
4
82
81
73
74
45
60
62
67
68
65
66
64
65
62
63
2
10
5
81
72
42
24
12
12
6
8
10
10
8
10
2
12
6
82
81
72
42
24
14
18
20
22
22
20
20
2
14
7
81
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2185 queries.

Test #176:

score: 0
Accepted
time: 27ms
memory: 6044kb

input:

200
2
0
1
0
78
78
63
64
38
40
49
51
57
58
53
55
56
57
54
56
2
4
2
78
77
65
79
81
74
76
77
78
74
76
76
77
74
75
2
6
3
77
64
39
20
22
28
29
22
24
26
28
2
8
4
79
81
53
52
68
69
75
76
76
77
76
77
79
80
2
10
5
78
64
66
78
78
76
78
79
79
77
79
80
80
79
81
2
12
6
79
78
65
40
48
50
57
53
54
51
52
51
2
14
7
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2239 queries.

Test #177:

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

input:

200
2
0
1
0
72
71
69
68
41
42
21
23
31
33
35
36
33
35
2
4
2
70
72
47
47
63
64
68
70
68
69
67
69
68
69
67
69
1
5
3
70
70
76
76
76
76
73
74
73
74
75
75
75
75
2
7
4
71
70
67
68
42
23
32
27
28
25
26
23
25
2
8
5
3
2
10
6
5
72
72
67
41
21
11
13
16
18
19
21
2
12
7
71
67
43
60
62
64
66
65
67
65
67
2
14
8
73...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2229 queries.

Test #178:

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

input:

200
2
0
1
0
82
83
68
70
80
82
82
84
81
83
82
83
82
83
81
82
2
4
2
83
82
68
41
41
23
23
14
14
8
10
12
14
2
6
3
83
69
42
25
33
34
27
28
26
27
25
27
2
8
4
83
84
69
70
43
62
63
51
53
56
57
54
55
53
55
2
10
5
82
68
40
23
14
10
12
10
12
2
12
6
81
68
40
23
14
8
4
4
2
2
2
14
7
81
69
43
62
51
47
47
45
45
43
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2154 queries.

Test #179:

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

input:

200
2
0
1
0
71
71
64
66
75
75
73
75
76
76
72
74
74
76
2
4
2
71
72
66
76
75
77
74
75
72
73
2
6
3
71
64
46
46
25
25
14
14
8
10
12
14
2
8
4
71
70
62
61
46
25
14
8
4
6
6
6
2
10
5
71
64
75
77
76
78
74
75
74
75
75
76
76
77
2
12
6
72
72
64
74
74
71
71
68
70
71
71
69
71
2
14
7
74
49
48
65
65
71
73
68
69
70
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2188 queries.

Test #180:

score: 0
Accepted
time: 27ms
memory: 6024kb

input:

200
2
0
1
0
79
78
61
62
31
33
51
53
54
55
53
54
52
54
2
4
2
80
79
63
76
76
73
73
69
69
67
67
64
64
62
64
2
6
3
79
62
32
21
23
26
28
27
28
27
28
26
28
2
8
4
79
80
60
61
33
49
51
52
54
56
58
60
61
58
60
2
10
5
78
61
33
50
41
42
37
39
41
42
39
41
2
12
6
80
80
62
77
79
78
80
80
80
80
80
78
80
2
14
7
79
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2179 queries.

Test #181:

score: 0
Accepted
time: 39ms
memory: 6368kb

input:

200
2
0
1
0
73
72
71
71
42
42
24
24
14
15
8
9
4
5
2
4
2
4
2
74
73
71
44
54
54
51
53
53
53
52
52
51
53
2
6
3
73
72
44
56
64
66
66
68
69
71
2
8
4
74
73
69
44
54
54
49
49
46
46
44
44
43
45
2
10
5
73
69
44
54
51
52
51
51
2
12
6
74
73
68
44
53
49
46
46
2
14
7
75
70
43
26
34
36
37
38
37
38
36
37
2
16
8
75...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2256 queries.

Test #182:

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

input:

200
2
0
1
0
74
75
67
69
76
78
73
74
73
75
72
74
74
75
72
73
2
4
2
75
75
68
42
43
26
28
35
37
38
39
39
40
37
39
2
6
3
75
68
43
28
37
39
40
38
2
8
4
75
75
67
68
43
28
37
39
40
38
2
10
5
74
69
74
76
73
75
76
76
78
76
77
76
78
2
12
6
73
73
67
42
26
14
16
20
20
18
18
16
16
2
14
7
73
69
72
74
72
76
76
76
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2213 queries.

Test #183:

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

input:

200
2
0
1
0
68
67
62
61
37
37
22
24
30
32
32
34
36
38
2
4
2
69
71
50
49
63
65
54
56
54
55
54
55
54
55
53
55
2
6
3
68
62
39
54
54
46
46
43
43
39
41
41
43
2
8
4
70
70
60
62
71
73
79
79
75
77
77
79
78
78
78
78
2
10
5
69
61
38
23
12
13
8
9
4
6
6
7
2
12
6
71
72
61
38
23
14
17
18
15
17
2
14
7
71
60
37
24
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2147 queries.

Test #184:

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

input:

200
2
0
1
0
67
69
45
45
60
61
61
63
61
62
61
63
62
63
60
62
2
4
2
66
68
45
44
59
58
60
60
65
65
66
66
66
68
67
67
2
6
3
66
69
69
40
42
57
59
64
64
63
63
61
61
59
61
2
8
4
67
69
46
45
60
60
61
63
60
62
62
63
2
10
5
66
68
67
42
55
56
53
54
47
48
45
46
43
44
2
12
6
66
65
67
42
56
55
56
57
55
57
2
14
7
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2197 queries.

Test #185:

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

input:

200
2
0
1
0
80
80
70
72
82
84
85
87
82
84
79
81
79
81
2
4
2
78
69
38
37
26
25
14
14
8
8
4
6
6
6
2
6
3
79
71
40
55
56
50
51
44
45
42
43
40
42
2
8
4
79
78
69
71
82
83
81
82
74
76
78
79
76
77
76
77
2
10
5
79
70
39
28
31
33
34
35
34
35
33
34
2
12
6
78
68
37
25
14
10
12
12
10
12
2
14
7
78
71
82
82
79
81
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2190 queries.

Test #186:

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

input:

200
2
0
1
0
75
74
76
77
45
47
65
66
57
58
53
54
49
50
47
48
2
4
2
76
78
49
48
63
62
66
68
66
66
65
67
64
66
2
6
3
76
77
47
67
69
71
71
72
69
70
69
71
2
8
4
77
76
74
74
45
24
26
35
37
40
42
43
43
41
43
2
10
5
76
74
47
64
66
67
69
69
69
69
2
10
6
6
2
12
7
6
77
79
51
50
63
65
59
59
61
63
62
62
61
63
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2201 queries.

Test #187:

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

input:

200
3
0
1
0
81
81
65
65
39
39
24
26
13
16
19
22
22
25
2
5
2
82
81
65
40
25
15
20
17
19
2
7
3
81
67
81
82
73
75
77
79
77
78
78
79
78
79
2
9
4
81
80
64
66
81
83
83
82
82
83
80
82
81
82
80
82
2
11
5
80
65
40
26
34
36
36
37
36
37
34
35
2
13
6
82
82
65
40
25
14
8
9
4
5
2
4
2
15
7
81
64
41
50
52
57
59
63
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2150 queries.

Test #188:

score: 0
Accepted
time: 29ms
memory: 6064kb

input:

200
2
0
1
0
80
79
70
71
38
40
57
59
61
63
66
68
68
70
2
4
2
81
80
72
83
83
73
73
71
72
72
74
71
72
72
73
2
6
3
80
69
37
21
20
11
13
15
15
13
13
12
12
2
8
4
81
83
49
48
67
66
77
76
80
80
81
81
82
82
82
2
10
5
82
69
40
58
59
49
51
52
53
53
54
51
52
2
12
6
80
80
68
40
60
61
61
57
59
61
61
59
59
2
14
7
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2213 queries.

Test #189:

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

input:

200
2
0
1
0
79
79
75
75
43
43
24
24
13
13
7
7
4
4
2
4
2
4
2
80
80
75
45
66
66
56
56
51
53
54
54
52
54
2
6
3
81
76
45
67
57
52
47
48
45
47
2
8
4
80
79
75
74
45
64
66
68
70
72
72
71
71
70
70
2
10
5
79
75
45
64
54
49
51
52
53
2
12
6
81
81
75
45
64
54
49
49
2
14
7
81
75
45
64
56
58
58
58
58
56
2
16
8
80...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2149 queries.

Test #190:

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

input:

200
2
0
1
0
73
72
61
63
75
76
76
78
76
77
76
77
77
78
77
79
2
4
2
74
74
62
41
42
23
25
31
33
35
37
39
40
37
39
2
6
3
75
63
76
78
78
75
76
75
77
2
8
4
74
74
59
61
74
76
75
75
73
75
73
75
74
74
72
74
2
10
5
74
59
41
23
14
14
8
10
12
12
10
10
2
11
8
9
2
13
7
6
74
73
58
43
51
51
48
50
49
49
50
50
50
50
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2146 queries.

Test #191:

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

input:

200
2
0
1
0
79
78
67
67
45
45
23
25
33
33
29
29
27
29
2
4
2
78
77
66
45
23
14
14
8
10
12
12
10
10
2
6
3
78
69
75
75
71
71
70
72
71
73
71
71
70
72
2
8
4
77
76
67
67
47
58
60
61
63
65
66
63
64
61
62
2
10
5
76
66
44
25
35
40
42
44
44
42
42
2
12
6
77
76
69
76
77
72
75
76
72
74
73
75
2
14
7
76
66
47
57
5...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2240 queries.

Test #192:

score: 0
Accepted
time: 32ms
memory: 6012kb

input:

200
2
0
1
0
77
76
67
67
43
45
54
56
62
62
58
58
56
58
2
4
2
76
75
66
42
23
24
13
14
7
8
3
4
2
4
2
6
3
77
69
72
74
80
81
78
79
74
76
78
80
2
8
4
77
76
65
65
44
25
33
35
37
39
41
43
2
10
5
76
65
43
23
13
7
3
2
2
12
6
77
76
64
44
24
15
18
20
22
23
20
22
2
14
7
76
64
44
24
15
19
17
18
15
16
2
16
8
77
76...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2165 queries.

Test #193:

score: 0
Accepted
time: 27ms
memory: 6072kb

input:

200
2
0
1
0
76
75
57
56
42
42
24
24
14
14
8
10
12
12
10
12
2
4
2
76
76
59
74
74
63
65
70
70
65
67
68
70
2
6
3
77
59
76
80
81
78
79
75
76
75
77
2
8
4
76
75
55
54
41
23
14
10
12
10
2
10
5
75
57
74
73
64
64
63
65
61
63
63
63
63
63
2
12
6
76
75
54
43
25
15
9
4
5
2
3
2
13
7
5
4
2
15
8
7
77
76
56
57
40
41...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2227 queries.

Test #194:

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

input:

200
2
0
1
0
78
78
61
63
87
87
77
79
83
85
86
88
87
87
88
88
2
4
2
77
77
62
42
44
52
53
47
49
49
50
49
50
47
48
2
6
3
76
63
88
78
68
70
73
75
75
76
75
77
2
8
4
76
76
60
60
44
52
52
45
45
45
47
46
46
47
47
2
10
5
77
61
43
23
25
35
37
38
40
42
43
40
41
2
12
6
75
74
61
43
24
11
13
17
18
15
16
13
15
2
14...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2189 queries.

Test #195:

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

input:

200
2
0
1
0
73
73
72
73
43
44
24
25
14
15
8
10
12
13
10
12
2
4
2
74
74
72
45
65
67
67
67
63
65
65
67
2
6
3
74
72
43
26
36
36
30
32
34
34
32
34
2
8
4
75
75
70
72
79
80
78
80
78
80
78
80
77
79
2
10
5
74
70
45
63
65
67
66
68
68
68
68
68
2
11
7
6
2
13
7
6
76
75
71
44
25
15
9
4
6
6
7
2
15
8
77
76
68
41
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2224 queries.

Test #196:

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

input:

200
2
0
1
0
72
71
66
66
39
39
25
25
14
14
8
10
12
14
2
4
2
72
72
66
39
25
14
8
4
6
6
8
2
6
3
72
68
74
76
73
75
75
75
74
74
72
74
2
8
4
73
75
50
49
62
64
57
57
59
61
59
59
60
60
60
60
2
10
5
72
65
64
41
55
57
62
62
59
61
61
63
2
10
8
8
2
12
7
6
73
75
52
52
63
63
68
69
70
71
73
73
74
2
14
8
74
75
66
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2191 queries.

Test #197:

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

input:

200
2
0
1
0
62
61
52
53
37
39
49
50
47
48
42
43
40
41
38
40
2
4
2
63
65
42
43
55
57
50
51
53
55
52
54
51
52
52
53
2
6
3
62
54
67
68
60
61
58
60
60
61
60
61
58
59
2
8
4
64
63
53
53
38
21
23
30
31
25
26
24
25
23
24
2
10
5
63
53
37
21
12
12
8
8
4
4
2
2
2
12
6
64
63
55
66
65
61
60
55
57
58
58
56
58
2
14...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2168 queries.

Test #198:

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

input:

200
2
0
1
0
68
67
64
64
41
42
24
25
13
14
7
8
4
5
2
3
2
4
2
67
68
65
42
25
14
9
11
13
2
6
3
66
64
41
24
15
19
19
17
19
2
8
4
68
69
64
65
42
26
34
36
38
39
36
37
34
36
2
10
5
69
65
42
26
35
28
30
32
34
2
12
6
69
69
66
73
75
73
73
75
75
74
76
73
75
2
14
7
71
45
46
59
61
54
55
59
60
59
60
60
61
58
60
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2156 queries.

Test #199:

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

input:

200
2
0
1
0
79
78
71
73
80
80
78
78
77
79
78
78
76
78
2
4
2
79
80
72
41
43
59
61
62
64
68
70
69
71
2
6
3
78
70
43
59
53
53
47
47
45
47
45
47
2
8
4
79
78
69
43
59
61
61
61
60
60
60
60
61
2
10
5
78
69
43
59
51
53
57
57
55
55
53
2
12
6
79
80
70
43
60
52
46
46
43
45
3
15
7
79
70
42
23
26
34
35
28
29
26
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2192 queries.

Test #200:

score: 0
Accepted
time: 29ms
memory: 6060kb

input:

200
2
0
1
0
71
70
66
68
77
78
71
73
70
72
74
75
72
73
72
73
2
4
2
72
71
65
43
44
25
26
15
17
19
21
23
25
2
6
3
72
66
43
25
17
19
17
19
2
8
4
73
72
66
67
44
26
17
21
24
21
23
2
10
5
72
65
45
57
56
48
48
46
48
46
48
2
12
6
74
73
66
43
27
36
36
31
31
29
29
27
29
2
14
7
73
66
45
59
66
66
63
65
64
66
2
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2221 queries.

Test #201:

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

input:

200
2
0
1
0
78
78
69
69
40
42
60
62
66
68
67
69
70
70
69
69
2
4
2
77
77
69
40
25
25
14
14
8
8
4
4
2
4
2
6
3
76
70
42
61
50
52
57
58
55
57
2
8
4
76
76
72
76
78
84
84
81
81
79
79
79
79
78
80
2
10
5
75
71
42
58
60
64
66
66
67
65
66
67
2
12
6
76
76
70
41
27
32
33
30
31
28
29
26
28
2
14
7
75
69
41
26
15
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2153 queries.

Test #202:

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

input:

200
2
0
1
0
80
80
69
70
41
43
56
58
61
62
60
61
58
59
56
58
2
4
2
80
79
68
40
24
26
35
35
29
29
28
30
2
6
3
80
71
78
78
79
81
76
78
76
78
77
77
76
78
2
8
4
80
79
68
68
41
24
14
14
8
8
4
4
2
4
2
10
5
79
69
43
56
58
62
64
62
64
66
68
1
11
6
80
81
49
50
28
29
16
17
12
11
13
14
13
12
12
13
2
12
8
12
2
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2158 queries.

Test #203:

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

input:

200
2
0
1
0
72
73
60
61
45
47
54
56
56
58
57
58
56
57
56
57
2
4
2
73
72
61
46
23
25
35
37
39
41
43
45
2
6
3
73
62
69
69
64
66
70
70
66
68
68
68
66
68
2
8
4
71
71
58
60
70
72
69
69
67
69
68
70
69
69
69
69
2
10
5
70
58
45
23
14
16
19
21
21
23
2
12
6
71
71
59
47
52
53
47
49
49
51
52
53
50
52
2
13
8
11
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2167 queries.

Test #204:

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

input:

200
2
0
1
0
81
81
63
63
36
36
18
18
10
12
14
14
14
14
12
12
2
4
2
80
80
65
81
81
76
76
69
69
65
67
69
69
67
67
2
6
3
79
63
37
19
11
7
8
3
5
5
7
2
8
4
80
81
63
64
38
55
56
45
46
41
42
39
40
38
39
2
10
5
79
65
82
82
74
76
80
80
78
78
78
78
78
2
12
6
80
79
65
82
82
72
72
69
69
71
73
73
71
71
2
14
7
79
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2145 queries.

Test #205:

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

input:

200
2
0
1
0
79
78
70
72
81
80
78
78
74
76
76
78
77
77
78
78
2
4
2
79
81
50
50
65
67
60
60
62
62
62
64
61
63
2
6
3
78
70
43
45
58
60
67
67
64
64
62
62
60
62
2
8
4
80
79
70
69
43
27
28
15
16
9
10
5
6
2
4
2
10
5
80
71
44
28
17
21
22
19
21
2
12
6
80
79
69
42
26
16
10
6
3
2
13
7
5
4
2
13
10
12
10
2
15
9
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2186 queries.

Test #206:

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

input:

200
2
0
1
0
77
77
66
66
43
45
58
58
56
56
51
51
47
49
49
51
2
4
2
78
78
66
45
58
58
56
58
59
59
57
59
3
7
3
78
69
77
80
75
78
78
78
77
78
78
79
77
80
2
9
4
78
79
64
66
77
79
76
78
76
77
79
78
77
2
10
6
8
2
11
8
6
2
13
7
6
79
79
64
43
24
26
36
36
30
32
34
34
32
34
2
15
8
79
78
63
63
41
41
22
22
12
14...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2149 queries.

Test #207:

score: 0
Accepted
time: 33ms
memory: 6032kb

input:

200
2
0
1
0
75
75
67
67
39
39
22
24
30
30
26
28
29
29
27
29
2
4
2
73
73
68
40
24
31
27
24
25
22
23
2
6
3
72
68
41
60
61
50
52
56
58
60
61
58
59
2
8
4
74
74
65
65
40
24
32
36
38
39
40
37
39
2
10
5
74
65
41
60
48
48
44
46
48
48
46
48
2
12
6
74
74
65
39
22
12
14
16
16
16
16
14
14
2
14
7
74
65
40
23
14
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2194 queries.

Test #208:

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

input:

200
2
0
1
0
78
79
69
70
46
48
61
63
66
67
62
64
64
65
64
65
2
4
2
77
76
70
48
62
55
57
59
60
59
60
57
59
2
4
2
2
6
4
3
77
76
68
68
48
62
64
66
69
69
67
67
66
2
8
5
76
68
46
26
26
14
16
20
22
24
26
2
10
6
78
77
68
46
28
35
37
40
42
44
44
42
44
2
10
6
8
8
2
12
8
7
78
77
68
67
43
25
12
14
18
20
22
24
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2205 queries.

Test #209:

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

input:

200
2
0
1
0
76
78
46
48
25
24
35
35
41
41
44
44
44
46
45
45
2
4
2
77
78
71
73
82
84
78
80
76
77
78
80
76
78
2
6
3
76
70
44
43
23
22
12
12
8
8
4
4
2
2
2
8
4
77
76
69
68
43
25
35
35
29
29
27
29
2
9
6
7
2
11
6
5
77
77
70
46
60
62
65
66
64
65
63
64
61
63
2
13
7
77
70
46
62
67
67
68
66
67
67
68
2
15
8
77...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2194 queries.

Test #210:

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

input:

200
2
0
1
0
75
74
69
70
43
44
24
25
14
16
20
21
18
19
16
17
2
4
2
75
74
70
44
26
37
39
41
42
39
40
37
38
2
6
3
74
68
43
26
37
30
30
28
30
2
8
4
76
75
69
71
80
79
77
77
69
71
73
75
77
77
75
75
3
11
5
75
69
44
27
38
33
35
36
32
35
2
13
6
77
77
69
43
24
14
8
8
4
6
6
6
2
15
7
76
68
44
25
16
21
20
2
17
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2169 queries.

Test #211:

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

input:

200
2
0
1
0
79
80
62
63
40
41
22
23
12
13
6
8
10
11
8
9
2
4
2
80
79
64
79
80
72
73
68
69
67
68
65
67
67
68
2
6
3
81
64
81
81
83
83
84
80
82
82
83
80
81
2
8
4
81
80
60
62
79
78
73
75
74
76
78
77
76
77
76
78
2
10
5
80
60
42
52
52
49
51
53
53
53
53
51
51
2
12
6
81
80
59
40
24
30
30
26
28
28
28
26
28
2
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2183 queries.

Test #212:

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

input:

200
2
0
1
0
78
77
59
58
34
33
25
27
31
31
28
30
30
32
2
4
2
79
78
58
36
47
47
43
44
39
40
37
38
36
37
2
6
3
79
61
73
73
74
74
69
70
66
67
62
64
64
65
2
8
4
78
77
58
58
34
27
31
28
26
28
2
10
5
77
59
36
46
47
43
44
37
39
41
43
2
12
6
78
77
59
35
27
33
34
36
34
35
34
36
2
14
7
78
60
74
74
73
73
67
67
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2162 queries.

Test #213:

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

input:

200
2
0
1
0
83
82
66
66
40
40
21
21
12
12
8
10
10
10
8
10
2
4
2
82
81
65
40
21
12
8
4
6
6
8
2
6
3
82
68
76
77
70
71
67
69
70
72
71
72
70
71
2
8
4
83
82
67
67
41
23
31
33
35
36
33
34
31
33
2
10
5
82
69
75
75
73
71
71
71
73
69
71
2
12
6
83
83
67
42
56
56
48
50
52
52
50
52
2
12
8
10
10
2
14
8
7
82
81
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2147 queries.

Test #214:

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

input:

200
2
0
1
0
78
77
72
74
78
80
76
76
78
78
81
81
77
79
79
81
2
4
2
76
76
72
42
42
25
25
14
14
8
10
12
14
2
6
3
75
73
43
27
33
35
37
38
35
36
33
35
2
8
4
75
76
71
72
43
27
34
29
30
27
28
26
28
2
10
5
74
70
42
25
16
20
22
24
24
22
22
2
12
6
76
76
73
74
74
75
75
73
73
71
73
73
73
73
73
2
14
7
75
71
43
2...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2246 queries.

Test #215:

score: 0
Accepted
time: 40ms
memory: 6296kb

input:

200
2
0
1
0
76
76
72
73
47
48
26
27
14
15
8
9
4
5
2
3
2
4
2
76
76
72
47
28
37
37
32
32
30
30
28
28
2
6
3
75
72
47
26
14
8
4
4
2
8
4
77
77
72
74
82
83
80
81
77
78
75
77
77
78
77
78
2
10
5
76
72
47
28
37
32
32
2
12
6
78
77
72
47
28
37
34
35
35
34
34
2
14
7
77
71
48
27
16
20
22
24
26
2
16
8
78
78
70
70...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2188 queries.

Test #216:

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

input:

200
2
0
1
0
79
79
67
67
42
42
25
27
36
38
40
40
39
39
37
37
2
4
2
80
80
68
43
27
37
30
32
34
35
32
33
2
6
3
79
67
44
60
61
54
55
49
50
46
47
44
46
2
8
4
81
80
66
65
41
24
14
16
19
21
23
22
21
22
2
10
5
80
65
44
59
58
52
54
56
55
56
55
54
2
12
6
80
79
65
42
25
14
8
8
4
6
6
8
2
13
8
12
2
15
8
7
79
81
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2194 queries.

Test #217:

score: 0
Accepted
time: 28ms
memory: 6296kb

input:

200
2
0
1
0
79
78
63
63
41
43
54
54
48
48
44
44
42
44
42
44
2
4
2
80
79
63
43
54
48
46
47
47
45
47
2
4
4
2
6
4
3
81
83
45
47
27
27
36
36
41
42
43
44
43
45
42
44
2
8
5
81
61
63
80
82
82
82
83
83
78
80
81
83
2
10
6
80
80
61
41
24
24
14
14
8
10
12
12
10
12
2
12
7
80
61
41
24
14
8
4
6
6
6
2
14
8
80
79
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2192 queries.

Test #218:

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

input:

200
2
0
1
0
69
70
67
69
76
78
76
77
76
77
76
78
77
78
76
78
2
4
2
68
67
67
41
43
55
57
59
60
58
59
56
57
54
56
2
6
3
67
66
40
24
24
13
13
8
8
4
4
2
2
3
9
4
69
68
65
68
76
77
75
76
73
75
73
75
69
72
71
74
2
11
5
70
67
78
75
76
77
75
76
76
77
77
2
13
6
69
68
67
76
76
74
74
74
74
71
69
67
2
15
7
68
64
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2161 queries.

Test #219:

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

input:

200
2
0
1
0
75
76
71
72
45
47
60
62
67
68
65
67
65
67
2
2
2
4
3
2
76
76
73
78
79
76
78
79
80
77
79
78
79
76
78
2
6
4
77
77
69
71
78
78
77
77
72
74
74
76
75
75
75
75
2
8
5
76
71
77
77
72
71
73
72
72
70
72
2
10
6
78
77
69
47
60
62
65
64
64
62
64
2
12
7
80
50
49
66
67
69
71
68
70
67
68
68
69
68
69
2
13...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2239 queries.

Test #220:

score: 0
Accepted
time: 39ms
memory: 6020kb

input:

200
2
0
1
0
77
76
62
62
38
38
24
26
32
34
37
39
36
38
2
4
2
75
76
64
74
75
68
70
75
76
71
73
75
76
73
75
2
6
3
74
63
40
51
53
56
57
55
56
53
54
51
53
2
8
4
73
73
60
62
74
76
74
76
74
74
74
76
75
75
74
76
2
10
5
72
59
40
49
48
42
41
40
40
40
40
40
40
2
12
6
73
72
62
75
75
67
69
73
70
72
73
2
13
7
5
4...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2181 queries.

Test #221:

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

input:

200
2
0
1
0
82
81
70
69
44
44
22
22
14
16
20
20
18
18
16
16
2
4
2
81
80
72
77
78
74
76
75
77
78
79
77
78
76
78
2
6
3
80
70
44
22
16
20
18
18
2
8
4
82
82
71
73
77
78
72
73
71
73
70
72
70
71
70
72
2
9
6
7
2
11
6
5
82
81
72
45
24
34
36
39
41
42
44
2
12
7
5
3
2
14
8
7
83
83
69
71
80
77
79
84
84
80
80
79...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2183 queries.

Test #222:

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

input:

200
2
0
1
0
75
75
65
67
70
72
72
72
76
76
72
72
69
71
71
71
2
4
2
75
75
65
42
42
20
20
11
11
8
8
4
4
2
2
2
6
3
77
46
45
62
62
72
72
77
77
78
79
77
78
76
2
8
4
73
75
47
49
26
26
36
38
32
32
33
35
31
33
2
10
5
72
65
66
44
60
61
51
52
45
47
49
50
47
49
2
11
8
9
2
13
7
6
74
73
67
70
71
69
70
69
71
71
72...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2221 queries.

Test #223:

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

input:

200
2
0
1
0
77
76
62
62
42
42
23
23
14
16
18
20
22
22
20
20
2
4
2
78
77
61
43
25
35
37
41
42
39
41
2
6
3
79
64
74
76
76
78
78
80
79
80
80
81
80
82
2
8
4
79
79
61
62
44
53
54
46
47
43
45
45
46
45
47
2
10
5
78
60
44
55
56
56
55
55
55
55
53
55
2
12
6
79
80
63
74
75
68
70
69
70
67
69
68
69
69
70
2
14
7
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2243 queries.

Test #224:

score: 0
Accepted
time: 27ms
memory: 5976kb

input:

200
2
0
1
0
80
79
68
68
40
40
23
24
13
14
7
8
4
6
5
7
2
4
2
80
80
68
40
24
15
19
21
23
24
21
22
2
6
3
80
69
42
58
59
52
54
56
58
56
57
56
57
2
8
4
79
78
67
67
40
23
15
19
17
19
2
10
5
79
69
79
79
76
78
79
80
78
79
78
79
78
80
2
12
6
77
77
67
42
58
63
63
60
62
61
63
2
14
7
77
67
41
24
14
9
11
12
9
10...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2166 queries.

Test #225:

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

input:

200
2
0
1
0
77
76
60
60
43
43
26
28
35
37
39
39
39
39
37
39
2
4
2
78
80
44
44
64
65
71
73
69
70
70
71
71
72
72
73
2
6
3
77
59
45
54
55
48
49
45
47
47
48
45
47
2
8
4
77
78
60
61
44
28
37
40
40
38
2
10
5
78
62
68
70
73
75
76
77
76
77
74
76
2
12
6
76
76
60
43
28
35
30
32
33
33
32
34
2
14
7
77
62
68
69
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2155 queries.

Test #226:

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

input:

200
2
0
1
0
79
78
66
66
40
40
24
24
14
14
8
10
12
12
10
12
2
4
2
79
80
67
42
51
53
59
61
63
65
66
67
65
67
2
6
3
78
67
41
26
31
33
37
38
35
37
2
8
4
80
81
67
42
52
54
57
59
63
65
66
64
2
10
5
79
68
72
71
69
70
70
71
66
67
66
68
66
67
2
10
8
8
2
12
7
6
81
81
68
72
73
70
71
68
70
71
72
71
72
72
2
14
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2167 queries.

Test #227:

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

input:

200
2
0
1
0
75
75
65
67
77
79
75
75
76
78
77
77
75
77
2
4
2
75
74
67
77
74
74
68
68
67
69
69
69
68
70
2
6
3
76
67
78
76
76
77
76
77
76
77
74
75
2
8
4
76
75
66
65
44
43
25
24
14
14
8
10
12
12
10
10
2
10
5
75
67
45
27
36
37
30
32
34
35
32
34
2
12
6
76
76
66
46
57
59
61
61
58
58
59
59
59
59
2
14
7
76
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2251 queries.

Test #228:

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

input:

200
2
0
1
0
78
78
63
63
36
38
52
52
44
44
40
40
38
40
40
41
2
4
2
77
79
48
49
68
69
72
74
71
72
71
73
71
72
70
72
2
6
3
76
63
38
54
58
58
56
56
56
56
54
56
2
6
4
4
2
7
6
7
2
9
6
5
75
74
63
64
38
50
52
56
57
57
55
53
2
9
8
9
2
11
8
7
76
77
61
63
70
71
63
65
67
69
69
71
71
72
69
70
2
13
9
75
61
36
36
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2148 queries.

Test #229:

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

input:

200
2
0
1
0
70
71
57
58
38
40
52
53
44
45
43
45
42
44
2
4
2
70
69
56
38
22
23
12
13
8
9
4
5
2
3
2
6
3
70
59
70
71
68
69
65
67
66
68
68
69
68
70
2
6
6
2
8
5
4
70
70
58
59
39
24
32
33
28
30
32
33
30
32
2
10
6
71
70
58
39
23
14
16
17
14
15
14
15
2
12
7
71
60
69
69
68
61
63
65
65
65
63
63
2
14
8
72
72
5...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2239 queries.

Test #230:

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

input:

200
2
0
1
0
74
73
70
69
46
48
60
60
58
58
52
52
49
49
47
47
2
4
2
74
73
69
47
26
27
14
15
8
10
12
13
10
12
2
6
3
75
71
47
28
38
40
42
43
42
43
40
41
2
8
4
75
74
69
68
45
26
16
20
20
18
18
16
18
2
10
5
74
70
48
60
62
64
65
61
63
64
65
62
64
2
10
6
4
4
2
12
7
6
76
76
69
48
62
66
65
67
68
68
67
69
2
14...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2164 queries.

Test #231:

score: 0
Accepted
time: 28ms
memory: 6012kb

input:

200
2
0
1
0
76
78
45
46
62
64
56
57
62
63
63
64
63
64
64
65
2
4
2
77
76
62
61
36
36
22
24
29
31
33
35
34
34
32
34
1
3
1
2
3
4
2
2
5
3
2
75
75
60
62
80
80
73
75
75
77
76
78
78
80
2
7
4
75
76
61
37
23
13
15
16
17
15
16
13
14
2
9
5
77
50
50
66
66
69
69
74
74
76
77
77
2
11
6
76
75
58
60
76
78
79
80
80
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2178 queries.

Test #232:

score: 0
Accepted
time: 29ms
memory: 5996kb

input:

200
2
0
1
0
74
73
71
70
41
41
24
24
14
16
20
20
18
20
2
4
2
75
75
72
43
59
60
51
52
46
48
50
52
2
6
3
77
47
49
26
25
36
37
41
43
38
40
37
38
38
39
2
8
4
75
74
71
72
42
25
15
8
9
4
5
2
3
2
10
5
74
72
42
25
15
9
5
4
2
10
6
4
4
2
12
7
6
75
74
70
41
26
34
34
30
32
32
32
32
32
2
14
8
76
77
71
73
81
82
75...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2148 queries.

Test #233:

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

input:

200
2
0
1
0
75
76
65
67
78
79
74
76
74
76
77
79
78
80
2
4
2
75
77
46
47
60
62
55
56
55
57
56
57
57
58
55
57
2
6
3
74
66
48
49
26
28
37
39
42
44
46
47
44
46
2
8
4
76
76
66
67
49
28
39
43
40
41
38
40
2
10
5
75
66
48
26
15
17
20
22
24
24
22
24
2
12
6
77
77
66
50
61
62
58
59
52
54
56
58
2
12
6
6
2
14
8
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2111 queries.

Test #234:

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

input:

200
2
0
1
0
73
73
60
60
37
38
19
21
27
29
33
34
31
32
29
31
2
4
2
72
71
60
39
53
53
45
47
49
49
49
49
47
47
2
6
3
71
60
39
53
47
51
53
54
51
53
2
8
4
73
72
60
60
39
55
55
55
54
56
55
55
55
55
2
10
5
75
50
49
65
65
70
70
71
73
70
70
71
71
70
72
2
12
6
74
75
62
74
76
78
80
77
78
79
80
80
81
80
81
2
14...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2175 queries.

Test #235:

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

input:

200
2
0
1
0
67
68
62
63
45
47
59
61
60
61
60
61
61
62
61
62
2
4
2
68
69
64
67
68
66
68
64
66
67
68
65
66
63
65
1
5
3
67
61
44
23
24
35
36
41
40
39
38
37
38
2
7
4
67
66
63
63
46
25
37
43
45
46
43
44
2
9
5
67
64
46
24
14
15
8
9
4
6
6
8
2
11
6
68
67
65
67
69
69
70
65
67
65
67
69
70
67
69
2
11
5
4
2
2
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2166 queries.

Test #236:

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

input:

200
2
0
1
0
82
81
66
68
80
81
72
74
75
77
78
79
76
77
76
77
2
4
2
83
83
67
44
45
26
27
14
16
20
21
18
19
16
18
2
6
3
82
66
44
28
38
40
44
44
42
42
40
42
2
8
4
82
82
66
66
46
55
56
50
52
52
54
56
57
54
55
2
10
5
81
66
44
26
14
8
10
12
12
10
12
2
12
6
82
81
67
46
57
61
63
62
63
62
63
62
64
2
14
7
81
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2210 queries.

Test #237:

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

input:

200
2
0
1
0
66
65
65
65
43
43
25
27
37
37
31
31
29
31
2
4
2
66
66
65
43
27
39
39
41
41
41
41
41
2
6
3
66
65
45
56
56
51
53
51
53
54
56
2
8
4
67
67
66
68
64
65
67
69
66
67
67
68
67
69
2
10
5
66
66
43
27
37
33
35
35
33
35
2
12
6
67
68
67
45
55
49
50
47
48
47
48
45
46
2
14
7
69
53
52
65
65
65
67
67
67
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2199 queries.

Test #238:

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

input:

200
2
0
1
0
72
72
65
65
40
41
23
25
31
33
34
35
33
35
2
4
2
71
71
67
77
77
71
71
70
72
70
72
69
71
2
6
3
70
64
41
24
13
15
19
21
21
23
2
8
4
72
71
64
63
42
54
54
47
49
51
51
51
51
49
51
2
10
5
71
65
42
55
48
43
44
43
44
41
43
2
12
6
73
73
64
42
54
47
45
45
47
2
14
7
72
65
41
25
32
26
28
29
31
2
16
8...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2188 queries.

Test #239:

score: 0
Accepted
time: 27ms
memory: 6264kb

input:

200
2
0
1
0
72
71
59
58
37
37
25
25
14
16
20
22
23
25
2
4
2
71
72
60
39
44
46
52
54
58
59
56
57
54
56
2
6
3
70
61
70
70
65
67
70
70
67
69
69
71
2
8
4
72
71
57
56
37
27
30
30
28
28
26
26
27
27
2
10
5
71
58
39
43
44
41
42
42
43
40
41
38
40
2
12
6
72
72
57
37
25
14
8
10
12
12
10
12
2
14
7
72
58
38
26
1...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2162 queries.

Test #240:

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

input:

200
2
0
1
0
69
69
60
61
42
44
56
58
59
61
61
62
61
62
61
62
2
4
2
68
68
60
44
58
61
62
62
62
2
6
3
67
62
68
68
65
65
63
63
65
65
63
63
62
62
2
8
4
69
70
61
62
44
56
57
52
53
48
50
50
51
50
52
2
10
5
68
62
43
24
26
34
35
30
31
28
29
26
28
2
12
6
69
71
50
49
65
64
68
69
69
71
68
70
69
70
70
71
2
14
7
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2217 queries.

Test #241:

score: 0
Accepted
time: 33ms
memory: 6272kb

input:

200
2
0
1
0
74
73
61
63
73
73
75
77
76
78
74
76
74
74
73
75
2
4
2
72
71
61
41
41
24
26
30
32
36
36
34
34
32
34
2
6
3
71
63
74
76
70
71
66
68
68
69
67
69
2
8
4
72
72
60
62
75
76
77
70
74
76
75
77
2
10
5
71
59
43
53
55
57
58
55
57
55
56
55
57
2
12
6
72
73
61
42
26
32
38
39
40
38
39
2
14
7
74
47
46
66
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2194 queries.

Test #242:

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

input:

200
2
0
1
0
79
81
47
47
66
66
70
72
70
70
71
71
70
72
2
4
2
79
78
71
70
45
46
26
28
38
40
41
43
44
46
2
6
3
79
71
45
26
14
14
8
10
12
12
10
12
2
8
4
79
78
72
72
47
60
61
53
55
57
59
60
62
2
10
5
79
74
78
78
69
71
75
76
73
74
71
73
2
11
8
10
2
13
7
6
80
81
73
46
28
39
32
33
30
31
28
30
2
15
8
80
80
7...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2191 queries.

Test #243:

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

input:

200
2
0
1
0
74
74
72
74
77
77
77
77
76
76
74
74
73
74
74
75
3
5
2
74
74
72
41
42
26
27
14
15
8
11
12
13
10
13
2
7
3
74
73
43
59
61
66
68
70
71
69
70
68
70
1
8
4
73
72
70
69
40
27
34
33
31
30
30
31
2
10
5
73
71
42
28
36
38
39
37
39
2
12
6
73
73
71
42
27
15
9
4
5
2
4
2
14
7
72
72
79
78
78
79
75
76
74
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2224 queries.

Test #244:

score: 0
Accepted
time: 33ms
memory: 6284kb

input:

200
2
0
1
0
76
75
64
63
40
40
25
25
14
14
8
8
4
6
6
8
2
4
2
76
77
65
42
56
57
49
50
46
47
44
45
42
44
2
6
3
75
63
40
26
16
19
20
17
18
16
18
2
8
4
77
78
63
65
77
79
80
81
78
80
79
81
80
81
79
80
2
10
5
76
64
42
57
59
60
62
63
65
64
65
62
64
2
12
6
78
78
64
41
27
31
32
30
31
28
30
2
14
7
77
62
40
27
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2176 queries.

Test #245:

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

input:

200
3
0
1
0
76
76
70
72
43
46
59
61
49
51
46
49
47
49
48
50
2
5
2
77
76
72
76
76
80
81
75
76
72
74
74
75
73
74
2
7
3
77
70
45
59
49
46
45
47
45
47
2
9
4
78
78
70
71
45
59
60
48
46
46
45
46
2
11
5
77
71
44
26
28
36
37
30
32
34
35
32
34
2
13
6
77
76
70
43
26
14
16
20
22
24
24
22
22
2
15
7
77
71
44
27
...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2191 queries.

Test #246:

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

input:

200
2
0
1
0
76
75
68
69
39
41
55
57
62
64
64
66
67
69
2
4
2
74
75
69
40
25
27
34
36
35
37
37
39
2
6
3
73
67
38
26
14
16
19
21
23
24
21
22
2
6
4
2
3
9
5
4
74
73
67
40
28
36
30
33
32
35
2
11
6
72
72
69
73
73
75
75
70
70
69
71
68
70
2
13
7
71
67
41
56
56
47
49
52
54
54
56
2
13
6
4
4
2
15
9
8
73
73
66
6...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2230 queries.

Test #247:

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

input:

200
2
0
1
0
87
86
68
69
41
42
24
26
31
33
37
39
39
41
2
4
2
88
87
68
43
57
57
48
48
45
45
42
42
41
43
2
6
3
87
67
42
25
14
16
20
22
22
24
2
8
4
86
85
66
67
43
56
58
64
66
64
66
65
66
64
65
2
10
5
85
65
40
25
15
8
10
12
13
10
12
2
12
6
87
86
67
43
58
65
59
60
57
59
2
14
7
86
67
42
26
33
38
35
36
33
3...

output:

? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 2200 queries.