QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#343184#4085. 통신망socpite20 145ms149268kbC++2015.6kb2024-03-02 01:46:392024-03-02 01:46:39

Judging History

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

  • [2024-03-02 01:46:39]
  • 评测
  • 测评结果:20
  • 用时:145ms
  • 内存:149268kb
  • [2024-03-02 01:46:39]
  • 提交

answer

#include <bits/stdc++.h>
// #include "communication.h"
#define rb(x) ((x)&(-(x)))
#define fi first
#define se second
#define sz(V) ((int)(V).size())
using namespace std;
typedef pair<int, int> pii;

const int MAXN = 250055;
const int MAXM = 1000055;

int T[MAXN*4];
int Ts[MAXN*2], Tdeg[MAXN*2], _Ti[MAXN*2];

int GD[MAXM + MAXN*2];
int GDs[MAXN*2], GDdeg[MAXN*2], _GDi[MAXN*2];

int G[MAXM*2 + MAXN*2]; // save edges of graph in order of node
int Gs[MAXN*2]; // prefix sum of degree + i
int Gdeg[MAXN*2], _Gi[MAXN*2];
int RT[MAXN];

int cAlpha[MAXM];
int upperUp[MAXN*2], lowerUp[MAXN*2];
int upperAbove[MAXN*2], lowerAbove[MAXN*2];
int minOrderUp[MAXN*2], maxOrderUp[MAXN*2];
int minOrderAbove[MAXN*2], maxOrderAbove[MAXN*2];
int upCnt[MAXN*2], aboveCnt[MAXN*2];
int lcaUp[MAXN*2], lcaAbove[MAXN*2];

int dep[MAXN*2], prt[MAXN*2], prte[MAXN*2], dfo[MAXN*2], cnt[MAXN*2];
bitset<MAXM> treeEdge;

int A[MAXM], B[MAXM], C[MAXM];
bitset<MAXN*2> inV;

int Ans[MAXM];
int N, M, W, K, _N, _M;


int ud[MAXN*2];
int uf(int i) { return i == ud[i] ? i : (ud[i] = uf(ud[i])); }
void uf(int a, int b) { ud[uf(b)] = uf(a); }


namespace TE3 {
	void run() {
		for(int i = ::N, r; i; i--) if(3 <= ::dep[i]) {
			r = ::lowerUp[i];
			if(1 == ::dep[r] && ::inV[r])
				Ans[::C[::prte[i]]]++;
		}
	}
}


namespace TE2 {
	int fenwick[MAXN*2];

	pii IC[MAXN*2];
	int ICT[MAXN*2], ICs[MAXN*2];

	pii VIC[MAXN*4];
	int VICs[MAXN*2], VICdeg[MAXN*2], _VICi[MAXN*2];

	pii I[MAXN*6];
	int Is[MAXN*2];

	int dfoask[MAXN*4], dfoasks[MAXN*2], dfoaskdeg[MAXN*2], _dfoaski[MAXN*2];
	int dfopush[MAXN*2];
	int dfopop[MAXN*4], dfopops[MAXN*2], dfopopdeg[MAXN*2], _dfopopi[MAXN*2];

	void upd(int i, int r) {
		for(; i <= ::N; i += rb(i))
			fenwick[i] += r;
	}
	int get(int i) {
		int r = 0;
		for(; i; i -= rb(i))
			r += fenwick[i];
		return r;
	}

	void run() {
		// Sort IC + ICT by upperAbove dep
		for(int i = ::N; i; i--)
			if(4 <= ::dep[i] && ::inV[::prt[i]])
				ICs[::dep[::upperAbove[i]]]++;
		for(int i = 1; i < ::N; i++)
			ICs[i+1] += ICs[i];
		for(int i = ::N; i; i--) if(4 <= ::dep[i] && ::inV[::prt[i]]) {
			int &idx = ICs[::dep[::upperAbove[i]]];
			ICT[idx] = ::prt[i];
			IC[idx] = { ::dep[::upperAbove[i]], ::dep[::lowerAbove[i]] };
			idx--;
		}

		// Build VIC
		for(int i = 1; ICT[i]; i++) VICdeg[ICT[i]]++;
		for(int i = 1; i < ::N; i++) VICs[i+1] = VICs[i] + VICdeg[i] + 1;
		memcpy(_VICi, VICs, ::N+1 << 2);
		for(int i = 1; ICT[i]; i++) VIC[_VICi[ICT[i]]++] = IC[i];

		// Make I
		{
			pii *it = I+1;
			for(int i = 1, s, e; i <= ::N; i++) if(3 <= ::dep[i] && ::inV[i]) {
				Is[i] = int(it - I);
				s = 2; e = ::dep[i] - 1;
				for(pii *cit = VIC + VICs[i];; cit++) {
					if(!cit->fi || s > e) break;
					if(cit->se <= cit->fi) continue;
					if(s <= cit->fi) {
						*it++ = { s, min(cit->fi, e) };
						s = cit->se + 1;
					} else {
						if(s <= cit->se)
							s = cit->se + 1;
					}
				}
				if(s <= e) *it++ = {s, e};
				it++;
			}
		}

		// Sweeping
		for(int i = ::N; i; i--) {
			if(3 <= ::dep[i] && ::inV[i]) {
				dfopush[::dfo[i]] = i;
				dfopopdeg[::dfo[i] + ::cnt[i]]++;
			}
			if(2 <= ::dep[i])
				dfoaskdeg[::dfo[::lcaUp[i]]]++;
		}
		for(int i = 1; i <= ::N+1; i++) {
			dfoasks[i+1] = dfoasks[i] + dfoaskdeg[i] + 1;
			dfopops[i+1] = dfopops[i] + dfopopdeg[i] + 1;
		}
		memcpy(_dfoaski, dfoasks, ::N+2 << 2);
		memcpy(_dfopopi, dfopops, ::N+2 << 2);
		for(int i = 1; i <= ::N; i++) {
			if(3 <= ::dep[i] && ::inV[i]) dfopop[_dfopopi[::dfo[i] + ::cnt[i]]++] = i;
			if(2 <= ::dep[i]) dfoask[_dfoaski[::dfo[::lcaUp[i]]]++] = i;
		}
		for(int dfotime = 1; dfotime <= ::N; dfotime++) {
			if(dfopush[dfotime]) {
				for(pii *it = I + Is[dfopush[dfotime]]; it->fi; it++) {
					upd(it->fi, 1);
					upd(it->se + 1, -1);
				}
			}
			for(int *it = dfopop + dfopops[dfotime]; *it; it++) {
				for(pii *iit = I + Is[*it]; iit->fi; iit++) {
					upd(iit->fi, -1);
					upd(iit->se + 1, 1);
				}
			}
			for(int *askit = dfoask + dfoasks[dfotime]; *askit; askit++)
				::Ans[::C[::prte[*askit]]] += get(::dep[*askit]);
		}
	}
}


namespace TE1C2 {
	int fenwick[MAXN*2];

	pii OC[MAXN*2]; // { dep, c }
	int OCs[MAXN*2], OCn;

	pii OV[MAXN*2]; // { dep, v }
	int OVs[MAXN*2], OVn;

	inline void upd(int i, int r) {
		for(; i <= ::N; i += rb(i))
			fenwick[i] += r;
	}
	inline int get(int i) {
		int r = 0;
		for(; i; i -= rb(i))
			r += fenwick[i];
		return r;
	}
	inline int get(int s, int e) { return get(e) - get(s-1); }

	void run() {
		// Sort OC & OV by dep
		for(int i = ::N; i; i--) {
			if(3 <= ::dep[i] && inV[::prt[i]]) {
				OCs[::dep[i]]++;
				OCn++;
			}
			if(4 <= ::dep[i]) {
				OVs[::dep[::lowerUp[i]]]++;
				OVn++;
			}
		}
		for(int i = 1; i < ::N; i++) {
			OCs[i+1] += OCs[i];
			OVs[i+1] += OVs[i];
		}
		for(int i = ::N; i; i--) {
			if(3 <= ::dep[i] && inV[::prt[i]])
				OC[OCs[::dep[i]]--] = { ::dep[i], i };
			if(4 <= ::dep[i])
				OV[OVs[::dep[::lowerAbove[i]]]--] = { ::dep[::lowerAbove[i]], i };
		}

		for(pii *vit = OV+OVn, *cit = OC+OCn;; vit--) {
			if(!vit->fi) break;
			for(; vit->fi < cit->fi; cit--) {
				upd(::dfo[::lcaAbove[cit->se]], 1);
				upd(::dfo[cit->se], -1);
			}
			::Ans[::C[::prte[vit->se]]] += get(::dfo[vit->se], ::dfo[vit->se] + ::cnt[vit->se] - 1);
		}
	}
}


namespace TE1C1 {// when prte[v] is removed, if all back edges goes to u, then u becomes AC
	void run() {
		for(int v = ::N, u; v; v--) if(4 <= ::dep[v]) {
            // cout << "SUS" << v << endl;
			if(::upperUp[v] != ::lowerUp[v]) continue;
			u = ::upperUp[v];
			if(1 < ::dep[u] && inV[u]) ::Ans[::C[::prte[v]]]++;
		}
	}
}


namespace BE {
	int AC[MAXN*2];

	void dfs(int i, int d) {
        // cout << ::aboveCnt[i] << endl;
		for(int *eit = ::G + ::Gs[i];; eit++) {
			if(!*eit) break;
			::Ans[::C[*eit]] = W + (AC[d] - AC[::dep[::A[*eit]] + 1]);
		}
		for(int *eit = ::T + ::Ts[i];; eit++) {
			if(!*eit) break;
			AC[d+1] = AC[d] + (::inV[i] && 1 == ::aboveCnt[::B[*eit]] ? 1 : 0);
			dfs(::B[*eit], d+1);
		}
	}

	void run() {
		for(int i = ::K; i; i--) dfs(::RT[i], 1);
	}
}

namespace DFS2 {
	int QU[MAXN*6], QUs[MAXN*2], QUdeg[MAXN*2], _QUi[MAXN*2];
	int QA[MAXN*6], QAs[MAXN*2], QAdeg[MAXN*2], _QAi[MAXN*2];

	bitset<MAXN*2> black;

	void dfs(int i) {
		for(int *eit = ::T + ::Ts[i], v;; eit++) {
			if(!*eit) break;
			v = ::B[*eit];
			dfs(v);
			::upCnt[i] += ::upCnt[v];
			::aboveCnt[i] += ::aboveCnt[v];
			::uf(i, v);
		}
		black[i] = true;
		for(int *eit = QU + QUs[i], e, v;; eit++) {
			e = *eit;
			if(!e) break;
			v = ::minOrderUp[e]^::maxOrderUp[e]^i;
			if(black[v]) ::lcaUp[e] = ::uf(v);
		}
		for(int *eit = QA + QAs[i], e, v;; eit++) {
			e = *eit;
			if(!e) break;
			v = ::minOrderAbove[e]^::maxOrderAbove[e]^i;
			if(black[v]) ::lcaAbove[e] = ::uf(v);
		}
	}

	void run() {
		// Precompute for upCnt & aboveCnt
		for(int i = ::M; i; i--) if(!::treeEdge[i]) {
			::upCnt[::A[i]]--;
			::upCnt[::B[i]]++;
			::aboveCnt[::cAlpha[i]]--;
			::aboveCnt[::B[i]]++;
		}

		// Build QU & QA
		for(int i = ::N; i; i--) {
			if(::minOrderUp[i]) {
				QUdeg[::minOrderUp[i]]++;
				QUdeg[::maxOrderUp[i]]++;
			}
			if(::minOrderAbove[i]) {
				QAdeg[::minOrderAbove[i]]++;
				QAdeg[::maxOrderAbove[i]]++;
			}
		}
		for(int i = 1; i <= ::N; i++) {
			QUs[i+1] = QUs[i] + QUdeg[i] + 1;
			QAs[i+1] = QAs[i] + QAdeg[i] + 1;
		}
		memcpy(_QUi, QUs, ::N+1 << 2);
		memcpy(_QAi, QAs, ::N+1 << 2);
		for(int i = 1; i <= ::N; i++) {
			if(::minOrderUp[i]) {
				QU[_QUi[::minOrderUp[i]]++] = i;
				QU[_QUi[::maxOrderUp[i]]++] = i;
			}
			if(::minOrderAbove[i]) {
				QA[_QAi[::minOrderAbove[i]]++] = i;
				QA[_QAi[::maxOrderAbove[i]]++] = i;
			}
		}

		// Run DFS
		iota(::ud, ::ud + ::N + 1, 0);
		for(int i = ::K; i; i--) dfs(::RT[i]);
	}
}


namespace MMO {
	// sorted by dfo
	int O[MAXN*2];

	int pdep[MAXN*2];

	inline void goup(int dp[], int i, int deplim) {
		int v = i;
		while(true) {
			v = ::uf(v);
			if(::dep[v] <= deplim) break;
			dp[v] = i;
			::uf(::prt[v], v);
		}
	}

	void run() {
		// Sort by dfo
		for(int i = ::N; i; i--) O[::dfo[i]] = i;

		// Precompute pdep
		for(int i = ::N, t; i; i--) {
			t = ::dep[i];
			for(int *eit = ::G + ::Gs[i], pd;; eit++) {
				if(!*eit) break;
				pd = ::dep[::A[*eit]];
				if(pd < t) t = pd;
			}
			pdep[i] = t;
		}

		// Compute minOrderUp
		iota(::ud, ::ud + ::N + 1, 0);
		for(int *it = O+1;; it++) {
			if(!*it) break;
			goup(::minOrderUp, *it, pdep[*it]);
		}

		// Compute maxOrderUp
		iota(::ud, ::ud + ::N + 1, 0);
		for(int *it = O+::N;; it--) {
			if(!*it) break;
			goup(::maxOrderUp, *it, pdep[*it]);
		}

		// Compute minOrderAbove
		iota(::ud, ::ud + ::N + 1, 0);
		for(int *it = O+1;; it++) {
			if(!*it) break;
			goup(::minOrderAbove, *it, pdep[*it] + 1);
		}

		// Compute maxOrderAbove
		iota(::ud, ::ud + ::N + 1, 0);
		for(int *it = O+::N;; it--) {
			if(!*it) break;
			goup(::maxOrderAbove, *it, pdep[*it] + 1);
		}
	}
}


namespace UL {
	// sorted by dep
	int O[MAXN*2], _I[MAXN*2];

	inline void goup(int dp[], int i, int depi) {
		for(int *eit = ::GD + ::GDs[i], v;; eit++) {
			if(!*eit) break;
			v = ::B[*eit];
			while(true) {
				v = ::uf(v);
				if(::dep[v] <= depi) break;
				dp[v] = i;
				::uf(::prt[v], v);
			}
		}
	}

	void run() {
		// Sort by dep
		for(int i = ::N; i; i--) _I[::dep[i]]++;
		for(int i = 2; i <= ::N; i++) _I[i] += _I[i-1];
		for(int i = ::N; i; i--) O[_I[::dep[i]]--] = i;

		// Compute upperUp
		iota(::ud, ::ud + ::N + 1, 0);
		for(int *it = O+1;; it++) {
			if(!*it) break;
			goup(::upperUp, *it, ::dep[*it]);
		}

		// Compute lowerUp
		iota(::ud, ::ud + ::N + 1, 0);
		for(int *it = O+::N;; it--) {
			if(!*it) break;
			goup(::lowerUp, *it, ::dep[*it]);
		}

		// Compute upperAbove
		iota(::ud, ::ud + ::N + 1, 0);
		for(int *it = O+1;; it++) {
			if(!*it) break;
			goup(::upperAbove, *it, ::dep[*it] + 1);
		}

		// Compute lowerAbove
		iota(::ud, ::ud + ::N + 1, 0);
		for(int *it = O+::N;; it--) {
			if(!*it) break;
			goup(::lowerAbove, *it, ::dep[*it] + 1);
		}
	}
}


