QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#342965#4085. 통신망socpite100 ✓618ms199904kbC++2015.4kb2024-03-01 20:17:062024-03-01 20:17:07

Judging History

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

  • [2024-03-01 20:17:07]
  • 评测
  • 测评结果:100
  • 用时:618ms
  • 内存:199904kb
  • [2024-03-01 20:17:06]
  • 提交

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[::lowerUp[i]]]--] = { ::dep[::lowerUp[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 {
	void run() {
		for(int v = ::N, u; v; v--) if(4 <= ::dep[v]) {
			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) {
		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--) {
			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: 5
Accepted

Test #1:

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

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: 79660kb

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: 73508kb

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: 67232kb

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: 73376kb

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: 69352kb

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: 67364kb

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: 0ms
memory: 67376kb

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: 75768kb

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: 36504kb

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: 36416kb

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: 77360kb

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: 67380kb

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: 2ms
memory: 67576kb

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: 69680kb

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: 69444kb

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: 77824kb

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: 77544kb

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: 0
Accepted
time: 0ms
memory: 73392kb

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
106
197
196
197
106
197
197
109
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
105
197
196
197
197
197
196
1...

result:

ok 207 lines

Test #20:

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

input:

196 208
146 57
66 173
20 161
195 92
163 112
47 42
146 50
22 131
51 158
46 176
23 110
38 123
143 76
8 94
42 146
180 29
178 151
42 66
3 144
146 136
119 73
123 115
111 97
83 190
85 91
135 71
39 167
68 30
184 93
93 178
38 58
138 30
178 40
31 151
137 100
4 162
159 60
85 161
63 14
90 18
80 133
48 128
42 8...

output:

Gyojun is handsome
89
196
89
196
196
196
90
196
195
195
196
196
92
195
89
195
93
93
196
195
196
195
195
195
90
196
196
196
195
196
196
196
195
93
91
195
91
89
196
90
195
91
90
90
195
195
93
195
90
195
91
89
195
196
196
91
195
93
93
196
196
89
91
91
195
195
90
89
196
195
196
91
195
89
91
196
196
195
...

result:

ok 210 lines

Test #21:

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

input:

197 247
45 5
144 56
120 159
63 30
31 100
143 7
19 112
29 44
27 173
32 19
83 38
20 65
37 57
180 59
165 99
29 18
192 112
57 20
47 138
140 80
168 157
58 92
41 44
73 121
179 12
136 123
108 161
96 69
158 9
36 68
185 125
195 94
49 76
7 155
197 30
1 33
154 119
114 192
125 150
116 179
155 142
1 100
143 136
...

output:

Gyojun is handsome
196
53
54
50
50
51
51
52
196
50
196
50
196
53
50
196
50
51
197
52
51
50
196
51
54
50
196
51
50
51
196
50
53
52
50
51
52
51
50
196
52
50
50
50
50
53
53
51
50
50
53
50
196
51
54
197
50
196
50
197
54
51
50
197
50
51
50
50
51
52
51
50
51
196
196
51
196
196
51
54
50
196
50
196
51
50
51...

result:

ok 249 lines

Test #22:

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

input:

190 387
90 2
97 67
12 86
179 70
174 131
78 33
23 128
97 154
114 149
70 168
20 65
19 126
9 155
60 33
190 29
138 45
61 160
96 57
52 39
162 88
126 178
137 37
117 55
103 141
184 137
145 182
144 31
85 46
41 121
96 30
183 79
4 60
22 94
12 164
66 53
124 125
20 138
189 15
31 40
139 51
144 102
83 34
38 122
9...

output:

Gyojun is handsome
14
14
15
14
14
14
189
14
15
14
14
14
14
14
14
14
14
14
15
14
14
14
14
15
14
15
14
189
15
14
15
14
14
14
14
14
14
15
14
14
15
14
16
14
14
14
14
14
14
14
15
14
14
14
14
15
14
14
14
14
14
14
14
14
14
14
14
14
15
14
14
15
189
14
14
15
14
14
15
14
14
14
14
14
15
14
14
14
15
14
14
15
14...

result:

ok 389 lines

Test #23:

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

input:

197 441
125 110
4 148
78 140
17 104
125 28
75 10
179 102
155 61
142 184
58 190
191 58
94 169
104 139
41 84
23 91
146 43
71 1
142 113
37 120
184 42
8 158
6 129
179 190
80 101
71 13
22 125
163 34
170 15
167 179
162 28
121 170
55 113
102 152
20 162
88 149
16 127
85 174
189 29
98 34
168 28
131 8
121 149...

output:

Gyojun is handsome
7
7
7
7
7
7
7
7
7
7
7
7
7
7
8
8
7
7
7
7
8
7
7
7
7
7
9
7
7
7
7
7
7
7
7
8
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
196
7
7
7
8
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
8
7
7
7
7
7
7
7
7
8
7
7
7
7
7
7
7
7
7
7
7
7
8
8
7
7
7
8
7
7
7
196
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
8...

result:

ok 443 lines

Test #24:

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

input:

197 499
47 180
58 68
9 107
98 73
178 135
138 82
43 105
114 73
41 22
165 74
161 140
195 24
189 134
108 46
66 67
78 54
100 186
132 30
115 140
25 158
11 114
60 98
195 18
50 53
183 74
90 160
72 55
135 87
53 5
12 5
21 153
51 64
119 13
145 195
31 172
110 137
134 176
58 186
179 113
148 29
116 1
153 192
117...

output:

Gyojun is handsome
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
196
2
2
3
2
2
2
2
2
2
2
2
2
2
2
2
2
3
2
2
2
2
2
2
2
2
2
2
2
3
2
2
2
2
2
3
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
3
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

result:

ok 501 lines

Test #25:

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

input:

200 210
186 151
13 69
186 115
192 32
93 179
67 109
36 129
162 151
142 181
99 31
60 89
179 100
44 2
27 9
91 144
46 166
48 149
125 148
75 152
43 98
124 162
98 33
142 144
138 137
3 5
197 29
18 76
21 126
50 18
94 135
91 172
98 90
70 74
126 110
190 197
14 80
23 51
173 53
87 158
95 73
123 58
55 186
88 9
1...

output:

Gyojun is handsome
86
84
85
200
199
199
199
85
83
199
199
200
86
200
83
199
199
199
84
200
83
199
83
199
86
200
199
85
85
86
84
199
200
85
200
84
199
200
199
200
86
199
200
84
86
200
199
199
199
199
83
200
199
200
85
199
199
200
85
200
199
83
85
86
86
200
199
199
84
199
87
199
83
199
200
85
83
85
19...

result:

ok 212 lines

Test #26:

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

input:

200 350
103 26
89 63
166 134
172 127
55 1
96 33
24 105
184 117
12 92
97 171
23 69
14 198
24 60
30 48
60 63
99 172
146 132
21 148
100 177
77 167
4 99
59 8
103 200
174 105
102 108
94 85
156 28
170 190
104 167
5 196
150 193
81 78
178 184
13 168
190 189
142 192
13 71
138 25
160 38
74 70
116 38
57 187
33...

output:

Gyojun is handsome
18
18
19
18
18
18
18
18
19
18
19
18
18
18
18
18
18
19
18
18
19
18
18
18
18
18
18
18
18
18
18
18
18
19
18
18
18
18
18
19
19
18
18
18
18
19
18
18
18
18
18
19
18
18
19
18
18
18
18
19
199
18
18
18
18
18
18
18
18
18
18
18
18
19
19
18
18
18
18
18
19
18
18
19
19
19
18
18
19
18
18
18
19
1...

result:

ok 352 lines

Test #27:

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

input:

200 500
29 45
62 121
67 106
69 101
17 197
129 57
113 74
27 102
141 40
96 49
172 134
40 125
50 167
58 153
144 185
54 105
165 24
117 14
88 143
99 3
45 158
124 189
69 80
148 92
63 111
16 61
127 166
170 73
38 168
174 165
80 10
122 133
133 57
29 126
140 66
177 104
128 30
188 153
68 97
110 144
197 6
46 19...

output:

Gyojun is handsome
6
6
6
6
6
6
6
6
6
199
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
7
6
6
6
6
199
7
6
6
6
6
6
6
6
6
6
6
7
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
7
6
6
6
6
6
6
6
6
6
6
7
6
6
6
6
6
199
6
6
6
7
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
7
6
6
6
6
6
6
6
6
6
6
6
6
7
6
6...

result:

ok 502 lines

Test #28:

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

input:

200 210
186 58
21 69
153 115
192 151
93 155
77 109
36 30
180 151
43 181
99 188
60 66
179 8
44 177
85 9
91 142
68 166
61 149
125 120
75 152
67 98
178 162
109 33
142 27
138 154
63 5
163 29
40 76
21 110
50 18
94 102
70 172
33 90
31 74
91 110
182 197
65 80
23 16
141 53
87 34
32 73
123 108
55 115
88 4
35...

output:

Gyojun is handsome
20
54
14
54
33
37
37
54
54
37
200
23
23
54
54
25
17
33
34
22
54
37
54
33
23
19
20
54
13
13
54
37
18
54
54
33
22
19
20
54
25
22
22
16
17
54
33
37
37
25
54
54
37
23
22
16
37
20
13
19
22
54
54
54
37
54
200
33
13
33
18
25
18
199
23
54
33
54
200
16
23
23
22
19
17
54
23
18
54
33
33
22
2...

result:

ok 212 lines

Test #29:

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

input:

200 350
81 26
89 71
187 134
172 127
55 1
96 33
60 105
184 117
12 11
18 171
37 69
14 119
24 60
132 48
20 63
27 172
146 132
7 148
100 177
162 167
4 99
53 8
26 200
174 105
102 29
94 85
156 28
170 190
104 23
116 196
150 193
81 176
178 184
13 168
190 86
142 166
13 103
138 182
160 147
74 146
116 38
57 93
...

output:

Gyojun is handsome
0
1
1
0
0
0
1
0
0
0
0
0
1
0
1
2
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
1
2
0
0
0
1
3
0
1
0
0
0
0
0
0
0
2
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0
2
0
0
1
0
0
0
0
1
0
0
0
1
0
1
1
0
0
1
1
0
0
0
0
0
0
0
1
0
0
0
0
1
0
2
0
0
0
0
0
1
0
2
2
0...

result:

ok 352 lines

Test #30:

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

input:

200 500
29 45
62 121
67 106
69 5
17 197
129 42
113 74
27 102
141 40
86 49
172 134
40 123
50 167
58 153
144 185
54 105
165 24
117 41
63 143
99 3
45 158
124 192
69 80
199 92
63 111
16 61
127 166
170 73
38 168
174 165
80 132
122 133
133 57
19 126
140 114
50 104
195 30
188 52
68 97
110 144
197 128
46 19...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 502 lines

Test #31:

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

input:

200 398
42 118
161 5
19 64
103 1
5 117
76 29
34 9
137 5
54 107
81 139
65 178
57 195
19 103
86 110
16 50
154 24
84 138
21 109
78 27
189 166
195 113
28 84
180 107
185 158
185 87
138 65
129 58
197 160
175 13
194 88
140 30
51 193
110 160
23 28
47 87
93 63
174 99
194 89
147 81
61 125
90 92
12 23
185 179
...

output:

Gyojun is handsome
1
2
1
2
1
2
2
1
1
1
1
1
1
1
2
1
2
2
1
1
1
2
1
1
1
1
1
2
2
1
1
1
1
1
1
1
1
2
2
2
1
1
1
2
1
2
1
1
2
1
1
1
2
1
1
2
1
1
2
1
2
1
2
2
1
1
2
2
1
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
1
1
1
1
2
1
2
1
2
1
2
2
2
1
2
2
1
2
1
1
1
1
2
2
1
1
1
2
2
2
2
1
1
1
1
2
1
2
2
1
2
1
1
1
2
1
1
1
1
1
1
1
1
1
1...

result:

ok 400 lines

Test #32:

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

input:

200 335
169 10
59 129
176 84
196 116
147 50
4 139
188 18
55 185
79 18
119 198
104 85
27 176
186 88
144 1
122 154
155 114
170 150
162 133
145 158
179 85
125 52
69 47
60 165
153 158
23 100
122 124
156 54
60 170
136 88
58 68
1 126
157 122
108 160
181 15
197 47
91 139
32 140
193 183
32 160
60 185
43 9
7...

output:

Gyojun is handsome
2
1
2
1
1
1
1
3
2
2
3
1
2
1
1
3
1
2
1
3
2
3
1
3
2
1
1
1
1
2
1
1
2
2
3
1
1
1
1
1
2
1
2
1
1
1
1
1
2
2
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
2
1
1
1
1
1
1
1
1
1
1
2
1
2
1
2
1
2
2
3
2
1
2
3
2
1
3
3
2
1
1
3
1
1
1
1
2
1
2
1
1
2
1
1
1
1
3
1
1
3
3
2
1
1
2
1
1
1
2
1
3
2
1
1
2
1
2
3
1
3
3
3
3
2
1
2...

result:

ok 337 lines

Test #33:

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

input:

200 295
142 57
79 73
70 49
24 159
140 199
88 65
17 2
52 135
24 165
6 37
48 116
114 13
182 159
148 104
74 12
181 186
174 123
8 173
82 190
150 44
92 149
51 135
2 29
38 76
23 104
190 35
156 90
107 133
136 17
108 117
123 3
124 55
123 193
58 84
166 15
106 134
56 67
179 33
169 22
90 24
104 77
159 86
157 1...

output:

Gyojun is handsome
3
2
2
1
2
3
1
1
1
2
1
2
1
3
1
1
3
2
2
4
1
1
2
4
1
2
1
1
2
3
2
3
1
2
2
3
3
4
4
1
1
1
2
1
2
3
2
1
2
1
4
1
2
1
1
2
4
2
2
2
3
2
1
3
1
2
1
2
2
1
3
4
1
1
1
4
4
1
3
3
1
1
2
1
3
4
3
2
3
2
3
2
2
1
4
3
3
3
1
1
1
1
2
3
4
1
3
2
1
1
2
2
4
1
3
2
1
2
3
1
3
2
1
2
1
4
3
3
1
3
1
1
4
1
4
1
2
2
3
1
1...

result:

ok 297 lines

Test #34:

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

input:

200 238
182 123
30 88
58 10
150 134
95 129
73 196
140 81
23 55
17 63
128 174
187 112
159 120
102 118
163 179
82 61
69 195
170 109
120 189
108 162
29 166
140 108
19 35
36 93
58 79
132 146
172 16
99 37
87 134
121 28
149 133
84 68
48 161
83 3
144 122
188 160
52 9
121 167
6 34
137 170
198 171
12 50
41 1...

output:

Gyojun is handsome
1
2
4
0
2
0
8
0
1
2
10
0
5
10
10
4
3
0
3
3
3
0
3
2
2
3
0
3
0
7
2
5
6
10
7
0
1
0
3
0
2
1
1
2
4
1
8
1
0
5
0
5
3
8
2
5
2
1
0
4
8
2
0
10
7
0
0
4
3
0
4
0
1
4
5
4
5
10
8
0
1
1
2
3
2
4
10
10
0
4
5
0
1
4
3
4
0
2
0
0
2
2
8
10
3
0
1
2
10
2
5
3
1
2
0
5
7
1
1
2
1
4
4
3
3
0
10
5
0
0
1
10
10
2
...

result:

ok 240 lines

Test #35:

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

input:

200 209
110 80
182 12
87 122
4 127
144 156
107 82
66 198
148 35
33 91
176 196
90 6
138 58
62 39
109 188
168 135
77 32
97 105
13 194
167 86
94 175
96 117
76 180
75 61
62 122
163 123
197 47
34 116
101 140
157 20
66 200
101 65
60 171
2 56
52 145
150 56
174 125
23 61
161 104
166 183
164 127
104 59
132 1...

output:

Gyojun is handsome
17
4
7
6
29
27
29
6
2
17
4
6
7
6
29
4
11
11
6
7
6
21
6
7
21
4
29
27
17
29
27
29
11
4
3
6
6
11
17
6
11
21
6
29
6
4
29
2
4
27
2
11
17
4
27
6
29
29
8
6
2
29
4
1
21
3
27
6
27
6
27
6
4
21
29
17
29
17
21
29
27
8
3
4
29
4
21
17
6
6
7
11
6
4
3
8
2
3
6
29
4
27
6
17
27
11
6
8
2
17
27
8
17
1...

result:

ok 211 lines

Test #36:

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

input:

200 210
131 134
67 173
187 92
128 43
166 97
152 37
112 110
153 92
20 25
87 142
42 8
160 137
144 131
167 53
108 96
94 125
180 1
30 93
200 12
118 47
40 41
11 66
39 51
126 98
181 179
127 100
116 23
55 36
194 110
91 35
144 99
83 33
182 111
181 111
60 115
103 145
13 63
161 141
134 63
19 14
56 18
40 77
13...

output:

Gyojun is handsome
1
6
11
7
14
12
12
11
14
23
1
8
1
24
12
8
24
23
11
12
10
7
4
24
8
14
23
10
12
12
1
8
8
8
11
3
8
12
1
4
24
10
14
23
10
8
24
4
4
6
12
24
4
1
6
5
8
8
23
11
2
23
23
8
12
6
3
12
8
24
8
6
23
4
0
24
14
24
23
6
12
6
14
23
4
7
2
8
3
12
8
4
10
24
2
6
23
8
7
23
23
1
7
8
6
4
5
11
6
23
23
11
24...

result:

ok 212 lines

Test #37:

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

input:

200 204
86 23
170 30
67 20
186 69
88 159
61 38
151 92
24 175
13 194
18 77
195 11
43 18
173 184
64 89
187 11
108 22
65 21
114 71
76 46
2 126
107 60
39 127
80 158
12 131
200 197
32 53
4 153
24 117
173 162
59 198
187 88
75 8
119 41
103 104
52 178
164 145
106 98
200 19
66 181
29 80
199 125
46 175
172 54...

output:

Gyojun is handsome
48
52
52
48
17
17
18
26
10
48
17
48
52
52
17
26
15
26
26
48
52
26
18
15
48
17
52
26
52
52
17
48
48
26
5
18
52
48
26
18
48
26
52
48
26
26
48
48
52
5
52
3
15
5
18
48
48
48
18
15
48
26
52
52
3
10
48
18
18
48
26
48
52
15
48
26
2
48
52
52
52
52
52
2
48
18
48
15
48
17
48
17
10
48
15
18
...

result:

ok 206 lines

Test #38:

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

input:

190 194
38 109
3 38
3 138
138 109
137 8
109 147
8 76
167 76
70 167
93 70
130 93
36 130
36 99
168 99
87 168
87 147
37 77
38 61
37 30
30 102
102 50
26 50
26 187
187 11
85 11
85 141
98 141
61 98
45 46
3 52
156 46
156 114
108 114
83 108
82 83
175 82
175 106
7 106
57 7
57 52
104 122
138 1
104 59
59 125
3...

output:

Gyojun is handsome
1
1
1
1
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
11
12
11
11
11
11
11
...

result:

ok 196 lines

Test #39:

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

input:

200 204
147 70
23 70
23 173
173 147
199 192
147 9
199 31
31 179
179 191
191 137
137 101
135 101
175 135
175 77
165 77
165 9
30 198
90 70
140 30
164 140
164 172
156 172
156 79
51 79
51 55
55 73
73 136
136 90
26 125
23 33
131 26
139 131
139 143
44 143
44 10
10 42
42 89
89 187
187 96
33 96
7 142
92 173...

output:

Gyojun is handsome
1
1
1
1
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
11
12
11
11
11
11
11
...

result:

ok 206 lines

Test #40:

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

input:

200 500
67 140
196 67
196 36
25 36
25 44
44 184
184 148
183 148
79 183
32 79
39 32
39 172
180 172
180 192
192 60
60 15
15 112
20 112
129 20
179 129
179 29
135 29
135 164
164 166
166 176
4 176
4 131
41 131
104 41
104 5
181 5
8 181
8 78
78 3
3 90
96 90
96 64
70 64
1 70
1 191
17 191
153 17
7 153
7 68
1...

output:

Gyojun is handsome
1
1
0
0
0
0
0
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 502 lines

Test #41:

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

input:

2 2
2 1
2 1

output:

Gyojun is handsome
0
0
This problem is awesome!

result:

ok 4 lines

Test #42:

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

input:

2 1
2 1

output:

Gyojun is handsome
0
This problem is awesome!

result:

ok 3 lines

Test #43:

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

input:

3 2
1 3
2 1

output:

Gyojun is handsome
2
2
This problem is awesome!

result:

ok 4 lines

Test #44:

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

input:

3 2
2 3
1 2

output:

Gyojun is handsome
2
2
This problem is awesome!

result:

ok 4 lines

Test #45:

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

input:

3 2
3 2
1 3

output:

Gyojun is handsome
2
2
This problem is awesome!

result:

ok 4 lines

Test #46:

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

input:

3 3
1 2
3 1
3 2

output:

Gyojun is handsome
1
1
1
This problem is awesome!

result:

ok 5 lines

Test #47:

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

input:

2 500
1 2
2 1
2 1
1 2
2 1
1 2
1 2
2 1
2 1
2 1
1 2
1 2
2 1
2 1
2 1
2 1
2 1
2 1
1 2
2 1
2 1
1 2
2 1
2 1
1 2
2 1
1 2
1 2
2 1
2 1
2 1
1 2
1 2
1 2
1 2
2 1
2 1
2 1
1 2
1 2
2 1
1 2
2 1
2 1
2 1
2 1
1 2
1 2
1 2
1 2
2 1
1 2
1 2
1 2
1 2
1 2
2 1
1 2
1 2
2 1
2 1
2 1
2 1
2 1
1 2
1 2
1 2
1 2
2 1
2 1
2 1
1 2
1 2
1 ...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 502 lines

Test #48:

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

input:

3 500
1 2
2 1
1 2
1 2
2 1
1 2
2 1
1 2
2 1
2 1
2 1
1 2
2 1
1 2
2 1
2 1
2 1
1 2
1 2
2 1
2 1
1 2
2 1
2 1
1 2
1 2
2 1
1 2
1 2
2 1
1 2
2 1
1 2
1 2
2 1
2 1
1 2
2 1
1 2
1 2
2 1
1 2
2 1
2 1
1 2
1 2
1 2
2 1
2 1
2 1
2 1
2 1
1 2
2 1
1 2
2 1
1 2
2 1
2 1
1 2
2 1
1 2
1 2
2 1
1 2
1 2
2 1
2 1
2 1
1 2
1 2
1 2
1 2
1 ...

output:

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

result:

ok 502 lines

Test #49:

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

input:

3 500
1 2
1 2
2 1
2 1
2 1
2 1
1 2
1 2
2 1
2 1
1 2
2 1
1 2
1 2
1 2
2 1
2 1
2 1
2 1
2 1
1 2
2 1
1 2
1 2
1 2
1 2
1 2
2 1
2 1
1 2
2 1
1 2
1 2
1 2
1 2
2 1
2 1
2 1
2 1
2 1
1 2
1 2
2 1
1 2
1 2
2 1
2 1
1 2
2 1
2 1
1 2
1 2
1 2
1 2
2 1
1 2
2 1
1 2
1 3
1 2
1 2
1 2
1 2
2 1
1 2
1 2
1 2
1 2
2 1
1 2
1 2
2 1
2 1
1 ...

output:

Gyojun is handsome
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1...

result:

ok 502 lines

Test #50:

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

input:

3 500
1 3
1 3
1 2
2 1
1 3
2 1
3 1
2 1
2 1
3 1
1 3
1 3
1 3
3 1
3 1
3 1
3 1
2 1
3 1
2 1
3 1
1 3
2 1
1 2
2 1
2 1
1 2
2 1
3 1
2 1
3 1
1 3
1 2
1 2
1 3
3 1
1 3
2 1
1 2
3 1
1 3
1 2
3 1
3 1
2 1
2 1
3 1
2 1
1 3
2 1
3 1
1 3
1 3
2 1
1 3
1 2
1 3
2 1
3 1
2 1
1 2
1 3
3 1
2 1
2 1
1 2
1 2
3 1
3 1
3 1
3 1
1 2
1 2
2 ...

output:

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

result:

ok 502 lines

Test #51:

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

input:

3 500
2 1
1 2
2 1
1 2
1 2
1 2
2 1
1 2
2 1
1 2
1 2
2 1
1 2
2 1
2 1
2 1
1 2
1 2
1 2
1 2
2 1
2 1
1 2
1 2
2 1
2 1
2 1
1 2
2 1
2 1
1 2
1 2
2 1
2 1
1 2
1 2
2 1
2 1
2 1
2 1
2 1
1 2
2 1
2 1
2 1
2 1
1 2
1 2
2 1
1 2
1 2
2 1
1 2
1 2
2 1
2 1
2 1
1 2
1 2
2 1
2 1
1 2
1 2
1 2
1 2
2 1
1 2
1 2
1 2
2 1
2 1
1 2
2 1
2 ...

output:

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

result:

ok 502 lines

Test #52:

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

input:

3 500
2 1
1 2
2 1
1 2
1 2
1 2
1 2
1 2
1 2
2 1
1 2
1 2
2 1
1 2
1 2
1 2
2 1
2 1
1 2
2 1
1 2
1 2
2 1
1 2
2 1
2 1
1 2
1 2
1 2
1 2
1 2
1 2
2 1
1 2
1 2
2 1
2 1
2 1
1 2
2 1
2 1
2 1
2 1
1 2
2 1
1 2
1 2
2 1
2 1
2 1
2 1
2 1
2 1
1 2
2 1
1 2
2 1
2 1
1 2
1 2
2 1
1 2
1 2
2 1
2 1
1 2
1 2
2 1
2 1
1 2
1 2
2 1
2 1
2 ...

output:

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

result:

ok 502 lines

Test #53:

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

input:

3 500
1 3
1 2
3 1
1 3
1 2
1 2
3 1
3 1
1 2
1 3
1 3
2 1
2 1
1 2
3 1
1 2
2 1
2 1
1 3
2 1
3 1
1 3
1 2
2 1
1 2
1 3
1 2
1 2
2 1
2 1
1 3
1 2
2 1
2 1
1 3
2 1
2 1
3 1
3 1
1 2
1 2
3 1
3 1
2 1
1 2
1 2
1 3
1 3
3 1
3 1
2 1
2 1
3 1
2 1
1 3
1 3
1 3
1 2
2 1
1 3
3 1
1 2
3 1
2 1
1 3
2 1
1 3
1 3
2 1
3 1
1 2
1 2
1 2
1 ...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 502 lines

Test #54:

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

input:

3 500
1 2
2 1
1 2
2 1
2 1
2 1
2 1
1 2
1 2
1 2
2 1
2 1
2 1
2 1
2 1
2 1
1 2
2 1
1 2
1 2
1 2
2 1
2 1
2 1
2 1
2 1
1 2
2 1
2 1
2 1
1 2
2 1
2 1
2 1
1 2
1 2
2 1
2 1
2 1
1 2
1 2
1 2
1 2
1 2
1 2
1 2
2 1
2 1
2 1
2 1
2 1
2 1
1 2
2 1
2 1
1 2
2 1
1 2
2 1
1 2
1 2
2 1
1 2
1 2
1 2
1 2
1 2
1 2
1 2
2 1
2 1
1 2
2 1
1 ...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 502 lines

Test #55:

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

input:

3 500
2 1
2 1
2 1
2 1
2 1
2 1
2 1
1 2
2 1
2 1
1 2
1 2
2 1
1 2
2 1
1 2
1 2
1 2
1 2
2 1
2 1
2 1
1 2
1 2
2 1
1 2
1 2
1 2
2 1
2 1
1 2
1 2
1 2
1 2
2 1
1 2
1 2
1 2
1 2
2 1
1 2
1 2
1 2
1 2
2 1
2 1
2 1
2 1
2 1
1 2
1 2
2 1
2 1
1 2
1 2
1 2
2 1
1 2
1 2
2 1
1 2
2 1
2 1
2 1
1 2
1 2
2 1
2 1
2 1
1 2
1 2
1 2
1 2
2 ...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 502 lines

Test #56:

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

input:

3 500
1 3
2 1
1 2
2 1
3 1
3 1
1 2
3 1
2 1
2 1
3 1
2 1
1 3
2 1
2 1
1 3
1 3
1 3
1 2
3 1
2 1
1 3
2 1
1 2
1 2
1 2
3 1
3 1
1 3
3 1
3 1
2 1
1 2
3 1
1 3
1 3
2 1
1 2
2 1
1 2
1 3
1 2
1 3
1 2
1 3
1 2
3 1
3 1
3 1
1 2
1 2
1 3
3 1
1 3
1 3
1 2
2 1
1 2
1 3
2 1
1 2
3 1
2 1
2 1
2 1
1 3
1 3
1 2
3 1
1 2
1 2
1 2
1 2
3 ...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 502 lines

Test #57:

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

input:

3 500
2 1
2 1
1 2
2 1
2 1
2 1
1 2
2 1
2 1
1 2
2 1
2 1
1 2
2 1
2 1
2 1
2 1
2 1
1 2
1 2
1 2
2 1
1 2
2 1
1 2
1 2
2 1
1 2
1 2
1 2
2 1
2 1
2 1
2 1
1 2
2 1
1 2
1 2
2 1
1 2
1 2
1 2
2 1
2 1
2 1
1 2
1 2
1 2
2 3
1 2
1 2
1 2
1 2
2 1
1 2
2 1
1 2
1 2
1 2
1 2
2 1
1 2
1 2
1 2
1 2
2 1
2 1
2 1
1 2
1 2
1 2
2 1
1 2
2 ...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 502 lines

Test #58:

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

input:

3 500
2 1
1 2
1 2
1 2
2 1
2 1
2 1
1 2
2 1
1 2
2 1
2 1
2 1
2 1
1 2
1 2
2 1
1 2
1 2
1 2
1 2
1 2
2 1
1 2
2 1
1 2
1 2
1 2
2 1
2 1
1 2
1 2
1 2
2 1
1 2
1 2
1 2
2 1
3 1
2 1
2 1
2 1
2 1
2 1
1 2
2 1
1 2
2 1
1 2
1 2
1 2
2 1
1 2
2 1
1 2
1 2
1 2
1 2
2 1
2 1
1 2
1 2
1 2
2 1
1 2
1 2
2 1
1 2
1 2
1 2
1 2
2 1
3 2
1 ...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 502 lines

Test #59:

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

input:

3 500
1 2
2 1
1 2
2 1
2 1
2 1
2 1
1 2
2 1
2 1
2 1
1 2
1 2
1 2
1 2
1 2
1 2
2 1
1 2
2 1
2 1
1 2
2 1
2 1
1 2
1 2
2 1
1 2
2 1
1 2
1 2
2 1
1 2
1 2
1 2
2 1
1 2
1 2
2 1
1 2
1 2
2 1
1 2
2 1
1 2
1 2
2 1
2 1
2 1
2 1
2 1
2 1
1 2
2 1
2 1
2 1
1 2
1 2
2 1
1 2
2 1
1 2
2 1
1 2
2 1
1 2
1 2
2 1
1 2
2 1
2 1
1 2
2 1
2 ...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 502 lines

Test #60:

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

input:

3 500
1 3
1 2
1 3
1 3
3 1
2 1
3 1
3 1
1 3
1 3
3 1
1 2
1 2
1 2
1 2
2 1
1 2
3 1
1 2
3 1
2 1
2 1
2 1
2 1
2 1
2 1
1 2
2 1
2 1
3 1
1 3
1 3
1 2
2 1
1 2
1 2
3 1
1 2
2 1
3 1
1 3
1 3
2 1
3 1
3 1
2 1
1 2
2 1
2 1
1 3
2 1
1 2
3 1
2 1
3 1
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 3
1 2
1 2
2 1
2 1
1 3
3 1
1 3
3 1
1 2
1 2
1 ...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 502 lines

Test #61:

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

input:

3 500
3 1
3 1
1 2
2 1
3 1
2 1
1 2
3 1
1 2
1 2
1 2
1 2
1 2
1 3
3 1
1 2
1 2
2 1
3 1
1 3
1 3
1 2
3 1
1 3
2 1
2 1
1 2
2 1
2 1
1 2
1 2
3 1
3 1
2 1
1 2
2 1
1 3
1 3
2 1
1 3
3 1
1 3
3 1
3 1
2 1
2 1
3 1
1 2
1 3
1 3
1 3
2 1
1 3
3 1
1 3
1 3
1 3
1 2
1 3
3 1
2 1
1 2
1 2
3 1
2 1
2 1
2 1
2 1
1 2
2 1
2 3
1 2
1 2
1 ...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 502 lines

Test #62:

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

input:

3 500
3 1
1 2
1 2
1 3
2 1
2 1
2 1
3 1
1 3
3 1
2 1
2 1
2 1
3 1
2 1
3 1
1 2
1 2
1 2
1 3
1 3
1 3
1 3
1 2
1 2
3 1
2 1
3 1
3 1
2 1
3 1
2 1
2 1
1 2
1 2
1 3
1 3
3 1
1 3
3 1
2 1
1 3
1 3
1 2
3 1
3 1
1 2
3 1
1 2
1 3
3 1
3 1
3 1
2 1
1 3
2 1
2 1
1 3
2 1
1 2
2 1
1 3
3 1
2 1
3 1
1 3
1 3
1 3
1 3
3 1
2 1
1 3
3 1
1 ...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 502 lines

Test #63:

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

input:

3 500
1 2
3 1
2 3
1 3
3 1
3 1
3 1
2 3
2 1
3 1
1 3
3 1
1 3
3 2
2 3
2 3
1 3
3 2
1 3
3 1
1 3
1 3
1 2
3 1
1 2
1 2
2 1
2 1
3 1
3 1
1 3
2 3
1 3
1 2
1 3
2 3
1 2
3 2
3 2
3 2
2 3
2 1
1 2
2 1
3 1
1 3
3 2
3 1
1 2
2 1
2 3
3 1
3 2
1 2
2 1
2 1
2 1
3 1
1 3
3 1
1 3
3 1
1 3
2 3
3 2
2 1
2 3
3 2
2 1
2 3
1 2
3 2
1 3
3 ...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 502 lines

Test #64:

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

input:

5 5
1 5
5 2
2 3
2 4
2 5

output:

Gyojun is handsome
4
2
4
4
2
This problem is awesome!

result:

ok 7 lines

Test #65:

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

input:

9 13
3 5
3 7
9 8
9 1
6 4
1 4
9 8
4 9
6 5
7 8
1 8
1 6
1 2

output:

Gyojun is handsome
4
4
1
1
1
1
1
1
4
4
1
1
8
This problem is awesome!

result:

ok 15 lines

Test #66:

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

input:

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

output:

Gyojun is handsome
1
1
1
1
1
1
1
22
2
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
2
1
1
1
1
1
1
1
1
1
1
1
This problem is awesome!

result:

ok 52 lines

Subtask #2:

score: 11
Accepted

Dependency #1:

100%
Accepted

Test #67:

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

input:

1000 1000
195 461
791 137
418 324
583 412
286 368
637 417
469 160
733 161
671 146
903 338
587 247
823 380
473 888
793 939
511 121
515 839
85 934
124 189
921 686
79 617
616 823
191 305
789 305
321 421
6 148
84 672
278 824
162 843
716 469
13 539
524 830
738 978
535 648
408 178
325 246
446 869
295 63
6...

output:

Gyojun is handsome
1000
999
1000
1000
999
999
1000
999
1000
999
1000
1000
1000
999
1000
1000
999
999
1000
999
1000
999
1000
1000
1000
999
999
1000
1000
999
1000
999
999
1000
1000
1000
999
1000
999
1000
1000
1000
999
999
1000
999
999
999
1000
1000
1000
999
999
999
1000
999
999
999
1000
1000
999
999
9...

result:

ok 1002 lines

Test #68:

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

input:

1000 1000
195 248
991 137
418 188
583 473
286 833
637 658
924 160
209 161
829 146
5 338
587 99
823 872
473 474
793 747
841 121
515 890
131 934
124 378
300 686
79 105
616 648
191 71
786 305
294 421
6 771
84 107
278 273
344 843
713 469
31 539
524 618
738 361
535 601
740 178
325 63
446 617
295 896
85 9...

output:

Gyojun is handsome
996
996
996
996
1000
996
996
1000
1000
996
996
996
996
1000
996
996
1000
996
996
996
996
996
996
1000
996
1000
996
1000
996
996
996
996
996
996
996
996
1000
996
996
1000
996
1000
1000
996
1000
1000
999
996
996
996
1000
1000
996
1000
996
996
1000
1000
996
996
1000
1000
996
996
996
...

result:

ok 1002 lines

Test #69:

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

input:

1000 1000
169 14
593 919
538 54
852 580
753 541
32 8
73 562
336 962
233 952
150 460
332 235
298 840
662 549
561 141
412 701
813 898
8 380
219 553
356 141
87 670
268 487
676 159
808 366
278 289
856 357
283 345
90 269
64 163
660 235
325 877
663 465
752 69
77 17
431 969
55 477
24 226
745 416
978 604
54...

output:

Gyojun is handsome
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
998
9...

result:

ok 1002 lines

Test #70:

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

input:

1000 1000
634 383
228 943
741 131
797 475
153 27
178 16
682 342
644 810
578 983
31 219
704 907
936 499
730 221
803 489
946 758
489 902
794 600
6 73
849 132
730 219
433 964
860 301
357 167
445 945
36 241
214 558
162 866
663 58
812 926
926 273
671 839
245 354
713 150
993 242
670 452
487 855
834 895
19...

output:

Gyojun is handsome
999
1000
999
1000
1000
1000
1000
999
1000
1000
1000
1000
1000
1000
999
999
1000
999
1000
1000
999
1000
1000
999
999
999
1000
1000
999
1000
999
1000
1000
1000
999
999
999
999
999
1000
999
1000
1000
999
1000
999
1000
1000
1000
999
999
999
1000
1000
999
1000
1000
999
999
999
1000
999...

result:

ok 1002 lines

Test #71:

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

input:

1000 1000
200 658
227 451
114 495
529 908
707 474
290 412
532 514
355 333
244 520
805 963
335 765
731 601
133 768
244 550
848 746
74 827
337 885
183 647
487 298
135 529
459 697
10 677
744 172
842 801
140 505
997 445
536 408
174 735
193 382
636 784
426 899
408 887
503 919
485 354
9 140
748 598
262 96...

output:

Gyojun is handsome
1000
999
999
1000
999
999
999
999
1000
999
1000
999
1000
999
1000
1000
999
1000
1000
1000
999
999
1000
1000
999
999
1000
999
999
1000
1000
1000
1000
1000
999
1000
1000
1000
1000
999
999
999
1000
1000
1000
999
1000
999
1000
999
999
999
999
1000
999
1000
1000
999
999
1000
1000
999
1...

result:

ok 1002 lines

Test #72:

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

input:

1000 1000
140 467
113 642
666 660
430 113
19 307
336 763
157 761
688 416
41 998
501 760
825 28
423 162
245 359
759 414
379 209
829 160
936 824
837 447
175 691
62 88
858 701
549 653
565 79
132 444
790 456
371 134
705 923
268 413
458 121
739 542
491 573
339 604
452 594
963 39
381 74
918 779
361 740
54...

output:

Gyojun is handsome
1000
1000
999
999
999
999
999
508
999
999
999
1000
1000
999
999
1000
999
999
999
1000
999
1000
999
1000
999
1000
1000
999
1000
1000
1000
1000
999
1000
999
999
1000
999
1000
999
1000
1000
999
1000
999
1000
1000
1000
999
999
1000
1000
1000
999
999
999
1000
1000
1000
1000
999
999
100...

result:

ok 1002 lines

Test #73:

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

input:

1000 1000
779 162
898 752
745 391
914 183
415 193
345 4
998 559
246 454
412 740
842 411
88 214
306 251
276 649
926 305
672 292
988 787
82 235
873 41
929 50
520 209
581 409
464 551
401 8
318 131
222 976
849 618
217 850
343 88
148 825
674 466
382 809
714 520
678 250
276 898
974 228
826 555
779 503
571...

output:

Gyojun is handsome
1000
1000
1000
999
999
999
1000
999
1000
1000
999
999
1000
999
1000
1000
999
495
999
999
999
999
1000
999
999
999
999
1000
1000
999
999
495
999
1000
999
1000
1000
999
1000
1000
1000
1000
1000
999
999
1000
999
999
999
1000
999
1000
999
494
999
999
999
1000
999
999
1000
999
1000
999...

result:

ok 1002 lines

Test #74:

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

input:

1000 1000
442 639
4 451
430 827
938 433
560 452
45 160
174 804
188 108
827 134
961 401
471 374
621 472
876 655
344 977
654 870
175 321
757 551
116 695
221 441
313 562
109 317
767 762
406 679
46 792
927 250
520 163
195 732
196 506
727 799
895 816
712 66
191 509
310 818
892 225
133 746
624 262
811 799...

output:

Gyojun is handsome
1000
999
1000
1000
999
999
1000
1000
1000
999
999
1000
999
999
1000
999
999
1000
501
999
999
1000
1000
1000
999
1000
999
999
999
1000
999
1000
500
1000
500
999
501
999
999
999
1000
1000
999
999
999
999
1000
1000
999
999
999
999
1000
999
999
1000
1000
999
1000
1000
1000
1000
1000
1...

result:

ok 1002 lines

Test #75:

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

input:

1000 1000
760 642
999 643
267 954
549 86
957 234
215 534
541 232
135 22
289 152
737 27
374 707
958 771
332 263
690 43
355 649
205 712
643 532
113 238
696 218
570 507
581 933
63 272
631 959
980 219
313 839
389 106
544 397
879 742
805 760
100 224
863 598
942 960
438 560
888 461
500 734
994 918
377 463...

output:

Gyojun is handsome
544
543
543
999
1000
545
1000
999
999
1000
999
1000
545
1000
1000
544
544
1000
999
545
999
999
1000
1000
545
999
1000
544
1000
1000
545
999
544
544
544
999
1000
999
999
544
999
545
999
1000
544
545
999
999
999
999
1000
1000
999
999
1000
1000
999
1000
545
999
543
999
545
999
1000
5...

result:

ok 1002 lines

Test #76:

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

input:

1000 1000
309 690
45 800
698 949
691 925
234 779
571 617
880 228
609 490
294 225
226 658
845 97
509 551
261 73
847 912
178 494
824 714
778 315
376 501
407 595
859 18
528 407
161 680
46 400
400 730
837 681
781 628
485 579
177 873
742 530
941 16
332 807
960 202
91 276
125 379
663 282
814 95
900 2
332 ...

output:

Gyojun is handsome
636
999
635
635
634
635
1000
999
1000
635
636
636
999
634
1000
999
999
999
634
636
635
999
999
635
999
999
634
635
999
635
635
636
999
635
634
1000
1000
636
636
999
999
636
999
999
999
999
999
634
634
999
999
999
634
636
634
636
1000
999
635
1000
999
635
999
999
634
999
999
999
99...

result:

ok 1002 lines

Test #77:

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

input:

1000 1000
49 123
617 410
546 474
566 308
715 716
249 931
619 94
942 102
730 952
879 750
532 441
790 86
727 164
974 761
438 96
635 606
229 646
325 298
963 394
974 465
973 17
964 160
815 701
81 874
563 648
324 919
530 272
296 174
865 564
985 347
362 580
744 620
819 65
703 595
846 293
71 246
428 600
39...

output:

Gyojun is handsome
860
860
860
860
860
860
861
860
999
860
860
999
860
860
860
861
860
861
860
860
861
860
999
861
860
861
861
861
861
860
860
860
860
861
861
999
860
860
861
860
860
860
860
860
860
860
860
999
860
861
861
861
860
860
860
861
860
999
860
861
861
860
860
860
860
861
860
860
860
861
8...

result:

ok 1002 lines

Test #78:

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

input:

1000 1000
21 639
807 275
930 856
497 16
477 189
245 363
983 368
931 366
439 724
729 515
662 255
593 971
71 533
549 522
645 592
939 131
516 659
148 757
98 975
788 765
34 621
512 746
611 266
438 627
188 523
526 978
622 632
4 497
9 667
344 575
884 738
36 303
793 461
499 286
387 172
207 649
775 165
243 ...

output:

Gyojun is handsome
960
960
960
960
960
960
960
960
960
960
960
960
960
960
960
960
960
960
960
960
961
960
960
960
960
960
960
960
960
960
960
960
960
960
960
960
960
960
999
960
960
960
960
961
960
960
960
960
960
960
960
960
960
960
960
960
960
960
960
960
999
960
960
960
960
960
960
960
960
960
9...

result:

ok 1002 lines

Test #79:

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

input:

1000 999
246 855
292 373
384 653
862 411
641 49
10 158
46 829
882 919
257 2
464 322
544 734
801 868
596 579
599 379
191 699
617 149
235 72
636 817
4 887
621 969
203 30
292 361
292 666
204 875
361 133
321 104
634 503
451 890
160 964
571 212
239 132
546 904
320 627
397 84
16 336
108 762
164 297
840 57...

output:

Gyojun is handsome
1000
1000
1000
1000
999
999
999
1000
1000
999
1000
999
1000
999
1000
1000
1000
1000
999
999
999
1000
1000
1000
999
999
1000
999
999
1000
999
1000
1000
1000
1000
1000
999
1000
999
1000
999
999
999
1000
1000
999
999
999
1000
1000
999
999
999
1000
999
999
999
1000
1000
1000
1000
999
...

result:

ok 1001 lines

Test #80:

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

input:

1000 999
246 137
604 373
27 653
709 411
853 49
605 158
46 309
366 919
257 76
464 938
544 50
672 868
596 708
599 567
191 166
617 53
235 364
574 817
95 887
621 586
203 385
373 361
292 136
204 510
684 133
126 104
634 491
195 890
160 628
258 212
239 597
534 904
897 627
397 864
965 336
108 243
164 114
84...

output:

Gyojun is handsome
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1000
1...

result:

ok 1001 lines

Test #81:

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

input:

1000 1746
307 633
374 991
609 193
438 442
520 678
699 556
718 245
341 243
812 778
463 332
467 177
535 472
68 988
677 617
981 797
899 419
339 780
407 360
824 435
183 232
359 744
542 742
442 468
981 797
752 706
606 602
163 588
418 715
382 385
575 20
678 520
639 196
40 740
695 63
191 635
992 402
434 16...

output:

Gyojun is handsome
505
999
505
505
505
505
999
505
505
505
505
505
505
505
505
1000
505
505
505
505
505
505
505
505
505
505
505
999
505
505
505
505
999
505
505
1000
505
505
505
505
505
505
505
505
505
505
505
505
505
505
505
505
505
505
505
505
505
505
505
505
505
505
505
999
505
505
505
505
505
505...

result:

ok 1748 lines

Test #82:

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

input:

1000 1656
494 11
786 165
617 106
498 78
614 116
310 100
791 1000
359 112
963 14
26 976
541 484
845 846
743 147
174 185
484 840
257 259
536 644
441 599
418 985
719 858
174 734
894 111
6 904
118 713
140 447
142 47
224 576
151 516
362 321
892 401
991 307
58 851
543 274
591 799
168 1000
539 318
263 43
8...

output:

Gyojun is handsome
507
1000
508
507
507
507
507
507
507
507
507
507
507
507
507
507
507
507
507
507
508
507
508
999
508
508
507
507
507
1000
507
508
507
508
507
507
507
1000
507
507
1000
507
507
507
507
1000
507
507
507
507
507
507
999
507
507
507
508
507
507
507
507
507
1000
507
507
507
507
508
507...

result:

ok 1658 lines

Test #83:

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

input:

1000 1509
744 536
197 625
709 742
515 45
561 823
298 72
735 575
629 602
496 144
432 910
830 225
182 57
475 754
457 998
50 538
686 72
462 688
542 974
544 565
233 566
931 945
409 652
81 727
762 970
361 578
429 756
489 643
201 513
798 699
964 460
423 832
509 494
663 350
821 164
725 887
10 383
949 44
10...

output:

Gyojun is handsome
428
429
428
429
428
429
428
429
428
429
428
428
429
430
430
429
429
428
430
428
429
428
428
428
429
428
428
428
428
428
429
428
428
429
428
429
428
430
429
429
430
428
428
429
428
429
428
428
429
428
428
429
428
429
429
428
429
430
429
428
428
428
428
428
428
1000
429
429
429
429
...

result:

ok 1511 lines

Test #84:

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

input:

1000 1142
631 308
569 591
301 472
648 973
265 29
112 885
196 643
910 223
614 91
283 205
639 545
541 730
791 290
170 702
994 142
129 876
64 519
932 138
276 344
416 601
840 237
411 576
480 656
454 357
55 440
308 684
714 305
980 54
159 795
191 860
816 638
68 586
895 796
608 964
276 841
649 351
346 457
...

output:

Gyojun is handsome
156
154
155
156
155
158
156
158
158
157
151
158
153
156
155
156
155
156
155
151
159
154
155
158
157
156
155
152
158
156
156
158
158
159
155
157
158
156
156
157
156
154
159
158
156
151
158
154
157
157
158
155
155
155
159
151
157
157
151
155
158
151
156
155
155
157
155
156
156
157
1...

result:

ok 1144 lines

Test #85:

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

input:

1000 1045
600 376
89 766
718 616
150 98
301 802
652 942
899 81
879 555
368 629
809 805
90 262
537 817
59 445
280 202
197 499
361 327
71 864
214 358
638 763
308 819
697 250
720 679
150 841
169 115
623 303
539 599
234 818
743 512
371 275
86 311
730 970
764 687
418 397
31 852
608 256
338 261
143 912
12...

output:

Gyojun is handsome
73
70
71
70
71
71
71
73
71
73
74
73
71
75
71
72
73
72
73
69
48
75
70
72
71
74
75
71
68
75
74
75
74
73
72
72
72
70
71
48
76
68
74
70
72
72
69
72
75
71
72
73
74
70
71
74
73
73
75
71
72
73
72
75
48
71
76
75
73
72
74
71
71
48
48
75
71
75
71
73
70
73
73
73
70
73
75
69
71
71
75
73
71
75...

result:

ok 1047 lines

Test #86:

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

input:

1000 1016
25 315
710 900
948 462
217 574
815 966
859 781
536 554
656 657
516 351
843 276
403 181
845 124
285 771
996 686
894 838
788 108
428 336
303 69
717 691
770 753
241 674
875 277
610 262
497 737
361 305
499 879
538 939
616 20
579 306
39 608
544 201
837 59
509 851
864 890
167 412
508 203
985 816...

output:

Gyojun is handsome
42
110
108
113
112
112
113
113
114
108
108
113
112
111
112
112
113
110
108
114
110
110
110
114
108
108
42
108
108
112
107
110
107
107
110
113
113
18
110
110
114
113
108
110
108
110
114
108
112
112
110
113
113
113
113
111
112
114
110
112
113
113
112
113
112
107
18
107
108
18
110
10...

result:

ok 1018 lines

Test #87:

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

input:

1000 1010
249 101
680 24
712 794
818 243
852 135
759 271
578 52
179 670
934 102
29 680
327 719
50 849
76 10
913 359
866 597
171 305
192 773
265 996
212 420
361 136
357 750
277 89
124 262
631 420
71 79
373 158
909 965
844 508
13 883
981 30
12 59
260 89
448 654
37 51
857 804
580 887
730 43
558 727
749...

output:

Gyojun is handsome
336
355
355
355
355
336
355
355
98
355
336
355
10
355
355
355
127
336
98
336
336
127
355
98
98
127
355
14
127
355
336
127
336
336
336
355
336
355
355
336
355
355
98
355
336
19
355
336
336
19
336
86
127
336
86
355
12
336
127
98
11
355
336
336
86
336
355
355
355
336
355
355
355
355
...

result:

ok 1012 lines

Test #88:

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

input:

1000 1003
189 382
190 634
201 211
652 446
745 441
54 296
808 742
541 78
175 329
732 205
203 185
625 787
22 288
167 210
339 765
224 115
164 986
472 956
132 42
168 444
124 465
864 326
661 925
835 770
625 753
143 11
599 570
56 426
955 379
173 525
459 679
615 995
445 923
80 712
561 102
89 546
577 950
80...

output:

Gyojun is handsome
483
501
483
483
501
501
483
501
501
483
483
501
483
501
501
502
483
483
501
501
483
501
483
501
501
501
483
501
483
501
483
483
483
501
483
501
483
501
483
483
483
483
483
12
501
483
501
501
483
483
501
501
483
501
483
501
483
501
501
483
501
483
483
483
501
501
501
501
501
501
48...

result:

ok 1005 lines

Test #89:

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

input:

1000 1003
251 638
210 612
415 272
257 846
433 709
926 587
362 173
320 874
277 479
716 45
403 543
140 753
127 383
508 645
478 128
811 636
351 509
284 128
646 799
904 893
159 898
181 685
189 511
110 259
600 986
516 631
423 969
36 484
178 727
770 843
813 387
120 212
113 954
852 9
464 463
690 291
838 53...

output:

Gyojun is handsome
849
849
849
97
97
849
849
97
849
849
849
97
849
849
849
54
97
849
849
849
849
54
849
849
849
849
849
849
849
849
849
849
98
97
97
849
849
849
849
54
849
849
849
849
849
849
849
849
849
849
849
849
849
849
849
849
849
97
849
849
849
849
849
849
849
849
849
849
849
849
849
849
849
5...

result:

ok 1005 lines

Test #90:

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

input:

1000 1007
661 487
193 809
128 148
331 484
140 90
319 167
442 112
167 529
280 858
146 835
537 832
278 542
42 16
213 435
279 40
187 778
857 474
923 702
972 333
760 906
494 547
822 557
770 830
605 540
288 18
681 774
869 146
872 496
474 671
66 413
913 120
173 657
934 309
615 603
412 700
803 224
561 585
...

output:

Gyojun is handsome
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
16
961
961
961
961
961
961
961
961
961
962
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
961
17
961
961
961...

result:

ok 1009 lines

Test #91:

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

input:

986 988
168 58
107 806
5 914
195 65
99 837
441 580
466 652
982 412
396 753
962 231
601 354
677 36
37 728
12 160
747 763
106 89
640 326
209 788
181 406
74 347
703 684
46 982
661 310
209 277
872 619
497 118
968 941
92 737
599 481
792 154
882 178
372 302
253 938
468 771
836 111
26 470
438 65
285 769
37...

output:

Gyojun is handsome
986
985
986
986
586
985
986
985
986
986
586
986
985
581
985
986
986
986
986
986
985
986
985
986
986
986
985
986
985
985
581
986
985
985
985
986
985
985
986
986
986
985
985
986
986
986
986
985
986
582
582
986
986
986
985
580
985
579
986
986
583
986
986
985
986
985
583
985
985
986
9...

result:

ok 990 lines

Test #92:

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

input:

984 1004
201 242
146 153
58 602
480 679
335 735
528 60
927 144
18 759
82 282
384 518
497 894
98 491
582 262
248 252
312 649
362 899
431 217
597 636
795 639
720 837
500 29
257 761
680 855
955 374
100 623
819 518
778 33
266 391
913 723
679 575
151 971
102 361
287 840
701 918
956 626
189 290
700 473
68...

output:

Gyojun is handsome
984
984
529
984
984
983
531
984
529
984
983
984
984
984
527
984
984
530
529
983
984
983
983
984
984
984
983
984
530
984
528
983
983
533
984
983
534
983
983
528
983
984
984
984
531
984
984
529
983
983
983
984
984
983
530
983
984
984
983
983
984
984
984
983
984
983
983
983
984
984
9...

result:

ok 1006 lines

Test #93:

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

input:

989 995
724 470
670 337
896 362
184 156
320 208
68 494
517 501
252 345
60 521
760 244
834 208
323 886
45 577
509 668
317 745
63 704
734 616
575 204
393 238
780 544
304 23
275 726
152 469
653 560
431 803
551 786
281 385
656 899
451 846
610 572
917 44
823 557
871 755
65 406
401 184
977 830
864 631
441...

output:

Gyojun is handsome
988
988
563
989
559
988
988
988
562
989
559
989
559
988
989
989
989
988
988
988
989
989
989
989
988
988
989
989
988
989
989
988
989
988
988
989
988
989
989
989
988
989
989
989
988
989
989
989
988
989
989
988
989
989
989
989
988
989
988
988
988
988
988
989
989
559
988
988
989
989
9...

result:

ok 997 lines

Test #94:

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

input:

991 1067
480 896
220 137
521 275
676 605
556 668
743 403
459 205
214 127
569 5
864 585
80 712
166 615
649 549
347 23
30 989
787 903
540 639
923 139
96 382
709 398
725 49
274 801
866 748
811 615
406 805
502 784
969 294
319 868
371 91
708 198
376 858
639 940
733 909
593 194
752 468
86 660
774 573
469 ...

output:

Gyojun is handsome
991
440
440
991
991
439
439
991
440
990
991
990
440
990
990
441
990
443
990
990
990
443
991
439
440
990
990
442
443
991
990
991
440
439
991
990
444
990
445
440
440
441
991
990
990
439
440
440
990
991
439
991
440
443
441
439
990
990
439
990
439
442
991
440
441
990
990
990
990
990
9...

result:

ok 1069 lines

Test #95:

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

input:

971 1979
601 141
391 896
464 76
510 235
377 42
606 189
366 936
670 99
389 357
676 521
420 616
868 200
828 330
293 298
331 60
802 610
683 796
143 665
668 844
529 40
272 437
837 253
941 739
31 82
419 416
569 395
14 34
649 233
188 688
208 422
533 27
303 157
414 896
363 81
215 721
868 681
494 799
950 58...

output:

Gyojun is handsome
63
63
63
63
64
64
64
63
63
63
64
63
63
63
63
63
63
63
63
64
64
63
63
63
63
63
63
63
63
63
63
63
63
63
63
63
63
63
63
63
63
63
63
63
63
63
63
63
64
63
63
64
63
63
63
63
63
63
63
63
63
63
63
63
64
63
63
63
63
63
63
63
63
63
63
63
63
64
63
63
63
63
63
63
64
63
63
63
63
64
63
63
63
97...

result:

ok 1981 lines

Test #96:

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

input:

999 2481
210 237
542 759
793 877
885 263
985 366
683 391
668 321
135 44
362 235
867 747
721 220
581 594
60 680
252 954
404 322
638 296
512 237
935 198
399 104
755 391
92 475
858 703
807 730
886 801
583 134
324 995
507 568
946 656
705 270
437 264
890 290
852 369
487 115
250 966
57 955
559 628
427 559...

output:

Gyojun is handsome
26
26
26
26
26
26
26
26
26
26
26
26
26
26
26
26
26
998
26
26
26
26
26
27
26
26
26
26
26
26
26
26
26
26
26
26
26
26
26
26
27
26
26
26
27
26
26
27
27
26
26
26
27
26
26
26
26
26
26
26
26
26
26
26
26
26
26
26
26
27
26
26
26
27
26
26
26
26
26
998
26
26
26
26
26
26
26
26
26
27
27
26
26
...

result:

ok 2483 lines

Test #97:

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

input:

1000 1010
736 86
624 895
883 142
101 163
906 299
226 631
164 802
586 126
784 775
139 794
493 93
971 471
525 570
111 592
498 938
918 245
667 408
891 257
19 788
389 559
998 48
626 613
869 267
989 191
368 870
535 407
156 61
385 63
674 65
151 645
657 295
28 49
248 234
363 140
997 251
718 31
25 672
365 7...

output:

Gyojun is handsome
999
999
1000
1000
999
999
999
999
1000
999
1000
999
1000
1000
999
999
1000
1000
1000
1000
999
999
999
482
999
1000
483
1000
1000
999
999
999
999
999
484
999
999
1000
999
999
1000
484
1000
1000
999
483
484
999
1000
999
484
999
1000
1000
999
484
485
999
999
1000
999
1000
1000
1000
1...

result:

ok 1012 lines

Test #98:

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

input:

1000 1500
915 527
653 759
770 274
303 536
857 46
328 850
493 224
738 355
487 515
677 403
877 637
968 988
626 211
136 916
118 512
269 459
280 285
992 932
788 250
586 969
946 288
591 545
241 633
606 215
113 419
52 231
124 853
448 274
912 920
234 425
124 744
821 977
671 309
440 228
421 384
223 726
607 ...

output:

Gyojun is handsome
170
170
171
170
170
171
170
171
170
170
172
170
170
999
999
170
171
170
170
171
999
170
170
170
172
999
171
170
170
1000
170
170
170
170
170
999
170
171
170
170
170
170
999
171
170
170
170
170
171
170
170
170
171
170
171
170
172
171
170
170
170
172
170
171
170
170
999
170
171
999
...

result:

ok 1502 lines

Test #99:

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

input:

1000 2500
748 410
461 262
184 178
491 334
354 967
84 588
687 952
727 127
339 744
257 783
389 42
740 362
713 721
137 141
103 875
221 792
259 606
938 983
152 889
831 168
823 390
587 131
549 97
357 896
343 654
51 470
645 203
692 572
310 381
834 70
158 103
180 673
546 895
85 373
913 232
723 96
46 545
13...

output:

Gyojun is handsome
25
25
25
25
25
25
25
25
25
999
26
25
25
25
25
25
25
25
25
25
25
25
25
25
25
25
25
25
25
25
25
25
25
25
25
25
25
25
25
25
26
25
25
25
25
26
25
25
25
25
25
26
25
25
25
25
25
25
25
25
25
25
25
25
25
25
26
25
25
25
25
25
25
25
25
25
25
25
25
26
25
25
25
25
25
25
25
25
25
25
25
25
25
2...

result:

ok 2502 lines

Test #100:

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

input:

1000 1010
976 86
624 957
883 813
101 46
247 299
932 631
560 802
586 290
784 816
255 794
493 686
971 986
240 570
111 273
503 938
982 245
667 358
891 7
19 862
282 559
740 48
626 235
869 855
989 67
56 870
535 899
107 61
287 63
674 937
151 464
657 807
28 815
248 155
363 463
652 251
269 31
25 782
365 162...

output:

Gyojun is handsome
309
309
207
207
111
84
111
128
207
84
101
309
207
45
111
309
207
65
207
88
309
309
309
1000
84
53
1000
207
48
84
309
309
84
84
1000
128
309
55
111
309
207
101
207
101
111
84
49
309
99
84
88
309
51
88
309
54
59
309
84
99
309
1000
207
99
207
207
207
101
309
309
1000
207
101
111
101
...

result:

ok 1012 lines

Test #101:

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

input:

1000 1800
556 253
902 370
603 750
793 248
730 266
19 961
61 582
63 509
147 181
75 671
491 440
86 822
931 493
746 62
285 75
708 357
197 213
928 15
186 436
957 863
841 54
399 193
190 602
7 939
934 367
122 77
610 828
1000 369
226 372
473 93
194 345
219 423
535 545
45 819
537 14
598 897
94 418
763 963
6...

output:

Gyojun is handsome
2
2
2
2
3
3
2
2
2
2
2
2
2
2
2
2
3
3
3
2
2
2
3
2
2
2
2
2
2
2
3
2
2
2
2
2
2
2
4
3
3
2
3
2
3
3
3
2
2
2
2
2
2
5
3
2
2
2
2
2
2
2
3
3
2
2
4
2
2
2
2
2
2
2
2
2
2
2
2
2
3
2
2
2
2
3
2
2
2
3
2
2
2
2
2
2
2
2
4
2
2
2
4
2
2
2
2
3
3
4
3
2
3
2
2
2
2
2
2
2
2
2
2
3
2
2
2
2
2
2
2
2
2
2
2
2
2
2
6
2
2...

result:

ok 1802 lines

Test #102:

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

input:

1000 2500
748 410
461 262
184 178
491 334
354 967
84 588
687 952
587 127
339 744
257 644
389 42
740 362
830 721
137 141
399 875
221 100
42 606
753 983
152 889
729 168
823 390
587 131
549 97
357 896
343 654
51 470
645 203
692 281
310 381
834 70
158 103
180 673
546 895
85 373
913 254
319 96
46 545
137...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 2502 lines

Test #103:

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

input:

1000 1998
578 931
534 428
568 841
196 701
372 481
131 804
939 791
559 545
481 14
743 755
783 523
831 777
56 225
474 23
174 651
856 621
121 780
204 58
265 709
875 724
799 58
666 337
270 320
1000 705
668 975
869 702
715 804
510 923
976 415
177 117
446 846
187 496
71 169
166 999
574 128
117 726
686 540...

output:

Gyojun is handsome
0
1
0
1
1
0
0
0
1
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
1
0
1
0
0
0
1
1
1
1
1
0
1
0
1
0
0
1
0
0
1
1
0
0
1
0
1
0
0
1
0
1
0
0
0
0
1
0
0
0
1
1
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
1
1
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
1
0
1
1
1
1
0
1
0
1
0
1
1
0
0
0
0
0
1
0...

result:

ok 2000 lines

Test #104:

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

input:

1000 1656
870 337
260 89
313 898
400 355
13 64
595 525
223 814
769 905
637 958
413 547
888 7
493 781
211 276
963 50
99 530
889 548
722 204
345 223
218 440
999 994
130 883
249 144
568 936
89 298
751 882
72 474
812 380
750 946
309 282
349 692
61 909
953 500
485 983
187 620
871 791
426 191
592 410
947 ...

output:

Gyojun is handsome
2
1
1
2
1
2
1
3
1
2
2
1
3
2
2
1
2
2
1
2
1
2
2
1
2
3
1
1
1
1
1
1
1
2
1
2
2
2
1
1
1
2
1
2
2
1
1
1
1
2
1
1
1
3
1
1
1
1
1
1
1
2
2
2
1
2
2
1
1
1
1
3
3
1
1
2
1
1
1
2
3
2
1
3
2
2
3
1
3
2
1
2
1
1
1
1
1
2
2
1
2
1
1
1
1
1
2
1
2
1
2
1
1
2
2
1
2
1
1
1
1
2
1
1
1
1
2
1
1
3
1
1
3
1
1
1
1
3
1
2
1...

result:

ok 1658 lines

Test #105:

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

input:

1000 1495
203 88
703 529
691 535
994 86
649 524
756 259
156 703
268 997
903 151
38 230
490 213
191 827
394 840
276 52
163 359
473 700
396 155
944 206
105 219
975 433
224 93
342 899
270 170
166 791
838 601
882 867
695 274
152 435
747 590
462 520
658 928
1 644
951 579
202 312
270 573
78 178
388 860
27...

output:

Gyojun is handsome
1
1
0
1
0
0
1
2
0
1
0
1
3
0
3
1
0
0
1
1
1
0
0
0
2
0
0
1
2
0
0
0
0
0
0
0
3
0
3
0
0
1
0
0
0
0
2
3
2
2
1
0
3
0
2
0
2
3
3
0
0
2
0
0
3
3
2
3
3
1
2
3
1
1
1
1
0
1
3
3
1
3
2
0
1
2
1
0
1
2
0
1
1
1
0
0
1
1
0
2
0
1
2
0
3
0
2
1
0
2
0
0
1
2
1
3
1
1
0
3
2
0
0
3
1
0
0
0
0
2
2
0
0
3
0
0
3
2
2
3
0...

result:

ok 1497 lines

Test #106:

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

input:

1000 1176
588 711
146 702
413 950
131 897
916 282
5 810
964 807
221 516
13 85
150 445
455 612
939 778
719 59
422 845
96 665
77 430
278 23
726 829
195 19
227 762
109 651
235 860
334 565
801 574
895 467
173 373
150 682
399 62
212 292
791 939
261 582
681 918
25 915
874 934
632 445
48 178
766 206
461 77...

output:

Gyojun is handsome
2
1
7
0
1
0
2
2
2
8
1
6
5
5
5
5
5
5
2
2
3
1
2
4
9
2
1
2
4
6
5
5
10
1
8
1
0
4
5
2
8
2
0
7
7
3
6
0
4
3
5
1
1
8
5
2
2
0
2
2
3
1
8
2
1
4
1
2
2
3
8
0
5
7
0
2
8
3
0
4
3
1
0
5
4
2
1
7
1
2
8
8
0
3
0
4
4
2
5
4
1
6
0
1
4
6
1
1
6
3
2
0
1
1
0
3
2
6
4
2
6
4
5
10
4
0
8
0
0
3
1
0
3
4
8
8
1
3
0
1...

result:

ok 1178 lines

Test #107:

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

input:

1000 1046
431 330
518 491
351 257
713 627
138 635
225 121
908 499
692 780
856 531
525 718
825 949
981 292
222 545
743 698
697 981
943 888
512 144
373 637
203 685
971 748
989 138
253 747
363 576
819 150
393 402
286 225
512 4
105 917
260 819
770 625
623 816
16 589
556 970
403 591
528 282
170 605
140 9...

output:

Gyojun is handsome
18
20
3
40
3
3
20
1
33
18
17
20
12
13
20
30
2
5
31
8
3
11
7
2
0
10
33
2
2
9
33
10
7
33
19
6
10
5
31
10
33
30
2
10
33
5
30
13
11
6
18
12
26
1
4
4
0
33
10
7
1
10
1
2
12
28
12
9
40
7
5
13
33
6
1
17
8
2
10
21
7
5
33
3
6
5
31
11
28
33
30
6
9
30
10
30
1
28
33
5
30
40
11
12
33
21
2
34
33...

result:

ok 1048 lines

Test #108:

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

input:

1000 1019
964 913
528 59
986 781
739 604
863 824
162 510
116 320
505 929
901 218
21 458
498 976
800 89
883 587
552 235
383 78
759 297
834 169
632 115
197 221
80 960
181 269
260 855
96 75
38 113
576 997
627 583
324 534
721 625
204 56
470 928
349 611
375 211
84 475
191 635
68 160
763 273
428 214
417 9...

output:

Gyojun is handsome
14
63
18
14
70
16
15
21
63
88
88
70
68
63
68
58
58
17
18
68
88
26
11
14
9
58
68
9
7
14
18
28
3
63
88
63
21
63
9
88
4
88
63
16
4
18
25
58
16
40
7
63
9
3
88
7
9
70
7
58
28
21
0
63
88
63
88
8
88
63
18
28
18
88
88
88
18
18
63
63
26
68
88
63
21
68
58
12
68
88
26
28
58
40
12
68
70
63
16...

result:

ok 1021 lines

Test #109:

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

input:

1000 1013
757 579
791 457
923 328
769 256
20 448
859 39
295 912
242 646
467 944
563 72
756 779
700 609
701 745
772 337
420 989
852 474
55 904
477 395
172 18
718 423
746 317
987 895
382 144
874 778
906 165
633 309
287 327
808 935
834 653
213 600
189 7
743 448
349 357
277 925
283 296
571 484
151 907
7...

output:

Gyojun is handsome
42
29
20
37
112
12
30
112
37
91
3
19
100
66
42
100
112
20
38
100
48
19
31
91
48
91
100
31
91
32
66
112
4
19
32
91
37
37
28
32
112
91
91
32
66
48
30
112
112
91
112
100
30
18
48
100
91
28
30
91
30
14
66
112
91
14
19
91
91
20
66
112
38
19
31
48
48
28
37
29
100
6
6
42
12
100
30
100
11...

result:

ok 1015 lines

Test #110:

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

input:

1000 1007
85 480
830 836
484 287
682 503
374 217
312 245
457 436
620 919
680 720
567 329
400 369
610 48
227 269
198 375
33 281
265 420
936 633
364 160
395 281
988 415
609 402
132 702
299 284
879 920
76 229
784 122
580 930
961 24
588 140
676 833
430 414
192 792
965 949
40 238
456 174
198 288
598 572
...

output:

Gyojun is handsome
30
6
41
238
238
41
41
32
113
19
113
113
140
113
238
113
7
140
238
113
30
133
32
133
133
28
48
24
28
19
24
133
238
238
133
113
113
140
140
30
140
140
238
140
20
133
238
41
113
48
238
238
140
238
238
20
140
238
238
20
133
133
238
133
238
41
238
140
30
238
58
24
140
48
19
24
25
113
1...

result:

ok 1009 lines

Test #111:

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

input:

1000 1006
913 374
908 479
648 477
532 662
456 192
458 245
603 67
307 669
651 899
828 674
258 131
475 565
250 659
370 228
546 693
725 884
707 684
670 728
515 817
925 518
299 573
839 18
931 267
453 413
903 825
177 392
808 811
738 789
142 692
727 469
93 352
171 122
344 524
466 724
11 30
71 174
418 72
5...

output:

Gyojun is handsome
171
171
146
146
33
39
171
125
146
171
146
171
146
26
125
75
171
33
39
171
33
123
146
123
39
171
171
75
125
171
33
94
146
94
123
125
171
123
123
33
33
81
33
33
125
75
125
146
171
125
171
125
123
123
171
75
81
75
171
146
146
125
171
146
33
146
146
146
39
123
94
123
171
33
75
123
33
...

result:

ok 1008 lines

Test #112:

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

input:

1000 1005
258 677
907 150
611 167
183 316
824 565
490 215
384 89
629 367
535 722
183 889
919 866
482 177
800 84
998 776
818 869
750 821
20 680
132 68
614 946
508 296
339 774
965 928
857 424
900 906
647 617
537 30
273 861
844 423
953 122
567 304
660 632
701 718
670 255
71 69
607 617
552 123
311 922
5...

output:

Gyojun is handsome
190
356
171
190
190
171
23
356
23
190
190
9
13
356
70
356
16
356
190
356
356
70
171
356
43
171
190
190
356
190
190
356
13
356
11
356
356
70
356
190
171
171
190
356
190
190
171
190
190
190
190
356
171
356
70
171
43
13
356
190
171
356
171
190
171
43
190
356
71
9
70
356
356
71
356
17...

result:

ok 1007 lines

Test #113:

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

input:

1000 1285
983 576
863 89
644 969
730 231
554 51
53 935
589 11
449 440
246 336
801 279
625 941
971 253
397 520
567 405
197 911
448 880
176 190
406 884
410 586
201 777
58 548
768 671
147 494
375 370
723 273
486 255
608 728
600 528
945 364
201 385
629 254
436 497
962 440
167 943
309 646
3 908
22 749
39...

output:

Gyojun is handsome
82
78
86
78
86
80
79
79
79
78
80
80
78
78
82
79
83
78
78
78
82
84
81
81
79
84
82
79
84
78
79
83
78
82
82
82
85
78
78
81
87
83
87
80
79
79
78
86
82
82
86
81
81
78
83
83
78
87
79
78
85
79
78
78
79
79
80
81
84
79
84
78
84
80
81
80
84
80
86
84
85
79
81
78
85
84
81
83
89
79
78
80
84
83...

result:

ok 1287 lines

Test #114:

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

input:

1000 1724
235 308
728 252
166 216
627 750
932 930
185 876
154 848
358 271
152 405
331 910
346 479
800 147
12 556
635 824
218 144
313 234
785 28
235 544
945 170
55 752
232 335
747 885
128 247
965 49
847 561
164 128
706 447
230 462
519 607
938 483
389 829
37 17
697 631
189 281
395 1
177 138
371 923
79...

output:

Gyojun is handsome
81
84
81
84
81
80
81
81
80
83
80
83
81
83
82
80
85
81
82
83
81
82
80
80
82
80
80
84
82
82
87
80
83
84
80
86
82
86
85
81
80
84
84
80
80
81
86
80
80
81
80
80
80
81
81
80
81
80
80
83
83
80
80
81
82
83
80
80
83
80
80
83
80
81
80
80
83
82
80
80
80
88
80
80
80
84
80
88
80
80
84
81
80
83...

result:

ok 1726 lines

Test #115:

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

input:

1000 2209
395 104
269 666
233 52
933 522
327 466
566 906
976 743
35 234
235 449
13 793
965 602
513 567
749 445
54 792
952 716
875 150
918 390
338 693
720 34
539 555
958 227
298 969
390 953
200 443
38 456
499 433
993 695
343 348
530 199
707 268
173 266
654 287
674 186
307 48
361 318
284 128
817 619
8...

output:

Gyojun is handsome
76
76
82
76
76
76
77
76
77
76
76
79
77
76
78
76
76
80
80
79
76
76
76
82
76
76
76
76
76
79
76
76
76
76
76
76
76
76
76
76
76
78
76
76
76
77
76
76
76
76
76
77
76
76
76
76
76
80
76
76
76
76
78
76
80
76
77
76
76
76
76
79
76
76
81
76
76
76
76
1000
76
76
76
76
76
76
76
76
76
76
76
76
77
...

result:

ok 2211 lines

Test #116:

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

input:

1000 2276
140 23
519 815
949 713
542 919
345 432
892 47
457 196
738 733
527 810
748 760
179 484
404 282
352 354
758 226
664 279
585 555
983 833
332 880
221 295
190 961
534 86
147 154
881 110
256 382
408 329
615 180
883 329
309 803
565 635
933 745
359 628
560 890
206 77
321 202
571 974
858 856
297 98...

output:

Gyojun is handsome
60
60
60
60
60
60
60
63
60
60
60
60
60
79
60
61
60
80
60
60
64
75
82
63
60
74
60
62
60
60
64
61
60
60
64
61
60
60
60
60
60
60
60
60
63
60
61
60
60
60
60
61
60
61
60
60
60
60
60
60
60
60
60
60
60
61
60
60
63
60
61
63
64
61
80
60
60
62
61
60
60
61
60
60
61
60
73
60
60
61
60
63
60
60...

result:

ok 2278 lines

Test #117:

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

input:

1000 2305
557 421
114 162
922 536
392 816
872 553
971 927
187 822
610 304
826 847
227 605
87 608
323 616
76 615
928 734
513 701
458 102
675 526
698 793
709 156
435 997
440 731
39 423
981 541
86 322
634 629
32 351
926 285
216 426
30 845
908 769
243 948
253 445
957 901
102 178
687 551
440 341
183 995
...

output:

Gyojun is handsome
66
66
67
66
66
66
66
66
66
66
66
66
66
66
66
66
66
82
66
83
86
66
66
66
66
66
66
67
86
66
66
66
66
66
66
86
66
66
66
66
67
66
83
66
66
66
84
66
66
66
66
66
66
66
66
66
66
66
66
85
66
66
66
66
66
66
66
83
66
66
66
66
66
66
66
66
66
66
66
66
66
67
66
84
66
66
85
81
66
66
66
66
66
66...

result:

ok 2307 lines

Test #118:

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

input:

500 504
431 446
61 446
388 61
388 431
262 453
403 431
453 394
439 394
478 439
93 478
93 392
392 467
467 242
242 336
233 336
233 352
492 352
245 492
245 151
74 151
421 74
371 421
378 371
34 378
437 34
297 437
142 297
60 142
60 307
307 367
90 367
230 90
368 230
81 368
121 81
121 26
26 235
235 59
28 59...

output:

Gyojun is handsome
4
4
4
4
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
65
...

result:

ok 506 lines

Test #119:

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

input:

500 2500
374 343
333 374
39 333
39 343
32 161
410 343
229 161
99 229
99 45
471 45
471 295
295 208
208 252
252 300
337 300
28 337
421 28
421 439
192 439
283 192
340 283
175 340
215 175
215 168
322 168
322 224
150 224
150 496
499 496
499 33
11 33
214 11
214 267
230 267
231 230
231 272
443 272
336 443
...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 2502 lines

Test #120:

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

input:

990 994
786 351
351 38
273 38
786 273
669 231
372 786
872 231
872 687
492 687
492 122
953 122
256 953
256 163
99 163
99 357
929 357
495 929
618 495
271 618
601 271
601 698
526 698
526 366
128 366
146 128
146 688
990 688
421 990
617 421
617 760
760 373
373 5
143 5
619 143
780 619
398 780
398 814
814 ...

output:

Gyojun is handsome
14
14
14
14
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
135
1...

result:

ok 996 lines

Test #121:

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

input:

990 2500
150 632
735 632
412 735
150 412
697 982
150 789
650 982
650 104
347 104
770 347
99 770
189 99
108 189
108 780
780 182
518 182
327 518
327 423
701 423
904 701
407 904
512 407
512 796
796 836
836 890
174 890
174 330
552 330
681 552
681 145
426 145
426 421
421 217
565 217
565 851
444 851
622 4...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
2
2
2
0
0
0
0
0
0
0
2
2
2
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
1
1...

result:

ok 2502 lines

Test #122:

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

input:

500 501
262 431
446 449
66 262
461 431
66 61
61 497
497 388
453 388
394 453
439 394
439 478
478 93
93 392
392 467
242 467
242 336
233 336
352 233
352 492
245 492
151 245
74 151
421 74
371 421
378 371
34 378
437 34
297 437
297 142
142 60
307 60
367 307
90 367
230 90
368 230
368 81
81 121
121 26
235 2...

output:

Gyojun is handsome
253
252
253
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
252
2...

result:

ok 503 lines

Test #123:

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

input:

500 2500
343 32
259 374
345 32
343 70
333 345
281 333
281 39
39 161
161 229
229 99
45 99
45 471
471 295
208 295
208 252
300 252
337 300
28 337
421 28
421 439
439 192
192 283
340 283
175 340
175 215
168 215
168 322
322 224
224 150
150 496
499 496
33 499
11 33
11 214
267 214
230 267
231 230
272 231
44...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 2502 lines

Test #124:

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

input:

990 991
669 786
729 351
865 669
786 140
865 38
38 966
273 966
273 231
872 231
872 687
492 687
122 492
122 953
256 953
256 163
99 163
357 99
929 357
495 929
618 495
618 271
601 271
601 698
526 698
366 526
366 128
146 128
688 146
990 688
990 421
421 617
617 760
373 760
5 373
143 5
619 143
619 780
780 ...

output:

Gyojun is handsome
497
496
497
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
496
4...

result:

ok 993 lines

Test #125:

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

input:

990 2500
150 697
632 943
697 386
726 150
386 735
206 735
412 206
982 412
982 650
104 650
347 104
347 770
99 770
189 99
108 189
780 108
182 780
182 518
518 327
423 327
701 423
701 904
407 904
512 407
796 512
836 796
836 890
890 174
174 330
552 330
552 681
145 681
426 145
426 421
217 421
217 565
565 8...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 2502 lines

Test #126:

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

input:

990 994
786 351
351 38
273 38
786 273
669 231
707 786
872 231
872 687
492 687
492 122
953 122
256 953
256 163
99 163
99 357
929 357
495 929
618 495
271 618
601 271
601 698
526 698
526 366
128 366
146 128
146 688
990 688
421 990
617 421
617 760
760 373
373 5
143 5
619 143
780 619
398 780
398 814
814 ...

output:

Gyojun is handsome
1
1
1
1
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
...

result:

ok 996 lines

Test #127:

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

input:

1000 1004
422 585
585 528
528 900
422 900
891 323
887 422
891 337
504 337
22 504
22 326
263 326
263 625
35 625
35 815
637 815
637 831
291 831
812 291
475 812
117 475
639 117
639 164
460 164
460 153
823 153
823 254
910 254
910 240
240 173
780 173
336 780
647 336
647 89
89 75
75 520
520 646
646 642
64...

output:

Gyojun is handsome
1
1
1
1
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
62
...

result:

ok 1006 lines

Test #128:

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

input:

1000 2500
677 913
677 903
264 903
714 264
2 714
2 496
496 319
319 556
556 263
263 155
155 447
821 447
821 864
869 864
29 869
818 29
818 152
400 152
400 991
991 346
346 770
977 770
269 977
269 484
116 484
116 225
225 360
133 360
214 133
708 214
708 50
50 145
145 109
109 438
381 438
932 381
176 932
17...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
2
2
2
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
1
1
0
0
1...

result:

ok 2502 lines

Subtask #3:

score: 7
Accepted

Test #129:

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

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: 72404kb

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: 3ms
memory: 72036kb

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: 0ms
memory: 65516kb

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: 65560kb

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: 63464kb

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: 65560kb

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: 76048kb

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: 0ms
memory: 67792kb

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: 69900kb

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: 0ms
memory: 74204kb

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: 8ms
memory: 84584kb

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: 4ms
memory: 83524kb

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: 4ms
memory: 75840kb

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: 4ms
memory: 76068kb

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: 0ms
memory: 78148kb

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: 80272kb

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: 4ms
memory: 79608kb

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: 8ms
memory: 91572kb

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: 34ms
memory: 113412kb

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: 13ms
memory: 87808kb

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: 18ms
memory: 85900kb

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: 7ms
memory: 82616kb

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: 13ms
memory: 85900kb

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: 11ms
memory: 78884kb

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: 11ms
memory: 78944kb

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: 11ms
memory: 83688kb

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: 7ms
memory: 80492kb

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: 11ms
memory: 82780kb

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: 3ms
memory: 87432kb

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: 24ms
memory: 93320kb

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: 16ms
memory: 97556kb

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: 110176kb

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: 19ms
memory: 114900kb

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: 36ms
memory: 121136kb

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: 31ms
memory: 124416kb

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: 39ms
memory: 123780kb

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: 38ms
memory: 124244kb

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: 29ms
memory: 100748kb

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: 83ms
memory: 149516kb

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: 109ms
memory: 168276kb

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: 33ms
memory: 95152kb

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: 24ms
memory: 95156kb

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: 31ms
memory: 93108kb

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: 33ms
memory: 87572kb

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: 28ms
memory: 88088kb

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: 20ms
memory: 88336kb

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: 35ms
memory: 88724kb

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: 20ms
memory: 89496kb

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: 36ms
memory: 88900kb

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: 32ms
memory: 92728kb

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: 62ms
memory: 115860kb

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: 80ms
memory: 148028kb

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: 109ms
memory: 151788kb

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: 125ms
memory: 169452kb

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: 171224kb

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: 0ms
memory: 38724kb

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: 0ms
memory: 35248kb

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: 0ms
memory: 85528kb

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: 0ms
memory: 83880kb

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: 0ms
memory: 77844kb

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: 4ms
memory: 77444kb

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: 79624kb

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: 77648kb

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: 0ms
memory: 77788kb

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: 0ms
memory: 87900kb

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: 80116kb

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: 78084kb

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: 0ms
memory: 80132kb

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: 78444kb

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: 78508kb

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: 4ms
memory: 78072kb

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: 7ms
memory: 39440kb

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: 21ms
memory: 45108kb

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: 44ms
memory: 95920kb

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: 42ms
memory: 105544kb

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: 50ms
memory: 103392kb

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: 47ms
memory: 108872kb

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: 43ms
memory: 106332kb

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: 48ms
memory: 106852kb

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: 54ms
memory: 108272kb

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: 43ms
memory: 110012kb

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: 107084kb

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: 39ms
memory: 112456kb

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: 39ms
memory: 111872kb

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: 39ms
memory: 116096kb

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: 116792kb

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: 42ms
memory: 114988kb

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: 40ms
memory: 120304kb

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: 52ms
memory: 120096kb

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: 38ms
memory: 122416kb

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: 39ms
memory: 122384kb

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: 50ms
memory: 122252kb

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: 31ms
memory: 52516kb

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: 43ms
memory: 64076kb

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: 80ms
memory: 137464kb

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: 103ms
memory: 152420kb

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: 118ms
memory: 155964kb

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: 127ms
memory: 151204kb

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: 126ms
memory: 156748kb

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: 128ms
memory: 148488kb

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: 123ms
memory: 147184kb

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: 147ms
memory: 146436kb

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: 131ms
memory: 146740kb

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: 128ms
memory: 149116kb

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: 132ms
memory: 167916kb

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: 112ms
memory: 169524kb

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: 141ms
memory: 174088kb

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: 120ms
memory: 174704kb

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: 25
Accepted

Dependency #2:

100%
Accepted

Test #238:

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

input:

7937 7961
6853 973
1269 4217
3076 6689
849 3322
4837 649
6023 3330
6616 5622
7693 2683
1677 5068
2953 4180
3325 822
6608 1896
1670 1144
3470 6278
7384 2164
6358 7339
3102 5701
6937 5758
6379 3738
2420 6651
5346 6567
3671 3562
3064 7160
3005 6666
1342 2248
300 6548
6216 4643
6181 4142
6904 2610
5925 ...

output:

Gyojun is handsome
4530
7936
4530
7936
7936
7936
7937
7936
4527
7936
7936
7936
7937
7936
7936
7937
7937
7936
7937
7937
4528
7936
7937
7937
7936
7937
7937
7937
7936
7936
7937
7937
4526
7937
7937
7936
7936
7937
7936
7936
7936
7937
7936
7937
7937
7937
7937
7936
7936
7937
7936
4532
7937
7936
7936
4526
7...

result:

ok 7963 lines

Test #239:

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

input:

7966 8012
2019 2015
6125 1004
5145 3391
1876 2948
5335 1635
6688 3694
2375 7030
35 6693
2539 3169
6556 789
6217 4164
5109 1668
2518 1511
1443 2787
5782 7668
5029 6232
4643 1232
1821 4558
2120 2439
6651 3671
4925 7506
145 2459
7469 1889
7449 3422
3432 1127
2776 557
1410 1382
4071 3275
1641 5178
2471 ...

output:

Gyojun is handsome
4487
7965
7966
7966
4492
7965
7965
7966
4489
7966
7966
7965
7966
7966
7966
4494
7965
7966
7966
7965
4487
7965
7965
7965
7965
7966
7966
7966
7966
7966
7966
7966
7965
7966
7965
7966
7966
7965
7965
7965
7965
7966
7966
7966
7965
7965
7965
4488
7965
7965
4493
7965
7966
7965
7965
7966
7...

result:

ok 8014 lines

Test #240:

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

input:

7966 8741
6154 4186
5869 440
7501 5339
5531 151
6416 320
6333 504
1730 3927
5866 751
2261 2814
6291 7833
7820 6183
1618 1682
2141 3855
5911 6259
1959 7093
6757 3925
1060 7319
7348 1106
3639 4786
4841 5142
7901 4185
7780 5326
5322 3837
7473 5822
3701 5863
7406 4808
4523 1842
2886 3733
1649 6825
6009 ...

output:

Gyojun is handsome
3263
3267
7966
3264
3264
3264
3264
7966
3268
7965
7965
7965
7965
7965
7966
3263
3266
7966
3265
7965
7966
7966
7965
7965
7965
3263
7965
7965
3265
3265
3264
3264
3263
7966
3265
7965
7965
7966
3264
7965
3263
7966
3263
3264
7965
3266
3264
3263
3264
7966
7965
7965
3264
7966
3264
3266
3...

result:

ok 8743 lines

Test #241:

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

input:

7990 11931
4266 5753
1999 4086
1991 1371
7635 7087
6970 5584
7269 3992
7193 216
1680 5749
513 7673
6610 4140
6266 4360
3590 5381
6437 7504
7569 3576
82 1076
2110 3759
4988 5580
5649 4667
3352 3072
367 7378
5255 4567
7965 170
6266 326
701 3150
152 2689
6506 6357
790 2618
5909 3191
7925 2954
360 5470
...

output:

Gyojun is handsome
1297
1295
1295
1295
1295
1296
1295
1295
1295
1296
1295
1296
1295
1295
1296
1295
1295
1295
1297
1296
1295
7989
1295
1295
1297
7989
7989
1296
1295
1296
1295
1298
7990
1295
7989
1295
7990
1296
1295
1296
7990
1295
1295
1297
1295
1295
1295
1295
1296
7989
1295
1296
1295
1295
1295
1295
1...

result:

ok 11933 lines

Test #242:

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

input:

7983 15949
6455 2427
1387 5701
4339 1856
7273 1328
7515 7389
7855 4708
7700 2540
4506 828
5631 105
4638 5916
3029 743
4899 5511
6577 6454
1241 5418
482 1052
5129 717
1530 2447
5802 4130
1737 1920
3090 605
1562 7678
5256 2996
1688 2373
4499 7691
6321 2634
5348 6988
5911 926
5329 413
4848 5823
6191 50...

output:

Gyojun is handsome
432
432
432
432
433
432
432
432
433
432
432
432
432
432
432
432
432
432
7982
432
432
432
432
432
432
432
432
432
432
432
433
432
432
433
7983
432
433
432
433
432
432
432
432
432
432
432
432
432
432
432
432
432
432
432
432
432
432
434
432
432
432
432
432
432
432
432
7983
432
433
43...

result:

ok 15951 lines

Test #243:

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

input:

7983 24909
1606 4668
6595 4633
4064 3999
1330 1534
1560 7114
24 5216
3641 2323
1483 330
53 7456
3109 100
389 2688
3897 3371
7862 4340
1069 7030
3597 3180
5873 5427
5752 2010
2249 3019
2378 2252
2815 6499
1114 6154
5455 4294
4630 7091
713 316
5994 1648
1066 612
1772 2525
5072 2135
2621 5443
7170 3838...

output:

Gyojun is handsome
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
42
43
42
42
43
42...

result:

ok 24911 lines

Test #244:

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

input:

7947 39994
6015 1116
1589 7753
7446 7265
648 4400
6444 2047
2795 965
7388 1179
56 7013
5934 2108
7495 6175
348 5465
6404 4456
4379 4743
6860 5875
6125 7322
3831 2106
4067 5682
6630 3046
602 2441
726 3554
6436 944
6800 2339
1934 194
1295 7493
3631 3217
5167 3039
4401 6845
2626 1315
208 5525
1271 3936...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 39996 lines

Test #245:

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

input:

7990 59796
1669 5587
5766 2857
1794 2617
3579 203
4068 3838
7789 4257
4852 817
6775 6543
4385 5753
5749 7744
7468 4911
5273 3982
7965 3278
2377 7274
1916 4359
1194 5855
6004 7854
7600 2882
4564 3171
2329 7696
2196 3160
2802 1343
5520 1663
3826 4540
4279 5291
5803 7243
7072 7434
4025 7276
533 1362
49...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 59798 lines

Test #246:

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

input:

8000 99737
4012 1426
137 4065
353 5630
6039 3724
2942 5185
7106 7569
5621 7054
4177 6222
6301 7909
2398 5286
7257 2537
2537 4176
6306 2972
2633 1757
1426 3633
5376 3534
2234 6515
1216 7703
6104 4920
1362 5275
4945 6125
5460 5890
2332 29
5082 1333
5263 5501
6443 4474
2064 3903
1998 6847
3194 2518
547...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 99739 lines

Test #247:

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

input:

7992 199629
6381 1224
773 6544
7973 5337
1543 2405
1300 2868
1051 5610
6237 1009
4457 3243
5133 441
3166 1696
4781 709
7732 5843
745 4926
4649 5422
1793 3403
4197 5473
3978 7320
7760 2290
7643 1914
1667 2670
5790 6410
6543 1746
2670 1363
3371 2044
4130 4588
4368 6808
6520 4
7911 3642
4694 3306
2671 ...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 199631 lines

Test #248:

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

input:

7922 249894
5774 521
6225 437
4891 4803
193 3157
735 4027
7039 4208
6614 586
521 4975
4046 1218
1207 3720
5177 720
1609 1548
3919 2609
4163 4410
5918 4456
3994 1992
6713 2088
7396 3971
4660 554
6412 5590
5968 3562
6406 4846
3355 5836
5680 212
344 2735
4570 2345
2757 5323
6268 1157
7520 5339
1925 538...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 249896 lines

Test #249:

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

input:

8000 8020
5945 5525
4711 3341
6408 4394
1085 1793
1325 3217
7977 6920
6043 4644
3315 3316
3939 2763
5355 1784
5814 6350
7209 6525
1414 6544
6163 7312
2421 7887
7749 2319
5494 4094
4592 1768
3285 6882
2043 3337
6255 3243
163 2659
2027 5868
3537 2060
7545 5478
5279 1844
7528 4328
259 99
5488 3946
96 5...

output:

Gyojun is handsome
8000
3961
7999
7999
7999
8000
7999
8000
7999
8000
7999
7999
8000
7999
7999
8000
7999
7999
8000
8000
7999
8000
8000
8000
7999
7999
8000
3960
8000
7999
7999
7999
7999
7999
7999
3962
7999
8000
8000
8000
7999
8000
7999
8000
8000
7999
8000
8000
7999
8000
8000
8000
7999
8000
7999
3961
7...

result:

ok 8022 lines

Test #250:

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

input:

8000 12000
2531 788
2010 5347
1868 5957
5853 2070
1492 850
7604 3896
1658 6862
4086 6333
6061 1609
6570 924
1183 5664
1787 3127
2450 896
1401 2453
1788 4164
4659 7700
2699 534
7725 4749
7149 3080
3846 93
7748 3947
1783 6646
3080 6534
6453 2225
7266 3763
5495 7107
1124 1194
417 592
1901 25
7119 3240
...

output:

Gyojun is handsome
1307
1306
1307
1307
1306
1306
1307
1306
7999
1306
1306
1307
7999
7999
1306
7999
1309
7999
1306
1308
1306
7999
1306
1307
1306
1307
1306
1306
1306
1306
8000
7999
1306
1307
1306
1306
1308
1306
1306
1307
1307
7999
7999
1306
1306
1306
1306
1306
1306
1306
1306
1306
1306
1306
7999
1306
1...

result:

ok 12002 lines

Test #251:

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

input:

8000 16000
7409 7500
2424 6234
4211 5652
4613 3478
6617 3876
874 1628
1110 475
7917 7670
5541 6869
4371 3915
581 6502
1322 110
7075 4534
2975 5451
3036 5085
6054 348
3340 1793
1575 4336
7659 481
559 1856
792 1551
4435 2150
6978 7705
2375 6220
1505 180
6891 4319
4335 1021
6043 2205
4769 4415
6913 434...

output:

Gyojun is handsome
529
529
529
529
529
530
530
529
529
529
529
530
529
530
529
529
529
529
529
529
529
529
529
530
529
529
529
529
529
529
529
529
529
529
530
529
529
529
529
530
529
529
529
529
529
529
529
529
530
529
529
530
530
529
529
529
530
530
529
529
529
529
529
529
529
529
529
529
529
529
5...

result:

ok 16002 lines

Test #252:

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

input:

8000 25000
691 1948
611 559
5924 2585
633 5552
2031 5926
1057 2645
7234 2756
5529 5079
1286 5391
5305 2601
4752 5422
3428 5631
3787 3755
71 2265
1275 1597
2121 864
1891 7258
2865 5372
2220 3680
5160 1887
7343 5297
4259 4369
3468 4989
5144 4691
2321 7550
1803 6569
3147 4193
309 3551
5733 6643
6505 34...

output:

Gyojun is handsome
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
57
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56...

result:

ok 25002 lines

Test #253:

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

input:

8000 40000
5710 5310
6957 4103
4788 7450
7478 5722
4443 2245
6219 417
5741 1932
6682 6205
4845 2981
5591 3000
2672 7663
5068 2294
4277 1470
3293 1468
2847 319
335 1351
7629 3199
7186 4839
5963 5479
1088 4329
4772 5178
3681 3378
6498 318
7095 769
7072 6734
4012 5979
6597 5807
6961 1100
2190 5334
807 ...

output:

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

result:

ok 40002 lines

Test #254:

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

input:

8000 60000
450 943
3356 2270
5732 514
2499 5826
828 2999
4682 6110
1358 2292
1713 1817
2813 5810
6865 892
2175 3976
355 299
3453 7236
6166 4059
1545 4751
7561 5336
3761 6403
4299 185
3522 5917
5732 5010
6555 2719
3788 3518
762 1530
6704 3871
7704 1623
2470 6018
5716 4100
6152 6728
4564 4909
2338 348...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 60002 lines

Test #255:

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

input:

8000 100000
645 453
1522 4116
1374 4624
7539 198
3380 3647
2618 425
150 6375
7307 723
97 6662
5434 5763
7501 1038
2697 1402
7848 699
4740 4732
5888 7036
3464 4905
5253 2452
7086 3688
2320 3726
1976 1587
5202 2805
1795 5188
4773 4619
3478 6319
5898 6360
828 7355
149 1205
6497 3337
4496 871
4246 3556
...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 100002 lines

Test #256:

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

input:

8000 200000
1549 685
7294 3649
6576 7184
2552 7022
148 6182
4995 4631
4570 2004
4917 3487
7077 7972
6829 7727
5399 4140
5170 6017
2279 419
1036 2082
5618 2617
94 3602
7316 2728
3768 3059
3583 1983
2059 6684
3489 239
5367 1003
1879 7660
6668 6826
3604 823
5294 2763
333 6933
7223 1662
1319 5580
795 71...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 200002 lines

Test #257:

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

input:

8000 250000
3760 4964
1809 7212
5114 7265
5333 2155
5707 1986
6730 2418
5686 5727
4833 5320
3160 7138
4976 7897
7481 2143
3129 7842
4318 3625
3366 6028
942 7580
967 5097
1712 7966
1226 5026
4586 2742
506 2232
4095 1495
1704 3157
5612 5738
6180 666
6863 3450
7505 5778
6109 6600
2044 2398
4118 4308
40...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 250002 lines

Test #258:

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

input:

8000 8020
5945 1807
4711 3341
6408 4206
2184 1793
1325 6774
7977 2865
6043 1547
4947 3316
4809 2763
5355 3399
143 6350
7751 6525
1923 6544
6163 4285
7837 7887
7749 4311
5494 4769
4592 4507
2659 6882
581 3337
6255 2849
7096 2659
1139 5868
3537 536
7545 635
7663 1844
320 4328
4889 99
5488 287
96 3448
...

output:

Gyojun is handsome
703
250
282
399
399
504
825
419
1487
473
396
727
473
1487
396
595
411
653
504
412
1487
504
420
703
653
825
595
8000
606
399
1487
8000
8000
1487
1487
261
396
402
595
402
1487
582
411
606
595
727
374
412
1487
606
606
606
825
419
1487
250
825
314
1487
727
396
825
351
1487
1487
389
72...

result:

ok 8022 lines

Test #259:

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

input:

8000 12000
2531 788
720 5347
1868 5957
3474 2070
1492 7147
7604 3896
1658 6862
4086 119
6061 2611
6570 924
1183 5664
1787 3127
3906 896
1401 5900
1788 4164
4659 2837
2699 256
7725 10
7149 3080
3846 93
7748 5438
4696 6646
3080 6534
6453 2225
7266 3763
5495 7107
5067 1194
417 664
7925 25
7119 3240
530...

output:

Gyojun is handsome
0
0
0
4
0
0
0
3
1
0
0
0
2
4
0
4
0
1
0
0
2
2
0
0
0
0
2
1
2
0
5
3
0
0
0
2
1
1
0
1
4
2
3
0
1
0
1
1
2
0
1
0
0
0
2
0
1
1
0
2
0
3
0
1
0
0
0
1
2
0
2
2
3
0
0
3
0
0
2
3
1
0
1
0
0
0
1
6
0
0
0
1
2
1
0
0
0
0
3
0
0
0
0
0
0
0
0
2
2
0
0
0
0
0
0
0
2
0
0
0
1
0
0
0
0
0
0
0
0
1
0
1
0
0
0
3
3
0
0
2
0...

result:

ok 12002 lines

Test #260:

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

input:

8000 16000
2264 7500
2424 6937
4998 5652
4613 3478
1179 3876
874 2152
1110 5456
7917 654
5541 6869
4371 3915
581 2554
2012 110
114 4534
2975 5451
3036 3542
6054 6676
3340 1793
400 4336
7659 481
559 1856
792 1387
4435 2150
6978 7705
1079 6220
1505 2245
6891 5526
4335 1021
6043 1057
4769 4415
6913 434...

output:

Gyojun is handsome
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
2
1
2
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
4
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
3
1
1
1
2...

result:

ok 16002 lines

Test #261:

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

input:

8000 25000
691 1948
611 559
1282 2585
633 5552
2031 5926
1057 283
7234 2756
5529 5079
1286 1398
5305 2601
4752 2377
3428 5631
3787 3755
71 6175
1275 1597
2121 864
1891 7258
2865 5372
2220 3680
5160 1887
7343 5297
4259 4369
3468 4989
5144 3047
2321 7550
1803 6569
3147 6890
4990 3551
5733 7063
6505 34...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 25002 lines

Test #262:

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

input:

8000 40000
6735 5310
4872 4103
4788 7450
7478 5722
3813 2245
2019 417
5741 1932
6682 6205
4845 2981
5591 3000
2672 7663
5068 2294
4277 1470
3293 1468
2847 319
335 1351
7629 3199
2986 4839
5963 5479
1088 4329
4772 5178
3681 3378
6498 318
7095 769
7072 6734
2205 5979
6597 3684
6961 1100
2190 5334
807 ...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 40002 lines

Test #263:

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

input:

8000 60000
450 943
3356 2270
5732 514
2499 5826
828 2999
4682 6110
1358 2292
1713 1817
2813 5810
6865 892
2175 3976
355 299
3453 7236
983 4059
1545 4751
7561 5336
3761 6403
4299 185
3522 5917
5732 5010
6555 2719
3788 3518
762 1530
6704 3871
7704 1623
2470 6018
5716 4100
6152 4806
4564 4909
2338 3482...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 60002 lines

Test #264:

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

input:

8000 100000
645 453
1522 4116
1374 4624
7539 198
3380 3647
2618 425
150 6375
7307 723
97 6662
5434 5763
7501 1038
2697 1402
7848 699
4740 4732
5888 7036
3464 4905
5253 2452
6605 3688
2320 3726
1976 1587
5202 2805
1795 5188
4773 4619
3478 6319
5898 6360
828 7355
149 1205
6497 150
4496 871
4246 3556
4...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 100002 lines

Test #265:

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

input:

8000 200000
1549 685
7294 3649
6576 7184
2552 7022
148 6182
4995 4631
4570 2004
4917 3487
7077 7972
6829 7727
5399 4140
5170 6017
2279 419
1036 2082
5618 2617
94 3602
7316 2728
3768 3059
3583 1983
2059 6684
3489 239
5367 1003
1879 7660
6668 6826
3604 823
5294 2763
333 6933
7223 1662
1319 5580
795 71...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 200002 lines

Test #266:

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

input:

8000 250000
3760 4964
1809 7212
5114 7265
5333 2155
5707 1986
6730 2418
5686 5727
4833 5320
3160 7138
4976 7897
7481 2143
3129 7842
4318 3625
3366 6028
942 7580
967 5097
1712 7966
1226 5026
4586 2742
506 2232
4095 1495
1704 3157
5612 5738
6180 666
6863 3450
7505 5778
6109 6600
2044 2398
4118 4815
40...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 250002 lines

Test #267:

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

input:

8000 15998
4151 686
5539 4859
3925 95
7835 5360
3925 6627
2802 6074
7418 6476
2486 3329
7831 5785
6851 6681
1292 4568
6554 5221
1761 3268
6307 6109
7913 4169
7762 1899
2102 3250
2049 6111
3696 4610
6072 6477
647 1445
5237 2709
4129 1710
2567 3143
6826 3340
3529 7016
67 3378
3541 3375
6244 5076
4524 ...

output:

Gyojun is handsome
4
4
4
3
3
3
3
3
3
3
3
4
4
3
3
4
3
4
4
3
3
3
3
3
3
3
3
3
3
4
3
3
3
4
3
3
4
3
3
3
3
4
4
4
3
4
3
3
3
3
3
3
4
3
3
4
4
3
4
4
4
3
4
3
3
4
3
4
3
3
4
3
3
3
3
3
4
3
4
3
3
4
3
3
4
4
4
3
3
4
3
3
4
3
3
4
4
3
3
4
3
3
3
3
3
4
3
4
3
3
4
3
3
3
3
4
3
4
3
3
3
3
4
4
3
3
3
4
4
3
4
3
4
3
4
3
3
3
3
3
3...

result:

ok 16000 lines

Test #268:

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

input:

8000 13307
3522 6952
5306 4599
6896 6791
3943 3097
7943 2129
3311 392
1414 6155
3697 7474
4238 5618
2766 2843
3869 4801
3733 6018
4156 3961
846 3208
4326 1956
5723 58
3579 481
4995 812
3174 7028
4334 7080
18 6529
1486 930
4890 1526
5843 3485
5804 7867
2223 7795
7991 3829
7972 6121
2797 7213
6325 654...

output:

Gyojun is handsome
0
1
2
1
2
1
1
0
2
0
0
1
1
0
0
1
0
0
0
0
2
1
0
1
0
0
0
0
0
1
1
1
1
1
2
0
0
2
2
2
0
0
2
0
0
0
2
2
0
1
0
0
0
1
1
0
0
1
1
1
0
0
2
0
2
0
1
2
0
0
1
0
2
0
0
0
0
2
1
0
0
0
1
0
1
0
2
2
0
2
0
1
1
0
0
0
1
0
1
2
0
0
0
1
1
0
1
0
2
1
0
1
1
0
0
0
0
0
1
0
0
1
1
0
0
1
0
0
1
0
1
1
0
0
0
2
0
0
0
1
0...

result:

ok 13309 lines

Test #269:

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

input:

8000 12005
2464 2510
2103 4669
1298 718
2559 6724
3532 6407
7921 2796
3868 1
7983 7825
6183 6030
1651 878
1252 779
1106 5941
3533 6590
4651 4036
4351 807
2385 4368
1283 586
4228 1826
1500 7030
3511 1343
6779 7164
7721 1250
3843 6143
4090 2167
5770 587
2106 3292
2461 5836
6850 356
2611 2925
3448 1893...

output:

Gyojun is handsome
0
0
3
3
2
0
0
0
3
1
3
0
1
0
0
2
2
0
0
0
2
0
1
3
1
1
0
0
0
0
0
0
1
0
3
3
0
0
0
0
1
1
2
3
0
1
0
1
0
3
0
0
2
1
0
0
1
0
1
2
1
1
0
3
0
2
2
3
0
1
1
2
0
1
1
0
0
3
0
1
0
1
2
0
0
1
1
0
1
0
0
0
1
1
1
0
0
3
3
1
0
1
2
2
0
1
0
1
0
0
1
0
0
0
2
3
1
2
2
2
1
0
0
1
0
1
3
2
0
1
3
0
0
0
1
0
0
3
0
0
0...

result:

ok 12007 lines

Test #270:

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

input:

8000 9444
2263 3612
3433 5809
6719 2496
5894 3510
5493 1954
1692 2406
3712 4234
5678 2070
6227 2082
6043 7001
1479 1503
1523 4916
5963 1603
4089 5685
7165 419
6303 7316
6803 930
6611 1594
3799 3966
5612 2033
1615 6304
2316 5448
7775 7783
256 7964
496 581
3491 4545
4154 803
7703 3559
6436 7075
6071 3...

output:

Gyojun is handsome
2
1
4
6
0
2
10
9
9
2
1
5
7
8
5
1
4
9
2
10
1
8
0
6
6
0
3
0
5
7
4
0
1
1
5
2
2
9
4
8
2
2
2
0
3
9
1
5
9
8
2
9
3
9
0
6
0
1
0
2
4
1
3
0
2
7
1
3
2
5
1
1
8
3
2
0
5
2
9
0
2
0
4
2
0
1
0
7
7
1
9
0
6
9
2
1
7
1
3
0
2
0
0
7
0
2
2
3
5
7
1
0
1
2
6
9
0
1
7
0
2
10
1
3
5
2
3
3
4
3
6
3
3
4
0
10
0
7
0...

result:

ok 9446 lines

Test #271:

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

input:

8000 8981
4546 6189
6791 1764
3168 3415
6092 6476
6563 2081
1393 4068
3151 1827
791 6495
5923 6209
1502 7586
7348 3715
7878 4495
5206 6115
2761 7676
2288 624
7443 6223
2939 6658
4411 4486
216 6849
3971 514
1775 4711
6211 6505
7361 2757
2210 3966
6354 7628
6699 5465
7884 6020
5909 4946
2360 1093
5938...

output:

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

result:

ok 8983 lines

Test #272:

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

input:

8000 8738
7612 2148
1396 1168
7737 3952
5673 2199
7998 5260
7221 1075
1172 4650
685 1075
2518 3047
7986 2229
7082 7151
5363 3040
6746 5181
6802 855
1975 2325
6154 4195
2266 3791
6630 3719
5367 7882
7494 1227
596 141
5928 7109
6945 1691
3364 2579
1939 2939
128 1675
5607 4273
7149 76
2512 3467
311 630...

output:

Gyojun is handsome
1
16
7
2
16
10
9
10
9
16
11
13
8
5
3
6
6
12
8
1
8
9
2
1
19
6
20
0
10
7
7
19
3
10
1
11
3
3
8
1
11
5
9
7
7
0
15
4
12
2
1
4
2
8
1
9
0
16
14
10
13
20
10
7
13
16
10
16
6
0
13
1
2
11
3
17
4
6
5
14
4
1
5
7
6
16
15
9
16
9
2
2
12
11
12
20
4
5
1
15
20
2
3
13
14
13
1
1
10
17
6
2
8
12
14
7
2
...

result:

ok 8740 lines

Test #273:

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

input:

8000 8395
2118 5753
7275 5182
7555 50
2199 2070
6163 1943
5458 967
6942 5409
4777 3098
4714 5840
2338 6861
3572 1495
5569 6443
1252 7368
580 6267
333 404
2023 1328
4548 6102
2142 5249
901 1384
634 6300
3796 4563
1307 551
1396 7128
5071 872
7383 6674
4208 6331
5083 4041
6897 6119
3142 4363
3448 2669
...

output:

Gyojun is handsome
7
13
21
15
40
10
11
9
27
2
18
5
10
23
12
0
7
6
8
23
15
35
2
14
25
19
13
26
9
22
6
26
9
2
31
9
18
12
5
13
2
12
21
7
22
5
25
12
30
5
31
19
1
3
27
20
30
1
6
19
16
23
8
16
1
29
32
11
5
19
26
17
26
11
15
17
19
9
14
22
5
22
5
29
11
37
12
21
2
13
35
17
20
26
4
8
2
21
37
33
10
0
7
7
9
11
...

result:

ok 8397 lines

Test #274:

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

input:

8000 8157
2631 7612
613 3553
7967 2534
3510 1179
3049 205
7354 287
4980 7722
739 176
5739 1017
199 4590
518 1943
7603 2055
4220 5053
3601 6528
2068 6727
483 5138
1400 136
5554 5420
3153 7898
817 2770
6483 5433
2274 3296
670 3071
4613 5620
6841 207
5053 2039
2153 208
2261 2899
4173 582
1467 5143
2789...

output:

Gyojun is handsome
15
34
66
80
39
14
16
25
45
76
9
97
38
71
71
24
34
90
15
78
46
19
36
28
26
38
46
54
30
18
46
9
30
8
20
38
79
66
45
8
83
32
100
39
10
46
4
71
83
79
27
4
13
17
14
17
94
8
59
63
23
32
45
21
3
26
8
95
30
59
40
39
30
13
78
39
73
10
33
45
25
83
80
30
25
61
42
99
94
97
78
4
54
63
97
39
5
...

result:

ok 8159 lines

Test #275:

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

input:

8000 8077
3573 5951
6917 1544
5165 6231
2170 2304
1346 5389
5211 3298
1599 7233
6390 7747
22 4830
7056 243
2791 605
6725 7513
4153 4888
4882 6332
7004 628
5647 6003
5832 3799
5426 1309
6819 1219
3628 1781
4873 3022
1400 1236
86 6429
3310 4725
1228 1623
2215 964
93 1678
4465 6739
7637 5054
629 97
83 ...

output:

Gyojun is handsome
129
144
71
111
85
72
138
103
15
41
50
32
95
144
93
126
85
126
138
9
61
60
114
93
51
56
74
131
60
86
163
28
138
135
16
129
103
31
76
91
5
35
14
135
20
52
93
74
40
32
95
93
129
51
7
30
154
78
72
101
110
73
72
13
82
27
135
135
28
59
171
131
33
138
129
78
28
44
138
93
7
86
27
11
20
15...

result:

ok 8079 lines

Test #276:

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

input:

8000 8058
2968 4152
3461 3456
1422 4419
1549 2692
1074 7990
2694 774
2107 3301
274 7313
7166 5841
226 1729
2766 5208
6494 3026
364 3837
5752 634
5725 1871
7577 2150
2337 7305
2605 3992
4512 2847
7806 7340
1555 324
890 4113
1437 1673
4569 6810
6049 7058
1935 5269
2726 6300
7009 469
6242 1008
4708 271...

output:

Gyojun is handsome
140
101
58
175
145
26
60
175
99
95
67
90
164
71
107
226
85
55
60
136
95
216
188
26
240
121
145
192
241
16
46
73
132
7
99
227
136
152
39
60
27
11
95
15
47
44
4
233
241
15
34
233
6
226
241
136
18
124
50
47
14
188
226
20
112
164
216
31
37
2
132
15
148
39
164
216
124
54
105
150
11
241...

result:

ok 8060 lines

Test #277:

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

input:

8000 8043
1200 1975
2685 3866
1967 1552
3841 2580
4424 2258
6608 7459
301 4809
3112 5967
2848 1060
4563 6427
5305 7817
467 7220
373 6991
3070 6319
4851 4250
4868 5175
3493 6210
4113 2265
4190 76
6726 7400
3333 1355
2617 2080
5878 7145
121 5988
6246 7981
5502 4811
4401 4061
7811 2835
4650 7544
2768 3...

output:

Gyojun is handsome
113
99
257
257
21
122
129
66
113
186
36
55
49
257
167
62
23
171
118
129
179
36
257
121
71
119
19
89
29
236
257
311
92
236
258
109
71
179
66
236
200
64
50
62
109
104
116
98
119
15
236
34
167
155
118
185
118
50
119
86
92
171
48
122
41
185
34
83
92
60
27
33
213
171
167
78
64
311
41
1...

result:

ok 8045 lines

Test #278:

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

input:

8000 8020
5157 604
2416 2672
6964 7560
5194 2327
233 2853
1456 4096
2563 5129
4663 2680
1929 2125
194 6215
7887 2582
2713 2263
4790 7033
1367 6057
1202 1516
6532 5785
3427 4495
6910 2670
5950 2572
7796 154
4826 7338
4727 2298
5680 5065
3349 5540
1583 4973
4311 814
709 2404
3597 1290
5045 1622
1241 3...

output:

Gyojun is handsome
129
27
151
116
793
793
150
179
465
184
258
793
125
247
184
161
60
555
258
89
465
555
247
161
121
258
161
555
258
88
75
262
247
298
130
247
133
133
130
184
92
555
116
228
256
121
287
793
90
298
262
93
555
184
151
249
116
228
88
228
465
129
262
262
793
90
298
114
65
256
555
60
793
2...

result:

ok 8022 lines

Test #279:

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

input:

8000 8011
6204 4898
1020 3641
7269 5885
365 7638
2214 7943
5441 3601
3381 516
7245 5376
7801 6043
4540 4431
5629 620
7640 4029
5209 4416
3439 6019
4145 2908
6836 6279
5145 2931
2538 5024
6598 4301
766 5662
4255 6178
5937 5110
1343 3891
1749 5216
2220 5348
4921 571
7413 4062
6995 4882
6310 3215
167 1...

output:

Gyojun is handsome
803
184
792
237
237
792
299
602
803
792
602
302
667
803
792
241
176
488
302
390
390
241
178
719
390
488
488
88
803
390
792
719
237
301
488
719
488
803
241
667
488
792
241
237
719
803
792
299
287
667
241
198
719
178
299
667
51
287
287
803
176
719
198
302
287
84
792
792
302
301
116
...

result:

ok 8013 lines

Test #280:

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

input:

8000 8008
3704 2391
5614 7923
672 5229
4660 2517
2908 286
1114 3046
6202 3119
1207 2293
5498 7729
1276 5312
2399 3954
7336 4974
6274 7398
6226 5457
2170 971
3299 7012
3283 6278
7472 6286
1324 899
4009 1145
3763 5159
1614 4440
5005 1479
6767 171
2304 2605
7758 735
2279 3548
1101 2989
4512 4
2439 3579...

output:

Gyojun is handsome
761
710
818
818
499
761
442
444
818
275
710
598
550
347
499
710
710
844
499
818
761
598
444
355
442
347
444
710
442
710
710
761
495
844
550
495
442
761
598
710
444
844
188
495
844
818
710
710
188
710
598
495
499
598
844
347
444
550
444
844
499
598
229
598
444
710
355
761
550
495
3...

result:

ok 8010 lines

Test #281:

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

input:

8000 8007
6225 5218
6367 451
5394 9
3336 2377
5508 2722
4300 4646
6981 7636
3431 5037
3547 3289
4966 5681
745 610
44 5990
5993 3040
5946 7786
2119 6946
181 5404
3171 157
3807 1453
2443 6717
5077 4343
3615 6494
5519 7784
3311 6760
1865 6443
7348 3701
30 7168
7069 4933
5460 2396
3062 7602
1522 45
7449...

output:

Gyojun is handsome
789
789
1224
789
860
407
860
313
285
860
649
313
789
43
285
476
285
860
285
618
618
313
789
789
1224
371
371
606
1224
649
407
789
1224
1224
301
152
618
789
285
1224
789
50
812
649
476
618
789
1224
50
860
789
1224
789
649
407
371
812
812
313
152
618
860
371
606
618
812
301
476
649
...

result:

ok 8009 lines

Test #282:

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

input:

8000 8009
884 1161
6832 5224
5523 4272
3587 4618
5854 2125
6146 831
4833 3488
1072 3667
5989 2040
478 813
1620 3989
6023 3593
1441 1110
6304 6782
4020 613
5483 3917
5081 2811
5865 4721
4823 546
7577 4369
428 1360
603 3742
7977 4764
1718 2888
7988 159
5848 1447
2395 3231
3510 3967
3026 463
6954 2452
...

output:

Gyojun is handsome
2379
135
71
190
65
478
478
478
478
153
353
2379
2379
853
766
2379
542
2379
135
2379
766
853
2379
2379
853
553
74
478
2379
249
2379
853
158
478
766
2379
2379
353
338
338
2379
853
542
135
2379
249
19
2379
553
2379
2379
135
249
65
2379
478
2379
2379
2379
542
542
190
478
542
542
766
7...

result:

ok 8011 lines

Test #283:

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

input:

8000 8006
4827 2591
4675 1668
3712 4564
2386 2660
4070 713
1624 2228
2288 1921
5712 4613
5889 7692
629 6468
1357 2145
2624 619
3658 7941
480 7747
184 639
7091 4420
67 5701
1663 4465
177 2953
4515 2400
3072 3862
6364 2850
4427 326
3746 5929
6205 1175
3266 6503
5687 5028
7550 5861
2848 3992
5386 1904
...

output:

Gyojun is handsome
2942
200
2942
898
2942
2942
453
999
453
898
1364
2942
898
898
2942
1364
10
1364
2942
2942
431
898
200
2942
2942
1364
267
999
240
267
1364
240
2942
431
2942
999
1
2942
2942
453
898
2942
1364
999
999
1364
2942
898
999
1364
898
2942
200
2942
999
240
1364
267
2942
2942
431
898
2942
13...

result:

ok 8008 lines

Test #284:

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

input:

8000 8001
3741 903
5741 7034
6991 3851
6722 2652
7585 2466
4699 3420
1321 3612
5335 5096
6256 3087
6591 6852
2109 465
7784 1575
7811 482
6017 6606
3383 7176
307 5575
2317 4771
7627 3305
5886 2964
102 3349
6467 725
7693 4697
6916 3976
4533 274
5445 6039
825 2123
6887 4678
2263 6280
758 4416
1819 5589...

output:

Gyojun is handsome
2586
2586
5381
5381
2586
2586
5381
5381
2586
5381
5381
2586
2586
5381
5381
2586
5381
5381
5381
2586
5381
5381
5381
2586
5381
5381
2586
5381
2586
2586
5381
2586
2586
5381
2586
2586
5381
2586
5381
5381
2586
5381
5381
2586
5381
5381
5381
2586
2586
5381
5381
2586
2586
2586
2586
5381
5...

result:

ok 8003 lines

Test #285:

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

input:

8000 242740
6925 7510
5288 3813
2844 6031
2299 2232
4389 693
2756 7347
7814 203
452 2836
4951 3330
3200 2463
7069 1233
2747 5006
6151 3169
2883 6692
763 2095
3958 1652
4213 2366
685 5188
2322 1330
2949 7296
5477 4819
4791 3854
7202 4125
4563 6977
1948 3215
1318 7596
2098 7887
4411 2308
78 6468
3353 ...

output:

Gyojun is handsome
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
1...

result:

ok 242742 lines

Test #286:

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

input:

8000 243048
1436 5022
4418 2631
7239 1629
6984 6263
6935 3267
2549 2710
3651 5547
1338 2330
4509 6231
489 4388
5626 3621
6569 3390
165 2066
516 734
6751 4726
1055 1372
2714 6193
559 943
4000 2919
7603 1261
5680 5043
810 656
6642 3412
4773 6931
1389 3053
2031 4847
3268 226
3665 3338
4763 6221
10 3814...

output:

Gyojun is handsome
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
1...

result:

ok 243050 lines

Test #287:

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

input:

8000 243017
5014 2087
6390 7178
984 1029
4084 1006
2196 6768
4823 6380
4227 304
3259 2000
5283 614
3825 3069
6682 7842
1322 4407
1233 7808
5193 7401
5059 3207
3513 5111
3138 7473
4225 3497
2311 2228
7808 4603
1664 2736
1761 2015
3684 5878
3560 2899
4740 4483
6369 1211
4271 5779
4347 3898
1582 7279
6...

output:

Gyojun is handsome
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
1...

result:

ok 243019 lines

Test #288:

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

input:

8000 11434
1046 313
654 7986
1512 2147
6501 4395
4410 7401
3975 182
1749 3167
7370 4315
752 6075
1140 3115
5418 469
2332 1356
3338 6182
3773 2897
3465 7493
4048 7916
3732 7517
2596 5184
6727 7377
2713 6191
5374 7794
4674 5262
6751 2807
4125 4151
6980 6039
1643 4539
1602 5315
4273 4231
2258 3803
7131...

output:

Gyojun is handsome
76
100
85
109
83
76
97
79
76
76
90
76
82
76
95
79
91
91
104
100
115
87
91
76
79
82
108
76
76
85
116
76
76
76
96
88
89
76
76
108
94
98
76
76
113
91
106
88
76
104
102
101
84
85
76
106
76
102
136
85
94
101
91
100
76
81
104
106
109
76
98
79
83
91
101
76
82
94
104
96
76
76
116
80
109
9...

result:

ok 11436 lines

Test #289:

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

input:

8000 16536
903 4183
2702 4120
1460 7451
2505 5808
6125 1999
1276 4564
4553 5617
7122 4283
2467 5092
5061 299
1828 4155
1367 2620
1024 29
5433 7013
3574 4238
5414 99
4283 6823
371 6510
1857 426
6897 6843
4467 7857
289 3524
4575 7616
2061 7731
7239 5667
4908 1737
2903 3430
219 7696
5868 111
1263 307
4...

output:

Gyojun is handsome
94
82
96
84
86
82
82
82
82
82
82
90
94
82
85
96
82
96
82
82
82
93
84
82
94
98
82
82
87
82
107
85
83
82
83
89
82
106
82
82
89
85
82
82
82
82
102
92
82
82
88
82
88
82
96
99
82
82
82
82
82
82
95
82
85
96
82
82
83
82
93
82
103
103
91
85
91
102
82
82
94
93
92
82
88
95
82
96
87
82
91
11...

result:

ok 16538 lines

Test #290:

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

input:

8000 20587
4570 5614
6730 7944
3647 6356
4296 6739
5001 3044
4581 3574
5720 6948
6352 7704
964 5001
4632 7937
1854 1826
3044 5557
5005 2608
5236 6314
6250 705
2280 5685
5693 4774
6191 3387
2205 520
4902 2192
5279 537
59 694
2643 3176
2241 2301
5243 4778
309 490
2918 4506
4879 1609
393 2847
6129 621
...

output:

Gyojun is handsome
67
74
67
67
67
81
76
67
69
67
72
67
68
67
87
67
67
67
67
81
67
86
67
67
67
68
73
68
74
80
67
72
74
67
75
67
67
67
69
67
67
67
67
67
67
84
67
67
84
85
67
67
67
67
79
67
67
67
67
67
67
67
78
72
67
90
67
81
67
87
67
67
67
73
74
67
67
67
67
67
67
67
67
69
85
67
77
67
71
73
70
73
67
74...

result:

ok 20589 lines

Test #291:

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

input:

8000 38007
4785 2714
2431 4971
2427 7472
6764 1200
4621 5716
7154 6351
7274 6414
972 3314
1040 2151
4374 2870
6953 1443
6581 4133
2370 723
284 3816
2460 1816
249 155
59 6870
1653 1957
7615 6239
2590 3962
6967 5143
4822 3451
683 2165
6740 1746
583 7731
2193 2873
5008 6100
5292 6609
3236 2187
5104 320...

output:

Gyojun is handsome
70
70
70
70
70
70
70
70
70
70
70
70
70
70
76
70
72
70
72
70
70
70
70
70
70
70
70
70
70
70
70
70
70
70
70
70
72
70
70
70
70
70
70
70
73
70
70
79
70
70
71
74
70
70
70
77
70
70
74
70
70
70
70
70
70
72
70
70
70
70
70
70
70
71
88
70
70
70
70
70
70
70
70
70
70
73
70
70
73
70
70
70
70
70...

result:

ok 38009 lines

Test #292:

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

input:

8000 136545
3805 2870
7844 6531
2387 1486
1389 283
2256 5062
2836 2183
577 1219
3816 7401
6505 101
7254 5345
4858 349
2644 4819
7718 1113
7093 770
2033 2958
6275 7138
7976 6243
3471 1155
5988 3757
6860 1553
7191 6256
5821 7473
3660 5401
2991 1242
7118 6031
213 1938
1020 4874
7027 5839
2247 3459
4072...

output:

Gyojun is handsome
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
77
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
79
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
77
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74...

result:

ok 136547 lines

Test #293:

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

input:

8000 245502
2364 3298
2642 3517
2769 6132
6893 7440
6662 2385
2920 2091
3611 3916
5773 3805
3223 2357
6548 3747
1932 3710
6288 2445
6635 1532
3895 2139
3700 5622
7651 572
7612 1836
3233 6153
4530 2098
2713 7505
5564 6536
4341 2657
4803 1019
4348 3053
3765 1246
327 2381
2168 1441
5301 5833
148 5551
3...

output:

Gyojun is handsome
72
72
72
72
72
72
72
73
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72
72...

result:

ok 245504 lines

Test #294:

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

input:

8000 245260
516 2152
6818 7574
4673 6212
7694 1287
362 6004
625 3516
2636 5614
1110 2308
7954 2493
304 4207
7269 4830
3847 2108
7462 7150
5934 6106
2691 6002
2675 5718
1461 2798
7944 7196
6035 3190
3149 3009
6794 2809
5798 4332
5574 7388
1631 981
6185 1258
5492 7461
1553 5819
4614 3353
4341 1628
671...

output:

Gyojun is handsome
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78
78...

result:

ok 245262 lines

Test #295:

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

input:

8000 245468
4557 7536
2027 2215
7854 6682
2186 6332
6050 4052
4839 6768
4274 7652
2981 4833
5544 232
5427 36
3248 6510
2312 1027
1239 3038
1347 2513
1815 7548
761 39
4365 1025
7997 6474
7605 5008
5321 1896
7655 3663
167 3879
7446 1298
5811 5516
3207 2137
6987 5045
4094 141
4893 1681
2352 1217
7595 3...

output:

Gyojun is handsome
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74
74...

result:

ok 245470 lines

Test #296:

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

input:

8000 10102
2167 3763
2384 6658
1713 6584
3746 1618
6932 7289
529 7597
6533 3515
5108 7344
2347 1564
2943 6066
4072 604
7582 3754
6530 4283
4427 4009
3798 403
7836 2373
1614 2214
745 3320
5972 7991
3205 5086
862 2436
849 4197
4393 4741
5584 7646
2569 6702
1194 1017
1929 4352
3333 2268
3467 7905
7821 ...

output:

Gyojun is handsome
96
66
56
46
59
46
71
120
46
79
63
56
60
65
48
55
67
64
94
72
46
46
46
88
46
52
64
46
46
70
46
46
52
113
46
56
72
46
66
61
65
106
50
76
82
81
61
106
83
67
79
46
103
69
62
103
46
87
46
51
60
46
113
47
46
63
80
46
66
62
66
66
113
46
71
51
80
65
70
66
81
69
74
85
131
60
46
67
72
68
12...

result:

ok 10104 lines

Test #297:

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

input:

8000 13641
3329 1955
3807 2899
4624 5578
3158 1702
1206 2693
4092 3238
7222 6520
738 1680
6183 3420
4853 7504
4683 2428
6126 191
2333 4876
1303 4565
1005 5735
1768 5533
3022 7987
5883 6031
5543 1358
1893 3150
7611 6652
2340 593
3090 6164
7507 1216
804 378
5787 3983
2368 2052
697 2296
582 1319
3893 2...

output:

Gyojun is handsome
54
70
67
54
54
54
65
54
54
63
76
71
64
83
71
54
54
60
54
79
54
77
76
54
59
91
58
54
63
54
54
80
79
54
75
58
54
67
70
82
54
54
54
60
85
60
61
68
54
69
87
64
68
54
54
58
54
54
73
73
54
77
93
54
82
64
64
75
54
89
62
67
60
54
68
60
54
79
76
54
59
57
54
82
59
54
54
71
54
54
67
82
83
73...

result:

ok 13643 lines

Test #298:

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

input:

8000 25196
4605 2322
4798 5846
4736 7691
2843 744
2835 3711
4267 2849
3148 6812
7348 320
6591 6900
6639 1918
800 1294
2374 3901
4957 6317
3224 6808
7515 633
6712 5217
2931 3921
4146 1817
6192 5992
3278 5285
5450 2679
5425 2717
2078 735
1783 6785
2602 4929
117 320
1993 5951
231 2093
7651 3988
4786 70...

output:

Gyojun is handsome
58
58
58
58
70
58
58
58
63
58
74
68
60
58
58
64
58
58
58
73
68
58
58
58
61
58
58
58
58
58
58
68
58
58
58
58
58
58
58
58
59
58
73
58
68
58
58
58
69
71
58
58
60
58
66
62
65
58
62
58
69
58
58
58
58
58
68
58
60
58
58
58
58
58
58
58
86
72
66
58
58
58
58
58
58
58
58
67
58
58
58
58
69
65...

result:

ok 25198 lines

Test #299:

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

input:

8000 76879
2588 2059
5822 4755
6622 1652
1413 599
372 2867
3571 3463
2414 6204
4355 7566
7213 1165
3116 6107
3778 1765
2754 980
4113 6146
6405 2089
5477 2865
5932 576
6166 3008
3036 5157
2377 5950
4926 2751
6191 436
2810 1518
5905 5460
5766 6874
6445 6945
4622 1957
6688 556
6748 912
7226 5963
7034 7...

output:

Gyojun is handsome
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
65
68
57
57
57
57
57
57
57
61
57
57
57
57
68
57
57
57
57
57
57
57
57
58
57
57
68
63
57
57
57
57
57
57
57
57
57
57
60
57
57
57
57
57
57
57
57
57
57
57
60
57
57
70
57
57
66
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
59
61
58...

result:

ok 76881 lines

Test #300:

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

input:

8000 246481
6361 5293
7231 4462
7572 247
4591 5256
1549 7758
2498 2243
1505 7928
6261 2463
3398 2753
1170 4186
7365 6504
6179 7583
1681 2117
7769 1680
5691 2741
4772 7528
1182 7400
4382 2481
5506 3040
615 1770
926 7742
5847 7457
5680 1432
2821 4899
2478 7942
3393 7561
3209 308
962 3128
3178 1973
625...

output:

Gyojun is handsome
56
56
56
56
56
56
58
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
56
77
56...

result:

ok 246483 lines

Test #301:

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

input:

8000 246953
3680 6928
3474 6766
608 7428
1256 6441
1569 6598
4030 4991
1701 5190
4736 2759
6245 3410
1659 4905
6489 6209
5034 4822
4015 577
7081 6902
5527 4473
997 7504
6550 5839
2575 5116
2379 3342
687 1747
2889 3630
4722 3688
5562 4115
4334 4924
4277 2414
2013 5747
2469 6407
3069 5209
1690 6493
48...

output:

Gyojun is handsome
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
51
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49...

result:

ok 246955 lines

Test #302:

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

input:

8000 246509
5586 2082
440 2613
4958 7875
421 2393
863 694
7763 2268
4108 3283
1610 256
4413 4582
6936 2953
7792 6656
7916 7309
6975 3063
3727 2574
3640 7109
3262 5392
6737 7142
5048 1346
7610 5471
846 4341
1232 5397
7793 2152
6635 6675
7021 1114
3171 241
1061 304
6889 2766
6162 719
902 7162
5096 702...

output:

Gyojun is handsome
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
76
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57...

result:

ok 246511 lines

Test #303:

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

input:

8000 246432
1641 6937
3269 5568
2577 2424
5349 7631
5923 682
6548 4691
3164 6790
2954 2591
2738 6157
4857 5827
6369 2141
4545 4160
2689 7947
5112 5400
3054 4087
8 7373
7807 5394
2866 3652
5921 2766
540 1398
3946 6801
6136 3582
5522 7217
4836 3877
2908 899
276 7427
2103 2091
1400 124
2537 16
7410 703...

output:

Gyojun is handsome
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
73
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58...

result:

ok 246434 lines

Test #304:

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

input:

8000 246628
2879 2841
864 1084
1813 6983
2584 7310
2135 5469
4733 6671
7089 3761
5422 4014
4968 499
7746 1676
2640 5950
5114 2252
6954 974
724 2279
2340 4347
5842 7159
771 1649
2745 2158
1706 7307
2709 2914
6277 1049
3648 1932
4206 3695
1544 211
2955 2366
851 1234
3642 5300
7842 7280
3740 3409
5798 ...

output:

Gyojun is handsome
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55
55...

result:

ok 246630 lines

Test #305:

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

input:

8000 10760
1647 3988
6516 6855
7159 133
6957 474
6898 1139
7736 49
2902 5439
453 4298
4828 208
4801 6410
2827 582
174 4368
6826 7114
4528 1000
6263 4266
3665 7346
5856 196
733 4382
1992 200
4224 4512
5484 1302
5014 3505
3302 5963
2274 1187
7205 3645
4954 4070
4361 3325
1972 1116
7245 3201
6584 3696
...

output:

Gyojun is handsome
71
133
61
89
71
61
69
66
78
61
66
89
71
73
83
61
61
80
61
61
69
76
64
75
62
98
81
104
61
104
61
115
66
98
83
87
104
65
65
109
86
61
61
81
61
74
74
76
61
72
78
65
75
95
64
84
88
61
118
87
78
65
64
79
74
61
61
84
61
61
66
70
61
102
68
109
72
61
94
73
61
102
104
94
69
61
115
61
67
87...

result:

ok 10762 lines

Test #306:

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

input:

8000 13548
3230 7719
5374 1173
4068 3835
2608 3276
4365 4069
3862 7030
1962 5978
243 390
5192 4516
3880 5964
5966 7079
5460 1191
3359 3407
1267 1969
3862 2508
4353 1465
2584 7674
1127 5340
394 3073
4474 1022
2277 6609
2172 3307
3784 998
1611 5058
2250 1139
880 7295
376 7214
2894 7455
2886 7463
6507 ...

output:

Gyojun is handsome
53
55
58
53
81
53
71
53
53
68
89
63
61
68
53
53
53
53
67
89
53
53
53
68
59
62
64
53
59
68
92
76
72
58
53
53
79
92
62
53
53
74
105
53
62
53
58
53
185
53
53
67
65
60
76
53
53
58
53
59
53
53
53
53
62
60
53
62
89
65
73
72
53
53
57
61
53
60
60
53
65
53
53
53
53
69
53
53
53
73
62
53
53
...

result:

ok 13550 lines

Test #307:

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

input:

8000 26969
5317 2563
322 3672
3541 1238
2943 4332
7923 5005
6533 7814
470 6109
900 734
7878 4409
1139 750
5212 797
6311 7855
7819 6483
318 661
411 2313
5086 2122
3178 3243
3992 3075
5530 6333
2964 6754
5137 4488
5987 4245
5990 7737
1165 7882
5707 7188
5604 3287
7483 2276
3711 3521
5908 4135
7118 215...

output:

Gyojun is handsome
44
44
44
44
44
44
54
44
44
44
44
44
51
44
44
48
44
44
44
44
44
44
44
58
44
44
44
44
44
55
66
52
44
44
44
44
44
53
44
44
44
44
44
44
58
44
44
52
44
44
44
44
44
44
44
49
44
44
44
44
44
46
48
44
44
44
44
44
44
44
44
44
44
47
64
44
44
68
44
44
47
58
44
44
53
48
62
53
44
52
44
44
44
44...

result:

ok 26971 lines

Test #308:

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

input:

8000 95398
7044 3146
2100 1971
5872 6532
1869 266
6860 2142
7809 7706
2133 7593
3137 3295
7830 6504
3298 5458
6466 6930
7166 5422
3006 1354
6247 3842
2084 6519
6558 3385
2473 2333
7967 4033
2979 5092
1099 7370
3802 1432
2392 219
5703 4692
5021 4125
7889 7459
4282 7782
7857 6225
4799 3192
1821 789
33...

output:

Gyojun is handsome
50
50
50
50
50
50
50
50
50
50
50
54
50
50
50
63
50
54
50
50
50
50
50
50
52
50
50
50
52
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
53
50
50
50
50
50
50
50
50
50
50
57
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50
50...

result:

ok 95400 lines

Test #309:

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

input:

8000 246258
2015 1153
620 7600
5742 1603
1972 1686
438 334
860 4296
2211 7706
672 3618
2158 2066
1429 4670
3370 1185
2433 2070
6335 7314
3465 2008
1185 5501
3688 600
6025 1885
3662 5718
2463 5974
6130 6687
2390 163
4635 506
2442 2886
1346 7345
5218 147
1239 7628
4032 6332
20 1171
6288 7314
6813 1733...

output:

Gyojun is handsome
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
61
60
60
60
60
185
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
6...

result:

ok 246260 lines

Test #310:

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

input:

8000 246409
2011 1315
7954 1466
4465 2739
4044 3448
6354 5637
729 4429
808 5928
5913 1015
5474 5682
1729 2674
799 6063
4935 970
1764 6745
5801 3786
7161 2354
5132 2662
2030 4556
3398 5635
77 957
5130 740
2187 2164
5219 2986
2927 2715
811 5433
3906 1483
4616 881
6604 2009
2474 542
1921 822
5420 4688
...

output:

Gyojun is handsome
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
187
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
5...

result:

ok 246411 lines

Test #311:

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

input:

8000 246409
7346 7193
876 6210
5177 4445
5120 5131
1641 3598
5060 4955
5859 3491
817 2067
5873 6348
4266 5149
6281 5468
6013 4223
5322 3417
5313 6212
6369 1767
5699 3501
2902 7190
6405 123
6544 6581
5036 582
1548 2210
5294 6750
6356 5313
1322 4490
1016 1631
4593 1609
5952 1870
3486 573
1370 3033
561...

output:

Gyojun is handsome
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58
58...

result:

ok 246411 lines

Test #312:

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

input:

8000 246363
7554 5640
7122 1956
1094 4735
852 4993
1914 2375
1884 5760
7338 5912
1562 7923
2106 6808
4713 5996
1423 5303
2504 6070
4735 6691
4203 4701
3942 148
612 633
7601 584
7691 7637
1122 1784
524 989
4284 6754
6700 2143
4583 4644
6000 4127
1537 2537
89 3933
1211 7073
2710 1986
2419 4718
5504 73...

output:

Gyojun is handsome
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59
59...

result:

ok 246365 lines

Test #313:

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

input:

8000 247177
5677 5202
6489 6505
6583 1541
3812 5338
4755 450
1470 4620
6921 2303
6963 1021
7641 2377
4134 2069
5607 1064
7539 10
6157 5746
4170 6485
6903 5070
5612 1748
5746 4128
6551 191
3927 4207
7814 1867
4417 3319
3641 3105
4803 6904
5740 1141
4486 2766
2708 5782
5740 4165
3352 474
1527 7798
262...

output:

Gyojun is handsome
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46
46...

result:

ok 247179 lines

Test #314:

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

input:

6500 6504
5141 2592
5806 5141
828 5806
828 2592
5369 5428
2592 1555
5428 1715
6134 1715
6134 4526
4526 3247
3247 4866
1384 4866
1384 5831
5831 5223
1105 5223
3459 1105
1385 3459
1385 1027
1027 3237
3237 5526
5526 6269
5057 6269
5057 4871
4871 1314
5823 1314
5823 1364
1364 1703
1703 6186
1329 6186
13...

output:

Gyojun is handsome
4
4
4
4
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
815
8...

result:

ok 6506 lines

Test #315:

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

input:

6500 6550
1334 596
596 1497
1497 4161
1334 4161
581 3759
1334 6201
4600 581
937 4600
768 937
768 4067
4067 201
2863 201
4828 2863
1586 4828
5417 1586
4028 5417
4028 4996
4996 2239
5930 2239
2801 5930
4511 2801
4511 2900
2900 6474
5199 6474
832 5199
58 832
5032 58
5032 1297
1666 1297
1666 1748
4302 1...

output:

Gyojun is handsome
4
4
4
4
8
82
8
8
8
8
9
9
9
9
9
9
9
9
9
9
9
9
26
26
26
26
26
26
26
26
26
26
26
26
26
26
26
26
26
26
26
26
26
26
26
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102
102...

result:

ok 6552 lines

Test #316:

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

input:

6500 40000
3409 1148
3409 1716
1716 1776
1148 1776
4575 1389
1148 4206
1192 1389
1192 4126
4126 6408
6203 6408
6203 6229
6229 3179
5859 3179
3961 5859
5873 3961
5873 4277
6163 4277
1272 6163
3165 1272
1236 3165
4801 1236
1935 4801
1935 3672
1746 3672
1398 1746
1398 2733
329 2733
329 2710
6491 2710
6...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 40002 lines

Test #317:

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

input:

6500 100000
4159 18
4450 4159
1164 4450
1164 18
4537 3820
4574 18
3820 6463
6463 2096
5742 2096
2184 5742
2184 1828
4336 1828
837 4336
837 3029
128 3029
128 6286
6286 4658
4658 3716
4742 3716
4934 4742
4934 4650
4650 3106
3106 151
151 1038
1038 3549
6353 3549
6353 3526
6030 3526
2263 6030
2263 72
72...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 100002 lines

Test #318:

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

input:

6500 250000
2297 421
2297 2449
2449 1647
421 1647
1019 3548
5481 421
2873 3548
5410 2873
2521 5410
2521 5632
1546 5632
1546 4212
4212 4805
4805 6477
1549 6477
696 1549
696 1625
4395 1625
4395 4740
3759 4740
3317 3759
3317 3665
3665 1255
1255 4295
4295 56
56 5469
5469 3589
3417 3589
6134 3417
6134 46...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 250002 lines

Test #319:

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

input:

7970 7974
3636 4359
3636 1493
5157 1493
5157 4359
4169 2934
3862 4359
4169 905
905 3915
4242 3915
5595 4242
6216 5595
6216 4017
2534 4017
2534 6037
6037 1429
1429 2914
4559 2914
3491 4559
7563 3491
2408 7563
3271 2408
3271 4833
4833 2362
2362 6928
7031 6928
2001 7031
2001 5805
1761 5805
4877 1761
48...

output:

Gyojun is handsome
2
2
2
2
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
997
9...

result:

ok 7976 lines

Test #320:

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

input:

7970 8000
2001 7570
2001 6461
6461 1335
1335 7570
3637 7513
7570 5247
6336 3637
6336 471
471 3917
2707 3917
3756 2707
1168 3756
59 1168
1421 59
1421 7049
7049 1684
2894 1684
5236 2894
5236 2981
2981 5620
3956 5620
810 3956
202 810
4167 202
1330 4167
1330 1448
7137 1448
7137 1298
1298 2305
359 2305
4...

output:

Gyojun is handsome
2
2
2
2
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
47
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
...

result:

ok 8002 lines

Test #321:

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

input:

7970 25000
36 5365
5365 4481
4481 5102
5102 36
305 4514
36 7934
6901 305
963 6901
1120 963
2190 1120
2190 3598
5782 3598
5240 5782
5240 7240
7240 7771
1352 7771
1352 1907
283 1907
5578 283
5578 2363
2718 2363
6227 2718
144 6227
144 2525
2525 7451
7451 2835
2448 2835
2448 7272
7272 2047
5610 2047
535...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
2
2
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 25002 lines

Test #322:

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

input:

7970 30000
7060 2122
4197 7060
4197 6120
2122 6120
1703 211
4863 2122
3154 211
7483 3154
5094 7483
5094 6998
7773 6998
554 7773
3433 554
3433 2722
7961 2722
7961 5238
5238 886
3971 886
3971 4268
254 4268
254 5751
6675 5751
7412 6675
2347 7412
2347 70
1534 70
1534 4460
6992 4460
6992 2631
5314 2631
5...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 30002 lines

Test #323:

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

input:

7970 80000
6332 2234
2665 2234
3630 2665
6332 3630
4829 4893
6332 5617
205 4893
205 4842
4842 5478
5478 1846
7650 1846
7650 4341
632 4341
632 4716
4716 2921
2921 692
692 2933
637 2933
637 5994
2298 5994
2298 7558
7558 6102
3787 6102
3787 3775
2594 3775
2594 5727
5727 7423
1961 7423
1961 948
948 3947...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 80002 lines

Test #324:

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

input:

7970 100000
2833 2229
2833 3549
3549 5945
5945 2229
2513 2368
425 2229
4399 2513
1783 4399
1783 5438
5438 810
780 810
1455 780
7656 1455
3059 7656
5809 3059
5809 6047
6047 2989
4502 2989
3606 4502
3606 2098
7040 2098
7837 7040
7837 4879
765 4879
765 4630
2728 4630
3827 2728
3827 1871
1871 250
250 53...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 100002 lines

Test #325:

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

input:

7970 250000
421 7778
6916 7778
6916 1582
1582 421
3008 332
6449 421
332 1148
6497 1148
1505 6497
1505 3964
3892 3964
1304 3892
4950 1304
4950 5444
5444 10
764 10
764 1605
1605 5856
5856 1258
1258 4486
3492 4486
6130 3492
6130 5525
4638 5525
4638 2500
2500 4732
4732 7908
5930 7908
4088 5930
4088 2619...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 250002 lines

Test #326:

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

input:

6500 6501
2592 5369
5141 800
6461 5369
423 2592
6461 5806
5701 5806
5701 828
5428 828
5428 1715
1715 6134
6134 4526
3247 4526
3247 4866
4866 1384
5831 1384
5223 5831
1105 5223
1105 3459
3459 1385
1385 1027
1027 3237
5526 3237
5526 6269
6269 5057
4871 5057
4871 1314
1314 5823
5823 1364
1703 1364
1703...

output:

Gyojun is handsome
3253
3252
3253
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3252
3...

result:

ok 6503 lines

Test #327:

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

input:

6500 6550
1334 3759
596 1578
3273 3759
4307 1334
3273 1497
3700 1497
4161 3700
581 4161
4600 581
937 4600
937 768
768 4067
201 4067
2863 201
4828 2863
4828 1586
1586 5417
4028 5417
4996 4028
2239 4996
5930 2239
5930 2801
4511 2801
4511 2900
6474 2900
5199 6474
832 5199
832 58
5032 58
1297 5032
1666 ...

output:

Gyojun is handsome
130
39
117
130
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
117
11...

result:

ok 6552 lines

Test #328:

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

input:

6500 40000
4575 1148
4531 3409
2912 4575
3497 1148
2912 1716
1716 282
1776 282
1389 1776
1389 1192
1192 4126
4126 6408
6408 6203
6203 6229
3179 6229
3179 5859
5859 3961
3961 5873
5873 4277
4277 6163
6163 1272
3165 1272
3165 1236
1236 4801
4801 1935
3672 1935
3672 1746
1398 1746
1398 2733
2733 329
32...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 40002 lines

Test #329:

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

input:

6500 100000
4537 18
3752 4159
1639 4537
18 3749
1639 4450
379 4450
1164 379
1164 3820
6463 3820
6463 2096
2096 5742
5742 2184
1828 2184
4336 1828
4336 837
837 3029
3029 128
128 6286
6286 4658
3716 4658
3716 4742
4934 4742
4650 4934
4650 3106
3106 151
1038 151
1038 3549
6353 3549
6353 3526
6030 3526
...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 100002 lines

Test #330:

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

input:

6500 250000
1019 421
2424 2297
1019 4767
421 2655
4767 2449
2203 2449
2203 1647
3548 1647
2873 3548
5410 2873
5410 2521
2521 5632
5632 1546
4212 1546
4212 4805
4805 6477
1549 6477
1549 696
696 1625
4395 1625
4740 4395
3759 4740
3759 3317
3665 3317
3665 1255
4295 1255
4295 56
56 5469
3589 5469
3417 3...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 250002 lines

Test #331:

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

input:

7970 7971
4359 2934
2987 3636
7368 2934
661 4359
1493 7368
1493 5284
5284 5157
5157 4169
905 4169
3915 905
4242 3915
4242 5595
6216 5595
6216 4017
4017 2534
2534 6037
1429 6037
2914 1429
4559 2914
3491 4559
7563 3491
7563 2408
2408 3271
3271 4833
2362 4833
6928 2362
6928 7031
2001 7031
5805 2001
580...

output:

Gyojun is handsome
3987
3986
3987
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3986
3...

result:

ok 7973 lines

Test #332:

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

input:

7970 8000
7570 7513
2018 2001
7513 2228
7570 7858
6461 2228
6504 6461
1335 6504
3637 1335
3637 6336
6336 471
3917 471
2707 3917
2707 3756
3756 1168
59 1168
1421 59
7049 1421
1684 7049
2894 1684
2894 5236
2981 5236
2981 5620
5620 3956
810 3956
202 810
4167 202
1330 4167
1448 1330
7137 1448
7137 1298
...

output:

Gyojun is handsome
210
135
49
210
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
49
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57
57...

result:

ok 8002 lines

Test #333:

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

input:

7970 25000
36 4514
5365 7375
3439 4514
4210 36
4481 3439
4481 5494
5494 5102
305 5102
305 6901
963 6901
1120 963
2190 1120
3598 2190
3598 5782
5240 5782
5240 7240
7240 7771
7771 1352
1352 1907
1907 283
5578 283
2363 5578
2363 2718
6227 2718
144 6227
2525 144
7451 2525
2835 7451
2835 2448
2448 7272
2...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 25002 lines

Test #334:

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

input:

7970 30000
2122 1703
5177 7060
7039 1703
2122 5893
4197 7039
3525 4197
3525 6120
211 6120
211 3154
3154 7483
5094 7483
6998 5094
7773 6998
7773 554
3433 554
2722 3433
7961 2722
7961 5238
886 5238
886 3971
3971 4268
254 4268
254 5751
6675 5751
6675 7412
2347 7412
70 2347
1534 70
1534 4460
6992 4460
6...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 30002 lines

Test #335:

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

input:

7970 80000
4829 6332
2234 2338
4829 3252
7121 6332
2665 3252
2665 861
3630 861
3630 4893
4893 205
4842 205
4842 5478
5478 1846
7650 1846
4341 7650
4341 632
4716 632
4716 2921
692 2921
2933 692
637 2933
637 5994
2298 5994
2298 7558
6102 7558
6102 3787
3787 3775
3775 2594
5727 2594
5727 7423
7423 1961...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 80002 lines

Test #336:

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

input:

7970 100000
2368 2229
3893 2833
2368 6825
2229 5100
3549 6825
7958 3549
5945 7958
5945 2513
2513 4399
4399 1783
1783 5438
810 5438
780 810
1455 780
7656 1455
7656 3059
3059 5809
5809 6047
6047 2989
4502 2989
4502 3606
2098 3606
7040 2098
7040 7837
7837 4879
4879 765
4630 765
4630 2728
2728 3827
3827...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 100002 lines

Test #337:

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

input:

7970 250000
3008 421
7778 5405
3712 3008
421 7467
6916 3712
6916 6455
6455 1582
1582 332
332 1148
6497 1148
1505 6497
1505 3964
3892 3964
3892 1304
4950 1304
4950 5444
5444 10
10 764
1605 764
5856 1605
1258 5856
1258 4486
4486 3492
3492 6130
6130 5525
4638 5525
4638 2500
2500 4732
4732 7908
5930 790...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 250002 lines

Test #338:

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

input:

7990 7994
2818 368
5660 2818
2743 5660
2743 368
7528 6433
368 2449
2756 7528
6968 2756
7680 6968
5303 7680
5303 2768
2768 4472
4472 4741
2663 4741
2663 855
6618 855
6618 3185
3082 3185
3082 533
3358 533
2695 3358
2695 5931
5931 1048
5505 1048
5505 5329
6423 5329
6423 7344
7344 7813
7813 3798
3798 29...

output:

Gyojun is handsome
1
1
1
1
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
498
4...

result:

ok 7996 lines

Test #339:

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

input:

8000 8004
6919 3037
5534 6919
5534 2598
2598 3037
119 114
3037 7285
7566 119
3712 7566
3712 5199
2149 5199
4565 2149
4565 914
5948 914
1855 5948
523 1855
7944 523
7944 2916
6789 2916
6789 1983
1539 1983
7987 1539
6547 7987
6547 1655
1766 1655
1766 7699
7936 7699
7936 175
175 5832
5832 2591
6727 2591...

output:

Gyojun is handsome
1
1
1
1
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
5...

result:

ok 8006 lines

Test #340:

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

input:

5000 250000
438 3390
465 438
664 465
1028 664
1028 4876
4876 2647
1462 2647
4846 1462
4846 1476
1476 2035
2986 2035
2986 76
2772 76
4570 2772
3857 4570
1479 3857
1479 969
62 969
1516 62
4221 1516
4221 149
149 3322
2937 3322
3754 2937
2374 3754
4071 2374
4680 4071
4680 4019
4019 3778
4692 3778
1401 4...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 250002 lines

Test #341:

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

input:

8000 250000
7166 3000
7166 6712
6704 6712
6704 2591
4469 2591
4469 3534
3534 7276
7276 3976
707 3976
7623 707
1238 7623
1238 4502
4502 2617
2617 1254
6303 1254
6303 2793
2793 2663
2663 4379
1626 4379
2544 1626
3285 2544
2865 3285
2865 7082
6228 7082
6228 7959
5327 7959
5327 1005
1005 6670
1020 6670
...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 250002 lines

Subtask #6:

score: 29
Accepted

Dependency #5:

100%
Accepted

Test #342:

score: 29
Accepted
time: 20ms
memory: 86324kb

input:

99786 99980
42863 50614
58631 95889
37301 47098
28060 73331
69855 86414
94246 68203
74464 96445
15792 44616
29228 40817
89114 6163
29652 37913
81716 65540
5780 58440
65427 64546
92913 67293
67726 45385
78089 52277
8766 94652
37406 1749
50207 13834
41210 4000
94130 80486
73740 82946
86761 87499
51423...

output:

Gyojun is handsome
99786
99786
99786
99786
99785
99786
99785
99785
99786
99786
99786
99785
99786
99785
99785
99785
99786
99786
99786
99785
99786
99786
99786
99786
99786
99785
99785
57702
99785
99786
57697
99786
99785
99785
57693
99786
99785
99786
99786
99786
99786
57704
99786
99786
99786
99785
99785...

result:

ok 99982 lines

Test #343:

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

input:

99857 100010
50457 48940
72208 91660
80871 55504
25868 23835
39246 94178
97857 69421
16909 53195
3379 43812
95458 82895
11204 80997
77910 8771
43607 81461
76902 99014
8129 82397
11128 69265
91946 21530
9124 10250
71071 29463
76605 34951
63281 58459
76003 60238
13138 6957
69175 23442
56128 37873
7881...

output:

Gyojun is handsome
99857
99856
99856
99856
99857
99857
99857
99856
99857
99857
99856
99857
99857
99856
99857
99856
99857
99857
99856
99856
99856
99857
99856
99857
99856
99857
99856
99857
99857
99857
99857
99856
99857
99857
99856
99857
99856
99857
99857
99856
99857
99857
99856
99857
99856
99857
99856...

result:

ok 100012 lines

Test #344:

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

input:

99761 109838
79060 7757
23412 44597
79569 10692
97283 3648
39115 98080
28497 14105
25025 79804
86151 3152
68102 8324
52280 89238
16793 12962
39345 94349
40632 48479
52632 15202
32210 87626
22003 40337
99652 24781
87047 1783
70682 29169
91992 96084
26266 77122
76522 79020
76904 27173
39655 20807
9462...

output:

Gyojun is handsome
40846
40848
99761
40846
99760
40846
40849
40846
40848
99760
99761
99760
40848
99760
40846
99760
40847
99760
99760
99760
40851
99761
40847
40848
99760
40846
40846
40848
99760
40847
99761
40846
40846
99760
99761
99760
40849
99760
40846
40847
40847
40851
40847
40847
99761
40846
40847...

result:

ok 109840 lines

Test #345:

score: 0
Accepted
time: 83ms
memory: 105216kb

input:

99984 149908
16806 70637
60551 81490
28368 78523
63339 79045
98225 56220
51264 76085
42221 9793
29710 95664
5800 68377
61652 48064
11789 84626
13878 41551
8586 42795
93243 49378
89974 39320
49241 3826
11024 56911
10456 88407
9904 83055
62191 11059
53626 14566
25088 54395
11907 11101
72911 31750
2832...

output:

Gyojun is handsome
15969
15969
15970
15969
15971
15969
15972
15970
15969
15969
15971
15971
15972
15969
15971
15969
15969
99983
15969
15970
15969
15969
15969
15969
15970
15969
15969
15969
15970
15969
99984
99983
15969
15969
15969
99983
15969
15969
15969
15969
99983
15969
15969
15969
15970
15970
15969...

result:

ok 149910 lines

Test #346:

score: 0
Accepted
time: 106ms
memory: 106392kb

input:

99932 179732
50746 81944
51556 95842
64706 10169
92790 86
36391 84796
32397 44914
86922 37332
33917 14576
50151 12798
661 8594
57824 58963
84078 86098
23316 12062
99666 38643
61286 28288
73156 64429
52900 71571
18923 18946
47232 43043
15805 24524
25691 5491
11867 35640
28423 2230
56933 71973
92391 4...

output:

Gyojun is handsome
8583
8583
8583
8584
8583
8583
8584
8583
8583
8583
8583
8584
8584
8583
8583
8583
8584
99931
8583
8583
8583
8583
8583
8583
8583
8584
8583
8583
99931
8583
8583
8583
8583
8584
8583
8583
8583
8583
8584
8583
8583
8584
8583
8584
8584
8583
8583
8583
8583
8583
8583
8583
8584
8583
8585
8583...

result:

ok 179734 lines

Test #347:

score: 0
Accepted
time: 106ms
memory: 109124kb

input:

99716 199740
85496 74515
40659 23585
1347 67628
2160 20573
5924 70031
20033 4255
25924 55341
76148 11562
92643 81098
70124 43574
26772 95240
7324 6306
88997 84907
43759 12337
30884 7890
12099 22232
9984 14750
77899 30009
18573 68691
2907 67486
24115 52809
41909 76032
38978 36511
27902 59397
84261 84...

output:

Gyojun is handsome
5468
5468
5468
5468
5468
5468
5468
99715
5468
5468
5469
5468
5468
5468
5468
5468
5468
5468
5468
5468
5468
5468
5468
5468
5468
5468
5468
5468
5469
5468
5468
5468
5471
5468
5468
5468
5468
5468
5468
99716
5468
5468
5469
5468
5468
5469
5468
5468
5468
5468
5468
5468
5469
5468
5468
5468...

result:

ok 199742 lines

Test #348:

score: 0
Accepted
time: 121ms
memory: 113392kb

input:

99885 219550
48992 36389
11972 22817
12952 88167
35762 71371
31015 56446
60707 28571
78283 38450
42838 72696
41531 916
71145 20491
77545 35583
6367 31578
45926 9721
32618 43725
40036 77432
98843 60925
60319 23995
15880 80778
46238 88465
87769 23830
27447 20512
29603 69768
17113 80145
18492 80941
310...

output:

Gyojun is handsome
3711
3711
3711
3711
3712
3711
3712
3711
3712
3711
3711
3711
3711
3711
99884
3711
3711
3711
3711
3711
3711
3711
3712
3711
3711
3711
3711
3711
3711
3712
3711
3711
3711
3711
3711
3711
3711
3711
3711
3711
3711
3711
3711
3711
3712
3712
3711
3711
3712
3711
3711
3711
3711
3711
3711
3711
...

result:

ok 219552 lines

Test #349:

score: 0
Accepted
time: 140ms
memory: 120680kb

input:

99832 249610
66923 54145
90191 72045
95197 24170
15106 76847
87480 65692
30217 49780
1749 40560
28357 2572
90653 54915
24764 20894
75616 30959
37856 18347
45379 59976
42693 55684
42567 73730
65854 26190
36124 501
84106 82224
65285 10795
35979 2883
35460 65588
46280 36821
57944 22672
41734 27753
8997...

output:

Gyojun is handsome
2024
2024
2024
2024
2025
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2024
2025
2024
2025
2024
2024
2024
2024
2025
2024
2024
2024
2024
2024
2024
2...

result:

ok 249612 lines

Test #350:

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

input:

100000 100200
43062 27508
59758 21685
31233 55391
90840 81592
32837 87172
15277 50437
6971 28499
67634 80532
67350 7892
37239 60142
44443 9074
89880 75614
37144 77749
36588 34625
12354 41435
58332 71748
99749 9983
92642 67180
48101 24702
1667 91798
50521 6614
62604 21211
8460 95311
4835 1117
69548 5...

output:

Gyojun is handsome
49608
99999
100000
100000
99999
99999
100000
99999
99999
100000
100000
100000
99999
100000
99999
99999
100000
99999
99999
99999
100000
49609
99999
100000
100000
99999
100000
99999
99999
100000
100000
99999
100000
99999
99999
99999
99999
100000
99999
100000
100000
99999
99999
10000...

result:

ok 100202 lines

Test #351:

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

input:

100000 110000
65603 32212
65879 29443
4539 46132
35207 36117
18920 84120
67348 2610
16502 12172
20063 69894
2341 24677
52016 82565
8997 54870
15791 50824
72872 98105
44639 52305
19057 46874
7981 33474
32308 4009
57714 44012
6545 9108
84635 91839
97499 98637
79333 80273
77847 54038
64606 81194
79890 ...

output:

Gyojun is handsome
37076
100000
99999
37078
37078
99999
99999
99999
99999
37076
100000
37076
100000
37076
99999
99999
99999
99999
100000
99999
99999
99999
37076
99999
37078
37076
37078
37078
100000
37076
37079
37076
37077
37078
99999
37077
99999
99999
99999
37076
37076
100000
99999
99999
37077
10000...

result:

ok 110002 lines

Test #352:

score: 0
Accepted
time: 77ms
memory: 106640kb

input:

100000 150000
66991 15832
72129 72195
60250 77579
34133 57860
33099 30486
56356 38867
27286 40916
93571 32449
92166 78991
95744 9022
3395 59365
71451 59531
11310 84924
3374 45913
27119 56522
16973 69388
32427 83518
12860 44911
25951 76760
68170 65679
27333 33089
81573 81564
84121 38322
87836 70932
7...

output:

Gyojun is handsome
16428
16428
99999
16428
16428
16429
16428
16428
16428
16428
99999
16428
16428
16428
16429
16429
99999
16428
16428
16428
16428
16431
16430
16429
16428
16428
16428
16428
16428
16428
16428
16429
16428
16428
16428
16428
16428
16428
16428
16428
16428
16428
16428
16428
16428
16429
16428...

result:

ok 150002 lines

Test #353:

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

input:

100000 180000
39294 26416
84333 59270
18163 69116
36430 97970
74718 49824
64927 78415
89915 71637
56071 9375
48255 94778
1978 65432
15316 17946
35951 32526
82518 35989
5192 46776
19004 92319
9049 48307
35368 39386
85240 50435
19073 33967
62167 39936
22111 57476
21405 36409
73481 85972
59352 21515
81...

output:

Gyojun is handsome
9337
9337
9337
9337
99999
9337
9337
9338
9337
9337
9337
9337
9337
9337
9338
9337
9337
99999
9337
9337
9337
9338
9337
9337
9337
99999
9337
9337
9337
9337
9337
9338
9337
99999
99999
9337
9337
9337
9337
9337
99999
9337
9337
9337
9337
9337
9338
9337
9337
9337
9337
9337
9337
99999
9338...

result:

ok 180002 lines

Test #354:

score: 0
Accepted
time: 105ms
memory: 116084kb

input:

100000 200000
9392 23459
91642 93287
59393 81591
10507 16684
23679 92867
94895 86518
61489 91711
81743 42926
60247 7244
71493 65184
60966 36854
37899 27350
54054 88313
65856 85825
34147 56486
88930 21443
96609 27789
76402 55689
15340 5329
8356 55993
42660 91112
57983 82651
59100 64240
76579 89891
67...

output:

Gyojun is handsome
6332
6332
6332
6332
99999
6332
6332
6333
6333
6332
6332
6332
6332
6332
6332
6332
6332
6332
6332
99999
6332
6332
6332
6332
6332
99999
6332
6332
6332
6332
6332
6332
6332
6332
6332
6332
6332
6332
6333
6332
6332
6332
99999
6332
6332
6332
6332
6332
6332
6332
6332
6333
6332
6333
6332
63...

result:

ok 200002 lines

Test #355:

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

input:

100000 220000
19270 89715
93006 57806
96146 15030
60462 13664
36039 22142
92856 44124
25739 51217
12582 45700
30471 97247
23038 67625
53253 86690
28302 17676
97855 26943
91452 97102
61869 41720
99595 52068
74696 81313
56604 53940
55940 75092
57196 48084
30581 52734
68064 18717
2976 91372
90188 67913...

output:

Gyojun is handsome
4325
4325
4325
4325
4326
4325
4325
4325
4325
4325
4325
4325
4325
4325
4325
4325
4326
4325
4325
4325
4325
4325
4325
4325
4325
4325
4325
4325
4325
4325
4325
4325
4326
4326
4325
4325
4325
4325
4325
99999
4325
4325
4325
4326
4325
4325
4325
4325
4325
4325
4325
4326
4325
4325
4325
4325
...

result:

ok 220002 lines

Test #356:

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

input:

100000 250000
68676 76090
94384 58895
87095 11288
53131 36385
32228 51555
27776 55746
34266 44032
35779 82840
96575 39014
90763 93683
25424 73524
26526 31407
70706 8628
45761 29592
27378 70687
91860 29974
561 83486
86347 61935
604 53138
37087 81894
829 9218
72326 15256
35058 81098
18926 64665
64835 ...

output:

Gyojun is handsome
2430
2430
2430
2430
2430
2430
2431
2430
2430
2430
2430
2430
2430
2430
2430
2430
2430
2430
2430
2430
2430
2430
2430
2431
2430
2430
2430
2430
2430
2430
2430
2430
2430
2430
2430
2430
99999
2430
2430
2430
2430
2430
2430
2430
2430
2430
2430
2430
2430
2430
2430
2431
2430
2430
2430
2430
...

result:

ok 250002 lines

Test #357:

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

input:

100000 100200
43062 61254
59758 83513
31233 71409
79638 81592
32837 42929
15277 47475
6971 25053
67634 69035
67350 88403
37239 57873
44443 3502
89880 94043
58099 77749
36588 7903
12354 17069
77027 71748
24912 9983
92642 53731
48101 76854
26327 91798
67478 6614
60533 21211
17908 95311
63511 1117
6954...

output:

Gyojun is handsome
497
1147
440
680
1710
580
835
542
530
508
166
788
353
323
454
447
176
361
743
217
481
1075
396
389
481
874
486
429
447
654
289
283
386
597
383
503
277
749
648
968
1075
294
364
747
835
346
638
779
517
401
653
464
905
324
173
592
208
397
243
743
283
401
290
743
384
271
507
282
211
6...

result:

ok 100202 lines

Test #358:

score: 0
Accepted
time: 76ms
memory: 119680kb

input:

100000 110000
65603 56773
65879 32862
44362 46132
35207 36117
18920 84120
58389 2610
16502 76510
50201 69894
2341 60522
52016 82565
8997 8122
15791 57447
72872 39831
44639 95614
88861 46874
7981 59190
32308 3931
57714 19098
28806 9108
84635 10227
97499 36948
57355 80273
77847 83285
64606 35925
49785...

output:

Gyojun is handsome
9
15
14
9
9
13
14
18
12
9
13
26
25
16
23
25
22
11
27
37
22
22
18
27
24
18
10
11
26
22
13
14
16
9
14
9
11
16
16
11
9
20
12
22
9
17
19
47
34
17
16
11
14
21
10
40
9
10
14
21
11
12
9
23
16
10
15
16
13
21
12
20
9
11
13
19
13
14
14
21
14
28
13
14
12
9
17
26
13
21
17
28
11
16
23
9
13
15
...

result:

ok 110002 lines

Test #359:

score: 0
Accepted
time: 99ms
memory: 122272kb

input:

100000 150000
66991 15832
72129 72195
33922 77579
66876 57860
33099 30486
56356 38867
27286 88833
93571 32449
92166 78991
95744 9022
81155 59365
71451 13608
80895 84924
3374 39064
27119 56522
16973 57169
32427 3307
12860 44911
25951 76760
68170 83991
27333 33089
81573 66522
84121 38322
87836 70932
7...

output:

Gyojun is handsome
0
0
1
0
0
0
2
0
0
0
1
0
2
0
0
0
2
0
0
0
0
2
0
0
0
0
0
6
0
0
0
2
1
0
0
1
1
1
1
0
0
0
1
0
0
3
1
2
0
0
0
1
3
2
0
0
1
2
0
0
0
1
0
0
1
0
0
1
4
0
1
2
0
0
1
0
0
1
0
0
2
0
0
1
1
0
2
0
3
0
0
0
1
2
0
0
0
0
0
2
0
0
0
0
0
0
6
2
0
1
0
3
2
0
0
0
0
0
0
1
1
0
2
0
0
0
1
0
2
0
2
0
0
0
0
1
0
0
0
0
0...

result:

ok 150002 lines

Test #360:

score: 0
Accepted
time: 103ms
memory: 124712kb

input:

100000 180000
39294 26416
84333 59270
18163 69116
44580 97970
74718 28515
64927 78415
89915 90686
56071 9375
48255 20511
1978 65432
15316 14324
35951 32526
82518 16935
5192 46776
19004 92319
18542 48307
35368 39386
55186 50435
19073 33967
62167 39936
22111 57476
52913 36409
44157 85972
59352 21515
8...

output:

Gyojun is handsome
0
0
0
0
2
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
1
0
0
2
0
0
0
0
0
0
0
1
1
0
0
0
0
0
1
0
0
1
0
2
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
2
2
0
0
0
0
0
0
1
2
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
2
1
0
0
1
0
0
0
1
0
0
1
0
0
0
0
0
2
1
0
0
0
0
0
0
0
0
0
2...

result:

ok 180002 lines

Test #361:

score: 0
Accepted
time: 108ms
memory: 124036kb

input:

100000 200000
9392 4842
91642 93287
59393 81591
10507 16684
95749 92867
94895 86518
78094 91711
81743 42926
60247 18062
71493 9995
38433 36854
37899 27350
54054 88313
65856 85825
34147 387
88930 21443
96609 27789
76402 55689
15340 5329
60456 55993
9001 91112
57983 82651
59100 64240
76579 89891
67102...

output:

Gyojun is handsome
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
0
0
0
1
0
2
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
2
0
0
0
0
0
0
0
0
2
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
2
0
0
1
1
0
0
0
0
0
0
0
0...

result:

ok 200002 lines

Test #362:

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

input:

100000 220000
19270 89715
93006 57806
69321 15030
65052 13664
64051 22142
92856 44124
25739 49876
12582 45700
94783 97247
23038 67625
53253 86690
28302 36188
97855 26943
21820 97102
14427 41720
99595 52068
61723 81313
56604 53940
55940 75092
57196 48084
30581 52734
29431 18717
2976 91372
90188 23709...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0
0
0
0
0...

result:

ok 220002 lines

Test #363:

score: 0
Accepted
time: 141ms
memory: 125624kb

input:

100000 250000
68676 76090
30908 58895
87095 11288
53131 36385
32228 51555
27776 55746
34266 44032
35779 82840
41159 39014
51560 93683
25424 73524
26526 31407
70706 8628
45761 29592
27378 70687
91860 29974
46883 83486
86347 61935
604 53138
37087 58103
18204 9218
72326 15256
35058 81098
18926 64665
64...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0...

result:

ok 250002 lines

Test #364:

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

input:

100000 199998
12976 36318
72231 28569
47254 27469
85049 46993
23754 71164
29701 9207
58856 98760
40220 30383
57245 67368
98829 85492
75412 45257
90488 21954
30366 31838
79793 71770
19228 12102
53306 39045
21634 29926
69475 30506
2030 58948
10779 59153
92377 66251
13153 87907
20305 46872
50202 73823
...

output:

Gyojun is handsome
1
1
1
1
1
1
2
1
1
2
2
2
2
1
1
1
2
2
1
2
2
1
1
1
2
1
1
2
2
2
1
2
2
2
1
2
1
2
1
1
1
1
2
1
1
1
2
2
2
1
1
1
2
2
1
1
1
1
2
2
2
1
1
2
1
2
1
1
1
2
1
2
1
2
1
1
2
1
1
1
1
2
1
2
1
2
1
2
1
2
1
1
2
1
1
1
1
1
2
2
1
1
1
1
2
2
2
1
1
1
1
1
2
2
2
2
2
2
2
2
2
2
2
2
1
2
1
1
2
1
2
1
1
1
1
1
2
1
2
2
1...

result:

ok 200000 lines

Test #365:

score: 0
Accepted
time: 98ms
memory: 124344kb

input:

100000 166674
74827 40231
97073 47880
94921 94674
4844 28127
22564 25437
97237 99464
43094 5542
65910 56571
64857 93986
43001 59916
23204 42424
37153 5366
86088 43536
14618 18071
59746 36549
7089 93105
54905 91414
31041 64178
85489 17367
90065 41170
37152 42949
2625 73868
39020 72652
78786 67441
642...

output:

Gyojun is handsome
0
0
0
2
0
0
0
0
0
1
0
2
0
0
0
0
2
2
1
2
0
0
0
2
1
1
0
2
0
1
1
2
1
1
0
0
0
0
0
2
1
0
0
1
1
1
0
0
0
0
2
1
1
2
0
0
0
2
2
1
0
1
0
1
2
2
2
0
0
0
0
0
0
0
1
0
0
0
0
1
0
1
1
2
0
0
0
1
0
2
0
0
0
2
0
0
0
1
0
1
1
0
2
1
1
1
0
1
1
2
0
0
1
2
1
0
0
1
1
0
0
1
2
2
0
1
2
1
0
0
0
0
1
1
0
2
2
2
1
0
0...

result:

ok 166676 lines

Test #366:

score: 0
Accepted
time: 110ms
memory: 123216kb

input:

100000 150042
4188 43577
7102 90283
15998 69270
56846 41366
76513 62395
53908 90154
86956 65694
3104 89767
51688 73425
29190 17979
74531 79743
11758 25591
58764 45436
29250 66857
46147 19221
16347 70966
46313 94896
93406 95032
6619 35306
75995 31779
12649 84660
72816 23281
75865 66258
19793 55752
73...

output:

Gyojun is handsome
1
2
3
1
2
1
2
1
2
1
3
2
3
2
4
1
1
2
2
1
3
1
2
2
1
4
2
2
1
4
2
1
3
2
1
1
1
1
2
2
1
3
1
1
2
4
1
3
2
2
2
2
2
1
2
1
2
1
2
1
3
4
1
2
3
1
4
2
2
2
1
1
1
3
1
3
1
1
4
1
3
2
4
2
3
1
4
2
1
2
1
1
1
1
3
1
2
2
3
3
1
2
2
3
1
4
1
1
1
2
3
2
3
3
1
1
3
1
3
1
1
2
2
2
3
4
3
1
3
2
1
3
1
2
1
2
1
2
2
1
2...

result:

ok 150044 lines

Test #367:

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

input:

100000 118220
96636 60471
60 80744
701 75454
17019 57830
61342 63055
90896 30347
43894 8247
97968 84165
67050 71456
25205 60575
44770 37572
38546 89832
66320 30294
20627 96193
60005 36908
7137 45751
18409 60807
63276 72688
87512 87944
96153 77176
28545 98929
23172 39944
80185 31884
11036 47386
12055...

output:

Gyojun is handsome
4
9
8
1
1
2
2
4
0
2
6
1
1
2
9
2
1
3
3
0
9
5
1
3
1
0
3
5
2
7
4
1
6
4
1
4
5
1
2
7
9
10
0
4
0
5
4
3
2
4
4
1
1
0
4
4
1
7
8
4
3
2
2
1
4
0
1
5
1
3
0
3
4
1
0
3
4
0
3
10
3
1
0
9
1
3
1
8
2
3
8
3
0
5
2
0
0
1
8
2
10
0
6
3
0
3
0
5
2
7
0
7
2
7
2
2
7
1
10
4
9
4
0
1
3
9
0
3
3
0
0
0
3
0
2
1
1
1
8...

result:

ok 118222 lines

Test #368:

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

input:

100000 104865
59632 59057
42961 55180
59325 13989
42480 37936
63638 52173
86797 54076
60215 29984
41673 34800
76945 82068
81842 83708
3890 23976
2134 29516
16079 34179
21324 45416
13560 77012
92708 55960
63662 32147
84790 98620
51979 96503
46897 59562
8281 28588
3883 9463
33997 95177
49052 87799
491...

output:

Gyojun is handsome
6
8
4
24
12
14
10
31
15
31
12
34
39
16
27
13
7
14
22
2
27
15
6
36
7
38
20
12
0
32
5
10
1
0
1
7
37
3
18
23
10
18
20
15
20
9
28
25
8
12
14
31
35
24
31
7
0
11
10
11
27
33
10
13
8
13
2
2
18
7
23
10
28
25
14
12
29
19
6
0
10
18
26
13
2
4
13
31
34
38
21
18
10
2
34
5
32
10
2
4
2
20
1
1
23...

result:

ok 104867 lines

Test #369:

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

input:

100000 101114
56829 41368
74063 94146
3775 54779
47122 96008
67372 15921
92615 57108
98837 5684
9644 45466
60621 11585
63622 23740
47042 92994
70105 27007
11490 87980
89614 32750
69454 25990
86849 2416
34054 63029
73470 10965
28920 49711
31798 32246
7935 2325
45314 19157
14149 57320
8553 73053
24423...

output:

Gyojun is handsome
79
152
79
20
57
146
144
48
73
120
19
128
57
21
128
12
28
166
148
65
93
117
79
147
104
54
49
109
74
75
25
30
68
104
42
33
12
97
29
75
16
165
72
53
44
61
54
46
18
46
27
31
148
117
11
128
52
18
54
57
97
178
50
177
146
18
67
61
110
112
21
112
21
13
61
51
33
24
137
24
88
65
72
86
12
10...

result:

ok 101116 lines

Test #370:

score: 0
Accepted
time: 60ms
memory: 120844kb

input:

100000 100331
96878 29858
78694 19331
32388 31799
37010 20277
69647 85560
49197 81020
54740 46238
93691 40197
21377 91917
81100 6244
80254 72703
84499 15101
30520 33817
13777 54607
42362 82755
92901 42127
7708 8969
6992 8076
72709 55871
27512 34079
77187 20259
39326 89982
13959 23180
18393 55113
962...

output:

Gyojun is handsome
45
378
138
456
64
272
501
455
55
233
173
205
405
75
131
121
94
161
455
455
142
488
137
244
175
45
274
59
515
28
198
180
442
245
396
91
168
576
43
147
130
327
91
456
59
4
181
76
113
51
144
214
576
76
44
296
433
274
156
211
306
137
80
587
350
317
94
299
430
392
143
22
587
188
205
44...

result:

ok 100333 lines

Test #371:

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

input:

100000 100092
47989 26636
41170 58880
29045 49123
14051 48449
48404 19369
80886 72874
72585 88562
41896 13217
28634 53950
85224 91297
83746 91387
88531 34585
56717 73379
6207 93148
17077 28237
95536 60268
69464 50540
81974 58849
42129 1664
41742 53631
8872 16565
96483 84201
97886 9621
99160 71944
70...

output:

Gyojun is handsome
581
791
850
732
2114
2161
476
1073
1709
213
223
321
855
241
321
2284
307
165
2090
521
681
203
2058
2386
188
465
2140
473
390
375
903
471
2058
283
1073
2161
472
121
1774
819
681
903
996
394
581
954
206
1709
776
576
560
537
323
251
1774
290
791
2386
2410
92
799
2161
850
850
278
283
...

result:

ok 100094 lines

Test #372:

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

input:

100000 100038
57334 48646
530 60206
90478 59052
75610 13435
18047 52804
53680 33024
50789 42733
21577 58653
50328 89098
38317 40026
25476 72934
6235 29644
10425 9493
26078 27688
78734 86370
98349 40971
3754 37581
70726 14984
79736 73208
94975 47904
37883 588
73004 8293
8881 17522
6752 65593
4965 356...

output:

Gyojun is handsome
508
1657
1348
1437
3370
932
118
3050
3501
3050
3406
2355
365
1191
3050
62
4771
3534
452
3534
3501
5873
249
2220
1838
3050
678
863
1761
1348
4771
1761
5873
2661
551
3534
570
966
4771
644
1236
3370
3370
482
470
3370
1348
3501
1566
3050
1782
5873
1838
2958
543
863
932
1838
1660
2958
...

result:

ok 100040 lines

Test #373:

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

input:

100000 100023
9465 2763
22606 38639
80192 11199
18877 13942
88338 66140
83514 70560
1830 43138
45702 49712
84911 76657
27528 51330
5562 95404
25596 497
60141 1847
78756 22031
42125 6887
58969 70431
80126 4234
66542 38879
40414 88577
67984 49078
36568 63318
68972 17222
34013 76454
38866 40246
82152 1...

output:

Gyojun is handsome
4956
2704
2806
5240
1509
3087
2456
2806
533
5240
3584
1954
978
9429
2647
4859
3299
1509
2456
2942
9429
3129
495
5240
375
305
9429
5224
5240
9429
1996
9429
529
3129
5224
1996
3299
5240
5224
5240
4956
1623
205
3584
5240
529
738
2236
5240
1625
2704
2942
2704
1330
308
4859
1954
2806
4...

result:

ok 100025 lines

Test #374:

score: 0
Accepted
time: 55ms
memory: 119220kb

input:

100000 100012
90783 42348
97218 73733
31655 52418
33101 35799
98919 71317
59860 89569
31827 8768
4784 57070
83382 43018
91059 81240
76134 66793
30010 43299
62090 40701
21174 45109
45053 60525
56217 43478
58897 2704
87773 24317
2844 26109
98731 99992
85666 85817
50701 41448
74932 44059
73367 37676
73...

output:

Gyojun is handsome
11660
17809
2295
17809
972
17809
17809
7823
3197
1445
3626
4929
17809
1189
7823
17809
17809
3583
6458
5339
6458
3974
5103
7823
3583
17809
5339
5103
11660
6458
1150
2543
17809
3626
6458
5339
1476
6458
3583
634
17809
17809
11660
11660
3197
17809
7823
5339
7823
3583
5103
3583
5103
78...

result:

ok 100014 lines

Test #375:

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

input:

100000 100013
91072 94323
35795 9574
39386 71618
38483 12788
18619 12262
82406 26812
42526 53572
83532 89268
9961 84240
84676 75758
89428 59379
34107 21373
16274 96313
78231 35219
1636 51411
59977 66571
53518 56884
17135 65556
62136 38927
76765 67321
44147 30413
93734 19244
52156 12593
77362 38416
6...

output:

Gyojun is handsome
6966
2190
5660
1815
8769
942
901
1815
6136
7249
5390
4064
6728
2031
1204
7249
6955
2031
6966
6190
605
8769
2653
2031
6728
1591
2917
5660
1204
6190
6966
919
3369
6136
942
5594
5594
3369
6955
6728
6190
7249
7249
6966
6966
1815
7249
6190
8769
7249
5390
3868
6190
1815
942
8769
8769
61...

result:

ok 100015 lines

Test #376:

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

input:

100000 100013
74241 16967
51182 21301
60980 37172
37977 18389
85702 43917
9400 41170
21844 13537
64166 12568
93124 72310
466 13717
5854 88003
13865 55346
11389 59553
90361 56637
38807 95324
11508 85189
5441 36573
63849 45486
10030 28608
60514 41972
2396 31479
79329 74674
36159 53152
83252 50284
3464...

output:

Gyojun is handsome
7558
11433
11433
6381
3349
2178
6381
6381
6945
5466
3431
6381
11111
3432
3562
1312
11433
1312
4210
531
1312
6381
2528
11433
5466
6945
6945
7558
5634
11433
4210
1314
4455
6945
3562
6945
4210
4210
7558
3432
11111
11111
11111
1120
11111
2528
6381
6945
11111
7558
6945
7558
11111
3432
...

result:

ok 100015 lines

Test #377:

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

input:

100000 100012
5702 7904
76067 74894
17806 91432
24333 99236
44426 13174
50811 79200
24259 8923
70320 75564
53923 38256
53506 76352
41104 99996
17052 7023
59662 63857
34519 62819
40930 2144
26660 46736
37259 86889
86380 48153
70996 68539
82274 38670
41754 52233
22986 80454
57516 50399
89441 97477
650...

output:

Gyojun is handsome
3293
13172
13172
5181
4211
10017
13172
5544
4211
10017
4828
1418
17648
940
4828
13172
3628
3628
1418
5544
13172
17648
13172
1670
5544
17648
10017
5181
2036
17648
17648
10017
4828
5544
6582
3293
3293
17648
17648
5181
10017
4828
3293
3293
13172
3628
17648
17648
603
4048
870
5181
176...

result:

ok 100014 lines

Test #378:

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

input:

100000 100012
67766 66037
55975 88856
35932 73234
98197 10670
24866 46734
66224 19036
37893 5198
80717 43837
62503 91880
9362 86776
83044 89856
61641 78273
64666 8329
10250 75937
87931 99193
39761 5840
60112 74038
54766 5532
48590 4654
81492 34952
51167 85888
69571 23568
78040 6070
35183 93280
91894...

output:

Gyojun is handsome
14655
14655
1948
13931
13931
2526
3921
9389
2117
9389
3718
13931
13931
3869
1902
3718
14655
5627
99
13931
4888
2234
14655
3668
3718
3869
13931
14655
14655
2117
5627
1376
14655
14655
14655
3869
3869
3874
650
13931
3874
2234
14655
13931
863
9389
9389
14655
2117
13931
9389
3869
13931...

result:

ok 100014 lines

Test #379:

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

input:

100000 100011
23784 64021
61608 12551
88442 65661
44540 36762
81187 87377
57177 93576
8633 15573
74210 40710
59683 76754
20652 20770
30253 10005
60341 11155
17906 6715
89220 80083
1269 77867
31550 29591
78679 74232
78818 44913
73837 6506
13790 25161
34165 59363
3276 30388
93725 96267
37964 64160
347...

output:

Gyojun is handsome
6683
12645
9086
19643
4594
19643
12670
3250
12645
7955
12670
4594
6683
12670
19643
12645
9086
3250
12645
12670
19643
19643
19643
12670
12670
19643
9086
6683
12645
7955
12670
7659
12645
12670
12670
12645
12670
3250
5154
9086
5154
12670
12670
5154
5154
12645
12645
19643
4496
12670
1...

result:

ok 100013 lines

Test #380:

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

input:

100000 100008
78824 23353
92908 24639
31726 53732
12623 15968
89896 3180
55170 97240
50512 35622
77063 8610
91614 47905
98993 8771
21621 9949
41125 25631
83884 70634
73431 62752
2734 43142
13730 40703
96081 7016
68778 67680
86594 42057
70399 62221
1032 7926
36069 83158
51939 94504
1773 82395
55139 1...

output:

Gyojun is handsome
10590
15177
9269
12054
5298
8483
15177
5944
12054
15177
8483
15177
15177
5812
12054
2383
2383
12054
5944
10590
8357
8357
8357
3468
5812
9269
10590
8357
8357
10590
8483
5298
5812
5812
15177
3468
12054
4459
15177
15177
4459
5944
10590
3468
15177
10590
5812
3486
4459
10590
15177
1205...

result:

ok 100010 lines

Test #381:

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

input:

100000 100007
12679 68736
83873 5361
17858 48671
38810 80977
27282 34760
18822 90217
24137 72606
88951 35571
88080 31320
2851 89554
74903 2266
22530 37200
81723 88570
93458 36697
11369 41416
59692 57479
11187 73123
73647 93689
90398 14328
3942 43601
86318 35791
18819 55745
67882 22150
35491 7056
733...

output:

Gyojun is handsome
4016
13809
13046
18893
18893
4808
8733
13046
4808
14020
5224
18893
5224
14020
2043
14020
3732
13809
18893
4016
18893
18893
13809
4808
14020
14020
5224
13046
18893
13046
13046
8733
13046
5224
13809
3732
3732
13809
14020
8733
13809
13046
18893
18893
14020
3732
13046
13046
18893
1889...

result:

ok 100009 lines

Test #382:

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

input:

100000 100003
45592 40596
57348 53184
18173 24627
61288 14867
67687 23930
59671 63507
33587 13837
58320 28554
35091 72205
99880 94960
66525 73580
70086 54138
68539 99577
37763 96220
52860 2172
1178 14160
61085 34837
46595 58689
45932 4981
8991 99741
64079 26424
26340 68926
6406 80006
45396 42046
614...

output:

Gyojun is handsome
5704
55962
55962
33608
55962
4714
55962
55962
33608
55962
55962
33608
33608
33608
55962
55962
55962
55962
55962
55962
33608
4714
55962
55962
55962
55962
33608
33608
55962
55962
55962
33608
33608
33608
33608
55962
33608
55962
33608
55962
55962
55962
55962
55962
55962
55962
55962
33...

result:

ok 100005 lines

Test #383:

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

input:

100000 240647
50177 76816
3519 93931
48986 48367
28777 15507
36643 89307
55932 98519
98887 17257
89871 38604
37367 81863
42163 81543
34541 27985
41292 25924
44510 16343
5696 72986
90334 12697
61485 68790
46868 69546
47100 28701
90482 44503
86900 75602
73503 41549
49302 16300
99059 14597
55228 39192
...

output:

Gyojun is handsome
2938
2938
2938
2938
2938
2938
2938
2938
2938
2938
2938
2938
2940
2938
2938
2938
2938
2938
2938
2938
2938
2938
2938
2938
2938
2938
2938
2939
2938
2938
2938
2938
2938
2938
2938
2938
2938
2938
2938
2938
2938
2938
2938
2940
2938
2938
2938
2938
2939
2938
2938
2938
2938
2938
2938
2938
2...

result:

ok 240649 lines

Test #384:

score: 0
Accepted
time: 82ms
memory: 108272kb

input:

100000 243720
44674 47694
6365 10597
92616 61996
16458 91304
62729 12949
43312 45112
28867 73484
3360 2435
46430 10823
51851 39052
41522 88357
42959 95804
47283 96418
57025 59220
79240 31397
39670 19869
67836 31118
81921 19695
98201 2108
36190 57013
83081 5593
47192 96535
62125 12083
86438 491
34854...

output:

Gyojun is handsome
2022
2192
2022
2022
2022
2022
2022
2022
2022
2022
2022
2022
2022
2022
2022
2022
2022
2022
2022
2022
2022
2022
2022
2022
2022
2023
2192
2022
2022
2022
2022
2022
2022
2023
2022
2022
2022
2022
2022
2022
2200
2022
2022
2022
2022
2022
2202
2022
2022
2022
2022
2022
2196
2022
2022
2022
2...

result:

ok 243722 lines

Test #385:

score: 0
Accepted
time: 99ms
memory: 107708kb

input:

100000 243672
8164 76602
70828 45151
64411 23840
89953 70871
26763 72277
89234 87139
70459 72670
60469 39684
32400 40965
59076 50145
40702 22783
92560 40023
67887 90509
91781 11737
94793 71260
56948 66639
7979 39313
35931 63722
855 11289
89580 76494
76766 25043
84701 84147
67400 11378
39284 74793
53...

output:

Gyojun is handsome
1984
1984
1984
1984
5757
1984
5757
1984
1984
1984
1984
1984
1984
1984
1984
1984
1984
1984
5758
1984
1984
1984
1984
1984
1984
1984
1984
1984
1984
1984
1984
1984
1984
1984
1984
1984
1984
1984
1984
5757
1984
1984
1984
1984
1985
1984
1984
1984
1984
1984
1984
1984
1984
1984
1984
1984
1...

result:

ok 243674 lines

Test #386:

score: 0
Accepted
time: 69ms
memory: 107724kb

input:

100000 155667
14435 869
70133 94504
98590 73992
16737 32561
25290 4442
46328 46932
10323 36231
168 5971
3314 90690
55662 23512
26731 55036
34569 53577
66326 21397
60285 45554
96077 38847
65767 26441
20081 71654
32111 31981
53244 99279
52253 91959
6527 45371
57049 53102
65179 13892
10522 14394
7041 9...

output:

Gyojun is handsome
2010
2008
2025
2004
2009
2004
2011
2004
2017
2011
2004
2004
2007
2004
2004
2004
2007
2004
2004
2011
2004
2018
2004
2012
2010
2004
2004
2012
2004
2021
2004
2004
2021
2008
2012
2004
2007
2004
7978
2004
2009
2004
2013
2004
2004
2006
2009
2004
2004
2004
2014
2004
2013
2006
2004
2004
2...

result:

ok 155669 lines

Test #387:

score: 0
Accepted
time: 104ms
memory: 110172kb

input:

100000 243730
39880 38030
24218 67584
34603 30839
16458 95838
7608 6056
55091 28114
67691 91665
46097 22127
26276 55950
69779 63377
29519 83306
68362 26144
95379 52621
76775 29296
89363 81921
5067 21780
23756 32307
32398 97488
84913 27510
54403 37599
44276 65803
1164 3429
94494 46765
15272 11241
811...

output:

Gyojun is handsome
1935
1934
7973
1935
1934
1934
1934
1935
1934
1934
1934
1934
1934
1934
1934
1934
1934
1934
1936
1934
1934
1934
1934
1934
1936
1936
1936
7973
1934
1934
1934
1934
1934
1935
1934
1934
1936
1934
1934
1934
1934
1934
1934
1934
1934
1934
1935
1934
1934
1936
1934
1934
1934
1934
1934
1937
1...

result:

ok 243732 lines

Test #388:

score: 0
Accepted
time: 97ms
memory: 109608kb

input:

100000 243672
3511 47462
797 12066
28147 45671
17148 8074
35850 78142
27707 78352
61229 71099
13007 81483
80562 49316
43375 93265
84244 75199
97950 78971
9988 45984
23566 38203
55417 62559
195 31552
92959 77614
88791 13862
88022 20543
74971 46427
2381 92485
43507 37277
22974 63162
87367 72250
23845 ...

output:

Gyojun is handsome
2018
2018
2018
2018
2018
2018
2018
2019
2018
2018
2018
2018
2018
2018
2018
2018
2018
2018
2018
2018
2018
7974
2018
2018
2018
2018
2018
2018
2018
2018
2018
2018
2018
2018
2018
2019
2018
2018
2018
2018
2018
2018
2018
2018
2018
2018
2018
2018
2018
2018
7974
2018
2018
2018
2018
2018
2...

result:

ok 243674 lines

Test #389:

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

input:

80000 80004
4701 22714
4701 32376
32376 53061
22714 53061
77083 16641
22714 6382
72451 77083
72451 10119
67099 10119
67099 78516
78516 24073
24073 49137
49137 5429
7947 5429
64174 7947
62850 64174
62850 47944
13422 47944
13422 4173
26042 4173
41099 26042
41099 12016
12016 74670
53678 74670
61844 536...

output:

Gyojun is handsome
0
0
0
0
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
9999
999...

result:

ok 80006 lines

Test #390:

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

input:

80000 250000
7932 52401
52401 23157
23157 39287
39287 7932
17743 52484
17406 7932
17743 67310
67310 44286
8005 44286
65435 8005
67854 65435
2257 67854
6631 2257
8169 6631
19866 8169
19866 67125
67125 6647
6647 29439
29439 58874
58874 60664
60664 37554
22370 37554
22370 71328
71328 57190
57190 8275
8...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 250002 lines

Test #391:

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

input:

99700 99704
27930 31924
27930 38172
52549 38172
52549 31924
96 95751
31924 10731
30752 95751
30752 50273
81008 50273
81008 93962
92195 93962
92195 67974
67974 58221
58221 34275
34275 77978
99222 77978
42247 99222
42247 91286
87100 91286
87100 46083
55578 46083
55578 60360
60360 87119
99169 87119
991...

output:

Gyojun is handsome
4
4
4
4
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
12465
124...

result:

ok 99706 lines

Test #392:

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

input:

99700 100000
24643 76138
11660 76138
11660 74459
74459 24643
4033 46354
50273 24643
97605 4033
97605 56881
82247 56881
82247 19163
19163 23671
49733 23671
63509 49733
73713 63509
73713 23143
23143 29064
29064 45590
45590 30287
45810 30287
53157 45810
53157 19666
19666 59703
59703 77028
42818 77028
4...

output:

Gyojun is handsome
4
4
4
4
138
198
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
138
1...

result:

ok 100002 lines

Test #393:

score: 0
Accepted
time: 123ms
memory: 128796kb

input:

99700 250000
10372 41211
41211 54544
82285 54544
82285 10372
53801 37554
10372 38553
37554 94217
98139 94217
22578 98139
64374 22578
64374 80330
80330 99098
99098 17982
45334 17982
27367 45334
27367 52664
52664 57
14954 57
14954 90550
28335 90550
28335 83659
62318 83659
98556 62318
98556 27545
27545...

output:

Gyojun is handsome
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
0
0
0
0
1
1
0
1
1
0
0
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0...

result:

ok 250002 lines

Test #394:

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

input:

99900 99904
79385 82725
82725 90446
90446 41954
41954 79385
95676 81509
79385 20545
36059 81509
36059 62258
77645 62258
77645 28326
28326 9372
49629 9372
21095 49629
9166 21095
9166 67972
67972 91549
56054 91549
44535 56054
60234 44535
86761 60234
98838 86761
5836 98838
5836 9549
39858 9549
16709 39...

output:

Gyojun is handsome
12
12
12
12
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497
12497...

result:

ok 99906 lines

Test #395:

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

input:

99900 100000
66225 48081
67477 66225
383 67477
383 48081
32251 58232
48081 17323
58232 23077
16912 23077
16912 70233
36883 70233
11287 36883
66509 11287
25368 66509
48805 25368
10508 48805
10508 78301
39389 78301
39389 33269
33269 80559
87345 80559
87345 70290
25308 70290
25308 51104
51104 54291
542...

output:

Gyojun is handsome
12
12
12
12
114
80
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
114
11...

result:

ok 100002 lines

Test #396:

score: 0
Accepted
time: 137ms
memory: 127476kb

input:

99900 250000
61280 45797
65344 61280
29221 65344
29221 45797
82538 27946
45797 55402
6914 82538
9837 6914
9837 1429
64819 1429
19940 64819
70890 19940
70890 86112
18477 86112
18477 25283
25283 33485
2046 33485
2046 94685
93599 94685
59627 93599
44878 59627
44878 12496
12496 69327
17626 69327
95212 1...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 250002 lines

Test #397:

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

input:

80000 80001
22714 16641
79851 4701
16641 43373
22714 56077
32376 43373
15831 32376
53061 15831
53061 77083
72451 77083
72451 10119
10119 67099
67099 78516
78516 24073
49137 24073
5429 49137
7947 5429
7947 64174
62850 64174
62850 47944
13422 47944
4173 13422
4173 26042
26042 41099
12016 41099
74670 1...

output:

Gyojun is handsome
40003
40002
40003
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002
40002...

result:

ok 80003 lines

Test #398:

score: 0
Accepted
time: 110ms
memory: 121212kb

input:

80000 250000
52484 7932
79437 52401
76370 52484
34997 7932
76370 23157
23157 38400
39287 38400
17743 39287
67310 17743
44286 67310
8005 44286
65435 8005
67854 65435
67854 2257
2257 6631
6631 8169
8169 19866
19866 67125
67125 6647
29439 6647
29439 58874
58874 60664
60664 37554
37554 22370
22370 71328...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 250002 lines

Test #399:

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

input:

99700 99701
31924 96
60877 27930
22851 96
81181 31924
22851 38172
41647 38172
52549 41647
52549 95751
30752 95751
30752 50273
81008 50273
81008 93962
93962 92195
92195 67974
67974 58221
34275 58221
77978 34275
77978 99222
42247 99222
42247 91286
87100 91286
87100 46083
46083 55578
60360 55578
60360 ...

output:

Gyojun is handsome
49853
49852
49853
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852
49852...

result:

ok 99703 lines

Test #400:

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

input:

99700 100000
24643 46354
35628 76138
8785 46354
95968 24643
8785 11660
51521 11660
74459 51521
4033 74459
4033 97605
97605 56881
56881 82247
82247 19163
23671 19163
49733 23671
49733 63509
63509 73713
73713 23143
29064 23143
29064 45590
45590 30287
45810 30287
53157 45810
53157 19666
19666 59703
597...

output:

Gyojun is handsome
474
109
87
474
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
87
178
178
178
178
178
178...

result:

ok 100002 lines

Test #401:

score: 0
Accepted
time: 132ms
memory: 128552kb

input:

99700 250000
10372 53801
41211 72942
53801 44820
62078 10372
44820 54544
68588 54544
82285 68588
82285 37554
37554 94217
98139 94217
98139 22578
64374 22578
64374 80330
99098 80330
17982 99098
17982 45334
45334 27367
27367 52664
57 52664
14954 57
90550 14954
28335 90550
28335 83659
83659 62318
62318...

output:

Gyojun is handsome
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 250002 lines

Test #402:

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

input:

99900 99901
95676 79385
96994 82725
95676 64601
97189 79385
64601 90446
82947 90446
41954 82947
41954 81509
36059 81509
36059 62258
62258 77645
28326 77645
9372 28326
49629 9372
49629 21095
21095 9166
67972 9166
91549 67972
56054 91549
44535 56054
60234 44535
86761 60234
86761 98838
5836 98838
9549 ...

output:

Gyojun is handsome
49953
49952
49953
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952
49952...

result:

ok 99903 lines

Test #403:

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

input:

99900 100000
32251 48081
66225 79332
32251 84875
48081 14867
67477 84875
13336 67477
383 13336
58232 383
23077 58232
23077 16912
70233 16912
70233 36883
36883 11287
66509 11287
66509 25368
48805 25368
48805 10508
10508 78301
78301 39389
39389 33269
33269 80559
80559 87345
70290 87345
25308 70290
511...

output:

Gyojun is handsome
1639
818
334
1639
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334
334...

result:

ok 100002 lines

Test #404:

score: 0
Accepted
time: 141ms
memory: 129616kb

input:

99900 250000
27946 45797
61280 54789
3043 27946
45797 9702
3043 65344
91323 65344
91323 29221
29221 82538
6914 82538
6914 9837
1429 9837
64819 1429
19940 64819
19940 70890
70890 86112
18477 86112
25283 18477
25283 33485
33485 2046
94685 2046
94685 93599
93599 59627
44878 59627
44878 12496
12496 6932...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
2
2
2
0
0
0
0
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0...

result:

ok 250002 lines

Test #405:

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

input:

99990 99994
70337 24105
70337 88340
74985 88340
24105 74985
29809 3672
24105 93263
41716 3672
41716 87325
58839 87325
27383 58839
27383 63153
84887 63153
84887 83491
32503 83491
64582 32503
64582 92663
92663 95881
95881 72000
72000 94741
70196 94741
48448 70196
48448 45837
26015 45837
48578 26015
30...

output:

Gyojun is handsome
1
1
1
1
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
6248
624...

result:

ok 99996 lines

Test #406:

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

input:

100000 100004
8137 43410
69454 8137
57311 69454
57311 43410
36613 59191
5042 43410
28961 36613
8208 28961
51692 8208
11650 51692
11650 25962
2441 25962
2441 44741
44741 35721
54902 35721
49082 54902
57002 49082
57002 3360
29030 3360
29030 59818
59818 92765
92765 86008
27759 86008
17013 27759
6614 17...

output:

Gyojun is handsome
1
1
1
1
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
6250
625...

result:

ok 100006 lines

Test #407:

score: 0
Accepted
time: 84ms
memory: 110564kb

input:

50000 250000
28554 23283
22084 28554
10062 22084
35332 10062
20965 35332
17829 20965
17829 48556
7034 48556
7034 25646
45504 25646
32038 45504
44024 32038
44024 14955
14955 7439
7439 39305
39305 4695
4695 9856
14583 9856
14583 46793
46793 25185
33356 25185
36126 33356
36126 12076
12076 3552
14840 35...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 250002 lines

Test #408:

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

input:

100000 250000
22604 61210
17973 61210
34088 17973
7122 34088
76339 7122
40238 76339
87789 40238
87789 77329
77329 31784
31784 48060
48060 51511
56084 51511
63768 56084
386 63768
90401 386
90401 28860
12221 28860
28646 12221
99298 28646
82789 99298
99154 82789
99154 90538
79756 90538
79756 70999
8384...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 250002 lines

Test #409:

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

input:

500 62502
496 201
288 201
288 273
273 276
449 276
449 376
470 376
470 333
393 333
238 393
238 497
128 497
234 128
160 234
160 134
134 80
95 80
97 95
479 97
479 200
200 209
292 209
221 292
221 213
434 213
434 334
164 334
222 164
319 222
473 319
241 473
373 241
373 176
176 43
43 247
149 247
149 115
40...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 62504 lines

Subtask #7:

score: 10
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Dependency #5:

100%
Accepted

Dependency #6:

100%
Accepted

Test #410:

score: 10
Accepted
time: 34ms
memory: 94452kb

input:

249665 249739
96959 205783
45581 243541
211990 85372
37969 173127
74890 167726
88619 237904
202075 200938
209141 200672
73033 76758
28305 203974
179612 133144
63230 4658
44725 176085
31851 83494
33212 24396
150766 213695
234711 198355
238044 226424
237701 92072
179947 65449
2648 137392
241023 227674...

output:

Gyojun is handsome
249665
249665
249664
249664
249665
249665
249664
249665
249665
249665
249664
249665
249665
249664
249664
249664
249664
249665
249665
249665
249664
249665
249664
147284
249665
249665
249664
249664
249665
249664
249665
249665
249665
249664
249665
249665
249664
249665
249665
249664
2...

result:

ok 249741 lines

Test #411:

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

input:

249788 249828
60602 223965
150492 199337
102569 96467
113534 19356
37954 63397
131461 189004
17688 240669
240472 184818
44328 129961
77597 38303
141030 125568
39881 51144
125553 207756
75283 14024
208992 87853
28740 194888
194221 156282
110070 123980
24018 136056
225991 229885
185199 37337
167050 76...

output:

Gyojun is handsome
249788
249787
249788
249787
249787
249787
249788
249787
249788
249788
249787
249788
249788
249788
249788
249788
249787
249788
249787
249788
249788
249787
249788
249787
249788
249787
249788
249787
249787
249788
249787
249788
249788
249787
249788
249787
249788
249787
249787
249788
2...

result:

ok 249830 lines

Test #412:

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

input:

249935 250927
230179 166430
241427 221182
98729 133160
94525 40247
67585 5911
242887 123433
21812 60404
74633 23509
189615 127584
149490 27884
155807 91386
69622 79423
232858 164916
137181 200860
243835 114608
127221 128738
144654 146068
137721 54735
43923 112686
226536 93297
222665 154197
162672 22...

output:

Gyojun is handsome
249935
249935
249935
249934
249935
249935
249935
249934
249935
249935
249934
142716
142719
249934
249935
249935
249934
249935
249935
249935
249934
249934
249935
249934
249935
249935
249934
249935
249935
249935
249934
249935
249934
249934
249935
249934
249935
249935
249934
249935
2...

result:

ok 250929 lines

Test #413:

score: 0
Accepted
time: 166ms
memory: 137452kb

input:

249749 299685
81740 208739
226835 236810
166888 18021
49153 216904
133705 60699
228423 115216
163797 79711
149959 216067
195879 101816
138052 134206
95187 15694
88775 90273
233843 191722
71702 8435
235543 76171
153003 161811
218620 205399
150406 53431
199488 3372
116935 51282
4543 164833
229540 1277...

output:

Gyojun is handsome
249748
78626
78626
249749
249748
78626
78626
249749
78626
78626
249748
249748
78627
78627
249748
78626
249748
78626
78627
78626
78626
249749
249748
249748
78626
78628
78627
78626
249749
78627
249748
78626
249749
78626
78626
78627
78627
249749
249748
78628
78626
78626
78627
78627
7...

result:

ok 299687 lines

Test #414:

score: 0
Accepted
time: 288ms
memory: 159868kb

input:

249658 399495
248645 24604
118991 186919
164835 6452
195505 184766
107803 1875
117678 10699
55364 184511
121198 122908
210591 72508
125632 92567
191965 73058
94210 203807
94820 246304
13355 119184
135790 180445
115375 177902
98871 49900
75535 244151
182755 156518
121238 124288
125940 118714
24904 11...

output:

Gyojun is handsome
31758
31759
249657
31759
31758
31758
31759
31758
31758
249658
31758
31758
31759
31758
31758
31759
31758
31758
31758
31758
31759
31758
31759
31759
31758
31760
31758
31758
31760
31758
31758
31760
31759
31759
31758
31758
31758
31758
31758
31758
31758
31759
31758
249657
31758
31758
31...

result:

ok 399497 lines

Test #415:

score: 0
Accepted
time: 413ms
memory: 171932kb

input:

249567 499442
163264 36611
99788 71301
117941 213665
157833 115304
15124 136220
135076 217601
232782 150409
188142 247697
58960 13818
70195 222846
52839 8654
176760 9863
231555 198757
46379 173445
100231 209211
187226 237323
70010 185796
143295 118336
177305 122908
249022 139116
152788 22355
13365 2...

output:

Gyojun is handsome
13981
13981
13981
13981
13981
13981
13981
13981
13981
13981
13981
13981
13981
13981
13982
13981
13981
13981
13981
13981
13982
13981
13981
13982
13981
13981
13981
13982
13981
13981
13981
13981
13981
13981
13981
13981
13981
13981
13981
13982
13982
13981
13981
13981
13981
13981
13982...

result:

ok 499444 lines

Test #416:

score: 0
Accepted
time: 492ms
memory: 181224kb

input:

249982 749523
133268 138705
222189 31786
146172 41613
43407 179887
153073 115202
225599 23288
167599 46009
140377 11
13538 5926
166073 138480
221537 59310
220313 75630
37912 151912
16974 207642
44387 144152
185333 242804
192675 56892
247539 212095
237633 117014
39736 193982
94897 90934
50284 66565
1...

output:

Gyojun is handsome
1901
1901
1902
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1902
1901
1901
1901
1901
1902
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1901
1...

result:

ok 749525 lines

Test #417:

score: 0
Accepted
time: 568ms
memory: 189304kb

input:

249852 879472
167071 152071
70799 104798
138174 206596
116105 24759
247419 55329
69728 144227
87012 191171
93135 138735
106956 9382
62449 13260
143599 62454
219094 220758
211043 63720
179488 231328
126934 56356
5266 191399
105148 167713
109435 124631
115270 223284
242184 45741
234478 204287
106258 1...

output:

Gyojun is handsome
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
611
249851
611
611
611
611
611
611
611
611
61...

result:

ok 879474 lines

Test #418:

score: 0
Accepted
time: 599ms
memory: 187948kb

input:

249747 909773
177844 97196
13640 159853
128769 105938
136036 185720
157897 79984
210211 185672
149023 101460
161761 29309
75818 235928
30222 198441
35650 83253
227393 77371
224908 200240
76527 228168
170615 188290
68625 171420
164507 125644
62756 99473
99823 112258
41971 2607
144473 118026
166628 53...

output:

Gyojun is handsome
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
560
5...

result:

ok 909775 lines

Test #419:

score: 0
Accepted
time: 582ms
memory: 190420kb

input:

249850 959225
5670 14952
185218 65317
19348 56037
231619 135111
211169 93113
106205 127690
43181 154475
109492 238586
248135 222310
216806 42024
218326 169795
117590 189674
144535 212437
230907 180723
107438 87717
171271 29399
166654 123097
70428 208971
136995 79939
85604 154385
224409 195176
63572 ...

output:

Gyojun is handsome
329
330
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
330
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
329
330
329
329
3...

result:

ok 959227 lines

Test #420:

score: 0
Accepted
time: 584ms
memory: 191100kb

input:

249919 999008
49057 62519
164042 193984
119103 215867
92670 115906
200794 228075
114135 184871
107049 155994
163962 103819
99655 73294
226264 23481
99669 109879
194394 151140
26144 32665
183520 178762
20817 246302
132355 135404
185701 194366
125256 42186
34069 60164
103375 157618
214414 93270
685 22...

output:

Gyojun is handsome
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
272
2...

result:

ok 999010 lines

Test #421:

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

input:

250000 252500
90719 57022
170746 238213
75832 137704
69321 147494
2259 79812
172221 165534
23967 214863
151402 129952
25112 89616
83758 55055
19067 185106
50439 145257
102589 6327
240743 219293
56751 212464
6854 49962
235794 220144
35342 143862
98217 185608
3256 116246
20207 129919
200400 22869
2263...

output:

Gyojun is handsome
249999
250000
250000
250000
249999
249999
250000
250000
250000
249999
250000
250000
250000
249999
120435
250000
250000
249999
249999
249999
250000
250000
250000
249999
249999
250000
250000
120435
249999
250000
249999
249999
250000
249999
250000
120437
249999
250000
250000
250000
2...

result:

ok 252502 lines

Test #422:

score: 0
Accepted
time: 401ms
memory: 162392kb

input:

250000 400000
50587 30888
93933 118910
104752 42431
107083 58999
61183 8536
53537 197540
96122 44213
90882 85262
135859 112394
17805 109831
57522 8464
91776 197654
232349 105910
165319 22471
21835 114135
165865 93908
142007 122586
245228 93852
21638 248920
232691 248702
52034 10064
230991 225386
662...

output:

Gyojun is handsome
33828
33828
33828
33828
33829
33829
33828
249999
33828
33830
33828
33829
33828
33828
33829
33829
249999
249999
33828
33828
33829
33829
33828
33829
33828
33828
33828
33828
33828
33829
33828
249999
33828
33828
33828
33828
33829
33828
33828
250000
33828
33829
33828
33828
33828
33828
...

result:

ok 400002 lines

Test #423:

score: 0
Accepted
time: 424ms
memory: 179780kb

input:

250000 600000
200435 82201
199780 221623
81401 188168
59799 200935
222962 34656
223808 23490
199248 53800
227245 40893
81178 116329
67835 133326
177127 3763
28313 97424
236461 191117
111143 206488
47365 145169
240503 86888
56331 137700
116194 4519
166854 81857
68699 11610
138871 160545
172878 58900
...

output:

Gyojun is handsome
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
7432
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
249999
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
7431
249999
7431
7431
7431
7431
7431
7431
7431
7431
74...

result:

ok 600002 lines

Test #424:

score: 0
Accepted
time: 509ms
memory: 186660kb

input:

250000 800000
126761 213718
12467 46387
128589 182203
200974 77754
157333 60697
747 4992
40112 87095
200288 20846
98931 98181
69818 184210
36395 226884
193641 162240
189681 89106
56011 66340
80930 193910
1447 5041
104217 183668
22513 213129
4420 138087
14538 68198
242314 76490
101014 116318
241289 1...

output:

Gyojun is handsome
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1566
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1565
1566
1565
1565
1565
1565
1565
1565
1565
1565
1...

result:

ok 800002 lines

Test #425:

score: 0
Accepted
time: 618ms
memory: 194536kb

input:

250000 1000000
65027 209624
38098 15086
88255 193323
143741 33187
148121 140788
142012 164386
117874 150471
113768 154485
52615 196350
107470 52636
178384 171543
230251 189490
45292 94499
106777 116416
74868 22323
194165 62775
246017 211628
209936 132210
142176 178074
192757 227364
12949 247660
2465...

output:

Gyojun is handsome
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
256
2...

result:

ok 1000002 lines

Test #426:

score: 0
Accepted
time: 141ms
memory: 164204kb

input:

250000 252500
158983 57022
68078 238213
75832 191271
69321 159045
2259 124035
172221 36651
23967 38287
130156 129952
25112 208022
189368 55055
19067 244595
50439 40181
102589 23667
240743 57560
56751 212464
6854 180830
7760 220144
34340 143862
174773 185608
136635 116246
246498 129919
19029 22869
22...

output:

Gyojun is handsome
144
66
39
110
47
47
47
35
133
40
118
44
39
51
6
43
27
60
44
138
79
54
30
272
136
108
85
63
64
184
82
247
65
29
132
47
60
123
234
63
25
130
37
6
57
223
44
48
92
71
77
85
82
48
6
73
134
84
161
15
89
178
48
164
87
333
55
33
41
57
58
65
70
187
66
29
31
270
22
189
169
45
179
56
112
75
...

result:

ok 252502 lines

Test #427:

score: 0
Accepted
time: 358ms
memory: 175732kb

input:

250000 400000
180889 30888
64417 118910
104752 42431
107083 105790
61183 171980
68894 197540
96122 248883
153393 85262
135859 11314
17805 82520
196703 8464
48153 197654
232349 171453
165319 22471
21835 114135
165865 93908
223306 122586
21321 93852
67200 248920
232691 145398
52034 220914
230991 26598...

output:

Gyojun is handsome
0
0
0
0
1
2
1
1
0
0
1
1
0
0
0
0
1
2
3
0
0
0
0
0
0
0
3
0
0
0
0
4
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1
1
0
0
2
1
0
2
0
0
2
0
0
1
0
0
1
0
1
0
0
0
0
2
1
0
0
4
0
0
0
4
0
2
4
0
1
1
0
1
1
0
1
2
0
1
1
0
3
2
0
2
2
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
2
1
2
0
0
4
0
0
1
0
0
0
0
0
0
1
0
1
0
0
0
0
0
1
0
3...

result:

ok 400002 lines

Test #428:

score: 0
Accepted
time: 403ms
memory: 185148kb

input:

250000 600000
200435 17134
97408 221623
155282 188168
59799 200935
104829 34656
38380 23490
199248 107785
194968 40893
71270 116329
67835 133326
177127 3763
28313 97424
236461 35453
111143 206488
47365 145169
240503 206267
56331 137700
116194 4519
166854 81857
68699 11610
138871 105530
172878 58900
...

output:

Gyojun is handsome
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0...

result:

ok 600002 lines

Test #429:

score: 0
Accepted
time: 588ms
memory: 191120kb

input:

250000 800000
126761 213718
12467 46387
128589 182203
200974 77754
157333 60697
747 4992
40112 87095
200288 20846
98931 98181
69818 184210
36395 14074
171309 162240
166210 89106
56011 66340
124463 193910
1447 165023
68076 183668
22513 213129
4420 138087
14538 68198
242314 76490
211878 116318
241289 ...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 800002 lines

Test #430:

score: 0
Accepted
time: 545ms
memory: 195716kb

input:

250000 1000000
65027 209624
38098 209811
88255 193323
143741 97114
148121 140788
142012 164386
68004 150471
113768 154485
52615 36636
107470 52636
178384 171543
230251 182585
45292 94499
106777 116416
74868 22323
194165 120972
246017 211628
209936 132210
142176 178074
192757 227364
12949 247660
2465...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 1000002 lines

Test #431:

score: 0
Accepted
time: 356ms
memory: 176176kb

input:

250000 416630
17395 177562
228478 80813
175623 56298
38916 41424
162129 247220
10406 226950
117655 125803
104762 249387
235463 228805
129631 217622
151377 229526
60032 238311
101724 22025
54806 51632
184267 218593
89172 79151
212200 107975
164886 244140
174736 168628
216795 193443
133683 124573
1636...

output:

Gyojun is handsome
3
1
1
1
3
1
3
2
1
3
2
3
2
1
1
3
2
1
1
1
2
1
2
1
1
1
3
2
1
1
1
3
2
1
2
2
1
1
1
1
3
1
2
2
1
1
1
3
2
1
1
1
1
1
2
1
3
2
2
2
2
2
2
3
1
3
2
2
2
1
1
1
1
1
3
1
1
2
2
1
3
1
2
2
3
1
3
3
2
3
2
1
2
1
3
1
1
1
2
2
3
1
1
1
1
2
3
1
3
1
2
1
3
3
1
3
2
1
1
1
2
2
3
1
1
1
2
1
1
1
2
2
1
1
2
1
1
3
3
1
1...

result:

ok 416632 lines

Test #432:

score: 0
Accepted
time: 299ms
memory: 172528kb

input:

250000 333582
13187 245863
120832 92810
17924 132284
79430 35177
164571 6436
158796 69270
94356 30029
52079 12959
195865 214643
75717 73813
88545 88607
194490 113451
126879 197595
147529 112594
84313 22477
242403 113679
220321 86844
162716 116574
41537 205393
44762 248537
106308 161777
108153 220249...

output:

Gyojun is handsome
3
0
3
2
1
3
5
0
2
1
0
2
1
3
4
0
0
0
3
0
1
1
3
0
0
1
1
3
0
2
1
4
1
4
0
0
1
0
1
1
3
1
3
1
3
1
1
0
0
2
0
1
5
2
4
0
3
1
4
1
3
0
1
2
2
3
2
1
4
5
0
3
0
0
5
5
1
0
0
0
0
5
0
1
1
1
0
0
0
0
2
1
0
1
3
3
0
4
1
3
5
5
4
5
0
3
2
1
0
0
0
0
4
0
3
0
3
0
3
0
0
0
3
2
2
1
5
0
0
5
2
0
4
5
0
1
1
0
0
5
0...

result:

ok 333584 lines

Test #433:

score: 0
Accepted
time: 242ms
memory: 169056kb

input:

250000 295725
24638 15731
53649 106831
182439 18020
120387 94308
36730 105126
234933 99838
53250 52872
19038 146841
139307 181571
193678 16530
86292 123136
188539 39054
2596 410
61891 194025
5455 120035
138809 193584
18455 105827
179595 228698
230968 165883
238956 224843
141987 49715
99421 177657
72...

output:

Gyojun is handsome
7
8
6
8
0
2
7
1
3
0
0
2
3
3
8
0
0
9
2
2
1
1
3
1
2
0
1
9
1
0
3
1
2
0
9
3
2
1
1
2
2
4
4
3
5
3
3
1
3
3
0
10
6
8
6
2
0
2
1
6
1
9
6
3
2
0
7
2
2
1
2
3
2
2
2
2
0
3
0
0
10
1
0
5
2
2
5
2
5
10
3
8
5
5
5
4
3
7
2
1
3
8
2
0
3
3
1
4
1
0
5
1
6
2
5
4
7
0
0
5
3
1
4
1
1
8
0
3
2
10
1
3
3
3
2
4
9
6
0...

result:

ok 295727 lines

Test #434:

score: 0
Accepted
time: 171ms
memory: 166788kb

input:

250000 262114
200594 151176
48923 74104
229479 36302
46902 107613
78 152210
191826 55683
71584 28249
50394 117884
223708 69224
4972 234726
247950 71240
186452 160916
174087 175761
158374 189048
107754 2487
184855 138673
102490 242335
125975 15754
172551 51067
136044 24532
47727 121155
56750 163929
1...

output:

Gyojun is handsome
8
11
2
8
0
22
6
4
21
9
16
2
3
10
3
15
13
8
2
17
10
6
9
28
2
12
12
12
22
15
2
19
28
16
2
6
14
30
29
32
5
18
8
39
9
10
6
12
10
19
17
15
33
0
6
15
10
13
9
17
17
13
14
8
2
10
5
33
28
11
12
1
11
33
23
16
10
4
4
21
15
8
12
24
10
5
6
21
26
20
5
5
34
33
1
30
35
4
2
1
13
10
13
16
21
2
34
3...

result:

ok 262116 lines

Test #435:

score: 0
Accepted
time: 163ms
memory: 168464kb

input:

250000 254895
9593 223073
166628 168257
51239 72658
126213 163525
10215 16756
112649 151285
200481 78532
226746 127804
233102 224701
240490 118855
197920 234824
185510 117149
82342 95675
67752 62894
57891 208679
64509 160533
49821 2608
110474 55502
18138 78396
12800 219438
8221 233583
97855 126862
1...

output:

Gyojun is handsome
44
10
11
31
13
55
9
60
22
21
19
23
25
15
26
12
16
29
14
84
23
41
42
25
26
98
25
55
31
53
17
83
37
42
50
18
81
28
84
62
59
10
30
52
93
60
43
77
76
19
41
5
7
38
76
14
69
19
88
87
45
4
10
70
28
5
12
29
14
21
35
26
36
45
36
19
7
39
58
98
13
56
14
24
45
60
49
28
32
7
65
95
30
59
37
31
...

result:

ok 254897 lines

Test #436:

score: 0
Accepted
time: 152ms
memory: 170092kb

input:

250000 251689
123651 62845
9323 185688
237428 2371
27414 112555
184886 235405
245089 148506
201115 109116
182288 120409
158106 213145
163668 214250
69679 135388
236281 227253
100784 149842
97542 58806
41847 162179
105116 119194
183219 208524
222792 78091
208457 153456
49051 93444
85569 244268
131613...

output:

Gyojun is handsome
87
50
122
31
67
93
44
169
146
244
14
44
131
6
169
173
60
145
22
37
208
153
185
9
148
140
55
61
63
190
223
68
66
169
42
293
36
96
191
90
159
169
105
122
61
20
3
183
28
160
37
151
216
147
20
59
136
134
113
119
115
84
217
183
147
118
55
95
141
48
175
75
180
157
162
23
116
15
130
46
2...

result:

ok 251691 lines

Test #437:

score: 0
Accepted
time: 131ms
memory: 164940kb

input:

250000 250492
91823 181268
161582 18494
31319 93214
189697 200749
175116 119228
157558 119084
87161 85017
50439 104079
167028 83572
236935 10109
214952 17680
114466 187335
47728 12173
95251 8992
230699 98009
21717 179662
239893 128310
91658 4886
148667 199158
70579 134148
54659 49971
247253 136032
1...

output:

Gyojun is handsome
34
54
95
53
635
645
111
434
572
151
20
36
116
420
181
478
118
257
662
29
242
57
384
597
515
416
329
364
20
572
369
478
655
182
234
907
599
33
46
535
194
178
16
107
156
929
141
385
364
575
815
84
160
656
733
137
500
979
85
794
805
48
357
857
410
455
279
111
755
523
65
768
366
202
2...

result:

ok 250494 lines

Test #438:

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

input:

250000 250195
181880 165441
74822 26456
137322 174775
118796 160115
58258 76439
79697 248082
45938 168145
184850 212484
174053 194992
65336 199808
193032 135644
149405 37857
192185 96845
91897 95581
248261 45167
2399 164046
51092 2474
113847 31885
231017 17650
15441 175891
171548 238883
176915 12973...

output:

Gyojun is handsome
982
1363
2191
601
416
338
713
325
485
926
2265
301
1468
601
1197
2284
166
656
2245
1200
374
665
784
873
1105
431
192
217
96
491
254
2338
1785
1095
1091
1008
2275
728
906
1509
2485
1363
2284
798
1752
1008
478
440
1509
974
1509
254
350
1013
990
941
673
1489
2395
431
824
2065
541
233...

result:

ok 250197 lines

Test #439:

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

input:

250000 250075
201581 178511
201168 152879
80069 182283
98563 45366
36773 139402
93257 160889
111022 10171
224330 113221
11092 13782
246317 186811
2583 85530
163322 167429
173141 193919
52839 9419
243841 5765
167642 125755
16863 108817
63707 208962
40643 54925
227268 177241
163604 151674
42525 122159...

output:

Gyojun is handsome
5782
3257
3469
2667
3493
1195
1868
1199
3287
828
6406
2217
1992
361
2943
5782
3357
42
3115
1897
1645
1418
1480
2667
5661
3593
3469
828
3287
2764
1891
6406
3467
7370
1640
1645
5110
1054
3469
1413
266
1831
3273
7370
1645
825
5661
3593
903
7370
173
3593
825
147
1992
2526
3287
3257
34...

result:

ok 250077 lines

Test #440:

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

input:

250000 250056
119496 106688
72111 144747
141034 94290
103169 26345
35171 66443
66626 166469
80712 207138
104011 41228
107921 175996
139688 15562
42750 248619
36217 97117
119137 214411
249867 246153
152442 248222
186818 226207
86655 86337
133337 19477
248370 196478
62823 70545
64022 133308
67498 1727...

output:

Gyojun is handsome
1817
2539
1325
5298
2798
4605
1443
2811
6622
1471
7069
5735
4506
1325
996
6622
2359
3211
7069
4761
7590
3961
7069
2838
2539
685
7590
7069
2114
3211
3231
2565
3231
2811
3297
1909
4506
3057
4574
290
2838
3073
834
947
741
7878
2576
688
5735
4761
3889
4506
856
5212
1400
7069
1442
506
...

result:

ok 250058 lines

Test #441:

score: 0
Accepted
time: 136ms
memory: 167460kb

input:

250000 250025
160014 6908
3029 226113
234809 14887
5226 51107
34928 73773
79903 116327
185086 26176
150086 112774
12525 89944
108534 36729
224 65944
91793 114623
185599 244714
9025 25968
49944 121695
65316 207899
185365 57755
7272 68525
23929 65917
221896 99412
163115 157497
42640 2935
30744 87082
1...

output:

Gyojun is handsome
651
3505
3241
8933
539
14010
5023
14010
949
648
8826
14010
1992
4685
17291
6539
3505
4224
4190
1144
17291
1992
4330
10078
5817
7640
3177
6014
4483
4755
6539
10334
3462
8933
4685
12847
1144
4224
8933
2912
4190
17291
12847
8933
2894
14740
4224
2894
14010
4685
12847
4891
5188
3462
17...

result:

ok 250027 lines

Test #442:

score: 0
Accepted
time: 147ms
memory: 161484kb

input:

250000 250021
123568 158465
195942 203721
50920 82026
122232 59116
77875 179155
116554 229409
24313 178886
136844 180812
12509 154195
96462 200931
174049 225256
209126 42328
239058 106755
22243 162005
15048 62545
240837 102345
134069 79751
191597 133056
12086 140017
187448 245117
226592 231702
12077...

output:

Gyojun is handsome
3529
7182
12765
13854
8499
3880
15395
5961
2379
5202
4989
5354
9566
2593
5961
10219
15395
13854
1098
8499
17988
6964
13854
12765
5538
5354
13854
4989
8729
4989
7182
15395
6270
1401
7879
9566
7879
3880
7182
11307
5354
8729
1880
4950
6270
7182
9566
6964
12765
17988
4950
11307
15946
...

result:

ok 250023 lines

Test #443:

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

input:

250000 250018
46278 206141
171971 194182
232023 43714
127646 205097
113741 161521
102389 127061
1886 82993
133625 48310
104096 51197
203596 177342
49194 179295
1724 1625
165408 246238
25115 130824
12287 234337
119020 179512
140351 161657
90536 147376
149374 78967
21669 176727
143296 140533
69555 130...

output:

Gyojun is handsome
4057
10927
20905
11865
5124
7159
10927
7989
20905
22754
20688
10927
11865
8392
4057
9395
9495
8611
8392
1262
11001
4314
11865
7279
1262
7279
10927
22754
8611
10927
20905
20688
5981
5011
20905
20688
8392
7279
5124
20688
4057
2440
22754
7989
4057
5944
22754
2228
3698
22754
8611
8611...

result:

ok 250020 lines

Test #444:

score: 0
Accepted
time: 111ms
memory: 160716kb

input:

250000 250008
216758 204776
72625 165970
149185 17611
121721 24405
125019 47587
96540 210325
241872 175804
105792 54357
29196 27513
32694 83408
104714 86745
96872 60868
125140 575
39574 35853
40943 130557
13801 80145
35359 188600
127815 88921
55613 142771
31503 103550
29983 218944
174264 165138
1175...

output:

Gyojun is handsome
30116
12874
25541
9678
30116
55604
30116
55604
9678
20654
55604
19405
55604
7569
9208
19405
55604
9678
11071
12874
9678
55604
55604
19405
9326
30116
30116
20654
6054
55604
30116
19405
11071
25541
9326
30116
9689
4531
25541
7569
7569
7569
9208
19405
55604
25541
55604
19405
20654
30...

result:

ok 250010 lines

Test #445:

score: 0
Accepted
time: 132ms
memory: 160456kb

input:

250000 250016
82376 186103
189485 209000
120160 184543
24859 3178
185519 113188
123020 97951
198901 86448
70804 121432
214054 96011
33554 44665
180277 209697
170768 80336
107449 50842
134644 146732
180183 179199
219126 175623
219181 80715
184351 218996
48104 19759
116995 172658
131667 146834
116307 ...

output:

Gyojun is handsome
5476
18005
18005
5102
18005
11138
16506
20342
755
5471
20342
1326
13666
20342
20342
5102
17803
17649
4881
17803
4062
18005
17649
16602
17803
18005
17803
5996
20342
4881
16602
7127
11138
5102
16506
18005
6277
10802
5476
17803
17649
16506
11138
16602
11138
13666
17649
18005
16506
17...

result:

ok 250018 lines

Test #446:

score: 0
Accepted
time: 128ms
memory: 164468kb

input:

250000 250007
211446 168015
118820 108726
74524 120365
237386 19372
82359 73008
201024 246748
245581 35468
35512 19836
200761 217834
60048 75288
89120 104796
209087 247109
37228 79822
77045 207559
218648 109924
136457 43658
226163 213121
102725 110243
199150 217083
200758 141693
82652 61608
17577 17...

output:

Gyojun is handsome
28509
24208
42051
6088
28509
42051
42051
35662
28509
1053
13139
21764
24208
13139
5526
42051
24208
6313
21370
13139
19224
35662
28509
19224
21764
13139
24208
21370
28509
21370
42051
24208
28509
35662
35662
21370
19224
21764
35662
2184
4947
42051
42051
19224
35662
2116
28509
1053
3...

result:

ok 250009 lines

Test #447:

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

input:

250000 250007
248590 35165
42706 218424
8919 45261
135376 163004
19403 104497
43121 109711
217231 182422
111606 155436
92835 177670
7217 157389
177340 68474
227864 149495
120292 52599
205948 113142
158201 92977
178765 128960
213797 149363
247741 153992
53771 29646
117124 164173
113938 15976
73024 98...

output:

Gyojun is handsome
10402
31026
31026
51439
53569
31026
31026
31026
12865
53569
31026
5764
53569
30292
51439
51439
34973
53569
30292
34973
10402
51439
30292
34973
6111
53569
53569
619
30292
2303
30292
31026
34973
53569
51439
31026
31026
51439
53569
10402
30292
6111
34973
53569
31026
51439
51439
51439...

result:

ok 250009 lines

Test #448:

score: 0
Accepted
time: 150ms
memory: 166048kb

input:

250000 250005
31529 158557
14141 151705
165838 149113
58884 39495
106715 239855
195463 189479
143993 210955
246750 234265
158906 186012
133253 82871
15959 100050
212258 204613
170009 21558
94762 58128
88742 198089
93241 99788
223032 183968
36103 57028
109701 94614
70701 98422
151491 26964
62295 1159...

output:

Gyojun is handsome
86575
86575
86575
86575
86575
86575
42402
86575
86575
86575
86575
45485
86575
45485
45485
86575
86575
86575
42402
86575
86575
86575
26238
42402
31617
86575
26238
86575
45485
86575
45485
26238
86575
11057
42402
86575
45485
86575
86575
26238
86575
86575
26238
86575
86575
42402
86575...

result:

ok 250007 lines

Test #449:

score: 0
Accepted
time: 189ms
memory: 159144kb

input:

250000 566150
96674 21333
121081 172900
173069 88239
74686 9704
230055 88866
111737 131304
219905 125075
95304 27534
80922 239879
91857 112631
57978 184966
68500 43441
229779 12785
79185 81572
120667 33417
198154 59568
114880 3198
20002 57077
2988 67645
242530 109590
14024 104522
76612 163378
67097 ...

output:

Gyojun is handsome
36584
36583
36583
36583
36583
36583
36591
36583
36583
36583
36583
36583
36590
36584
36583
36583
36583
36586
36583
36583
36583
250000
36583
36583
36583
36588
36583
36583
36583
36584
36588
36583
36583
36583
36583
36583
36583
36583
36583
36583
36583
36583
36583
36586
36583
36587
2499...

result:

ok 566152 lines

Test #450:

score: 0
Accepted
time: 228ms
memory: 161840kb

input:

250000 691030
248425 100863
193001 25770
13443 111089
248605 233584
88449 196538
158050 109093
87996 148603
116207 135899
3758 12787
112944 120299
200732 216175
182440 61427
243988 79974
136302 306
5741 112570
193033 199698
39988 216426
11132 182947
240142 212760
231181 150816
97653 150998
12853 138...

output:

Gyojun is handsome
25476
25476
25476
25476
25476
25476
25476
25476
25476
25476
25476
25476
25476
25476
25476
25663
25476
25476
25476
25476
25476
25657
25476
25476
25476
25476
25476
25476
25653
25476
25476
25476
25476
25476
25476
25476
25476
25476
25476
25476
25652
25476
25476
25476
25476
25651
25476...

result:

ok 691032 lines

Test #451:

score: 0
Accepted
time: 221ms
memory: 162948kb

input:

250000 699140
154862 123582
176883 117250
243804 110872
210692 122100
85044 27363
25753 1633
237572 203182
197290 168036
37665 41163
55483 223137
157911 178466
153968 50395
144742 116231
118999 144306
241879 167311
152305 161800
14637 2786
65476 216144
10914 94393
203181 95609
80416 242310
33940 788...

output:

Gyojun is handsome
25004
25004
25004
25004
25004
28686
25004
25004
25004
25004
25004
28716
25004
25004
25004
25004
28741
25004
25004
25004
25004
25004
25004
25004
25004
25004
25004
25004
25004
28769
25004
25004
28717
25004
28741
25004
25004
25004
25004
28688
25004
25004
25004
25004
25004
25004
25004...

result:

ok 699142 lines

Test #452:

score: 0
Accepted
time: 214ms
memory: 162484kb

input:

250000 421472
162201 139598
231638 71011
212134 212814
178302 171840
95546 35651
89532 115745
83521 50528
34489 25449
27908 215639
162369 89415
178787 90033
148077 6083
183462 123367
231557 107467
197958 133
121565 176504
138833 122940
22785 28062
22572 139707
32595 10806
168111 36964
2083 245734
66...

output:

Gyojun is handsome
25025
25025
25025
25025
25025
25025
25025
25025
25025
25027
25025
25025
99239
99238
25025
25025
99238
25026
99238
25025
25025
99239
25025
25025
25026
99238
25025
25025
25025
25025
25025
99238
25025
25027
25027
99238
99238
25026
25025
99238
25025
25026
25025
25025
25025
99239
99239...

result:

ok 421474 lines

Test #453:

score: 0
Accepted
time: 215ms
memory: 170164kb

input:

250000 690114
143602 972
243637 151981
105703 79921
71428 170182
148645 99857
126438 14975
11647 98736
75114 79645
236165 163397
238229 235859
78179 117998
59087 125019
46472 26432
215039 82998
35846 234150
193149 44924
141972 143029
218653 26031
78148 91320
119102 85863
99605 212606
178511 45994
18...

output:

Gyojun is handsome
99249
24998
24998
24998
24998
24998
24998
24998
24998
24998
24998
24998
24998
25666
24998
24998
24998
24998
24998
24998
24998
24998
24998
24998
24998
24998
24998
24998
24998
24998
99248
99248
24998
24998
99250
99248
24998
24998
24998
24998
24998
24998
24998
24998
24998
24998
24998...

result:

ok 690116 lines

Test #454:

score: 0
Accepted
time: 215ms
memory: 173312kb

input:

250000 701165
212096 113144
67772 227003
83889 244218
151528 116951
245178 18374
207689 103759
192019 4408
35512 43779
157266 119437
221033 83811
136294 159323
159412 49416
182602 184558
197839 35883
248147 79704
86102 59831
61157 205681
165804 216104
14347 249523
158281 235198
136259 171820
37121 3...

output:

Gyojun is handsome
24940
24940
24940
99263
24940
24940
24940
24940
24940
24940
24940
24940
24940
24940
24940
24940
99264
24940
99263
24940
99264
99263
24940
99264
24940
24940
24940
24940
24940
99263
24940
99263
99263
24940
24941
99263
99263
24940
24940
24940
99263
24940
24940
24940
24940
24940
24940...

result:

ok 701167 lines

Test #455:

score: 0
Accepted
time: 302ms
memory: 172308kb

input:

250000 700006
151129 98006
81668 247190
98243 66769
23591 105755
150184 39297
53762 133531
16618 145761
11895 151520
119219 230707
45211 151110
8081 225025
174083 247335
30538 204952
211088 197625
84373 124993
205180 87184
107666 145560
15679 174723
150105 147063
185295 173155
33170 105515
206765 23...

output:

Gyojun is handsome
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
24913
99236
99237
99237
24913
99236
24913
24913
99236
24913
24913
24913
24913
24913
24913
24913
24913
99237
24913...

result:

ok 700008 lines

Test #456:

score: 0
Accepted
time: 123ms
memory: 164144kb

input:

249900 249904
181745 11084
180326 181745
121450 180326
121450 11084
32945 215876
11084 136192
116829 32945
116829 115085
60699 115085
60699 53146
53146 223087
223087 16233
16233 24001
24001 53519
101809 53519
223574 101809
223574 44368
44368 219453
165760 219453
165760 164523
161661 164523
161661 21...

output:

Gyojun is handsome
12
12
12
12
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247
31247...

result:

ok 249906 lines

Test #457:

score: 0
Accepted
time: 123ms
memory: 176632kb

input:

249900 250000
229883 7065
55846 7065
55846 20815
20815 229883
80041 64378
229883 235866
64378 122317
122317 57281
57281 56665
56665 212414
34325 212414
34325 100216
227384 100216
227384 166924
166924 41676
41676 224334
222666 224334
70086 222666
114056 70086
174215 114056
146530 174215
123527 146530...

output:

Gyojun is handsome
12
12
12
12
3409
2061
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409
3409...

result:

ok 250002 lines

Test #458:

score: 0
Accepted
time: 375ms
memory: 189836kb

input:

249900 500000
248383 49128
211265 248383
211265 184629
49128 184629
73329 43577
56856 49128
43577 25374
129075 25374
129075 246658
246658 207973
11978 207973
11978 232620
232620 57977
57977 43759
43759 89452
17058 89452
17058 209675
209675 139767
86021 139767
209756 86021
209756 18264
18264 58947
58...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
1
0
0
1
1
1
1
0
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
1
1
2
2
2
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
1
1
0
0
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
1
1
0
0
1
1
0
0
0
0
0
1
1
2
2
2
0
0
0
0
2
2
2
0
2
2
2
0
0
0
1
1
0
1
1
0
0
0
0
0
0
0
0
0
0...

result:

ok 500002 lines

Test #459:

score: 0
Accepted
time: 531ms
memory: 197860kb

input:

249900 1000000
140555 9242
140555 96917
117151 96917
9242 117151
197825 113198
9242 10847
181834 113198
114780 181834
100809 114780
231438 100809
231438 185026
185026 154791
116620 154791
116620 141690
141690 182203
195086 182203
195086 103975
53274 103975
48203 53274
48203 49270
49270 123489
123489...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 1000002 lines

Test #460:

score: 0
Accepted
time: 106ms
memory: 158416kb

input:

249900 249901
11084 215876
181745 114094
166431 215876
194174 11084
180326 166431
210922 180326
121450 210922
121450 32945
116829 32945
116829 115085
115085 60699
60699 53146
53146 223087
223087 16233
24001 16233
53519 24001
53519 101809
101809 223574
44368 223574
44368 219453
165760 219453
165760 1...

output:

Gyojun is handsome
124953
124952
124953
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
124952
1...

result:

ok 249903 lines

Test #461:

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

input:

249900 250000
80041 229883
184792 7065
80041 155987
162588 229883
55846 155987
55846 51120
20815 51120
20815 64378
64378 122317
122317 57281
56665 57281
212414 56665
34325 212414
100216 34325
227384 100216
166924 227384
166924 41676
41676 224334
224334 222666
70086 222666
70086 114056
114056 174215
...

output:

Gyojun is handsome
327
825
1167
327
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167
1167...

result:

ok 250002 lines

Test #462:

score: 0
Accepted
time: 417ms
memory: 189532kb

input:

249900 500000
73329 49128
15056 248383
246763 73329
155170 49128
246763 211265
211265 34897
34897 184629
43577 184629
43577 25374
25374 129075
246658 129075
207973 246658
207973 11978
11978 232620
232620 57977
43759 57977
43759 89452
17058 89452
17058 209675
139767 209675
139767 86021
209756 86021
1...

output:

Gyojun is handsome
0
0
1
0
1
0
2
2
2
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
2
2
2
0
0
1
1
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
2
2
2
0
0
0
0
1
1
1
1
0
0
0
0
0
0
1
1
0
0
0
1
1
0
1
1
0
0
0
2
2
2
0
0
0
0
2
2
2
0
0
2
2
2
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
1
1
0
0
0
0
0
0
0
0
1
1
1...

result:

ok 500002 lines

Test #463:

score: 0
Accepted
time: 565ms
memory: 199904kb

input:

249900 1000000
9242 197825
243596 140555
41827 197825
9242 92015
96917 41827
41269 96917
41269 117151
113198 117151
181834 113198
181834 114780
114780 100809
231438 100809
185026 231438
185026 154791
116620 154791
116620 141690
182203 141690
182203 195086
103975 195086
103975 53274
53274 48203
48203...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 1000002 lines

Test #464:

score: 0
Accepted
time: 71ms
memory: 131860kb

input:

249900 249904
181745 11084
180326 181745
121450 180326
121450 11084
32945 215876
11084 27218
116829 32945
116829 115085
60699 115085
60699 53146
53146 223087
223087 16233
16233 24001
24001 53519
101809 53519
223574 101809
223574 44368
44368 219453
165760 219453
165760 164523
161661 164523
161661 216...

output:

Gyojun is handsome
1
1
1
1
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
15618
156...

result:

ok 249906 lines

Test #465:

score: 0
Accepted
time: 71ms
memory: 132420kb

input:

250000 250004
72250 12421
56953 12421
56953 245387
245387 72250
140866 36101
85972 72250
36101 181563
181563 224358
238073 224358
238073 150103
150103 20117
20117 109106
83902 109106
59238 83902
59238 232238
232238 48465
48465 48130
147429 48130
85868 147429
85868 116804
188351 116804
188351 219381
...

output:

Gyojun is handsome
1
1
1
1
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
15624
156...

result:

ok 250006 lines

Test #466:

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

input:

1000 250002
220 310
220 350
350 565
565 172
172 232
538 232
444 538
444 584
915 584
981 915
281 981
281 482
967 482
967 845
845 624
242 624
242 387
508 387
352 508
352 876
417 876
417 126
270 126
270 346
346 643
643 256
256 582
27 582
209 27
517 209
517 117
198 117
198 273
273 41
992 41
992 246
383 ...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 250004 lines

Test #467:

score: 0
Accepted
time: 268ms
memory: 144332kb

input:

100000 1000000
26139 36316
47120 26139
47120 48356
48356 54999
54999 72495
42984 72495
40520 42984
97952 40520
2516 97952
93417 2516
93417 27226
27226 69099
7266 69099
2063 7266
97095 2063
21689 97095
45134 21689
45134 75644
67360 75644
67360 37315
36256 37315
36256 28121
2068 28121
2068 69568
69568...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 1000002 lines

Test #468:

score: 0
Accepted
time: 559ms
memory: 199280kb

input:

250000 1000000
241559 248195
2784 248195
2784 16996
67882 16996
67882 220433
177830 220433
123886 177830
162970 123886
162970 35528
37096 35528
37096 217934
19650 217934
67169 19650
133140 67169
133140 147208
35627 147208
242847 35627
242847 224272
224272 132820
132820 64196
64196 133162
77709 13316...

output:

Gyojun is handsome
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 1000002 lines