QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#188905#7510. Independent Setzhoukangyang#AC ✓64ms55912kbC++113.4kb2023-09-26 16:23:232023-09-26 16:23:23

Judging History

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

  • [2023-09-26 16:23:23]
  • 评测
  • 测评结果:AC
  • 用时:64ms
  • 内存:55912kb
  • [2023-09-26 16:23:23]
  • 提交

answer

#include<bits/stdc++.h>
#define L(i, j, k) for(int i = (j); i <= (k); ++i)
#define R(i, j, k) for(int i = (j); i >= (k); --i)
#define ll long long 
#define vi vector < int > 
#define sz(a) ((int) (a).size())
#define ll long long 
#define ull unsigned long long
#define me(a, x) memset(a, x, sizeof(a)) 
using namespace std;
const int N = 1 << 20;
mt19937_64 orz;

int n, m;
vi e[N];
vector < pair < int, int > > ans;

int hm[N];
vi re[N];

int ALL;
vi qry(vi S) {
	ALL += sz(S);
	cout << "? ";
	cout << sz(S) << ' ';
	for(auto&u : S) {
		cout << u << ' ';
	}
	cout << endl;
	
//	vi ans;
//	for(auto&p : S) {
//		int cnt = 0;
//		for(auto&v : re[p]) {
//			cnt += hm[v];
//		}
//		ans.emplace_back(cnt);
//		if(!cnt) 
//			hm[p] = 1;
//	}
//	for(auto&p : S) 
//		hm[p] = 0;
////	cout << "ans = ";
////	for(auto&u : ans) cout << u << ' ';
////	cout << endl;
//	return ans;
	
	vi ret(sz(S));
	L(i, 0, sz(ret) - 1) {
		cin >> ret[i];
	}
	return ret;
}

vector < pair < int, int > > nans;
void slv(vi S, vi T, vi cnt) {
	if(sz(S) == 1) {
		L(i, 0, sz(T) - 1) 
			L(j, 1, cnt[i]) 
				nans.emplace_back(S[0], T[i]);
		return ;
	}
	if(!sz(T)) {
		return ;
	}
	assert(sz(T) == sz(cnt));
	vi rT, rcnt;
	L(i, 0, sz(T) - 1) {
		if(cnt[i] == 0) 
			continue;
		rT.emplace_back(T[i]);
		rcnt.emplace_back(cnt[i]);
	}
	swap(T, rT), rT.clear();
	swap(cnt, rcnt), rcnt.clear();
	
	int mid = sz(S) / 2;
	vi tmp;
	L(i, 0, mid - 1) 
		tmp.emplace_back(S[i]);
	L(i, 0, sz(T) - 1) 
		tmp.emplace_back(T[i]);
	vi rm = qry(tmp);
	L(z, mid, sz(rm) - 1) {
		int ins = !rm[z];
		int u = tmp[z];
		for(auto &v : e[u]) rm[z] -= hm[v];
		if(ins) hm[u] = true;
	}
	for(auto&p : tmp) hm[p] = 0;
	
	vi cntl(sz(T)), cntr(sz(T));
	L(i, 0, sz(T) - 1) {
		cntl[i] = rm[i + mid];
		cntr[i] = cnt[i] - cntl[i];
		if(cntl[i] < 0 || cntr[i] < 0) {
			cout << "qAq " << cntl[i] << ' ' << cntr[i] << endl;
			exit(0);
		} 
	}
	
	vi Sl, Sr;
	L(i, 0, sz(S) - 1) {
		if(i < mid) {
			Sl.emplace_back(S[i]);
		} else {
			Sr.emplace_back(S[i]);
		}
	}
	
	slv(Sl, T, cntl);
	slv(Sr, T, cntr); 
}

void work(vi S) {
	if(sz(S) <= 1) {
		return ;
	}
	
	vi T = qry(S);
	vi st, nt, cnt;
	L(i, 0, sz(T) - 1) {
		if(T[i] == 0) {
			st.emplace_back(S[i]);
		} else {
			nt.emplace_back(S[i]);
		}
	}
	work(nt);
	
	vi fk;
	for(auto&u : st) fk.emplace_back(u);
	for(auto&u : nt) fk.emplace_back(u);
	T = qry(fk);
	L(i, 0, sz(nt) - 1) 
		cnt.emplace_back(T[i + sz(st)]);
	nans.clear();
	slv(st, nt, cnt);
	for(auto &z : nans) {
		int u = z.first;
		int v = z.second;
		ans.emplace_back(z);
		e[u].emplace_back(v);
		e[v].emplace_back(u);
	}
}

void Add(int u, int v) {
	re[u].emplace_back(v);
	if(u != v) re[v].emplace_back(u);
}