namespace DFS1 {
	int path[MAXN*2];
	bitset<MAXN*2> chk;

	int dfstime;

	void dfs(int i, int pe) {
		chk[i] = true;
		path[::dep[i]] = i;
		::cnt[i] = 1;
		::dfo[i] = ++dfstime;
		for(int *it = ::G + ::Gs[i], e, v;; it++) {
			e = *it;
			if(!e) break;
			if(e == pe) continue;
			v = ::A[e]^::B[e]^i;
			if(chk[v]) {
				if(::dep[v] < ::dep[i])
					::cAlpha[e] = path[::dep[v]+1];
				continue;
			}
			::treeEdge[e] = true;
			::dep[v] = ::dep[i] + 1;
			::prt[v] = i;
			::prte[v] = e;
			dfs(v, e);
			::cnt[i] += ::cnt[v];
		}
	}

	void run() {
		for(int i = 1, rt; i <= ::K; i++) {
			rt = ::RT[i];
			dep[rt] = 1;
			dfs(rt, 0);
		}
	}
}


namespace BCC {
	int A[MAXM], B[MAXM], C[MAXM];
	int RT[MAXN], _I[MAXN], _OI[MAXN*2];
	int N, M, K;

	int st[MAXM], stn;

	int disc[MAXN], low[MAXN];
	bitset<MAXM> cutedge;
	bitset<MAXN> cutvertex;

	int dfstime, cutcnt;

	void dfs(int u, int pe) {
		disc[u] = low[u] = ++dfstime;
		int children = 0;
		bool cut = false;
		for(int *it = ::G + ::Gs[u], e, v;; it++) {
			e = *it;
			if(!e) break;
			if(e == pe) continue;
			v = ::A[e]^::B[e]^u;
			if(disc[v]) {
				if(disc[v] < low[u])
					low[u] = disc[v];
				if(disc[v] < disc[u])
					st[++stn] = e;
			} else {
				children++;
				st[++stn] = e;
				dfs(v, e);
				if(low[v] < low[u])
					low[u] = low[v];
				if(disc[u] < low[v])
					cutedge[e] = true;
				if((!pe && 1 < children)
					|| (pe && disc[u] <= low[v])) {
					cut = true;
					if(st[stn] == e) stn--;
					else {
						K++;
						const int startn = N;
						while(true) {
							int a = ::A[st[stn]];
							int b = ::B[st[stn]];
							if(_I[a] <= startn) {
								N++;
								_I[a] = N;
								_OI[N] = a;
							}
							if(_I[b] <= startn) {
								N++;
								_I[b] = N;
								_OI[N] = b;
							}
							M++;
							A[M] = _I[a];
							B[M] = _I[b];
							C[M] = st[stn];
							stn--;
							if(!stn || st[stn+1] == e) break;
						}
						RT[K] = _I[u];
					}
				}
			}
		}
		if(cut) {
			cutvertex[u] = true;
			cutcnt++;
		}
	}

	void run(int rt) {
		dfs(rt, 0);
		if(stn) {
			if(1 == stn) stn--;
			else {
				K++;
				const int startn = N;
				while(stn) {
					int a = ::A[st[stn]];
					int b = ::B[st[stn]];
					if(_I[a] <= startn) {
						N++;
						_I[a] = N;
						_OI[N] = a;
					}
					if(_I[b] <= startn) {
						N++;
						_I[b] = N;
						_OI[N] = b;
					}
					M++;
					A[M] = _I[a];
					B[M] = _I[b];
					C[M] = st[stn];
					stn--;
				}
				RT[K] = _I[rt];
			}
		}
	}
}

void solve() {
	// Small case; Ans[*] = 0
	if(2 == N) return;

	// Build given graph
	for(int i = M; i; i--) {
		Gdeg[A[i]]++;
		Gdeg[B[i]]++;
	}
	for(int i = 1; i <= N; i++)
		Gs[i+1] = Gs[i] + Gdeg[i] + 1;
	memcpy(_Gi, Gs, N+1 << 2);
	for(int i = 1; i <= M; i++) {
		G[_Gi[A[i]]++] = i;
		G[_Gi[B[i]]++] = i;
	}

	// Find BCC from 1
	BCC::run(1);

	// Case; 1 + (N-1)

	// Now, given graph is connected

	// Case; cut edge
	for(int i = 1; i <= M; i++) if(BCC::cutedge[i])
		Ans[i] = (BCC::cutvertex[A[i]] && BCC::cutvertex[B[i]]) ? N : N-1;
	
	// Rebuild graph
	_N = N; _M = M;
	N = BCC::N; M = BCC::M; K = BCC::K;
	W = BCC::cutvertex.count();
	for(int i = 1; i <= N; i++)
		inV[i] = !BCC::cutvertex[BCC::_OI[i]];
	memcpy(A, BCC::A, M+1 << 2);
	memcpy(B, BCC::B, M+1 << 2);
	memcpy(C, BCC::C, M+1 << 2);
	memcpy(RT, BCC::RT, K+1 << 2);
	memset(Gdeg, 0, N+1 << 2);
	for(int i = M; i; i--) {
		Gdeg[A[i]]++;
		Gdeg[B[i]]++;
	}
	for(int i = 1; i <= N; i++)
		Gs[i+1] = Gs[i] + Gdeg[i] + 1;
	memcpy(_Gi, Gs, N+1 << 2);
	memset(G, 0, M+M+N+1 << 2);
	for(int i = 1; i <= M; i++) {
		G[_Gi[A[i]]++] = i;
		G[_Gi[B[i]]++] = i;
	}

	// 1st DFS
	DFS1::run();

	// Edge depth consistency
	for(int i = M; i; i--)
		if(dep[A[i]] > dep[B[i]])
			swap(A[i], B[i]);
	
	// Build tree (forest, only down) & Rebuild graph (only back edge) (up / down)
	memset(Gdeg, 0, N+1 << 2);
	for(int i = M; i; i--) {
		if(treeEdge[i]) Tdeg[A[i]]++;
		else { Gdeg[B[i]]++; GDdeg[A[i]]++; }
	}
	for(int i = 1; i <= N; i++) {
		Ts[i+1] = Ts[i] + Tdeg[i] + 1;
		Gs[i+1] = Gs[i] + Gdeg[i] + 1;
		GDs[i+1] = GDs[i] + GDdeg[i] + 1;
	}
	memcpy(_Ti, Ts, N+1 << 2);
	memcpy(_Gi, Gs, N+1 << 2);
	memcpy(_GDi, GDs, N+1 << 2);
	memset(G, 0, M+N+1 << 2);
	for(int i = 1; i <= M; i++) {
		if(treeEdge[i]) T[_Ti[A[i]]++] = i;
		else {
			G[_Gi[B[i]]++] = i;
			GD[_GDi[A[i]]++] = i;
		}
	}

	// Compute upper/lower Up/Above
	UL::run();

	// Compute min/max Order Up/Above
	MMO::run();

	// 2nd DFS
	DFS2::run();

	// Answer; Back edge
	BE::run();

	// Answer; Tree edge 1 - Case 1
	TE1C1::run();

	// Answer; Tree edge 1 - Case 2
	TE1C2::run();

	// Answer; Tree edge 2
	TE2::run();

	// Answer; Tree edge 3
	TE3::run();

	// Answer; Tree edge - Base W
	for(int i = ::M; i; i--) if(treeEdge[i])
		Ans[C[i]] += W;

	M = _M;
}

vector<int> find_num_critical(int N, vector<pii> E) {
    ::N = N;
    ::M = sz(E);
    for(int i = 1; i <= ::M; i++)
        tie(::A[i], ::B[i]) = E[i-1];
    
    solve();
    
    return vector<int>(::Ans+1, ::Ans+::M+1);
}

// int32_t main() {
// 	int N, M;
// 	vector<pii> E;
// 	cin >> N >> M;
// 	for (int i = 1; i <= M; ++i) {
// 		int u, v;
// 		cin >> u >> v;
// 		E.emplace_back(u, v);
// 	}
// 	auto ans = find_num_critical(N, E);
// 	for (auto val : ans) cout << val << "\n";
// }

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

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

input:

200 200
29 99
132 153
145 179
144 45
56 28
48 3
89 51
88 127
177 53
26 73
50 151
92 13
93 159
116 135
28 74
100 126
44 91
92 193
187 124
177 25
94 11
27 16
165 37
71 7
152 188
71 189
98 173
94 93
172 81
113 36
131 117
107 23
185 91
20 59
2 121
109 77
48 79
33 69
102 81
128 137
16 190
167 136
10 178
...

output:

Gyojun is handsome
199
199
199
199
200
199
200
200
200
199
200
199
199
101
200
199
200
199
100
199
200
200
200
200
199
199
199
200
199
101
200
199
200
199
199
200
199
200
199
200
200
199
199
200
199
199
200
200
199
200
200
199
200
200
200
200
200
199
199
200
199
199
200
100
200
199
199
200
199
200
2...

result:

ok 202 lines

Test #2:

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

input:

200 200
29 147
132 12
145 83
106 45
56 117
79 3
135 51
88 94
177 160
26 86
142 151
20 13
85 159
116 197
28 131
100 22
69 91
13 193
187 199
150 25
48 11
151 16
165 126
71 153
152 141
132 189
133 173
11 93
172 102
127 36
146 117
107 111
185 33
20 184
2 114
109 55
54 79
33 110
102 2
109 137
176 190
96 ...

output:

Gyojun is handsome
196
196
196
196
196
196
200
200
200
196
200
196
196
200
200
196
200
196
200
196
196
200
196
196
196
196
196
196
196
200
196
199
200
196
196
196
196
200
196
196
200
196
196
196
196
196
196
196
200
200
196
196
200
196
200
200
200
196
196
196
196
196
200
198
200
200
200
200
196
200
1...

result:

ok 202 lines

Test #3:

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

input:

200 200
184 104
196 154
4 105
153 68
120 38
179 82
81 54
74 122
89 169
110 137
172 90
189 121
94 62
153 11
30 47
177 20
51 3
31 70
24 46
21 150
46 41
135 96
16 55
61 189
72 7
56 43
184 79
152 138
198 99
160 5
69 166
29 180
131 143
63 22
123 92
110 199
25 126
70 181
50 139
170 181
171 23
187 133
164 ...

output:

Gyojun is handsome
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
198
1...

result:

ok 202 lines

Test #4:

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

input:

200 200
116 6
153 60
106 164
63 191
159 86
46 66
55 122
80 76
21 133
84 189
194 156
23 107
9 7
8 67
14 133
134 133
179 137
154 4
20 125
45 33
4 52
43 144
76 15
190 124
77 56
104 144
8 87
165 131
136 72
1 28
171 192
182 136
126 58
94 167
194 82
108 5
180 133
96 152
84 124
92 156
136 124
162 191
123 1...

output:

Gyojun is handsome
199
199
200
199
200
199
199
199
199
199
200
200
200
199
199
200
199
199
200
200
199
200
200
199
200
200
200
200
200
200
199
200
200
199
200
199
200
200
200
199
200
200
200
200
199
200
199
199
199
199
200
199
199
200
200
199
200
200
200
199
199
199
200
200
199
200
199
199
200
199
2...

result:

ok 202 lines

Test #5:

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

input:

200 200
200 83
85 139
109 103
104 160
31 74
137 193
9 23
58 56
157 70
7 82
184 102
172 107
194 83
47 176
174 185
79 199
43 161
77 74
107 137
169 91
26 186
156 64
192 189
85 95
39 97
22 35
134 56
50 195
129 164
67 200
101 108
52 172
66 29
142 60
28 197
133 48
40 75
81 16
100 192
84 155
16 78
167 48
1...

output:

Gyojun is handsome
200
200
199
199
200
199
200
200
199
200
200
200
200
200
200
199
199
199
200
199
199
199
200
199
199
199
199
200
199
200
199
100
199
199
199
200
199
199
199
199
200
200
199
200
199
200
199
199
199
199
200
200
199
199
199
200
199
199
200
200
199
199
199
199
200
199
199
199
199
200
2...

result:

ok 202 lines

Test #6:

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

input:

200 200
24 136
125 184
186 154
12 126
94 177
128 54
101 78
49 106
28 57
53 107
104 132
107 155
4 197
32 142
141 158
110 16
179 54
125 47
103 188
9 180
58 74
81 49
129 61
96 127
83 182
167 43
131 128
54 116
63 138
57 132
19 133
148 14
65 186
99 40
167 34
112 32
80 39
6 59
84 178
26 86
37 95
145 155
7...

output:

Gyojun is handsome
200
199
199
199
96
200
199
200
199
199
199
200
200
199
199
199
199
199
199
199
199
200
199
199
199
96
199
96
200
200
199
199
96
199
199
199
200
199
199
95
200
199
200
199
200
200
200
200
199
200
199
199
199
200
199
199
200
199
200
199
200
200
200
199
199
199
200
200
199
200
200
19...

result:

ok 202 lines

Test #7:

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

input:

200 200
76 158
134 144
163 131
90 81
101 12
48 146
143 63
193 83
102 92
117 192
97 194
149 40
152 1
3 158
164 38
149 78
150 70
145 54
36 95
144 39
63 56
87 75
149 195
189 149
21 200
184 16
71 65
108 81
18 134
58 128
20 177
66 41
44 75
49 77
151 171
135 138
98 32
42 61
66 29
169 129
68 138
17 140
62 ...

output:

Gyojun is handsome
106
200
199
199
200
105
200
200
106
105
199
199
199
200
199
199
199
105
199
199
199
200
199
199
199
199
200
200
106
199
200
199
105
200
199
105
200
199
200
105
200
199
105
105
199
105
199
104
199
199
199
200
199
199
199
199
105
200
199
199
105
200
199
106
200
199
200
199
105
199
2...

result:

ok 202 lines

Test #8:

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

input:

200 200
196 142
196 40
49 173
104 163
82 15
96 167
73 62
32 33
124 140
114 50
25 190
117 31
96 74
83 162
2 191
152 126
165 115
181 23
1 38
123 66
21 153
200 119
187 111
185 76
131 199
61 194
168 95
31 52
28 187
177 182
163 124
146 196
73 134
91 84
105 48
115 195
30 113
61 13
22 111
197 184
40 25
58 ...

output:

Gyojun is handsome
123
124
199
199
200
122
199
199
199
123
200
199
122
200
124
199
200
124
122
123
199
124
200
124
199
199
122
199
123
123
124
199
123
199
122
123
122
123
199
199
200
123
123
122
122
199
123
199
123
199
199
123
199
199
199
124
199
199
122
200
123
199
122
122
199
199
200
199
124
200
1...

result:

ok 202 lines

Test #9:

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

input:

200 200
88 4
88 144
24 156
116 41
89 146
170 190
6 76
171 98
16 139
158 6
66 133
136 91
187 75
17 122
145 126
140 63
82 27
61 140
180 170
78 14
127 136
127 22
80 186
64 60
196 102
152 125
155 176
186 108
83 74
109 173
110 11
124 25
3 129
183 135
107 52
154 116
26 110
197 117
66 75
192 182
73 198
167...

output:

Gyojun is handsome
183
183
199
183
183
183
183
183
183
183
183
183
184
183
183
183
183
183
184
183
183
183
184
183
184
183
184
183
183
199
199
183
183
183
183
183
184
183
184
183
183
183
183
184
183
199
183
183
184
183
199
183
183
183
183
183
183
183
183
183
183
183
183
183
183
183
199
184
184
184
1...

result:

ok 202 lines

Test #10:

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

input:

200 199
128 61
197 124
163 80
155 173
43 140
42 8
89 4
101 113
33 74
11 85
137 100
189 100
177 175
22 126
169 178
42 25
70 78
159 54
148 189
29 130
13 98
70 108
154 177
76 109
146 187
96 144
159 46
145 109
172 109
15 102
101 168
161 178
40 165
8 156
35 163
99 26
48 65
152 153
32 44
87 55
95 11
4 17
...

output:

Gyojun is handsome
199
200
200
200
200
200
200
199
200
199
200
200
200
200
199
200
199
199
199
200
199
200
199
200
199
200
200
200
200
199
200
200
199
200
200
199
199
199
199
199
200
199
199
199
199
200
200
200
200
199
199
200
200
199
199
199
200
199
200
200
199
199
200
200
199
200
199
200
200
199
2...

result:

ok 201 lines

Test #11:

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

input:

200 199
128 94
59 124
163 46
155 195
43 166
155 8
73 4
149 113
181 74
154 85
137 101
189 137
177 90
22 6
169 143
42 173
26 78
10 54
148 18
29 36
13 194
70 99
154 198
95 109
28 187
96 86
159 66
145 172
172 77
17 102
101 199
44 178
67 165
140 156
35 103
50 26
48 151
30 153
32 164
188 55
177 11
45 17
3...

output:

Gyojun is handsome
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
199
200
200
200
200
200
200
200
200
200
200
2...

result:

ok 201 lines

Test #12:

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

input:

200 354
89 16
104 1
50 139
178 175
33 188
59 14
121 173
17 54
185 189
149 31
74 16
75 41
56 26
154 44
52 91
142 166
53 30
26 101
10 164
112 53
105 127
22 176
90 175
154 47
150 132
29 172
10 160
164 147
145 20
116 25
154 86
183 33
74 28
13 123
87 122
104 4
121 173
90 21
31 111
49 162
112 23
20 43
50 ...

output:

Gyojun is handsome
101
200
101
101
101
101
101
101
101
101
101
101
101
101
101
199
101
101
101
101
199
101
101
101
101
101
101
101
101
101
101
101
101
101
200
200
101
101
101
101
101
101
101
101
101
200
200
200
199
101
101
101
101
101
101
101
101
101
101
101
101
101
101
101
101
101
101
101
101
101
1...

result:

ok 356 lines

Test #13:

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

input:

200 331
97 67
88 111
156 155
81 177
129 15
30 70
96 94
155 172
42 52
170 22
190 98
146 23
184 197
74 199
157 109
95 166
181 78
45 156
100 70
58 183
164 163
105 134
165 169
85 195
50 9
104 39
146 80
59 103
146 48
165 169
78 181
46 115
168 104
150 135
85 195
168 27
27 196
102 80
46 153
98 126
165 168
...

output:

Gyojun is handsome
98
99
98
98
99
98
99
98
98
200
99
99
98
99
98
98
98
199
98
98
98
200
98
98
98
98
99
98
98
98
98
98
98
98
98
99
98
98
98
99
98
98
200
200
98
98
98
98
99
98
98
98
98
98
98
98
98
98
98
99
98
98
200
98
200
99
98
98
98
98
98
200
200
98
98
98
98
200
98
99
98
98
98
200
199
98
98
98
98
98...

result:

ok 333 lines

Test #14:

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

input:

200 295
117 196
139 1
101 147
95 125
152 164
196 102
152 185
184 29
50 195
198 30
110 21
157 127
140 199
80 7
156 76
111 37
79 113
175 16
134 112
169 119
182 112
125 117
6 154
89 77
196 120
135 65
13 177
80 27
23 167
29 123
19 15
97 173
155 87
85 61
35 177
71 142
180 32
133 170
56 140
117 182
128 13...

output:

Gyojun is handsome
81
80
80
80
80
81
80
81
80
80
82
80
81
81
80
81
80
80
200
80
80
200
80
81
81
81
82
200
81
81
80
81
80
80
82
80
80
80
81
80
81
200
80
81
80
81
82
80
80
80
81
81
80
81
80
81
80
200
80
80
81
82
82
81
80
80
80
80
80
80
81
81
81
80
81
80
82
80
200
81
80
80
80
80
80
81
80
81
200
82
82
8...

result:

ok 297 lines

Test #15:

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

input:

200 232
66 134
88 82
120 174
183 198
100 193
153 184
24 53
197 60
147 118
98 3
83 92
112 55
52 1
165 185
83 65
173 19
138 73
193 24
190 176
166 174
86 82
158 190
102 176
37 182
92 79
80 28
189 95
49 125
190 176
11 65
177 166
58 64
36 43
36 148
155 52
49 115
164 27
14 68
113 33
48 112
107 75
106 128
...

output:

Gyojun is handsome
41
40
42
41
38
200
39
39
41
41
34
42
38
39
39
34
38
38
34
43
40
39
41
40
41
40
41
38
34
38
38
41
40
40
38
34
41
39
40
34
38
41
40
41
41
37
42
38
40
39
40
41
41
43
38
34
40
41
41
37
41
39
41
41
40
41
40
34
39
40
42
41
40
38
38
38
34
38
40
39
40
41
40
40
41
39
40
41
34
41
40
38
38
4...

result:

ok 234 lines

Test #16:

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

input:

200 211
108 23
123 119
150 144
147 20
139 100
138 95
103 126
31 128
126 8
105 100
12 95
198 135
36 131
195 181
162 124
88 181
57 56
92 108
34 47
186 91
113 90
11 48
37 200
15 64
48 109
71 164
86 170
172 186
136 185
168 18
63 81
51 27
50 177
53 45
98 40
35 45
137 62
88 51
152 165
82 75
2 82
157 145
8...

output:

Gyojun is handsome
37
40
34
39
38
34
37
40
38
12
34
40
35
37
40
37
39
37
33
35
39
34
40
39
34
33
40
12
34
40
35
37
37
35
33
35
37
37
34
34
34
39
38
35
36
38
39
35
35
41
34
37
40
37
38
33
37
37
35
37
37
35
37
37
35
39
35
33
40
37
40
37
199
37
38
37
38
40
38
39
34
38
37
35
37
34
37
200
33
33
40
37
33
...

result:

ok 213 lines

Test #17:

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

input:

200 202
17 111
90 155
15 132
101 45
44 195
129 174
84 1
81 24
2 126
135 198
27 134
197 67
193 32
100 187
181 157
3 145
91 192
68 167
40 175
61 153
184 196
138 159
52 66
187 48
188 77
64 200
129 111
107 54
49 72
171 191
177 102
139 155
22 70
5 58
3 87
118 117
120 177
69 53
116 42
161 18
25 123
76 61
...

output:

Gyojun is handsome
180
180
14
13
180
180
180
13
180
180
180
180
180
180
180
180
180
180
9
180
180
180
180
180
180
180
180
180
9
181
180
180
180
180
180
180
180
180
180
180
180
180
180
180
13
180
180
180
180
180
180
180
180
180
180
180
180
180
180
180
180
180
200
180
180
180
180
180
180
180
180
180
1...

result:

ok 204 lines

Test #18:

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

input:

198 200
194 167
31 54
134 61
126 61
80 64
58 20
157 170
27 97
58 38
133 159
124 17
85 12
114 148
128 136
1 157
60 166
62 77
9 167
66 173
50 148
135 75
42 137
156 163
96 43
96 189
157 188
48 40
174 181
187 95
44 46
41 70
72 192
130 3
112 19
33 37
59 71
76 107
90 174
175 185
132 126
196 117
37 139
93 ...

output:

Gyojun is handsome
111
197
197
119
197
112
197
197
112
198
197
198
198
198
197
197
197
198
197
198
117
197
197
198
198
198
198
198
197
198
197
197
198
197
198
198
197
197
197
197
198
197
198
198
198
197
197
197
198
197
198
198
198
118
197
119
198
198
197
197
197
198
198
198
198
197
197
198
198
198
1...

result:

ok 202 lines

Test #19:

score: -5
Wrong Answer
time: 0ms
memory: 24452kb

input:

197 205
42 93
186 188
166 82
104 138
158 93
74 133
135 92
22 62
16 188
168 159
70 152
189 162
39 126
192 102
51 22
117 92
66 1
109 47
149 176
189 86
58 169
66 11
21 63
119 54
119 62
34 147
2 59
123 156
85 96
45 61
61 155
151 147
10 37
14 41
9 57
182 170
185 112
55 34
48 1
80 169
182 180
99 191
33 11...

output:

Gyojun is handsome
105
197
196
197
104
197
197
107
196
104
197
196
197
196
197
104
197
196
197
105
196
196
105
104
105
197
196
196
196
196
197
197
197
196
197
197
196
197
197
106
196
197
196
197
197
197
196
105
196
196
196
106
197
196
197
197
196
196
197
197
108
197
197
104
197
196
197
197
197
196
1...

result:

wrong answer 2nd lines differ - expected: '106', found: '105'

Subtask #2:

score: 0
Skipped

Dependency #1:

0%

Subtask #3:

score: 7
Accepted

Test #129:

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

input:

8000 8000
3334 4850
3702 6021
2278 2531
3485 5926
4321 314
4357 2816
4319 5050
1156 2107
4081 7202
6243 2320
7047 851
991 7155
1633 6760
3727 1879
2911 2993
4844 268
3467 5932
7915 7713
4183 4309
7329 1750
540 4486
6665 5370
7505 1560
1033 5053
2424 5725
5532 1809
2943 5853
4037 2466
3482 7480
410 5...

output:

Gyojun is handsome
7999
7999
8000
7999
7999
8000
8000
8000
7999
8000
8000
7999
8000
8000
8000
7999
8000
8000
7999
8000
7999
7999
8000
8000
8000
7999
7999
8000
8000
8000
8000
7999
8000
8000
7999
7999
7999
7999
8000
8000
8000
7999
8000
8000
7999
8000
7999
7999
8000
7999
7999
7999
7999
8000
8000
8000
8...

result:

ok 8002 lines

Test #130:

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

input:

8000 8000
4783 4850
3702 2908
5328 2531
3485 1966
4321 4808
5145 2816
2112 5050
5985 2107
4081 2921
6243 6624
4549 851
991 5631
1633 6570
3727 4764
6472 2993
6826 268
3215 5932
7915 3533
4183 631
7329 4372
1685 4486
6665 5187
5271 1560
3966 5053
2424 2755
6250 1809
2943 7889
4037 5331
1660 7480
5224...

output:

Gyojun is handsome
7996
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
7996
8000
8000
8000
8000
8000
8000
7996
8000
7996
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
7996
8000
8000
8000
8000
8000
8000
8000
8000
8000
7996
8000
8000
8000
8000
8000
8000
8000
7996
8000
8000
8000
8000
8000
8000
8...

result:

ok 8002 lines

Test #131:

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

input:

8000 8000
4948 7076
4312 6258
4961 4925
525 2003
1064 5764
4026 440
4211 1953
5449 4786
5912 5905
2633 6210
6057 7215
2111 1116
2641 2310
1203 2614
3407 7705
720 3724
4826 2134
6385 5588
7918 5283
5590 7364
3893 3610
276 5509
4873 3798
1906 4026
7958 3999
3833 6359
450 2882
4196 7166
7184 5263
2319 ...

output:

Gyojun is handsome
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7998
7...

result:

ok 8002 lines

Test #132:

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

input:

8000 8000
3645 1885
746 1887
7513 4178
3434 5693
640 2123
5096 1864
4117 34
310 2847
4479 6143
6287 738
5780 2803
1713 1307
1621 4560
7751 5904
3017 6623
4289 6814
2991 7549
2338 5286
5096 1023
634 7114
5871 4246
5967 7857
4597 4521
4914 345
4421 5087
3739 2279
4318 7161
5943 5457
3705 3949
6515 619...

output:

Gyojun is handsome
8000
7999
7999
7999
7999
8000
7999
8000
7999
7999
7999
8000
7999
7999
8000
8000
7999
8000
7999
7999
7999
8000
7999
8000
8000
7999
7999
7999
7999
8000
7999
8000
7999
7999
8000
7999
8000
7999
8000
8000
8000
7999
7999
8000
7999
8000
7999
8000
8000
7999
7999
7999
3999
8000
8000
8000
7...

result:

ok 8002 lines

Test #133:

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

input:

8000 8000
2147 14
5289 3695
6068 943
7552 2441
6815 5007
6254 6003
4763 5586
6197 5277
4600 5776
3593 365
4597 5159
5409 6440
3627 4621
5719 1562
3596 7197
3801 4047
6541 5300
7616 6690
7298 1147
3009 7402
51 4475
3670 5282
4823 581
51 4354
4281 6608
3354 3928
7388 842
5359 3083
7830 3066
4241 6334
...

output:

Gyojun is handsome
8000
8000
8000
8000
8000
8000
7999
7999
7999
7999
7999
8000
7999
8000
8000
8000
7999
8000
8000
7999
8000
7999
7999
8000
7999
8000
7999
8000
8000
8000
8000
8000
7999
7999
7999
7999
7999
7999
8000
8000
8000
8000
7999
7999
7999
8000
7999
7999
8000
7999
7999
8000
8000
7999
8000
7999
8...

result:

ok 8002 lines

Test #134:

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

input:

8000 8000
3679 266
3257 7324
5909 6434
7316 2784
2877 154
2065 1845
6877 1287
1590 5924
1873 1824
2900 4858
3128 3675
4986 5021
1852 5741
2407 7509
167 6240
5674 6833
155 3151
1496 878
5924 5863
6062 714
345 1858
3500 1720
1701 851
7700 7548
336 6397
3991 5435
6080 3424
1145 1193
3687 2953
5147 1874...

output:

Gyojun is handsome
8000
8000
8000
7999
8000
8000
8000
8000
8000
7999
8000
7999
8000
8000
7999
8000
7999
8000
8000
7999
7999
8000
7999
8000
7999
8000
8000
7999
8000
7999
7999
7999
7999
7999
8000
7999
7999
8000
7999
8000
7999
8000
7999
8000
8000
7999
8000
7999
7999
8000
7999
8000
7999
8000
8000
8000
8...

result:

ok 8002 lines

Test #135:

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

input:

8000 8000
3779 6335
7682 2879
6788 6083
913 750
5646 1453
1188 206
5773 5284
467 7617
1354 4261
3310 6248
1985 2870
165 5349
4631 3721
5614 2379
4225 5058
7024 3298
5715 7511
4122 272
265 7245
2066 5099
3972 557
6557 3644
2286 690
7329 4365
5294 5467
5099 3439
456 3574
6693 4758
7065 5272
3509 3429
...

output:

Gyojun is handsome
8000
7999
7999
7999
8000
8000
7999
8000
7999
7999
8000
7999
8000
7999
8000
8000
7999
7999
8000
8000
8000
7999
8000
8000
8000
8000
8000
8000
8000
7999
7999
8000
7999
8000
8000
7999
7999
8000
8000
8000
8000
7999
7999
7999
8000
8000
8000
7999
7999
7999
8000
8000
7999
8000
7999
8000
7...

result:

ok 8002 lines

Test #136:

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

input:

8000 8000
4523 7489
1372 486
2622 6169
1428 2750
1511 2256
4612 6323
6990 4108
6342 5856
4483 2032
332 2760
1846 2517
2410 3889
7849 3945
7530 2942
5586 6683
609 1644
780 4896
5802 4226
1702 4152
1719 3206
306 5429
2597 2798
23 1622
91 7317
1128 3568
5036 2496
4677 5992
618 6015
3923 3517
6828 3793
...

output:

Gyojun is handsome
7999
8000
8000
7999
8000
8000
8000
7999
8000
8000
7999
8000
7999
7999
8000
7999
7999
7999
8000
7999
7999
8000
7999
7999
8000
3996
8000
7999
7999
8000
8000
7999
7999
8000
8000
7999
7999
7999
8000
7999
8000
8000
8000
7999
7999
7999
8000
7999
8000
7999
7999
8000
7999
7999
8000
7999
7...

result:

ok 8002 lines

Test #137:

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

input:

8000 8000
663 4468
5020 6487
7197 837
3268 7919
1165 1245
6908 1933
377 4895
4222 261
747 6629
6773 7710
3180 5808
1478 4348
6632 6193
7436 1903
1904 2925
4859 1016
4328 704
2516 546
5661 1884
4042 3572
3427 7133
156 6986
7829 7161
7913 656
5981 7569
3848 1291
131 978
3519 3874
2932 7061
2392 3512
5...

output:

Gyojun is handsome
7999
3998
8000
7999
7999
7999
8000
7999
7999
7999
7999
7999
8000
3998
7999
8000
7999
7999
8000
8000
7999
8000
7999
7999
7999
8000
8000
7999
8000
7999
7999
8000
7999
8000
7999
8000
7999
7999
8000
7999
7999
7999
7999
8000
8000
7999
8000
7999
8000
7999
8000
8000
8000
7999
8000
7999
7...

result:

ok 8002 lines

Test #138:

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

input:

8000 8000
1246 293
3616 1425
3109 1609
464 6774
4927 2305
189 2964
3341 5549
2651 3539
653 5944
7693 7558
943 4935
2947 76
4925 6653
5335 5642
6158 1272
1159 6841
1032 7690
4805 5234
127 6292
5805 1038
6941 7007
3419 5121
3306 3054
1321 2158
4861 1334
143 5490
1515 7495
1694 4381
2968 5902
4335 1578...

output:

Gyojun is handsome
8000
7999
7999
7999
7999
7999
7999
7999
8000
7999
7999
7999
7999
7999
7999
8000
8000
8000
7999
7999
3989
8000
8000
7999
8000
7999
8000
8000
7999
7999
8000
8000
7999
8000
7999
8000
7999
7999
8000
7999
7999
7999
7999
8000
7999
8000
7999
7999
7999
7999
8000
7999
7999
8000
7999
8000
8...

result:

ok 8002 lines

Test #139:

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

input:

8000 8000
2472 5355
4811 6963
7949 5889
5286 1800
3357 1321
6514 1782
871 3818
5683 73
55 7789
7066 3741
2822 5051
2948 1240
4566 6192
6424 1396
6435 1982
4506 2964
970 7416
1905 1858
2187 4254
5647 1077
3799 1095
2074 753
4750 4737
6329 3589
505 6772
7320 2137
3782 3591
1698 3282
4007 1254
7502 474...

output:

Gyojun is handsome
8000
8000
4071
8000
7999
8000
8000
8000
4070
7999
4070
8000
8000
8000
7999
7999
7999
8000
8000
8000
4071
7999
7999
4071
7999
7999
8000
7999
7999
8000
4071
8000
7999
7999
7999
8000
8000
7999
7999
7999
8000
8000
4070
8000
7999
7999
4071
7999
8000
8000
7999
8000
7999
7999
8000
8000
4...

result:

ok 8002 lines

Test #140:

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

input:

8000 8000
3299 6687
5966 905
6326 2800
2473 6970
2033 7640
3953 375
2928 5318
1198 445
6256 5723
7297 85
5996 1131
3941 4717
4038 7914
5856 3875
2676 839
5829 1530
4523 1936
1075 5164
1548 5208
185 5769
310 211
3005 4780
3214 6195
1430 4151
7561 1764
7034 4956
6961 3358
7761 5976
5071 7992
2198 2502...

output:

Gyojun is handsome
7999
4436
7999
7999
4437
4436
4436
7999
7999
7999
7999
7999
8000
7999
7999
4436
7999
8000
7999
4436
4435
4437
4437
4437
4437
7999
7999
7999
8000
8000
8000
7999
4436
8000
4437
4437
7999
8000
8000
4436
8000
7999
4437
4436
4436
4436
7999
4437
8000
4437
8000
8000
7999
4436
7999
7999
7...

result:

ok 8002 lines

Test #141:

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

input:

8000 8000
1197 651
970 5859
766 4095
1308 4891
2871 4376
400 24
7679 1212
1052 6745
1670 6415
1277 7226
2957 3909
775 2367
6918 4031
882 1734
3320 5276
7790 7980
989 2153
7048 4332
2436 850
1989 5701
1782 7653
1635 3989
2863 2001
3786 1151
7969 2514
1211 7287
7426 6560
1247 5642
5306 7344
3472 1810
...

output:

Gyojun is handsome
7999
5556
7999
5556
7999
7999
7999
5556
5556
5556
5557
7999
5557
5555
7999
8000
5556
5555
7999
5557
5555
5555
7999
5556
5556
5556
8000
7999
5556
7999
5556
5556
5555
5557
5556
7999
5557
5555
7999
5557
7999
7999
5556
5555
7999
7999
5556
5555
7999
7999
7999
5556
7999
5555
5556
5556
5...

result:

ok 8002 lines

Test #142:

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

input:

8000 8000
6650 871
6293 3460
6774 3936
2898 880
454 6121
6440 1442
5667 7577
2514 3489
1177 3757
3449 2830
1006 3068
7026 2431
7608 1978
2541 7070
6960 5397
5169 7933
6976 7004
7232 2982
2350 32
7135 2723
5354 1026
798 3767
1191 1402
6694 6050
7005 1111
3700 2315
3135 2118
3196 5537
7412 606
989 555...

output:

Gyojun is handsome
6611
6611
6611
6611
6611
6611
6611
6611
6612
6612
6611
6611
6611
7999
6612
6611
6611
6611
6611
6611
6611
6611
6611
6612
6612
6611
6611
7999
6612
6612
6611
6611
6612
6611
6612
6612
6612
6611
6611
6611
6611
6611
6611
6611
6611
7999
6611
6612
6611
6611
6612
6611
7999
6611
7999
7999
6...

result:

ok 8002 lines

Test #143:

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

input:

8000 8000
5312 7367
5739 7486
6457 6978
4612 2547
180 5983
875 1715
5484 7530
1639 1579
214 4103
5196 7462
5522 5720
4755 2825
4775 2659
4658 1212
6952 4834
2357 2355
643 4582
80 6818
2380 3907
3956 5823
4256 5268
4182 531
355 1383
6969 3090
2814 4406
2528 6394
2275 1454
6758 7116
2398 4113
2247 762...

output:

Gyojun is handsome
7606
7606
7606
7607
7606
7606
7606
7606
7606
7606
7606
7606
7606
7607
7999
7606
7606
7606
7607
7606
7999
7606
7606
7606
7606
7606
7607
7606
7606
7606
7607
7606
7999
7606
7607
7606
7606
7606
7606
7606
7999
7606
7606
7606
7606
7606
7606
7606
7606
7607
7606
7606
7606
7606
7606
7999
7...

result:

ok 8002 lines

Test #144:

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

input:

8000 8000
2027 2724
5800 5842
1596 1899
5968 3362
7024 5448
4466 4518
4401 523
3949 5616
2272 6971
1804 1830
624 5589
4557 697
6624 2643
6189 707
763 3487
1885 4501
421 2565
908 7717
251 6277
5568 6685
3945 1158
2312 7408
3471 6896
6154 2308
7153 6970
6137 2495
4753 2555
6157 1796
3 6133
7809 2231
3...

output:

Gyojun is handsome
7801
7801
7801
7801
7801
7999
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7802
7801
7801
7801
7801
7801
7801
7801
7999
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7...

result:

ok 8002 lines

Test #145:

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

input:

8000 8000
3715 4072
676 681
3816 278
4293 6104
7623 2090
6624 3364
1389 7023
4717 3867
6803 5863
5642 631
3402 6910
3866 2313
5078 2525
7397 7366
6452 5107
6385 4447
6906 4382
7582 7541
6303 6480
1460 4947
3535 4492
1331 6039
1738 104
684 7412
2054 7024
7086 4790
1810 6497
7392 7251
4420 4808
7845 8...

output:

Gyojun is handsome
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7967
7...

result:

ok 8002 lines

Test #146:

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

input:

100000 100000
62873 59773
50070 89150
41572 88074
72013 52721
26716 96245
62957 71344
5550 57535
5023 54246
208 67379
86578 79548
94645 32461
77024 39200
38179 80266
31181 94536
42118 67954
67880 51111
84229 11133
27625 52938
78963 2705
52931 69794
37594 33452
56109 61098
44683 95974
65182 52860
105...

output:

Gyojun is handsome
100000
100000
99999
99999
99999
100000
99999
100000
99999
100000
100000
100000
100000
99999
100000
99999
99999
100000
100000
99999
100000
100000
100000
99999
99999
99999
99999
99999
99999
99999
99999
100000
99999
100000
99999
99999
99999
100000
99999
99999
100000
99999
100000
1000...

result:

ok 100002 lines

Test #147:

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

input:

100000 100000
62873 29559
35134 89150
41572 91263
49605 52721
26716 68428
37888 71344
5550 81247
90278 54246
85813 67379
347 79548
94645 15034
90283 39200
38179 4749
10220 94536
42118 97122
25970 51111
84229 80367
27625 79822
78963 66675
52931 57634
56267 33452
47805 61098
18481 95974
65182 99032
58...

output:

Gyojun is handsome
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
99996
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
10...

result:

ok 100002 lines

Test #148:

score: 0
Accepted
time: 46ms
memory: 76640kb

input:

100000 100000
51430 59080
52076 17980
65479 69325
3106 37737
79812 25855
99625 21769
5122 83668
65560 58355
51206 76600
69950 80567
76260 99709
6917 41623
69634 14335
49276 66754
85806 94210
11825 11566
18623 47971
71710 59290
8834 78031
25914 81900
22728 1259
82749 77767
37724 21082
57384 92183
553...

output:

Gyojun is handsome
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998
99998...

result:

ok 100002 lines

Test #149:

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

input:

100000 100000
42118 79170
78283 47702
55152 22656
48928 81644
52671 5258
42939 34691
12986 27832
37266 70961
55866 16316
26380 74847
59544 16064
79786 40759
23285 67235
61213 34178
16425 45136
17997 3130
32315 92562
40696 43454
3280 39772
26273 74790
74882 63100
76238 5349
61418 22005
15615 24890
83...

output:

Gyojun is handsome
100000
99999
100000
100000
100000
100000
100000
100000
100000
99999
100000
100000
99999
100000
99999
99999
99999
100000
100000
100000
100000
100000
100000
100000
100000
99999
100000
100000
100000
99999
100000
100000
99999
99999
100000
99999
99999
100000
99999
100000
99999
99999
10...

result:

ok 100002 lines

Test #150:

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

input:

100000 100000
71301 61334
14623 94555
67758 58355
59411 76444
46609 41511
94486 76478
39626 80794
16030 40290
6401 94477
98757 54762
59814 90315
81266 2722
70541 65580
23639 72160
48007 97309
16879 18182
60861 21252
94057 77279
23101 13447
8141 49967
50851 38661
52300 91454
52276 83143
98161 45064
9...

output:

Gyojun is handsome
99999
99999
100000
99999
99999
100000
100000
100000
100000
100000
100000
100000
99999
99999
100000
99999
99999
100000
99999
99999
100000
99999
100000
99999
99999
100000
100000
99999
100000
99999
100000
100000
99999
99999
99999
99999
100000
99999
100000
99999
99999
100000
100000
10...

result:

ok 100002 lines

Test #151:

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

input:

100000 100000
26681 59602
42312 76269
23520 71850
95873 88631
33897 93417
89990 27914
2616 7220
34543 25259
5918 31735
26131 28036
90330 97126
62046 78678
87027 87697
69179 10887
5277 61742
4717 57071
38568 34254
16929 76822
92959 30839
10301 36575
75158 70144
15187 40069
43620 45431
78971 90830
413...

output:

Gyojun is handsome
99999
100000
100000
100000
100000
100000
100000
100000
99999
99999
99999
99999
99999
100000
99999
100000
100000
99999
100000
100000
99999
99999
100000
100000
99999
100000
100000
100000
99999
100000
100000
100000
100000
99999
99999
99999
99999
100000
100000
99999
100000
99999
99999...

result:

ok 100002 lines

Test #152:

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

input:

100000 100000
84883 11178
37355 38776
32392 23302
19111 46243
88640 18164
6383 21733
60735 61569
2283 91910
3104 6372
57915 53305
19131 84870
70135 1614
43474 38149
98567 27051
19264 13656
61133 69900
37547 68070
56099 68859
33361 96702
7471 60167
36199 13825
1812 35705
86408 25449
40457 24913
60810...

output:

Gyojun is handsome
100000
100000
100000
99999
100000
100000
99999
100000
99999
99999
99999
100000
99999
100000
99999
100000
100000
100000
99999
100000
99999
99999
100000
100000
100000
100000
100000
99999
99999
99999
100000
100000
100000
99999
100000
100000
100000
100000
99999
99999
99999
99999
10000...

result:

ok 100002 lines

Test #153:

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

input:

100000 100000
78892 29198
5569 74471
44226 81161
79310 12918
99188 88107
9587 70067
75351 18985
19506 38448
46863 89891
65592 57970
49939 96546
99127 32344
89730 85960
14562 19377
58175 89254
33439 48160
53316 17563
21910 98822
62098 60084
18751 36326
51663 54552
10253 67060
75077 57349
35848 38192
...

output:

Gyojun is handsome
99999
100000
99999
100000
100000
99999
99999
99999
99999
100000
100000
99999
99999
99999
99999
99999
100000
99999
99999
100000
99999
99999
99999
99999
99999
99999
99999
99999
100000
100000
99999
100000
99999
99999
100000
99999
100000
100000
100000
99999
99999
99999
99999
99999
100...

result:

ok 100002 lines

Test #154:

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

input:

100000 100000
14876 1625
42626 72947
4137 8368
52115 86972
81504 40854
74838 45255
18499 83330
77121 22340
8932 75553
22066 38412
80422 68978
65281 86899
52438 37081
8155 5470
92690 36414
77651 45136
47197 36875
88042 51466
3272 17436
45379 59334
699 7948
11112 72678
86662 10177
85182 97067
68686 35...

output:

Gyojun is handsome
99999
100000
99999
100000
100000
99999
100000
99999
99999
100000
100000
100000
99999
99999
100000
100000
100000
100000
99999
99999
99999
99999
100000
100000
100000
100000
99999
99999
99999
100000
99999
100000
100000
100000
99999
99999
49779
99999
99999
99999
99999
99999
99999
1000...

result:

ok 100002 lines

Test #155:

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

input:

100000 100000
74398 52467
7043 18447
46050 42721
10148 99084
47135 69484
54576 86791
70655 60711
77632 57240
37924 75104
41539 64884
82032 69750
76914 9853
53981 84347
99679 548
86704 365
38801 31409
28363 56688
39911 96969
68052 56973
77920 36965
711 53608
32682 28060
74368 66054
41001 58845
93763 ...

output:

Gyojun is handsome
99999
100000
100000
99999
100000
100000
99999
99999
100000
100000
100000
100000
99999
99999
100000
100000
100000
99999
100000
100000
99999
99999
100000
99999
99999
100000
100000
99999
100000
99999
100000
99999
100000
100000
99999
99999
99999
99999
100000
99999
100000
99999
100000
...

result:

ok 100002 lines

Test #156:

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

input:

100000 100000
93769 38051
22789 54034
97146 79886
11499 21437
19765 57357
17553 237
14415 79343
47436 88636
70625 60173
5443 29025
70940 63633
30881 85461
31509 51439
55719 85149
97176 51693
19316 63046
90558 2806
26261 89559
23699 50605
96321 99724
97516 88990
80011 28340
64359 38965
66718 74954
70...