int main() {
	ios :: sync_with_stdio(false);
	cin.tie(0); cout.tie(0);
	
//	Add(1, 2);
//	Add(1, 2);
//	Add(1, 3);
//	Add(4, 4);
//	Add(4, 5);
	
	cin >> n;
//	n = 4000;
//	L(i, 1, 10000) {
//		Add(orz() % n + 1, orz() % n + 1);
//	}
	
	vi S;
	L(i, 1, n) S.emplace_back(i);
	shuffle(S.begin(), S.end(), orz);
	
	work(S);
	L(i, 1, n) {
		vi qwq = qry(vi{i, i});
		L(j, 1, qwq[1])
			ans.emplace_back(make_pair(i, i));
	}
	
//	cout<<"SZ="<<sz(ans)<<' '<<ALL<<endl;
	cout << "! ";
	cout << sz(ans) << ' ';
	for(auto u : ans) 
		cout << u.first << ' ' << u.second << ' ';
	cout << endl;
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 10ms
memory: 54828kb

input:

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

output:

? 4 3 2 1 4 
? 4 3 2 4 1 
? 2 3 1 
? 2 2 1 
? 2 1 1 
? 2 2 2 
? 2 3 3 
? 2 4 4 
! 4 3 1 2 1 2 1 4 4 

result:

ok Ok, Accepted!

Test #2:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #3:

score: 0
Accepted
time: 64ms
memory: 55576kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #4:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #5:

score: 0
Accepted
time: 43ms
memory: 55664kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 2 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #6:

score: 0
Accepted
time: 42ms
memory: 55696kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #7:

score: 0
Accepted
time: 48ms
memory: 55612kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #8:

score: 0
Accepted
time: 43ms
memory: 55840kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #9:

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

input:

4000
0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #10:

score: 0
Accepted
time: 49ms
memory: 55632kb

input:

4000
0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 1...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #11:

score: 0
Accepted
time: 42ms
memory: 55324kb

input:

4000
0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #12:

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

input:

4000
0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 1...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #13:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #14:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #15:

score: 0
Accepted
time: 56ms
memory: 55664kb

input:

4000
0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 1 1 0 0 0 1 0 0 1 1 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #16:

score: 0
Accepted
time: 47ms
memory: 55656kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 1 2 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 2 1 0 0 0 0 0 1 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #17:

score: 0
Accepted
time: 49ms
memory: 55884kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 1 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #18:

score: 0
Accepted
time: 37ms
memory: 55576kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 2 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 1 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 2 0 1 0 0 0 0 1 0 2 0 0 1 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #19:

score: 0
Accepted
time: 57ms
memory: 55588kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #20:

score: 0
Accepted
time: 52ms
memory: 55536kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1 0 0 1 1 1 0 0 1 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #21:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #22:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #23:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #24:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #25:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #26:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #27:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #28:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 1 1 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #29:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #30:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #31:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #32:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #33:

score: 0
Accepted
time: 43ms
memory: 55616kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 1 0 0 1 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #34:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #35:

score: 0
Accepted
time: 50ms
memory: 55556kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #36:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 2...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #37:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 2 0 0 0 0 1 0 0 2 0 2 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #38:

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

input:

4000
0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 2 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #39:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 1 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #40:

score: 0
Accepted
time: 48ms
memory: 55280kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #41:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 19 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 ...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #42:

score: 0
Accepted
time: 41ms
memory: 55428kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 4 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 1 0 1 0 3 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #43:

score: 0
Accepted
time: 41ms
memory: 55552kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 2 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #44:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 1 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 2 0 0 2 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #45:

score: 0
Accepted
time: 35ms
memory: 55688kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 1 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #46:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #47:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 1 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #48:

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

input:

4000
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #49:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 2 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #50:

score: 0
Accepted
time: 41ms
memory: 55576kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #51:

score: 0
Accepted
time: 41ms
memory: 55572kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 4 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #52:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 1 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #53:

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

input:

4000
0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #54:

score: 0
Accepted
time: 50ms
memory: 55500kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #55:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #56:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 2 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 2 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #57:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 1 0 2 0 0 0 1 0 0 0 0 0 0 0 0 0 0 2 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #58:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #59:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 2...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #60:

score: 0
Accepted
time: 64ms
memory: 55776kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 1 1 0 1 0 0 1 0 0 0 1 0 0 1 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #61:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 1 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #62:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #63:

score: 0
Accepted
time: 42ms
memory: 55356kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #64:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #65:

score: 0
Accepted
time: 42ms
memory: 55612kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #66:

score: 0
Accepted
time: 42ms
memory: 55520kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #67:

score: 0
Accepted
time: 41ms
memory: 55840kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #68:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #69:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #70:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 11 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #71:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #72:

score: 0
Accepted
time: 35ms
memory: 55436kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 11 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #73:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #74:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #75:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #76:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #77:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #78:

score: 0
Accepted
time: 51ms
memory: 55412kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #79:

score: 0
Accepted
time: 59ms
memory: 55564kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #80:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #81:

score: 0
Accepted
time: 35ms
memory: 55192kb

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!

Test #82:

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

input:

4000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

? 4000 2433 1342 1494 1764 1055 378 1997 1933 433 635 1688 2269 779 442 1267 1428 2188 242 3229 2765 905 3301 3775 1748 2964 3083 1018 971 2537 763 3240 648 2806 3719 3037 639 2588 53 3219 586 1686 3923 1105 2672 3286 457 889 2458 2508 3388 1913 3440 2265 2382 1704 1606 2117 1554 3156 1897 2856 1775...

result:

ok Ok, Accepted!