output:

Gyojun is handsome
99999
100000
100000
99999
100000
100000
99999
99999
100000
100000
50187
99999
100000
99999
100000
100000
50186
100000
50187
99999
100000
99999
100000
100000
100000
99999
100000
99999
100000
99999
99999
99999
99999
99999
100000
100000
99999
100000
100000
99999
99999
100000
99999
99...

result:

ok 100002 lines

Test #157:

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

input:

100000 100000
96269 2202
65700 32589
44742 6346
5183 31421
45568 75467
54644 61638
80438 60173
51555 62497
94953 73709
4500 49057
13086 12635
14732 70230
38612 64224
69441 97093
16417 29119
85366 2645
95825 60562
1715 15326
19568 16007
51859 46841
23365 41440
78356 3525
51754 89307
46613 73823
83339...

output:

Gyojun is handsome
50487
99999
99999
100000
100000
100000
99999
50488
99999
99999
99999
99999
100000
50488
99999
100000
100000
99999
100000
99999
99999
99999
99999
100000
99999
100000
99999
99999
99999
50488
100000
100000
99999
99999
100000
99999
99999
99999
50488
99999
100000
100000
99999
99999
100...

result:

ok 100002 lines

Test #158:

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

input:

100000 100000
63281 97723
94502 52567
73463 12888
45904 53063
34698 82065
21508 86911
70329 40304
17519 7025
71836 9822
72969 44774
68760 88301
25794 95219
95553 87836
61932 25484
40189 55483
29573 73482
58557 66695
70395 57816
29023 39716
5239 33243
33366 72420
97708 68586
76465 86632
87628 17239
7...

output:

Gyojun is handsome
99999
100000
52054
52054
100000
99999
99999
100000
52054
100000
52053
99999
52053
100000
99999
100000
99999
52054
100000
99999
99999
100000
99999
99999
99999
100000
52054
99999
52053
99999
99999
99999
100000
100000
99999
99999
52053
99999
99999
100000
52052
99999
99999
100000
9999...

result:

ok 100002 lines

Test #159:

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

input:

100000 100000
92539 72921
13746 52422
5127 36843
78551 41145
59109 81216
11141 20673
83679 76589
63112 47072
92853 81283
97421 74622
83319 99968
23165 67295
53405 8146
68082 23590
86984 65900
13439 40542
90024 65462
79820 67662
62172 94534
73276 28461
21061 61560
2888 45533
7077 6799
2696 77337
8744...

output:

Gyojun is handsome
100000
100000
99999
99999
100000
56122
100000
99999
99999
56123
56124
56124
100000
99999
99999
99999
100000
56124
56122
56124
99999
56124
99999
99999
100000
56124
56123
56124
99999
99999
99999
100000
99999
100000
56123
56123
99999
56123
99999
100000
56123
100000
99999
99999
100000...

result:

ok 100002 lines

Test #160:

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

input:

100000 100000
75558 71032
49273 7078
58543 36486
40246 95944
79218 74421
68212 94533
75308 63419
75443 29035
5461 54798
6790 773
72010 41959
65724 80751
13482 55415
18454 54574
13208 66258
2336 66251
69483 18220
36781 83963
74571 26822
43619 6565
23681 43123
44116 88012
35930 88839
28694 62965
74894...

output:

Gyojun is handsome
99999
99999
99999
99999
99999
62495
62496
100000
99999
100000
100000
99999
99999
62495
62496
62496
99999
62494
62496
62494
99999
62495
62496
62494
62495
99999
99999
100000
99999
99999
62495
62494
62495
62494
62494
62496
62495
62494
62495
62494
99999
62494
62495
62496
62495
99999
6...

result:

ok 100002 lines

Test #161:

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

input:

100000 100000
26097 25564
22249 32971
74296 9439
38027 38804
73098 763
5568 57241
42180 94292
4882 96327
41436 58666
91553 7854
20426 58608
81090 82754
96417 6929
42551 58025
23581 6504
80788 22259
14004 20651
51171 43156
2853 58904
80831 47757
85431 75334
95990 14476
82722 46381
51369 28593
27699 6...

output:

Gyojun is handsome
78205
99999
78205
78205
78205
78204
78204
78204
78205
78206
78204
78205
78205
78204
78205
78204
78204
78205
78206
78204
78205
78205
99999
99999
78204
78204
78205
78205
78204
99999
99999
78204
78204
78204
78204
78205
99999
78205
78205
78204
78205
78204
78204
99999
78204
78204
78204...

result:

ok 100002 lines

Test #162:

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

input:

100000 100000
38586 6003
22092 3214
69940 83623
3977 95555
27847 55231
5211 91568
53604 38408
48172 72874
24291 21874
79273 91731
21752 93833
81842 71545
63834 123
90918 86941
93530 75879
69177 41773
86713 45879
76780 14580
76656 18154
51080 41521
70593 1237
10120 20433
2099 73276
64223 33986
15649 ...

output:

Gyojun is handsome
88704
88704
88705
88704
88704
88704
88704
88704
88704
88704
88704
88705
88704
88704
88704
88704
99999
88704
100000
88704
88704
99999
88704
88704
88704
88704
88705
88704
99999
88705
88704
88705
88704
88705
99999
88704
88704
88705
88704
88704
88705
88704
88704
88704
99999
88705
8870...

result:

ok 100002 lines

Test #163:

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

input:

100000 100000
58663 33313
57159 3428
30534 65890
2898 27334
95988 29968
17779 95054
14835 34115
36145 12026
90907 84170
3061 16968
27723 43564
46024 97731
97464 92176
82945 92649
14480 48163
98025 40838
35195 78557
44721 14571
75410 90830
90248 95161
37755 32205
42084 18759
12263 42679
42087 59677
7...

output:

Gyojun is handsome
95130
95130
95130
95130
95130
95130
95131
95130
99999
95131
95130
95130
95130
95130
95130
95131
95130
95131
95130
95130
95130
95130
95130
95130
95130
95130
95130
95130
95130
95130
95130
95130
95131
95130
95130
95130
95130
95131
95131
99999
95130
99999
95130
95131
95130
95130
95130...

result:

ok 100002 lines

Test #164:

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

input:

100000 100000
52325 85480
86121 17894
76423 14994
48761 67782
53843 88491
52020 70130
57171 49873
9537 42725
51455 61660
84783 26358
9326 54689
915 14438
21695 57033
84221 90110
61611 76111
9596 20800
83812 51352
12011 24056
55659 69111
54222 54850
49199 52112
6503 83413
92660 35315
116 43421
42509 ...

output:

Gyojun is handsome
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99002
99001
99001
99001
99001
99001
99001
99002
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001...

result:

ok 100002 lines

Test #165:

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

input:

100000 100000
81561 22442
4731 69231
87517 27757
45873 94255
72347 80041
89712 62561
63466 26576
99963 55695
78541 15052
20080 34858
6397 3332
43039 54883
67981 6187
68469 61834
56149 48210
8456 85381
73482 54523
93137 66884
83612 93387
37862 24405
51469 74311
97960 5738
59395 88201
33723 36937
7143...

output:

Gyojun is handsome
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99600
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599
99599...

result:

ok 100002 lines

Test #166:

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

input:

100000 100000
69798 5756
32612 17009
22990 64203
23929 69582
59500 11677
46664 71766
66726 97987
26589 4072
36385 64509
62253 67005
76244 82306
70241 68691
33003 98563
58276 9833
52206 52737
4688 14753
74611 59081
97793 65714
74068 45642
16278 54642
29230 98357
58736 9197
94812 86876
73258 20386
606...

output:

Gyojun is handsome
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988...

result:

ok 100002 lines

Test #167:

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

input:

250000 250000
195825 166003
148703 192387
146540 18698
220556 130235
44011 12790
22627 203147
189135 152275
190554 228061
222446 74773
100990 92336
211587 56144
93012 206799
75997 83865
95597 43340
71863 88053
215277 127273
155439 190668
61808 69864
207792 223732
9253 194328
240880 124514
133468 117...

output:

Gyojun is handsome
249999
250000
249999
249999
250000
249999
249999
249999
249999
249999
250000
250000
249999
249999
249999
250000
250000
250000
249999
249999
250000
249999
250000
249999
250000
250000
249999
250000
249999
249999
250000
249999
249999
249999
250000
250000
249999
249999
249999
249999
2...

result:

ok 250002 lines

Test #168:

score: 0
Accepted
time: 89ms
memory: 96264kb

input:

250000 250000
195825 5033
148703 124783
207350 18698
85714 130235
103134 12790
249682 203147
70257 152275
190554 153486
222446 201608
100990 181093
211587 224124
93012 162273
75997 223907
95597 172765
54778 88053
172845 127273
143290 190668
61808 75638
207792 28831
207201 194328
108289 124514
133468...

output:

Gyojun is handsome
249996
250000
249996
249996
249996
249996
249996
249996
249996
249996
250000
249996
249996
249996
249996
249996
250000
250000
249996
249996
249996
250000
249996
249996
250000
250000
249996
250000
249996
249996
250000
249996
249996
249996
250000
250000
250000
250000
249996
249996
2...

result:

ok 250002 lines

Test #169:

score: 0
Accepted
time: 115ms
memory: 149268kb

input:

250000 250000
201847 33407
122020 187173
143585 93332
51173 193617
51222 243156
27290 36494
186501 249852
83702 104768
240914 132985
148031 171878
44148 54217
49942 123646
175672 67919
101678 187462
156742 244025
127491 160734
166055 56164
173124 248502
222106 181005
200756 163112
186656 197755
1971...

output:

Gyojun is handsome
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
249998
2...

result:

ok 250002 lines

Test #170:

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

input:

250000 250000
35257 175821
123799 207884
157854 48713
206755 19815
224938 32798
20035 104088
20784 122668
185975 23089
242448 245621
43123 70088
230997 245809
249113 218888
204663 165286
47906 145757
197962 224795
230318 46655
87486 198548
124971 10153
231930 80401
205553 26405
61608 148635
14679 14...

output:

Gyojun is handsome
249999
249999
250000
249999
249999
250000
250000
249999
249999
250000
250000
249999
249999
250000
250000
250000
250000
250000
249999
250000
250000
249999
249999
249999
249999
249999
249999
249999
250000
250000
250000
249999
250000
250000
249999
250000
250000
250000
249999
249999
2...

result:

ok 250002 lines

Test #171:

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

input:

250000 250000
98515 56749
50019 183721
236960 72759
170713 154317
166182 202383
223366 25250
168672 5970
177942 37011
162986 15088
60408 128292
179336 157730
120974 44262
59900 57258
119981 170739
121530 87101
18709 236349
214832 135902
32012 199795
42867 222697
204865 146291
227704 246901
65643 103...

output:

Gyojun is handsome
249999
249999
250000
249999
250000
250000
250000
249999
249999
250000
250000
249999
250000
249999
250000
249999
250000
249999
249999
250000
249999
249999
249999
249999
250000
249999
249999
250000
249999
250000
249999
249999
249999
250000
250000
249999
250000
249999
250000
249999
2...

result:

ok 250002 lines

Test #172:

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

input:

250000 250000
58650 122168
93796 60455
127150 54568
93169 70979
38566 198334
40615 211331
181968 65976
85688 46617
46021 244630
183501 19531
247424 111178
218605 105141
107388 8091
5864 17630
46836 103684
40240 4598
167080 196986
65728 49093
121467 10407
160590 135523
91484 102328
101511 49493
6959 ...

output:

Gyojun is handsome
249999
249999
250000
249999
249999
249999
250000
250000
250000
250000
250000
249999
249999
249999
249999
250000
249999
250000
250000
249999
249999
250000
249999
250000
249999
250000
250000
249999
249999
249999
249999
249999
250000
250000
249999
250000
250000
249999
249999
250000
2...

result:

ok 250002 lines

Test #173:

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

input:

250000 250000
235653 243533
248593 224668
176022 6987
152738 52315
165898 107162
233654 184167
158250 191288
242057 208596
37400 80138
162065 85265
181917 168062
158230 215509
78452 4612
76346 122033
142687 162915
22961 234696
3146 147669
39000 56
20969 101788
134293 189566
205024 231144
44131 42379...

output:

Gyojun is handsome
250000
249999
250000
249999
249999
250000
250000
250000
249999
250000
250000
250000
250000
249999
250000
250000
249999
249999
249999
250000
249999
249999
249999
250000
249999
250000
250000
250000
249999
249999
250000
250000
250000
249999
249999
249999
249999
249999
249999
250000
2...

result:

ok 250002 lines

Test #174:

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

input:

250000 250000
230920 226422
103964 97116
105078 103783
156561 59587
49911 190560
48898 3019
71553 161208
84838 177081
215330 163970
169049 122827
66871 25301
210243 91521
192751 85166
167244 41104
131772 144726
99540 90722
107187 22752
65951 103726
183277 247644
111040 99706
157408 48020
195643 1027...

output:

Gyojun is handsome
249999
250000
250000
250000
249999
250000
249999
250000
250000
249999
249999
249999
249999
249999
250000
249999
250000
249999
250000
250000
250000
250000
250000
249999
249999
250000
249999
249999
249999
249999
250000
250000
250000
249999
249999
250000
250000
250000
250000
250000
2...

result:

ok 250002 lines

Test #175:

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

input:

250000 250000
213862 169616
184355 71450
188406 22225
113846 195991
215242 217070
145235 86237
126846 84634
35556 183281
59209 82816
206575 132785
155514 60344
146781 186474
168922 40718
29060 29633
18880 222905
134774 246068
142321 97804
181201 94207
39384 128116
99882 97372
176068 136284
129902 23...

output:

Gyojun is handsome
250000
250000
249999
250000
250000
249999
250000
249999
250000
250000
249999
250000
250000
249999
249999
250000
249999
249999
249999
249999
250000
250000
250000
250000
250000
249999
249999
250000
250000
249999
250000
249999
250000
249999
249999
250000
250000
249999
249999
250000
2...

result:

ok 250002 lines

Test #176:

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

input:

250000 250000
111817 212957
82016 237815
44854 98042
153083 143416
113230 149962
147515 216517
99157 86759
56840 36509
71200 4941
132146 188183
125300 124788
131463 146556
174249 124903
76858 229196
82923 10766
220814 222517
14868 181777
210971 134375
146576 153516
203515 79230
148970 22936
161470 2...

output:

Gyojun is handsome
249999
250000
249999
250000
250000
250000
249999
250000
249999
249999
250000
250000
250000
249999
249999
249999
249999
249999
250000
249999
249999
250000
249999
249999
250000
249999
250000
249999
249999
249999
250000
249999
250000
249999
250000
250000
249999
250000
249999
250000
2...

result:

ok 250002 lines

Test #177:

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

input:

250000 250000
225849 169973
71458 173127
36896 131889
85320 69086
236069 173079
236033 150195
107936 25943
238944 69881
35633 196928
58374 105621
97977 53893
112701 143781
205015 198705
98696 236226
177741 78808
225945 206710
100319 92289
174526 185579
45305 211824
151291 40305
113347 3687
17784 214...

output:

Gyojun is handsome
250000
249999
250000
249999
249999
249999
249999
249999
249999
250000
250000
249999
250000
249999
249999
249999
249999
249999
249999
250000
249999
250000
249999
249999
249999
249999
250000
249999
250000
249999
249999
250000
249999
249999
250000
250000
249999
250000
250000
250000
2...

result:

ok 250002 lines

Test #178:

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

input:

250000 250000
198843 51100
160902 71274
84651 96151
144188 153690
47664 216722
12971 45311
91598 127345
194588 94074
149881 883
134776 124097
138652 105324
28597 23998
150191 202807
21966 104208
78750 202220
73615 148619
121894 247430
206099 189284
227500 4731
228217 7806
163167 208368
154688 190351...

output:

Gyojun is handsome
249999
249999
250000
250000
250000
250000
249999
249999
250000
250000
250000
250000
249999
250000
250000
249999
249999
250000
249999
249999
250000
249999
249999
249999
125033
249999
250000
249999
249999
250000
249999
249999
250000
249999
249999
250000
250000
249999
249999
249999
2...

result:

ok 250002 lines

Test #179:

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

input:

250000 250000
196606 21970
76954 29940
202722 154875
79227 246379
8320 86329
7011 95048
178084 1527
16739 120874
127040 11565
24957 88687
77048 68620
3489 243932
150694 5145
54281 59166
128551 239147
144822 110364
205091 177416
94285 181944
136597 225200
18522 43346
75721 20408
97105 107900
159885 2...

output:

Gyojun is handsome
249999
249999
249999
126379
250000
249999
249999
249999
250000
249999
249999
249999
250000
249999
249999
249999
249999
249999
249999
249999
250000
249999
250000
249999
249999
250000
249999
249999
249999
249999
249999
249999
249999
250000
250000
249999
249999
249999
249999
250000
2...

result:

ok 250002 lines

Test #180:

score: 0
Accepted
time: 63ms
memory: 69292kb

input:

250000 250000
19991 79539
73014 166454
10900 206213
96110 211226
97726 218361
89540 101000
120391 186916
232159 171129
227955 131406
13370 222923
67360 243680
61871 138228
4515 138215
136031 194056
243695 167994
35859 45194
193852 25960
100122 76657
229723 73530
162481 151743
238726 39057
199428 723...

output:

Gyojun is handsome
249999
144811
249999
249999
249999
144811
144810
144809
144810
249999
249999
250000
249999
144809
144811
250000
250000
144810
144810
250000
249999
250000
250000
144810
250000
249999
249999
249999
249999
249999
144810
249999
250000
249999
144811
249999
249999
249999
249999
250000
2...

result:

ok 250002 lines

Test #181:

score: 0
Accepted
time: 87ms
memory: 104308kb

input:

250000 250000
248111 44905
20024 31800
108625 23300
139113 99798
241321 80881
62575 199906
136776 107650
224401 144136
74139 160409
172340 138007
168447 238251
113771 144168
38640 131531
113318 69703
108154 167852
160645 78016
40980 60767
199214 219571
135961 196926
234382 83748
160028 147415
135866...

output:

Gyojun is handsome
250000
193407
193408
193407
250000
193408
249999
193408
193407
193408
193407
193407
193408
193407
193407
193408
193407
249999
193408
193407
249999
193407
249999
193407
193407
249999
193407
249999
249999
193409
193408
193407
193408
249999
193408
250000
193407
193408
193408
193408
1...

result:

ok 250002 lines

Test #182:

score: 0
Accepted
time: 87ms
memory: 126336kb

input:

250000 250000
20729 207894
76007 218525
66978 212163
215334 239350
220516 48760
169845 184095
40429 137729
45985 28980
197093 167300
54442 121654
101562 84809
175627 76529
182832 219105
224235 190388
127091 58104
100899 115638
25900 128240
102285 127236
150640 213180
12293 164562
244885 42423
21553 ...

output:

Gyojun is handsome
204846
249999
204845
204845
204847
204846
204845
204846
204845
204845
204845
249999
204845
249999
204846
204845
204846
204845
204845
204845
204845
204846
204846
204846
249999
204846
204846
204846
204845
204846
204845
204845
204846
204845
250000
204846
204845
249999
250000
249999
2...

result:

ok 250002 lines

Test #183:

score: 0
Accepted
time: 115ms
memory: 145000kb

input:

250000 250000
130273 117903
159404 138620
212649 146332
180645 63216
77353 105434
241064 114631
192324 61359
196225 220711
15735 157589
213848 201961
91395 235185
180947 60672
224366 130276
32302 49522
10772 118309
56113 229392
160282 3032
17300 196857
118570 115643
150413 121249
144643 78806
210684...

output:

Gyojun is handsome
245048
245048
245048
245048
245048
245048
245048
245048
245048
245048
245048
245048
245048
245048
245048
245048
245048
245048
245048
245048
245048
245048
245048
245048
245048
249999
245048
245048
245049
245048
245048
245048
245048
245048
245048
245048
245048
245049
245048
245048
2...

result:

ok 250002 lines

Test #184:

score: 0
Accepted
time: 119ms
memory: 148192kb

input:

250000 250000
67109 50172
76165 183451
64736 142863
195939 128156
7616 234428
173326 228250
201675 92295
242766 143943
17147 4947
163981 134625
233707 32694
144647 18705
62433 130999
39054 103365
12520 6899
191893 112345
191782 4666
71820 218513
104852 235481
9555 127276
6121 165047
205141 211084
64...

output:

Gyojun is handsome
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
249898
2...

result:

ok 250002 lines

Subtask #4:

score: 13
Accepted

Test #185:

score: 13
Accepted
time: 3ms
memory: 34624kb

input:

8000 7999
6715 5630
5399 1611
522 5896
5200 288
4783 2611
5206 1534
1491 5946
2860 984
5854 7761
7173 2988
4855 7410
3295 451
457 2349
7896 6105
7685 6007
6778 7505
5872 2713
6470 1380
4248 3888
6388 2792
1047 3549
5226 97
509 409
4856 7396
4149 2439
5406 2518
3230 6097
6050 5856
2346 5118
3521 6541...

output:

Gyojun is handsome
7999
7999
7999
8000
7999
8000
8000
8000
7999
8000
7999
8000
8000
8000
8000
8000
8000
8000
7999
7999
8000
8000
7999
8000
7999
7999
8000
8000
8000
8000
7999
8000
7999
8000
8000
8000
8000
8000
8000
7999
8000
7999
8000
7999
7999
7999
8000
7999
8000
8000
7999
7999
7999
7999
7999
8000
8...

result:

ok 8001 lines

Test #186:

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

input:

8000 7999
4778 5630
5399 7803
522 3556
5200 6570
4783 4982
5206 7136
1915 5946
2860 4731
2729 7761
7589 2988
4855 6133
3295 1076
7258 2349
4942 6105
3756 6007
6778 3255
5872 6819
4474 1380
4248 6096
6388 6937
4994 3549
5226 6487
509 2771
4856 3913
5390 2439
3169 2518
1452 6097
6050 6838
2346 2250
69...

output:

Gyojun is handsome
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8000
8...

result:

ok 8001 lines

Test #187:

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

input:

8000 13325
2772 5782
2128 4495
1037 5792
3616 4270
745 4057
2939 5893
4335 234
2937 1269
5200 6910
60 1225
4248 7802
701 139
4832 7101
6231 2406
1753 3756
4008 1720
7690 2182
1913 7124
6418 1802
6362 7026
5773 5706
3470 5622
2982 2909
6263 6512
6903 6067
6538 7125
4967 5904
1575 6209
5360 2091
4694 ...

output:

Gyojun is handsome
3994
3994
8000
3994
3994
3994
3994
3994
3994
3995
8000
3994
3994
3994
7999
3994
3994
3994
3994
3994
3994
3994
3994
3994
3994
3994
3995
3994
3994
8000
3994
3994
3994
3994
3994
3994
3995
3994
3994
3994
3994
3995
3994
3994
3994
8000
3994
3994
3994
3994
3994
3994
3995
3995
3994
3994
3...

result:

ok 13327 lines

Test #188:

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

input:

8000 11959
3526 1649
5836 2637
2346 6173
5702 7696
3593 7877
1480 1045
3014 5667
604 3891
6712 7376
5465 3892
5835 1595
737 7945
6520 5960
3065 5776
1446 5353
1417 2562
5125 3004
3887 5303
6245 5071
3968 2784
3928 2067
6306 7835
2077 1868
1609 7975
638 6918
7923 2747
2246 5460
6305 6059
2797 3452
97...

output:

Gyojun is handsome
3371
3371
3370
3370
3370
3370
3371
3370
3371
8000
3371
8000
3370
3371
3371
3371
3371
3370
3371
3371
3371
3370
3370
8000
3370
3371
3372
3371
3370
3371
3370
3371
3370
3370
3370
3370
3370
3370
3370
8000
3370
3371
3370
3370
3370
8000
3371
3370
3370
3371
3370
3370
3371
3371
3370
3370
3...

result:

ok 11961 lines

Test #189:

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

input:

8000 9182
2225 2408
2039 1273
763 2006
2400 2840
2855 1662
212 1598
1988 5571
756 7815
3809 3296
2022 3694
6536 6250
1382 4571
5073 6503
2340 5079
2557 7579
4590 6420
7532 3732
487 6543
4391 6319
4640 776
5556 205
475 3895
592 2732
930 1178
75 7180
3953 94
7282 3553
4376 5760
5635 6605
1261 7764
188...

output:

Gyojun is handsome
1284
8000
1285
1284
1286
1283
1283
1284
1281
1286
1287
1285
1285
1284
1285
1284
1286
1282
1285
1283
1279
1287
1284
1279
1284
1284
1283
1285
1283
1283
1279
1286
1284
1284
1285
1283
1279
1279
1284
1287
1284
1284
1286
1286
1288
1284
1284
1284
1285
1287
1286
1286
1286
1284
1286
1286
1...

result:

ok 9184 lines

Test #190:

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

input:

8000 8275
3086 5617
3914 1505
1987 3197
789 768
3891 1061
3501 2708
2235 366
5688 7097
4898 3554
2136 359
5497 2935
5042 2015
3016 981
4384 4211
7878 4924
2663 3930
757 4696
3200 461
50 18
6970 3538
2 7269
1600 3745
6987 5601
5982 610
4112 959
6212 113
7397 5416
6733 2922
6410 1248
5235 6374
6169 68...

output:

Gyojun is handsome
353
356
357
355
356
357
354
359
354
354
354
358
353
356
356
356
356
355
358
357
357
356
355
359
357
356
356
353
350
356
355
356
356
356
355
352
356
355
355
355
353
352
353
350
8000
353
358
8000
357
355
354
354
355
353
357
357
359
359
358
354
355
359
355
354
354
360
354
354
360
322...

result:

ok 8277 lines

Test #191:

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

input:

8000 8104
992 2331
2470 3821
2684 705
6105 1945
5827 6137
4343 4451
2190 4423
1896 3878
3611 230
5797 5793
5789 1072
7731 7541
4474 1732
4605 1833
92 6673
3112 1444
7968 4894
331 7957
7075 2797
4189 5305
4358 2340
5013 2826
7009 2949
5548 3999
1986 3267
7007 490
105 5418
1966 6063
1923 6740
5482 123...

output:

Gyojun is handsome
222
212
213
216
221
219
214
217
214
214
213
220
219
222
222
214
211
214
224
216
220
212
217
218
221
216
218
215
221
175
222
218
219
221
218
222
218
224
217
221
211
218
217
218
220
216
219
213
212
215
217
215
212
221
217
224
218
218
218
222
213
222
216
221
221
223
222
224
216
213
2...

result:

ok 8106 lines

Test #192:

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

input:

8000 8047
5021 5731
2800 650
32 4548
1718 1395
7699 199
7179 7366
951 2803
509 5136
6736 1684
4331 5905
5936 5380
2690 2925
5251 6632
2621 1649
6960 1670
1685 3293
7373 2872
3757 4283
7671 687
1297 3281
1087 3680
5198 7706
3819 4101
7760 1692
2336 3262
4432 3996
7542 175
3894 182
3258 2689
4916 7613...

output:

Gyojun is handsome
292
296
297
299
297
289
297
292
292
299
296
295
295
296
288
297
288
291
295
296
301
124
295
301
294
294
301
285
290
287
297
287
290
296
298
298
286
299
296
294
296
290
292
296
289
296
297
296
290
292
290
294
294
298
288
292
290
292
288
295
288
290
289
296
296
296
295
294
296
292
2...

result:

ok 8049 lines

Test #193:

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

input:

8000 8034
2943 4214
267 4644
1679 4054
4710 3827
6173 2491
5193 7866
5731 6408
566 4500
7145 6242
5627 3892
4586 2452
6650 3274
2726 2285
7027 1011
7007 5691
2363 7159
7042 2043
4619 5980
7538 5216
6510 1679
3480 6538
7808 3427
6211 5399
819 2969
6263 1636
271 6372
5239 2335
6425 4020
4284 2194
2412...

output:

Gyojun is handsome
433
428
427
424
428
103
424
428
424
435
433
416
424
430
423
433
415
433
418
427
428
430
424
434
430
416
416
428
428
427
433
428
423
428
433
424
435
426
428
430
106
424
424
434
434
430
430
426
415
428
428
426
415
415
424
426
436
430
435
434
434
436
436
424
434
424
426
434
423
103
4...

result:

ok 8036 lines

Test #194:

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

input:

8000 8014
7735 82
3025 1064
1865 5559
1090 3976
5802 4741
2503 1314
2497 2093
4500 6299
7717 6763
2724 851
492 1493
5864 5289
7657 3529
1821 391
4743 7445
6333 6933
2068 5313
7834 7769
6576 2316
2976 222
1124 170
7920 5307
5320 855
2449 4557
4082 865
5108 6304
4897 4120
7290 2535
1954 624
6353 1002
...

output:

Gyojun is handsome
996
1014
8000
1007
1012
1014
1007
992
1012
1014
996
1007
1012
1014
996
1007
1007
992
992
1014
71
1007
992
992
1007
996
1007
992
1007
1007
992
992
992
996
992
992
992
996
1014
1012
1007
1014
992
992
992
1014
992
1014
996
992
992
996
992
1007
996
1014
992
992
996
1007
992
1014
1012
...

result:

ok 8016 lines

Test #195:

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

input:

8000 8011
945 5519
4337 5686
4201 1285
3827 5171
6135 3937
457 7470
2225 7657
745 2972
4899 7819
7465 2320
2687 2243
5871 1546
1321 6065
911 4447
2013 6879
532 5823
7740 782
831 554
5830 1445
2212 518
5218 2756
5305 3100
1583 2318
1325 7096
1822 7664
6773 7251
587 3662
4128 528
4131 608
1050 1052
44...

output:

Gyojun is handsome
2508
2469
2506
2508
2469
2508
2506
2469
368
2469
2469
2469
2469
2469
2508
2469
2506
2469
2469
2508
2469
2506
2469
2469
2506
2508
2508
148
2506
2506
2469
2508
2508
2507
2469
2506
2469
368
2469
2506
2506
2506
2506
2469
2508
2506
2469
2469
2469
2506
2508
2506
2506
2469
2508
368
2508
...

result:

ok 8013 lines

Test #196:

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

input:

8000 8004
3555 819
2573 5744
7821 5118
7299 2955
4041 2011
7487 6695
2774 3079
6328 7929
3350 5156
7556 4416
3278 119
3250 7000
6541 2506
6321 4276
5443 6791
2346 5527
1410 4734
1585 4578
142 6700
2764 7139
7309 2243
6253 2694
195 6918
3102 5376
6231 2978
7324 4980
3906 7461
3561 4172
5303 4715
4596...

output:

Gyojun is handsome
5000
816
2015
5000
2015
5000
5000
2015
5000
5000
2015
5000
5000
5000
2015
2015
5000
5000
5000
5000
5000
5000
5000
2015
5000
5000
816
816
2015
5000
5000
5000
5000
816
5000
5000
816
2015
5000
5000
2015
5000
5000
2015
2015
2015
5000
8000
5000
2015
2015
5000
5000
5000
5000
5000
2015
8...

result:

ok 8006 lines

Test #197:

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

input:

8000 8018
2178 5860
2925 1428
7247 2484
1262 3759
3501 4325
3388 3210
1487 3876
2723 6459
2030 503
5777 5206
3247 7056
2068 3120
5435 3334
1406 2486
7817 5319
4264 556
3217 6977
5281 6453
7342 5643
1200 6430
881 7487
5967 2262
5549 6559
1354 2461
2193 1152
1700 2246
2253 3759
3407 3190
196 6394
7652...

output:

Gyojun is handsome
342
6504
342
342
6504
61
49
6504
6504
6504
6504
6504
689
6504
6504
6504
6504
6504
55
6504
6504
6504
6504
6504
6504
6504
342
6504
6504
6504
6504
6504
6504
6504
6504
6504
342
6504
302
6504
6504
6504
62
6504
6504
6504
689
6504
689
6504
342
6504
6504
342
689
6504
6504
6504
6504
302
65...

result:

ok 8020 lines

Test #198:

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

input:

8000 8010
5129 4863
6729 3523
7767 3528
7812 6259
5451 1666
2007 7626
3601 2512
4598 2441
4165 3250
2265 4801
3283 1685
7812 6984
4481 3143
2948 7075
5059 1981
2288 3491
1908 730
1277 2872
32 7243
4936 6232
508 7261
6963 1046
7987 3321
5719 4637
2227 7130
5005 4602
1805 1760
5219 1422
1263 4380
6139...

output:

Gyojun is handsome
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
61
7601
7601
7601
7601
15
7601
7601
109
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7601
7...

result:

ok 8012 lines

Test #199:

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

input:

8000 8008
5230 5914
459 3358
1748 4194
4250 5306
996 887
3470 1330
3920 2310
3919 4583
836 1414
1782 864
2000 3790
441 4058
5114 683
199 4272
558 7159
926 1203
284 1367
7424 3669
5130 69
834 6368
2928 7272
533 3379
4891 4828
1117 5215
688 3382
280 3931
1129 6522
190 6362
6989 2212
7081 7585
5075 250...

output:

Gyojun is handsome
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
47
7801
7801
7801
7801
93
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
7801
...

result:

ok 8010 lines

Test #200:

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

input:

8000 8006
7254 2638
4765 1576
916 2985
7586 7680
623 3680
520 4039
4959 458
3795 3259
6616 5072
4988 5667
5018 5513
4330 4452
3391 1815
6552 2532
3455 6374
1993 497
5759 1874
759 4826
954 6234
4978 4826
4565 2333
5706 5212
1970 1528
5509 5518
7632 4095
7138 851
6435 4219
374 881
3925 7170
4449 2069
...

output:

Gyojun is handsome
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7970
7...

result:

ok 8008 lines

Test #201:

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

input:

100000 99999
66662 33929
65283 43080
97570 8032
88969 33452
77627 21386
59681 78334
47791 30274
65129 5575
5731 24991
92784 16605
31310 57418
49185 43733
80424 40630
22135 74357
14106 45391
72180 74713
51189 85576
13899 1532
28243 3255
95685 27463
56560 48096
41184 14430
1199 39903
92263 2769
42724 ...

output:

Gyojun is handsome
100000
99999
100000
99999
99999
100000
100000
100000
99999
100000
99999
99999
100000
99999
99999
100000
100000
99999
100000
100000
99999
99999
100000
99999
100000
100000
99999
99999
100000
100000
100000
100000
99999
100000
99999
100000
99999
99999
100000
99999
99999
99999
100000
9...

result:

ok 100001 lines

Test #202:

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

input:

100000 99999
87974 33929
42892 43080
97570 82353
88969 9037
77627 34457
5441 78334
76206 30274
94455 5575
31123 24991
25594 16605
31310 79627
61622 43733
26256 40630
5057 74357
14106 15137
77517 74713
78140 85576
13899 40548
28243 85376
95685 57569
56560 13917
41184 48481
1199 29287
49858 2769
42724...

output:

Gyojun is handsome
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
100000
1...

result:

ok 100001 lines

Test #203:

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

input:

100000 174745
51216 67661
99761 59135
60274 18932
15949 19276
23050 41694
22148 31999
12815 56489
6922 54535
29466 43502
41497 77007
84815 99547
32767 50461
95548 20819
95264 32713
48209 16061
85890 8899
43142 27017
50749 20859
87088 41464
69666 70337
51228 98140
74686 38622
24306 74082
80053 32269
...

output:

Gyojun is handsome
49939
49939
100000
49939
49939
99999
49939
49939
49939
49939
49939
49939
99999
49939
49939
49939
49939
49939
49939
49939
49939
100000
49939
49939
49939
49939
99999
49939
49939
49939
49939
49939
49939
99999
49939
49939
49939
49939
49939
49939
49939
49939
49939
49939
49939
49939
499...

result:

ok 174747 lines

Test #204:

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

input:

100000 166564
2946 91114
70464 99619
14453 21976
7014 61093
17289 96703
8420 8666
99513 9353
12609 28250
79991 60664
38609 77230
88596 78806
29360 74617
34498 20701
35709 69421
4978 63725
87159 54410
88735 74706
44246 56430
31765 95027
84321 79893
9949 21037
98898 12216
29043 66932
38818 99972
52884...

output:

Gyojun is handsome
49995
49994
49994
49994
49994
100000
49994
49994
49994
49994
49994
49994
100000
49994
100000
49994
49994
49995
49994
49994
49994
49994
49994
49995
49994
49994
49995
100000
49994
49995
100000
49994
49994
49994
49994
100000
49994
49994
49994
49994
49994
49994
49994
49994
49994
49995...

result:

ok 166566 lines

Test #205:

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

input:

100000 150089
43351 1970
67026 13566
14459 16393
94024 87907
46341 77148
51062 53362
14325 27077
20828 29447
92213 76671
22904 50696
94137 82401
52620 29324
83802 54555
3246 11105
96341 29117
52230 94076
62915 16429
59 64818
23215 97269
27721 68282
44725 74362
91441 26386
21066 53605
38291 1153
4713...

output:

Gyojun is handsome
100000
42964
42963
42963
42965
42964
100000
42964
42964
42964
42963
42963
42963
42963
42964
42964
42963
42964
42964
42965
42963
42965
42963
42964
42964
42964
42963
42963
42964
42964
42965
42963
100000
42965
100000
42964
100000
42965
42963
42965
42963
42964
42963
42963
42964
42963
...

result:

ok 150091 lines

Test #206:

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

input:

100000 114643
68609 95967
6368 63430
11417 57737
89225 78052
36779 8724
47514 3556
38296 1919
56297 5210
50024 23000
69592 61237
98492 23556
29738 72899
19918 4139
50545 55500
12615 65598
24882 50191
30903 207
30169 64165
24398 8915
71335 82254
63295 36166
97529 52476
74919 65731
93829 57717
50413 7...

output:

Gyojun is handsome
15775
15777
100000
15779
15779
15778
15781
15778
15776
15779
15779
15779
15778
15777
15779
15780
15778
15780
100000
15778
15777
15779
15781
15776
15780
15778
15777
15780
15780
100000
15781
15778
15778
15779
15776
15780
15780
15780
15779
15777
15778
15779
15778
15779
15773
15781
15...

result:

ok 114645 lines

Test #207:

score: 0
Accepted
time: 44ms
memory: 79440kb

input:

100000 103403
26211 21578
2163 85680
46500 61497
75994 67808
42211 63600
83333 93045
37850 41703
16659 25581
73626 11047
85961 96049
62788 7210
87576 11627
99124 64974
76742 30299
71058 47021
73204 8281
35938 47339
78250 50262
11786 74398
33361 48119
64756 40628
63590 96462
64664 49314
43150 29395
6...

output:

Gyojun is handsome
3989
3986
3988
3991
3989
3991
3993
3993
3987
3987
3986
3986
3989
3989
3990
3987
3988
3992
3992
3989
3993
3988
3989
3987
3994
3985
3988
3985
3991
3986
3982
3992
3990
3985
3987
3989
3988
3992
3989
3985
3989
3990
3988
3986
3987
3991
3991
3990
3993
3988
3992
3988
3985
3987
3992
3988
3...

result:

ok 103405 lines

Test #208:

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

input:

100000 100722
43821 97639
67625 2567
82739 76391
33290 49612
29102 33445
50512 94489
53562 34080
98311 11918
4936 58137
47264 21737
79732 81681
31715 79040
91967 76876
43900 24371
26155 84692
99525 62156
16092 22163
80558 97697
68846 94417
19666 62934
2853 91815
27185 25494
21828 67902
45414 59051
8...

output:

Gyojun is handsome
1028
1034
1032
1027
1022
1031
1022
1028
1025
1035
1026
1025
1025
1034
1031
1035
1028
1028
1027
1032
1032
1025
1027
1027
1032
1023
1032
1020
1031
1033
1033
1023
1032
1034
1026
1027
1029
1030
1033
1022
1027
1025
1034
1035
1025
1034
1025
1018
1029
1030
1030
1031
1027
1030
1032
1020
1...

result:

ok 100724 lines

Test #209:

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

input:

100000 100229
26143 14322
39302 30048
33023 34085
17212 79617
37814 83815
79837 46900
3029 99385
87368 65136
90502 2427
5565 79648
47691 22880
89452 94724
33044 79473
15332 98573
20567 77353
35966 17043
5617 86304
37201 99127
14727 79855
30761 73615
68207 38302
8779 25063
81733 96069
63071 34806
467...

output:

Gyojun is handsome
841
852
863
839
843
847
840
857
846
861
841
844
839
859
840
854
838
849
838
851
841
841
840
842
858
310
856
840
855
851
856
854
840
837
846
846
849
848
862
839
842
842
843
849
844
841
850
858
839
857
852
843
861
859
847
839
830
849
847
858
855
843
839
857
840
856
854
847
860
857
8...

result:

ok 100231 lines

Test #210:

score: 0
Accepted
time: 46ms
memory: 77952kb

input:

100000 100060
26611 17006
10808 83744
92475 66204
59648 24679
67674 93194
39069 11981
89769 96948
6509 78141
1862 64899
75938 63542
7686 81545
94975 4044
12730 85415
28027 94928
99266 79469
15869 87975
34190 19509
92315 80868
43040 79354
7857 62311
43697 9941
7140 48884
47918 14907
28981 82910
85824...

output:

Gyojun is handsome
2524
2532
2564
2542
2532
2533
2533
2548
2544
2573
2546
2540
2552
2533
2544
2550
2548
967
2569
2539
2532
2567
2539
2540
2546
2532
2574
2539
2564
2537
2550
2542
2540
2539
2546
2542
2550
2566
2544
2573
2574
967
2564
2551
2537
2532
2528
2546
2533
2533
2528
2548
2538
2538
2546
2540
255...

result:

ok 100062 lines

Test #211:

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

input:

100000 100033
21665 58850
21207 62036
87358 76602
55078 90070
8374 83545
31649 50934
52136 93331
77792 53773
61290 47098
68993 76292
16187 18119
15763 68482
14773 49756
35463 36145
32502 25472
65563 62638
273 84504
92549 50776
70438 53342
20082 10341
30340 6753
4437 72502
25174 11452
69820 20731
155...

output:

Gyojun is handsome
6019
5986
5974
218
5959
6033
5997
5986
5984
5984
6021
5974
6018
5991
6019
5966
5997
6019
6024
5974
5959
6006
5991
6001
6018
5991
5974
5959
6023
3498
5974
6024
6006
5986
6019
6018
5974
5959
6006
5986
6019
6033
5959
5966
5974
5974
5966
5974
6033
5991
6024
6021
5974
6018
6021
6021
60...

result:

ok 100035 lines

Test #212:

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

input:

100000 100027
4911 75006
89889 18422
16708 33413
38092 23037
19780 35282
7862 44004
28279 19237
55220 81283
64277 25969
56269 56807
78643 98147
79838 63469
35158 61883
72565 62139
96521 57201
68754 68811
97124 90452
71342 41203
56086 59848
81796 96632
22410 37939
89664 83116
68624 88845
54228 75203
...

output:

Gyojun is handsome
9987
9943
9996
9996
10009
10006
10006
9950
10009
9950
9996
10006
9943
9941
10011
9987
10009
10006
9941
9987
9943
10006
9941
9941
9950
9943
10009
9996
9996
9941
10006
10011
10006
9943
9941
9943
9996
10009
9996
9996
9996
10011
10006
10006
9941
10025
9943
10006
9996
10009
10006
9941
...

result:

ok 100029 lines

Test #213:

score: 0
Accepted
time: 44ms
memory: 79392kb

input:

100000 100018
93872 42022
46963 77326
72295 77825
93308 68334
85080 15992
15923 65442
45578 82225
83850 754
88805 35971
84380 71697
39353 28722
50703 78401
76557 40372
71928 48539
65558 56006
74773 97596
87368 33965
94380 67177
71395 10965
78371 29712
43487 76409
68611 62963
73076 15018
39876 60420
...

output:

Gyojun is handsome
20016
20016
19944
19921
20016
20016
76
19944
20014
19921
20014
19944
19882
20016
19882
20014
20014
20014
20014
20014
19944
20016
19944
20014
19944
19882
19944
20016
19921
20016
20014
19882
20014
19921
19944
20014
20016
19921
19921
20016
19921
20016
19944
20014
19921
19921
19944
20...

result:

ok 100020 lines

Test #214:

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

input:

100000 100009
20959 47751
70862 56569
93783 24983
79999 28939
1224 96652
20056 98286
74015 42379
36380 57874
54772 5541
84876 33511
46012 78540
65748 7793
53208 67860
12450 28261
80051 29592
28586 3800
27068 7903
30506 70258
98985 17125
63481 75968
72093 4955
71004 47617
56793 85887
9102 21548
7933 ...

output:

Gyojun is handsome
9555
35004
830
35004
35004
4995
35004
35004
34922
34922
830
34922
35004
34922
35004
34922
9555
4995
35004
34922
634
35004
11317
34922
34922
34922
35004
34922
1761
35004
34922
9555
35004
4995
34922
1761
11317
4995
4995
35004
35004
35004
35004
35004
35004
34922
4995
9555
4995
35004
...

result:

ok 100011 lines

Test #215:

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

input:

100000 100005
24523 32456
58259 35515
7607 37912
7814 95090
42211 31553
44190 54492
45031 8032
28038 80294
39154 27074
57451 35713
84417 75403
74394 98034
11812 34990
88667 93189
56645 4706
7627 66101
63803 93860
20383 40527
30987 45058
48521 93099
42180 15336
99854 27159
35339 73626
56400 60588
617...

output:

Gyojun is handsome
50000
49941
50000
49941
50000
49941
50000
50000
50000
50000
49941
50000
49941
49941
49941
49941
50000
50000
49941
50000
50000
50000
50000
50000
50000
49941
49941
50000
49941
49941
49941
50000
49941
49941
50000
50000
49941
50000
49941
50000
49941
49941
49941
49941
49941
49941
49941...

result:

ok 100007 lines

Test #216:

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

input:

100000 100013
53489 35127
4948 93950
71156 40554
94955 40435
61961 66909
19023 57798
5912 61244
32978 87106
68852 76908
89085 71853
97502 12401
43689 18725
84794 34458
57332 40379
43094 64985
87973 46428
17527 70789
25053 65021
86250 17540
64509 90802
47197 28329
80875 3783
1884 86506
10480 11189
87...

output:

Gyojun is handsome
75004
75004
3567
75004
75004
75004
10378
75004
10378
75004
75004
75004
75004
75004
75004
75004
75004
75004
75004
3176
75004
75004
75004
75004
5413
75004
3176
75004
75004
10378
75004
75004
75004
75004
5413
75004
5413
75004
10378
75004
75004
5413
75004
75004
75004
5413
75004
75004
7...

result:

ok 100015 lines

Test #217:

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

input:

100000 100010
12438 90598
49498 96258
94927 46018
68205 94607
25842 5805
31030 25437
88768 5284
70656 20921
14199 2458
60896 52151
86685 88165
15769 49465
17028 13206
75444 60508
58658 69751
86746 54633
97604 78908
97595 97393
94095 41152
4584 75559
9846 81928
46787 60514
36432 52943
59113 69915
549...

output:

Gyojun is handsome
88004
88004
8925
88004
88004
88004
8925
88004
88004
88004
88004
88004
88004
88004
88004
88004
8925
88004
88004
88004
88004
88004
88004
88004
88004
88004
88004
8925
88004
8925
88004
88004
88004
88004
88004
88004
88004
88004
88004
88004
88004
88004
8925
88004
88004
88004
88004
88004...

result:

ok 100012 lines

Test #218:

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

input:

100000 100013
10394 7182
15959 39089
98043 61119
36104 46420
80552 20161
74672 80603
12670 93156
64085 13239
49507 89240
93566 64631
75859 48251
43548 5579
667 69036
14315 41576
46607 28443
17995 81950
62712 36708
93393 89731
89206 15846
94538 23552
58105 38126
34052 51066
99724 57096
81013 36745
60...

output:

Gyojun is handsome
95003
95003
4387
95003
95003
95003
95003
95003
95003
95003
95003
95003
95003
95003
95003
95003
95003
95003
95003
95003
95003
95003
95003
95003
95003
95003
4387
95003
95003
4387
95003
95003
95003
95003
95003
95003
95003
95003
93
95003
95003
95003
95003
95003
95003
95003
95003
95003...

result:

ok 100015 lines

Test #219:

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

input:

100000 100009
7255 35109
82514 16206
26068 46561
70251 41724
12436 54325
97927 16030
55447 79914
61804 46342
31591 85826
86933 21003
44192 98995
34434 89829
12857 61078
17993 75388
76331 38353
71969 94945
92313 39583
35719 44829
21916 38973
7289 20320
40444 49029
48064 78355
11801 96870
62612 8812
8...

output:

Gyojun is handsome
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
26
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99001
99...

result:

ok 100011 lines

Test #220:

score: 0
Accepted
time: 44ms
memory: 86568kb

input:

100000 100011
57071 89821
61662 54261
15273 4306
98923 71415
77509 48437
81122 69716
30044 15066
6999 87352
99179 18649
89377 43782
96519 78248
6080 42883
29125 12425
22250 88531
88943 1283
75471 71367
56160 4676
75863 62531
14508 46780
26645 19700
98825 8074
41839 47092
78053 96277
70295 66509
2534...

output:

Gyojun is handsome
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602
99602...

result:

ok 100013 lines

Test #221:

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

input:

100000 100003
78601 40207
83572 36104
44459 41405
98717 70972
44119 75571
62442 98814
10170 46438
15481 20057
35511 81000
41078 44861
83134 41091
6582 77199
62626 87871
22911 42997
91713 57272
37832 69975
48350 95240
94726 24781
51258 34694
18790 32479
65172 57564
99415 80236
87267 74251
87113 32760...

output:

Gyojun is handsome
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988
99988...

result:

ok 100005 lines

Test #222:

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

input:

250000 249999
83505 129762
204848 17496
147199 73554
22165 239199
238019 7045
157266 115923
138750 237228
119145 20020
54525 13901
39164 225941
227260 67928
78143 123
175160 7122
76164 71293
192431 151356
185134 203785
35513 138505
76213 213654
52645 16623
119232 37367
114044 109043
31376 165991
240...

output:

Gyojun is handsome
249999
250000
249999
250000
249999
250000
250000
249999
249999
250000
249999
249999
250000
249999
250000
249999
250000
250000
249999
249999
250000
250000
249999
249999
249999
249999
250000
250000
249999
250000
250000
249999
250000
249999
250000
250000
249999
249999
250000
249999
2...

result:

ok 250001 lines

Test #223:

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

input:

250000 249999
164929 129762
99487 17496
147199 239100
214921 239199
227568 7045
95743 115923
138750 62391
119145 66800
40616 13901
39164 220321
227260 26073
150172 123
175160 125229
81345 71293
192431 188835
191086 203785
35513 173018
229956 213654
68407 16623
119232 205920
157877 109043
31376 20620...

output:

Gyojun is handsome
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
250000
2...

result:

ok 250001 lines

Test #224:

score: 0
Accepted
time: 86ms
memory: 121428kb

input:

250000 437560
107217 237431
50307 32010
11230 11246
201230 173520
163615 65272
135443 133321
54203 32056
110477 174106
12182 138643
188945 174136
169128 28087
174515 137000
125664 233703
227749 180035
240813 150332
162972 83762
174961 63710
216551 17406
97343 242346
111320 125757
231888 124611
21504...

output:

Gyojun is handsome
125041
125041
125041
125041
125041
125041
125041
125041
125041
125041
125041
125041
125041
125041
125041
125041
125041
125041
125041
250000
125041
125041
125041
125041
125041
250000
125041
125041
125041
125041
125041
250000
125041
125041
125041
125041
249999
125041
249999
125041
2...

result:

ok 437562 lines

Test #225:

score: 0
Accepted
time: 113ms
memory: 138964kb

input:

250000 416662
33152 241927
57145 18947
81089 194351
52956 23890
8464 66465
92699 111643
37140 70315
76416 48129
123382 203044
67953 136972
124968 202926
249495 11904
247678 146573
24670 244826
155125 40281
49935 52125
47393 196557
20874 90699
196468 22472
93044 125750
149121 11389
97780 139165
67593...

output:

Gyojun is handsome
125273
125272
125272
125273
250000
249999
125272
125272
125272
125272
125272
125272
125272
125272
125272
250000
125272
249999
125272
125272
125272
125272
125272
125272
125272
125272
125273
125272
250000
250000
125272
125273
125272
125272
125272
250000
125272
125272
125272
125272
1...

result:

ok 416664 lines

Test #226:

score: 0
Accepted
time: 125ms
memory: 131496kb

input:

250000 374828
67335 52673
236189 102821
215869 13671
40011 118495
69101 179024
83908 93210
71799 54738
48820 125231
128178 87699
43958 199849
169917 40319
218960 124764
225291 105179
20478 123909
31866 58522
10802 218207
242310 229411
51980 133360
14970 81487
33267 204178
163409 90802
211893 156541
...

output:

Gyojun is handsome
107001
107001
107001
107001
107001
107001
107001
107001
107002
107002
107002
107002
107001
107001
107001
107001
107001
107001
107001
107002
107002
107001
107003
107002
107002
107001
107001
107002
107001
107002
107001
107003
107002
107001
107001
107002
107001
107001
250000
107001
1...

result:

ok 374830 lines

Test #227:

score: 0
Accepted
time: 124ms
memory: 128244kb

input:

250000 286831
166850 106244
59571 78859
154583 187753
74807 119970
95040 231861
75720 91258
20219 36234
33308 47013
1869 167437
224513 218222
238819 225530
166492 140870
185619 116551
247853 48461
121782 164484
226159 176823
33191 219107
127600 221507
225389 235914
125504 85061
115578 135476
54030 1...

output:

Gyojun is handsome
39551
39549
39553
39551
39551
39552
39551
39551
39550
39550
39552
39551
39553
39550
39552
250000
39553
39551
39549
39552
39550
39550
39549
39552
39551
39551
39546
39551
39550
250000
39548
39550
39550
39549
39548
39550
39549
39552
39549
39550
39545
39551
39552
39551
39553
39548
395...

result:

ok 286833 lines

Test #228:

score: 0
Accepted
time: 127ms
memory: 130296kb

input:

250000 251286
218936 205295
21720 197935
120147 138769
187245 115132
209336 164413
106620 119977
45404 84329
220154 78776
2855 166485
30765 63809
82597 132007
219916 127748
102789 49722
241048 248009
161144 142735
136998 132640
246379 124271
3836 56898
132098 182114
248164 151281
105880 188602
13123...

output:

Gyojun is handsome
1793
1795
1794
1796
1785
1794
1784
1795
1794
1800
1797
1789
1790
1793
1559
1800
1797
1793
1789
1793
1800
1798
1785
1785
1786
1783
1793
1797
1794
1787
1790
1788
1791
1789
1784
1789
1789
1787
1785
1790
1785
1785
1786
1800
1791
1786
1793
1790
1786
250000
1795
1800
1795
1792
1791
1797...

result:

ok 251288 lines

Test #229:

score: 0
Accepted
time: 134ms
memory: 125380kb

input:

250000 250641
178800 228361
170310 16957
201911 212843
230449 58862
131060 203789
28178 169318
53384 109226
226536 130000
128157 53622
37934 82133
35274 207371
187289 136681
194737 47474
110656 9001
198834 144344
168632 107034
47941 51063
70452 223262
83347 63696
206427 48956
234359 47463
27345 2084...

output:

Gyojun is handsome
1252
1248
1260
1250
1261
1247
1254
1262
1255
1257
1271
1265
1260
1257
1263
1252
1268
1252
1269
1258
1254
1264
1259
1258
1250
1259
1259
1256
1252
1250
1261
1269
1258
1251
1264
1264
1269
1260
1255
1269
1247
1255
1264
1259
1253
1262
1266
1262
1269
1253
1249
1269
1249
1264
1248
1269
1...

result:

ok 250643 lines

Test #230:

score: 0
Accepted
time: 145ms
memory: 125076kb

input:

250000 250320
10079 117796
219659 229286
90811 51607
130493 149875
7486 102104
61297 198200
179480 97893
74751 177520
217600 56795
34616 171782
64117 76717
205016 99839
171992 174128
194056 209458
109623 233617
227681 106837
1069 245023
60879 120756
3041 132580
28494 227263
222629 190723
33902 10610...

output:

Gyojun is handsome
1356
1376
1359
1376
1375
1376
1359
1359
1372
1377
1359
1368
1361
1358
1370
1369
1355
1368
1359
1376
1352
1350
1379
1356
1355
1362
1350
1375
1368
1357
1377
1374
1377
1350
1380
1363
1376
1367
1376
1351
1379
1353
1356
1367
1360
1366
1369
1377
1373
1361
1365
1354
1348
1358
1378
1361
1...

result:

ok 250322 lines

Test #231:

score: 0
Accepted
time: 113ms
memory: 117912kb

input:

250000 250076
246511 853
71259 57115
119115 154252
126213 49624
233147 101704
243149 143244
229416 49418
38145 16761
213500 47762
225333 164298
139123 37085
142225 229413
187671 202555
225976 85918
188799 215765
34981 59347
169404 188882
172229 195822
245830 94986
96803 129705
14574 134267
158323 11...

output:

Gyojun is handsome
5076
5029
5066
5084
5076
5084
5087
5036
5030
5078
5045
5017
5068
5030
5027
5018
5078
5061
5036
5082
5087
5066
5038
5040
5066
5026
5038
5056
5051
5049
5029
5075
5018
5061
5056
5077
5018
5018
5080
5029
5029
5030
5034
5038
5089
5060
5082
5056
5034
5066
5017
5026
5045
5084
5044
5064
5...

result:

ok 250078 lines

Test #232:

score: 0
Accepted
time: 122ms
memory: 123784kb

input:

250000 250042
34173 162042
194112 46356
227571 4285
217407 188423
199369 210590
176528 173385
54497 143395
97104 198530
154370 77370
227473 73435
66417 218615
119691 98041
145681 249892
40220 1506
59994 143224
102835 81860
105417 26525
15019 125964
147601 54559
175734 227625
236150 197495
43997 1384...

output:

Gyojun is handsome
9998
9985
9998
10040
10023
10040
9948
10027
10027
9979
9993
9974
9993
9948
9993
10030
10020
10025
9968
9956
10029
10036
10027
10020
10020
9993
10040
9985
9998
9956
10020
10030
9985
9979
10027
9946
9959
10040
10040
9956
10040
10020
10025
9956
10040
10040
9948
10036
9998
9946
9974
1...

result:

ok 250044 lines

Test #233:

score: 0
Accepted
time: 126ms
memory: 124688kb

input:

250000 250022
205799 228276
74037 24243
125961 150543
160801 106533
94545 71946
85800 222522
143177 220366
166805 228464
52287 57712
96156 17718
101782 249054
146506 114639
157987 84720
146644 165520
88108 176284
90354 229074
129817 54541
197419 7604
79602 135491
82297 87194
43948 140992
144979 9714...

output:

Gyojun is handsome
24940
24958
24950
24945
24958
25019
25019
24912
24920
25019
25012
25012
24912
24912
24940
24912
25012
25013
25019
24958
24950
24945
24945
24945
25013
24940
25019
25019
25019
24958
24958
24950
25013
25013
24945
24945
24950
24870
24940
24945
24950
25012
24945
24940
24912
24920
24958...

result:

ok 250024 lines

Test #234:

score: 0
Accepted
time: 113ms
memory: 138448kb

input:

250000 250014
56355 223943
136094 232078
163800 194379
117704 97641
88204 139728
100793 20100
153518 150298
27635 92677
27718 35984
51641 171761
112408 240576
196990 88389
22363 46295
33919 241412
207775 105668
192341 192192
154338 72049
96560 52406
146333 160066
238053 86997
46738 1193
110781 16368...

output:

Gyojun is handsome
44748
99824
44748
99824
44748
100011
99824
99824
44748
100011
99824
100011
44748
100011
99824
44748
100011
99824
99824
44748
44748
100011
100011
99824
100011
99824
4287
100011
44748
99824
100011
44748
100011
99824
99824
100011
100011
100011
99824
100011
100011
44748
44748
99824
99...

result:

ok 250016 lines

Test #235:

score: 0
Accepted
time: 130ms
memory: 142352kb

input:

250000 250013
184881 198016
240918 240302
185435 79793
229814 32448
161688 113190
104726 12101
2606 137627
40362 130842
220412 155816
212096 147958
119400 66583
39686 171739
197730 208034
67065 93332
222581 12814
26249 215156
187376 130736
178709 18711
3947 107843
152250 213162
16654 89152
17747 207...

output:

Gyojun is handsome
200003
200003
200003
200003
200003
200003
200003
200003
200003
200003
200003
200003
200003
200003
200003
33384
33384
200003
14888
200003
200003
200003
200003
360
200003
33384
33384
200003
200003
14888
200003
200003
200003
200003
200003
200003
200003
200003
33384
200003
200003
2000...

result:

ok 250015 lines

Test #236:

score: 0
Accepted
time: 101ms
memory: 148672kb

input:

250000 250008
63758 229649
133839 225705
133795 63856
215534 52344
28183 164980
122904 248
224901 73240
4550 87121
227488 199101
169462 61160
138997 240317
216740 81632
134925 6777
94552 184025
211095 76336
91828 209949
124217 203558
240066 200881
190002 157682
139336 90480
137989 218555
89814 23402...

output:

Gyojun is handsome
245000
245000
245000
245000
245000
245000
245000
245000
2580
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
245000
2580
245000
245000
24500...

result:

ok 250010 lines

Test #237:

score: 0
Accepted
time: 114ms
memory: 148080kb

input:

250000 250008
224359 81820
133543 91311
208996 103365
227554 28744
227029 158909
65019 43142
22545 32630
4667 25369
126412 233134
12814 82256
28229 180194
54012 132671
31233 84976
52889 183296
129231 129044
128406 44423
39155 136307
126827 193809
192463 199161
103675 191813
139108 16453
157450 23209...

output:

Gyojun is handsome
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
249901
2...

result:

ok 250010 lines

Subtask #5:

score: 0
Skipped

Dependency #2:

0%

Subtask #6:

score: 0
Skipped

Dependency #5:

0%

Subtask #7:

score: 0
Skipped

Dependency #1:

0%