QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#488191#8596. Подарунок Ледimshcherba#100 ✓139ms224532kbC++202.3kb2024-07-23 17:51:432024-07-23 17:51:43

Judging History

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

  • [2024-07-23 17:51:43]
  • 评测
  • 测评结果:100
  • 用时:139ms
  • 内存:224532kb
  • [2024-07-23 17:51:43]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

#define FOR(i, a, b) for(int i = (a); i < (b); i++)
#define RFOR(i, a, b) for(int i = (a) - 1; i >= (b); i--)
#define SZ(a) int(a.size())
#define ALL(a) a.begin(), a.end()
#define PB push_back
#define MP make_pair
#define F first
#define S second

typedef long long LL;
typedef vector<int> VI;
typedef pair<int, int> PII;
typedef double db;

const int mod1 = 1e9 + 7;
const int mod2 = 1e9 + 9;
const LL mod = (LL)mod1 * mod2;
const int P = 474747;
const int N = 1 << 13;

LL add(LL a, LL b)
{
	return a + b < mod ? a + b : a + b - mod;
}

LL sub(LL a, LL b)
{
	return a - b >= 0 ? a - b : a - b + mod;
}

__int128 mult(LL a, LL b)
{
	return (__int128)a * b % mod;
}

int n;
LL pw[N];

vector<LL> calcHash(const string& s)
{
	vector<LL> h(SZ(s) + 1);
	FOR(i, 0, SZ(s))
		h[i + 1] = add(h[i], mult(pw[i], s[i]));
	return h;
}

// [l, r)
LL getHash(const vector<LL>& h, int l, int r)
{
	return mult(sub(h[r], h[l]), pw[N - 1 - r]);
}

char getNextLetter(const string& s, const vector<LL>& h)
{
	LL last = getHash(h, SZ(s) - n, SZ(s));
	FOR(d, 1, n + 1)
	{
		if (getHash(h, SZ(s) - n - d, SZ(s) - d) == last)
		{
			return s[SZ(s) - d];
		}
	}
	assert(false);
}

int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	pw[0] = 1;
	FOR(i, 1, N)
		pw[i] = mult(pw[i - 1], P);
	cin >> n;
	vector<string> a(n);
	for (string& ai : a)
		cin >> ai;
	vector<vector<LL>> h(n);
	map<LL, int> mp;
	VI q;
	FOR(i, 0, n)
	{
		if (a[i] != "?")
		{
			h[i] = calcHash(a[i]);
			mp[h[i].back()] = i;
		}
		else
			q.PB(i);
	}
	VI x(n, -1);
	function<void(int)> rec = [&](int i)
	{
		if (x[i] != -1)
			return;
		char c = getNextLetter(a[i], h[i]);
		string aj = a[i].substr(1, SZ(a[i]) - 1) + c;
		vector<LL> hj = calcHash(aj);
		if (mp.count(hj.back()))
			x[i] = mp[hj.back()];
		else
		{
			assert(!q.empty());
			x[i] = q.back();
			q.pop_back();
			a[x[i]] = aj;
			h[x[i]] = hj;
			mp[hj.back()] = x[i];
		}
		rec(x[i]);
	};
	FOR(i, 0, n)
	{
		if (a[i] != "?")
		{
			rec(i);
		}
	}
	FOR(i, 0, n)
	{
		assert((x[i] == -1) == (a[i] == "?"));
	}
	FOR(i, 0, n)
	{
		cout << (a[i] == "?" ? 'a' : a[i][0]);
	}
	cout << "\n";
	FOR(i, 0, n)
	{
		cout << (x[i] == -1 ? i : x[i]) + 1 << " ";
	}
	cout << "\n";
	
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 10
Accepted

Test #1:

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

input:

3
zatzatzat
atzatzatz
tzatzatza

output:

zat
2 3 1 

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #2:

score: 10
Accepted
time: 1ms
memory: 3672kb

input:

5
mvxabmvxabmvxab
abmvxabmvxabmvx
bmvxabmvxabmvxa
vxabmvxabmvxabm
xabmvxabmvxabmv

output:

mabvx
4 3 1 5 2 

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #3:

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

input:

5
aijjjaijjjaijjj
ijjjaijjjaijjja
jaijjjaijjjaijj
jjaijjjaijjjaij
jjjaijjjaijjjai

output:

aijjj
2 5 1 3 4 

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #4:

score: 10
Accepted
time: 1ms
memory: 3664kb

input:

3
qnqnqnqnq
nqnqnqnqn
ooooooooo

output:

qno
2 1 3 

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #5:

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

input:

4
pxiipxiipxii
iipxiipxiipx
xiipxiipxiip
ipxiipxiipxi

output:

pixi
3 4 2 1 

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #6:

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

input:

5
acaaaacaaaacaaa
aacaaaacaaaacaa
caaaacaaaacaaaa
aaaacaaaacaaaac
aaacaaaacaaaaca

output:

aacaa
3 1 4 5 2 

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #7:

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

input:

4
bcbabcbabcba
cbabcbabcbab
babcbabcbabc
abcbabcbabcb

output:

bcba
2 3 4 1 

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #8:

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

input:

5
bbcaabbcaabbcaa
abbcaabbcaabbca
caabbcaabbcaabb
aabbcaabbcaabbc
bcaabbcaabbcaab

output:

bacab
5 1 4 2 3 

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #9:

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

input:

4
caacaacaacaa
aacaacaacaac
cacaacaacaac
acaacaacaaca

output:

caca
2 4 4 1 

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #10:

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

input:

3
bacbacbac
acbacbacb
cbacbacba

output:

bac
2 3 1 

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #11:

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

input:

5
rhuqrrhuqrrhuqr
uqrrhuqrrhuqrrh
qrrhuqrrhuqrrhu
rrhuqrrhuqrrhuq
huqrrhuqrrhuqrr

output:

ruqrh
5 3 4 1 2 

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #12:

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

input:

3
rqyrqyrqy
qyrqyrqyr
yrqyrqyrq

output:

rqy
2 3 1 

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #13:

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

input:

4
wfruwfruwfru
fruwfruwfruw
uwfruwfruwfr
ruwfruwfruwf

output:

wfur
2 4 1 3 

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #14:

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

input:

4
arlharlharlh
lharlharlhar
harlharlharl
rlharlharlha

output:

alhr
4 3 1 2 

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #15:

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

input:

5
uuvrzuuvrzuuvrz
vrzuuvrzuuvrzuu
rzuuvrzuuvrzuuv
uvrzuuvrzuuvrzu
zuuvrzuuvrzuuvr

output:

uvruz
4 3 5 2 1 

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Subtask #2:

score: 6
Accepted

Test #16:

score: 6
Accepted
time: 3ms
memory: 5428kb

input:

261
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

output:

ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddiddddiddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
261 261 261 261 261 261 261 261 261 26...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #17:

score: 6
Accepted
time: 3ms
memory: 6292kb

input:

300
jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjbjjjjjjjjjjjjjjjjjjjjsjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjrjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjtjjjjjjjjjjjjjjjjjjjjjjjj...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #18:

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

input:

286
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssscssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
286 286 286 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #19:

score: 6
Accepted
time: 3ms
memory: 5908kb

input:

274
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssussssssssssssssscssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssscssssssssssssssssssss
274 274 274 274 274 274 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #20:

score: 6
Accepted
time: 3ms
memory: 5532kb

input:

261
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuueuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuduuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
261 261 261 261 261 261 261 261 261 26...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #21:

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

input:

274
didididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididi...

output:

dehccfficbiccaahehejeggdagjfcadgajbdbbbeibjhgfeeafjgcgebeghacabcfgjdaeafacdejegbhbcijbgjdjaahhjifachdeiihdabadjbjeicjjdijgfefjeihhggcdchgbbgdddchifgchadfhedhejbbaeaejfjagiccajahbfibhhccdcfaddggjabjjcbbeajfdhgdgccaifaggihdfhcfdaddhcjadaggaadiccffgfichehicijjieehehaaddacaehff
253 247 272 243 252 273 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #22:

score: 6
Accepted
time: 3ms
memory: 5760kb

input:

261
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...

output:

chdjcceghiegaijjbdcchicijjdccdiggbgieddcgfdacdbjbideeaaadfaiibeaabdgbadhedaheegbffgghidjjfjagaeadbaeggijcgefbbicgaagfjhcjbgiadgbheibadgehaeeefagabjeadbhfdedfefgghbhhbjfggigfjcchehbjhdhbidfijdaagbbajaaeigjbbfcheehhcjehebgcfiihhaebcbjhaghfdgfheejeiifeddegddibjfgg
230 241 255 244 230 230 252 261 241 25...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #23:

score: 6
Accepted
time: 3ms
memory: 6124kb

input:

298
fgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfg...

output:

fagifgjhifjggdhcdjbacfbabcbcjaiddbgihbbgfgchjfciebghbedjbhiafgcaigicfjbbigcegfdbdceifaiahiecigicjfdcfbbjbehejefaacbhdedjjchebfeahcfcfachhdbddehadihihedhcgfcbdhieaieiieggbebgjfdagjfeaegiafegdcjihagefjheibchaghhcbdbfjhjgbgbfhhihjdadijfiiebchdcdhfgebiiedgjaffccfjacaheejcgdebigddgfaghaieffhgccebbeehff
1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #24:

score: 6
Accepted
time: 3ms
memory: 5772kb

input:

285
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

output:

igjfjafbhaebiijajigjebhhbfdacgachjaeddicfggcejjgcichifgbjehaacaechagefjgfjfafbhhedggbgdbdbacighifgdhcaaghdggefdcfjgbehghagbfbidhibedcfbgegjbcdegffdjbhdjcbjdccfeiegjfeiacgfbgaagdhbabbigfahbijbfdehecabbbdfdaccbeigjbcbefhgdaehgbjfebchhcfgigehgcgjafdfhdbebgcdihibjdfibfjbcjhdbaibchaggaigbc
282 151 269 26...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #25:

score: 6
Accepted
time: 3ms
memory: 5608kb

input:

272
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

output:

iaeaighbecbbjhfcjchjceidcjjgeibjgagbhgdddaijcdgdiffgdhefeefghgcdabggcbhghejbajffajicecbbijdfgecdadcjdbifjeadaeijfbechcheeeaccbecaafaheeghchedaaedfaihecdghbhfjefgeffiicgjbiaefdjfdgcfebagehigehfgigejbdcgehhabcfdjddhjcicjihedegjcdfaaadaebdjbihjchiahjfbecigbbdbacafediiidcaibi
272 269 262 269 272 253 246...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #26:

score: 6
Accepted
time: 3ms
memory: 6008kb

input:

296
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qzexljnactcaxsjnasqdhywyrhmoxjmxbpmnzeuveirsmdzwsmoxltipgzqkxcfsuqgmqdxciugvfxsteltdhmutunxkeqqtqliaolztqthrhbedvvdvtzpihkdxekidvegsiuleowdeeqswkdaubscvtnfornwkfkeiflmvevopwmmuwzrnyijtphbqjfeupwicxveivyzkuvwtovxercujocksqlxzhxhtvvyncxwfhubjtcikmvcfegjwnarphpfqyluobiscaccopyjcbyqadqmhpqvyfcltqdrc
282...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #27:

score: 6
Accepted
time: 3ms
memory: 5856kb

input:

283
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

output:

ifdgkclbqjvhdedriksictbzidhevdgqsyihpjovsedmyvulavudogsddzhotvuemzwecjpxtnldmqlwklxuhgzkhfjdejqvdpvpjsgxahaknqcssxuypiyptldfmjkfcfpgyldwcbkqaocirppgqzplkjtxtsotulzcvtlvsqtzdhejnzibobuzvaidqbptclosiihnrowjxqdqgerapjphuyqbhtavyikwltolrgjqijadtwokneqvwtlxvhjzjuzjwyubckhsqtfxubvkfhkitzg
280 277 188 283 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #28:

score: 6
Accepted
time: 3ms
memory: 5664kb

input:

270
klklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklkl...

output:

kfxmqyljuitgldbrytqzwnzyzcrggrkcchliyshwadgwrhotuicudynzlznanoskkggcqnklctxbvznyannedcdszfkhnlgpoocbqtfwqrmuzcvcjzncxqklfkquehgbwkxgzvphevvygjpcaonxrhwkzujdkpxlcehlrplvdrayjxwebwtkjumbevjyortdngztkbfdtlffwuxwcwahatspmzpkyjlouyzfqfbjevyhspzswnybnnxgirmebwafvpejrpeetjxrnh
160 256 267 251 229 158 223 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #29:

score: 6
Accepted
time: 3ms
memory: 5720kb

input:

257
ycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycyc...

output:

ytscdpohubayllylufhzsctsosxxgrcempnncqbfluaklvlarvanlvljmsyfefbtcnewulzhemcoauzinbxxprqzjnmzbwzqrkltbyzecdjbkjvafuefgdfpzcbbldolwwgmwzeqmqzpivfpnhwujefjnjqbsucoqjmthgofboogixqqhavoaioijayhlcutixxjjjpluqxpzbbwswhhzigjvajkemjuhmuwircnofmsjognxarfejkdmrjrbzqdm
105 119 214 183 126 163 7 210 78 159 249 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #30:

score: 6
Accepted
time: 3ms
memory: 5972kb

input:

294
gbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgb...

output:

gcsojlkuqqszulrctvmasnwoqulhxjfomazioplqbsixohkugodtdzncuksgsujkurywtiwceayhboftqssdeahryeipywnhuypcboysraevoyyldowbkwnhmsqjerqhqiaaqnnesezagzqcnjovqbrrbvtgmbgpohnpvdjuotuthnltycpkdyynwynizwbzuemvnpzhkpbmjcizmyhrobijbqianjebwhukxbdrurhwpxdljjaiqbljjwjigyzgwugyzhjwjivpguwrxwqmlwmrtipcfooymlaldz
191 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Subtask #3:

score: 6
Accepted

Test #31:

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

input:

295
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

uuuuuuuuuuuuuuuuuuuuuuuuuiuuuuuuumuuuuuuuuuuuuuuuuuuuuuuuuuuuukuuutuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuucuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
295 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #32:

score: 6
Accepted
time: 3ms
memory: 6048kb

input:

282
jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjpjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjbjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
282 282 282 282 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #33:

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

input:

268
llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...

output:

llllllllllllllllllllllllllllllklllllllfllllllllllqlllllllllllllllllllllllllllllqllllllllllllllllllllqlllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
268 268 268 268 268 268 268 268...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #34:

score: 6
Accepted
time: 2ms
memory: 5372kb

input:

254
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

output:

dddddddddydddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddvdddddddddddddddddddddddddddddddddddddddddddddedddddddddddddddddddddddddddddddduddddddd
254 254 254 254 254 254 254 254 254 254 254 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #35:

score: 6
Accepted
time: 3ms
memory: 5932kb

input:

293
tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...

output:

ttttttttttttttttttttttttttttftttttttttttttttttttttttttttttttttttttwtttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttetttttttttttttttttttttttttttttttttttttttttttdtttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
293 29...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #36:

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

input:

291
kjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

khmnjhcigdigjloioiejgefgdhggblabbikgekaifcndnbcinkmehkjbfoghondieaikmanibdokodkchclldcfdfbghdcjgagnnaoadfmgikliafdkmabclmdaeelgiganeolhcgdbdbobefmleknbddkmfjicmjmglndeakgbohhihmljmkgjdheilflfhncjaejcoodgiejnbjhlddgmkadgmflfcicklgiekemdehklocaingedcgklejdcimcflmaajhmngcnjangeldfjkenmigagjllj
279 204 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #37:

score: 6
Accepted
time: 3ms
memory: 5768kb

input:

278
chhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...

output:

cnlbfhhfieogdeljhnedmdceobbolddobimkdmlmkhfobfoiegjabdihoeceeijfnglnoehifjailmddkfdnekclogefldlobdehakaaocoofceicihcomoedaknkjjlkfhmnnolnegandodediaidigmakjemlaimmgomaeimeaenmmlkhmfibfoeidnddiafjkoiobenbbaadbogniffeejfgjfbcodngkijnofalhcecgeabfnojmankgnmioafdoilcmcllhkmkjfkaeah
278 278 278 278 278 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #38:

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

input:

265
hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm...

output:

hknhafmndfedfdaibeemjhmhlbmhfccalahaahjnagagkjcfibghehfngiinfdhbhcbgbdklgjjaminekgdiklfdoimgfcggmgdbbdgnhmfglndgjfahcfbekleblhiaekmicngdennofhkoiankbimbikafiehfoobhfhhhdmljldhddlomdfianmkmmlalfcnebhbiodjkojbelcijkemgmhifjgjjglkfidolnibnjlbnifjjhoclacalbnacnbkhgfedb
188 261 241 257 155 220 155 260 22...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #39:

score: 6
Accepted
time: 2ms
memory: 5420kb

input:

251
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...

output:

cldjkfkinneeejhhkhfjgllanfmlbgijhchgfjjagekegmnleoeojdhjfbfbmnnnadlekneoeecjjiiknmcobfifehedmggmjbfchfelfjabajmjmangnodnibojdakceokegiakooflbioglchhdcjjjeolagdjogmlmlcomlnnmkhmondbgeffdaihjjhajclckllehmeemanodheigjjiacoelalgikdeediakgjflmmkagfmbbkeiie
218 218 218 218 218 218 215 218 215 188 218 218 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #40:

score: 6
Accepted
time: 3ms
memory: 6132kb

input:

289
ijjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

ihhihokioabnaachheceaahgllbocbahlohkoilhillclcggljonlnehdkiihicaconmcaimdlmodkfafglldgecmojgelfnfibmabjhbcelgkicafnkajgfolacjgmnkljkknbhodlejknhogknlclaellgkgnhklmllebendacabdklngcfggdmjiflelifhlibmoblbfhkokgnhamhfhmlgeojaolklnfhjkeiabjjgjdhcemdokiljfojmdejakfodnfinihiljmmloagimcmbmagmmfn
257 228 20...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #41:

score: 6
Accepted
time: 3ms
memory: 5672kb

input:

278
kvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

knjewksuqygfeultwzttgpovltlxrrzbzrgjsanijusssfxdoewobpesethvkxjwuqkygicfjjqbzajipbjmozsnallikbmwrqwrfeleasykounacbmremkdiqazbfibvnttrwwxbqimnohdpttxtapkvgzxvmrcnfmrgyczpdhbcbfrvndvdddtznrbtboxjiogeaxohvkibygibleogyyrdmifgajryftwxsqvmzbklmfyewypevsanqaveacvqasvvorujotqqopxjxykxu
260 249 144 243 243 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #42:

score: 6
Accepted
time: 3ms
memory: 5540kb

input:

265
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

aadbzuvcsfcjotyjncdojjftsztzylygyuyocgydfobfqwzjzsrftwnkxblezpeotccainmhfxhuajqmiwvqifwvqgjzrlwdgeynhvqhlqlmieebwjcrlujueojqlwvngqetmglrelgpcuyeiscimvgkggtccwpovvzygquktdquftcuaxzofqdhzqfcxahgpgjxqmgpafhssyduwhpkxrlegnbkbgodtmcfmxtwuoknmdtycwmfepbgxllwvxdbscvutzqap
190 250 244 256 185 260 190 241 24...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #43:

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

input:

252
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qpstshaqlzubhxwfnvvnqcukxxagivjzkybohissmadxubjjolaauonjjfsgmqtgwehgbdlrntpfgzcqxyvfjpiriexnqqmkbjbiyfospyjoxbvwiapxepvwmvrreamdytnzrapzsvrpnyctctfgjltitethswvjubnwmzayzcgjjwzvgdlfsnjvwjyyamnczmpehvehzefzillorlaanzqnwoozxljgwfcyvgadpsjqcaufmksckmzvqhgi
236 246 141 29 5 236 236 141 236 246 184 236 18...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #44:

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

input:

290
mvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

mqcfswhewsoutfjvjtpunqpetvloszsltwwoogaddetoeyjzvbviknsyexpmxtastbfhfirvlxdukccrzimhdehfqceajoptpptgljnqollcecytakyivqgnxqgphkqttdwapddubunygtbjqbbmdvivedkrofhutkwmjskfpslgmskabtzifubbmwlnknphmetlotcfaithojyehfsclwiorxnwtfqwnfdqjuhzybzfwucbybmvbojtmikfinffujewmbjfxgvhecbwinhggcpyjymdsbmhvi
117 258 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #45:

score: 6
Accepted
time: 3ms
memory: 5972kb

input:

276
ciiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

output:

ctpbhmxndbmgjihpqkkxujlbpdojbdictjjysuukcxdqmqdcfioisifrqelqkjhkinzkvfujdovefhbmvodblsbvymfjavfuluornjsamjdemnpfwrggniyaujazqaklckuztbyxseaasmokraxxytdswucfkeyhdojsqhuguyodhshotsommzsyhdblizmzdetphrqlxvuajhzgxervblilaciqmtsqvvokntqrfewfvhpevodbmcwdawhucuxsyoxdzbbepirgasnqbfoc
189 130 240 242 242 240...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Subtask #4:

score: 9
Accepted

Test #46:

score: 9
Accepted
time: 3ms
memory: 6196kb

input:

292
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...

output:

rrrrprrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrcrrrrrrrrrrrrtrrrrrrerrrrrrrrrrrrrorrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrorrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
4 4 4 4...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #47:

score: 9
Accepted
time: 3ms
memory: 5804kb

input:

278
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...

output:

ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffrffffffffffffffffffffffffffffffffffffffffffffffffhffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
167 167 167 167 167 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #48:

score: 9
Accepted
time: 3ms
memory: 5612kb

input:

266
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...

output:

fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfffffffffffffffffffffffffffffffffffffffffffffffflfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
266 266 266 266 266 266 266 266 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #49:

score: 9
Accepted
time: 2ms
memory: 5588kb

input:

253
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
253 253 253 253 253 253 253 253 253 253 253 25...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #50:

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

input:

291
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...

output:

oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooohoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooosoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooloooooooooooooooooooooooooooooqooooooooooooorooooooooooooooooooooooooooo
219 219 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #51:

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

input:

295
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

output:

debcdececadbbecbebdebbccebdddedbacbaaedaaabebebcdacaabdbebcabadabbedddddcbaaecdbeceaacecabbaedcebbcedbacedacedecedbeeaacecacdebbaeabbaddbecbecbadbbeceebbdadcaacbccaacaabbcdeabdccbebeddccccccddbbaceadddebedcdecbdbeaaedebaadcbeadbcbacbacdcbccbecdbddcadaaecdbcaddaaebcbaedcbcebadccbdaaebbabbbbdcceb
1 1 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #52:

score: 9
Accepted
time: 3ms
memory: 6028kb

input:

281
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...

output:

eacecbbbeeaadccacaacdcaadeaccdeedcaceeaececdbccebddecebbeabddccbebeddcedcdedaeeebeecacecacccabcbbabedddaddebcdedceaabbebbecddeeabdabcaccdcaabbebdeebbadcaebcadacaacedaeeedeacbebcbdceaecedacaddcccbbceecdeddaaeabbebbacedebcdaddcaedacdeebccdeabeedeecaccccdbcdddebccacdbcdacaaccdaaaeedd
1 1 2 3 4 5 6 7 8 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #53:

score: 9
Accepted
time: 3ms
memory: 5860kb

input:

268
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...

output:

cdbaeeacbbbdcbebeeeedcbdbaebcabcbaddceccccbecdaedbdaddededbebbeaabababadedceadeabaaadccbbabacabcbacbddacbedddccbcaacdccbecdcbeaaeebeababeceeccadcbecccdcbbadbcabeaececeaabcbdccebabcacabaebdaaddaaebcedbebadaddbaacbaabcedebaccecaedebdddbcadcddedbaeabdcebecccdddebcddcbaed
1 1 1 3 4 5 27 7 8 9 10 11 12 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #54:

score: 9
Accepted
time: 3ms
memory: 5404kb

input:

255
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

bbbcabccdaaeddeedbdabdacdebacaedcabacaeeadbaeceadcbcbecaeabcdecadbcbbaaeaaccdeaecbdbdaabdbaaecabaacdbecaebadbacbbddbabcadbebbbdeaccbdbccabbbcdcbaecbaedbeeccddcecdddeabaddabeaadabbcceaddecdeaedcbacdaebaaddcdeeddedccaedbebbadcbebedbdceeabededceddbdbdbaaadeb
84 84 84 84 84 5 6 7 8 9 175 8 12 25 14 15 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #55:

score: 9
Accepted
time: 4ms
memory: 6016kb

input:

292
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

bbdbadbcbadbbbadecdbdbaebecdaedebedccedbebadaacccdeaccecaccadacecceaeabeecadcaddbbbdaaeadaaeceaaebcaedccacaacceeacdedabececcdbabbdacbcccbdccdeaecbbaadadaccaceadabbeebeadacddeddebcebeabebcdecbaeabbdbdaecedeccdebbccdeeeacceaacbaeaecdddbababbebabedabecbaaacccacdaabbdeebecdacbdddeadabbebcdecddcc
2 2 2 3...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #56:

score: 9
Accepted
time: 3ms
memory: 5872kb

input:

289
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...

output:

cwuavzgwhszmyahthcciimlzvdjhcbxiqmfltbcigsykpukhodmjkxbiradxymarqcbwudexepqyshzrjjgpihrlirccuoxvvpctuimwzjrwhokrnrcvqnbceeehocbreqpxrzfqordozbifwqnjilgiuodroxinucduoypzqjejqiatburbygvskmbwfjbtewcurmmnbyxzsqiyxezlvlcaiazeklzpwhdkognsukqnzjmjrneyiwaouyfobjfbnouexgrxmellagodpqifejizdvqvkgshb
215 215 21...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #57:

score: 9
Accepted
time: 3ms
memory: 5956kb

input:

275
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

szpstgtivbqoueqrrnarfkkghnivkkpbmoxjtcjdazmmqaywluozcblrlghbdhyqwuokykzsqlbinwfjkmdzwrzfotmdgponsruseonudiahotposvfdhwrtifoniiubdasmkqsflrevrvxjusribkpvbvuwvoqxtmnrdqffecwyjnsqfrwdhbknhfnxtrafxftxqxapqiotonfidyippmigagnkronplooosfnxrvsnzuhiaalavvxitpswolljxlzsocendueswvbhaag
1 1 2 3 4 5 6 7 8 9 10 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #58:

score: 9
Accepted
time: 3ms
memory: 5492kb

input:

262
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...

output:

rmjygziopxbwvbqazdfcoqxfgdsdlqdcggxnvqnpqoawxusmfdfzepqvzjrefrdiadtptzdxkwhicghszyohjdzcezyurtckxrltvnoeymnqudrhfrrrycojdeoioiyqxbyjfyoxldyajfewntehgsdtphwrbzpppwfnxadqqhxlfxopwaxpxhobxjnrejqeibdgqnzhjlozqdknllbqrfvwbdhdvffbsrkomenleydexwsjsfkswlmanbzvhxrjreacgv
1 1 2 2 2 1 6 1 42 2 10 11 2 2 1 15 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #59:

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

input:

300
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...

output:

nyltrdweybalineehgjailnwkeaelvunxnsojspruwnvrozslgakbhwcstulfomljytrlsynrtrfxwaawqxtmeoybbsvybrpxekyphrhjynfpviypjhxykwemozqalzymnlvfhldrsbxfaoizivknptlmkntfavtteyfmabjmjbhfguuiemradhgjuxujtuhuiagruigvevtpxtcdiqdegjwjglldeeyuctqmxhfiiiogtqyflielcsntwkvhfgysbfpstoiaqsanawkclqgdjhfpfhcxecavkeducyieagv...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #60:

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

input:

286
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...

output:

rvueznemoeywyknhdyintobqvtldfvwqutarxctyzefzuaudbhjdcbhbcvtyreyhyvewelkasdzkcmeqoyhwczrgeqaafzczsjjyooemmryrdfgojufpzgpamodmlfbwbladpjhogkvmbxvjghqbrjtwhsnkfljnwinnhnjrsohuaxpzkykzmpqdqckwykwmwesduiolbwiackadupfmqrzxahscqwtrsfjtktyedufhaavvfsordyuzecvafwlppvhqlupflwuvzctlxiwtecaubpapxh
1 1 2 3 2 3 3...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #61:

score: 9
Accepted
time: 3ms
memory: 5652kb

input:

273
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

voyhfvgcbjzlxkeirtnuofdmzntnqyaauswhhrbotgknbfmrxgictzfxevoqtjalnnlufrsvghrkkuhilluajqytfrkxkiffzikrqpddfhyihmzgrneewhlxipwpvhpwwjitelxrammnmvbcxjoeopeokdwcgbvzxzpyzmqtwvmuvvjpmvqgzwglocdjwyqhyzwuzgxolbzjugtmdgjsfgzgfinhbpwtbbbcsdwxjookbufnflpqbxdimzdxoqsokcphqyojktussymdd
1 1 2 3 4 46 6 46 8 9 85 8...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #62:

score: 9
Accepted
time: 2ms
memory: 5520kb

input:

260
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...

output:

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

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #63:

score: 9
Accepted
time: 3ms
memory: 6336kb

input:

298
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qnmgmjhjoorlksuyhowxdxakysuhaijoxpkzzlmhmesnspcwptmomfnoyngzkkjuxhnxyrafrgrppelooxwxbezhpjksyczskdhlcidjzmchmpsdqckqghgixawmgsejjttxsuqmoydgxkjreqrhukpgywangspfmmxozdczvicolqxrgfijzuxefobpoegswtvtfmxjuyjilyhukbtszjxdmlxxjsotvgcanwquaxdaqqnzwoezouteppeepagobpamwlmacdvgkionybneuootakqozpqnrgrdduhqpn
2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #64:

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

input:

284
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

apogzhbjlaecakdwmpgoyqlyvafaxmhflhoqsriybbzjbtwdgrjemszofshnefhgyrkqsdfwwijfdrogipuywkxrqcbrptswcdvtxbpzmbswzkwvqubduqjngllyesriweavibqftmqpxilraulgbiuefibfrcvsamvjpeoyxvllrzostilvaygohkblbhjvwrjjreqqfirgfxexcrzvladilbqnmzhtkackcrnimucbrwtjdrawrowqqrkcbilmjfvlosiwanqzrdsvewodqasuukwx
1 1 2 56 4 5 6 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #65:

score: 9
Accepted
time: 3ms
memory: 5624kb

input:

256
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...

output:

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

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #66:

score: 9
Accepted
time: 3ms
memory: 6000kb

input:

293
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...

output:

zxlhxpdphelfacuhqwyzwdqdnpafobctieclbygipnzlvweapqdtkdddvnpgsxrvibqwtwqdbpejyjxhddaqtbfdtnohhkpvuokafwppbptlagzfvpqkfgqybrxubllvdgmnthagbndcsqeqoozreveyyqhqmdnvczpicsreuuuyrcgkaglfpbxzusjevvwswzcwulehiejeqtlsqlnvyyzynykjbtcxxcajpnhgcphxjxyhbnjbnyyegqttutgchaufqqvyyjzniftfhcqmiizrxooonwzfvvggw
1 1 2 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #67:

score: 9
Accepted
time: 3ms
memory: 5784kb

input:

280
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qffqpoqvkqnkidokvafmpqzpxhyelfsfcmefvyatxwlhcccdfiaucfwrkfhqnudbysusryjcihfalpykqnnpytklfcnhhponvyfejciffakfyejeauifyjmoahobkxozxwhxkrilwveqqdoggujypzhqnnwkstuxznlfkfphqkrrriejkxxuapinwsnmowwgledmlccxwwhywpcfubtioeaqsgexvjoaadyrpwbmoovzpvuimslkhtbjxdvrsujxrumukjxkpilmzoavsgjzaibq
280 280 280 280 280...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #68:

score: 9
Accepted
time: 3ms
memory: 5540kb

input:

266
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...

output:

hrtcqfzeytzdzpppmmlejeyfhjviejifsvpzssmpxmrunpfafumjlmoctnjwddxmzhzvdkmpuzayraacmedzfonwkjbywckidntneqdetthcaazcidrjcvcujuypdyamuwiskjspwcqapjlkiewgcbyoyvncxcbslxyuccvjeqvvzuhzcgtlqiqiftoqjbmraaumxhtsassrkcougcyllkpwuzbihhtizlxbvzgymizesqfjvkhedotawygsoprujnjmolzwui
1 1 2 3 4 5 3 7 8 9 10 1 12 13 14...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #69:

score: 9
Accepted
time: 3ms
memory: 5664kb

input:

254
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

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

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #70:

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

input:

291
gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

output:

gzpljjluoorhbvftgbaeflggasehwzpmxbnefjwajsbuvokttbgvvfrugefzksyzchoqpazkmjzueylcqhbazhmoceyravkjaelsobwsdyiiczcogzeobknmrujoicbmffcorrrrunnscnzsaackmxulkqxphqdkzketorhjkkexspqwebhpsyalgzbfndwteksqmsuprkulqiffdesarntrwnviqfyxsnnahxcfqoylnajpqbsvlkteobuwjawqinpdzczlmhjathosmzxvynwkrcrqyazqegg
1 1 2 3 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #71:

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

input:

278
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

vslnfuawlgntpfmucixqkxqycgknqofpznougpkpuqqxudkhchdbcwpteoouedolkvjzktqgvwxnflxvokutalerojuniaholmkqtbmhlqsdjqhwnjbmdvhpgxqjvhdinmycoagyiweufmcaxllpttwioqxuzfefpjfdbnzeoisbybhmyitbmqeykmmrhkfbgqbqqvlhpauxfgoltoravurrfxyvqnhndhsyppfdkskmyrdluoagdsprwoccojolrzycslhxeaukjokwfappbq
1 1 1 3 3 5 6 7 8 9 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #72:

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

input:

265
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

uocnksebkhzetcckvnpwldpbhidaxuhkuxgqhvicupylfxxrkhebzfjicejtbdivfdkljlhpernzpzsljagekrjzamupeneoorjzllpsrmljyxzovvzsoefqzjgjhhdbenkqwfsgqfjiknvmqrhsocmfmzrxahfgovrfejbgofjhhvhmpsolkpiszmeeudavvrtyvyfkqtqjxwlffsnypypoxshsdyrqfdxypzgmmzaliiuyfmhwlmuoxzoujlwdjzvtkiqcv
1 1 2 3 4 5 6 7 8 9 10 11 12 13 14...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #73:

score: 9
Accepted
time: 2ms
memory: 5296kb

input:

252
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...

output:

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

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #74:

score: 9
Accepted
time: 3ms
memory: 6104kb

input:

289
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...

output:

hxcdgbglccapakrljlqujomxoikhvbtrqvujqcjhqelcpcspzqizxapqyjheojfffzmvuhrcfvgpxbboyxjixxawebzedukjmikncwtcoltincjofvmrqoolvtuqqnsjznbrzxtunzouxxbyftvlogbakbsiwohswpkxinnbjyfolzpfopcpmbcolxrzgsqzxrkdpgwnrremhqwpusvswqwipiseepwywakbezojqvawugsdiiixmanqzkfzidbgznizvicziddrurnbvgetlpgqjmkmkuhmi
1 1 2 3 4 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #75:

score: 9
Accepted
time: 3ms
memory: 6004kb

input:

300
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...

output:

zsoyvpnqtxitmisqxqvyvtyfeoetyzmpbgyitwshtazizsaesqcgqkzyoyypwmelcbzvoaomuddqsrxmggjvglybddopszchormnbcycfsztkumvcgnjmdvdymrnqxekvbeapendqqgmvifnusqipcrhgzpzaltfhmazadxecvntrbnuswxolikzhhxycwiixfrqgjvejavevrtxphyorprvfurwjirgvtgiqprumgflvuhfajyymzgvpzyfitesegkmjxfzkpfqotheiaqibbuyaroarextbqcpdxjlzqzl...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Subtask #5:

score: 9
Accepted

Test #76:

score: 9
Accepted
time: 5ms
memory: 7968kb

input:

281
ffozzfclawruudmagwzfmalubhznepniirhtasvdscasxjmhmteljfqffitupfspwbtplamodxrnaeielpyratsxownkmvrezvqtukmxbknbcxhlufdedcxgxndelrnxrqjbtquugybhumiqlngimmulqdnvwhoheuoiolswakcwdqxacsuchkfyyrbfxsxsskcruberllxxzvabcalysvptbqjyfefhcvynsprxujnjgvsbvbgkjdspkkgotuhgphrewhdwobpzvkpthzctyrhygffozzfclawruudm...

output:

fmfhbsbeskqtvvrplmbuwyffwnxnsfkxuxgcusffcvxdgulnxuwkixtioblhutrxpmwhbtgjlppvplenvprzskkyoqdrydxdxnjekcrwdxstacawrvfbmnkmqhsbpqlvywdrtoqtoynhlasjgzuyuzdfcislrjzauuaiutiamqbzrdnrsylidvnccxhleaofhffbveerpzggqhnjhmmpercoegagkudttxacwkklemxbjahsuehpxmsqbubhlcyowyhhilzobrpcaesjtgvausnfz
115 167 79 119 39 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #77:

score: 9
Accepted
time: 4ms
memory: 7452kb

input:

267
cjpcxadgrhhxvbmjidqqjflftjreslkvhxpsokwppudwapvmwpeyetdlckwoezcowsttnccmmwgfohceiayibaudxqtnlfrulwqrumkqvuvgyteqrsmkjyskhiupjqntnjfrxrxhuhmmptfggmkgkwjtykyeiceuyaerdvhkprdurhxituilmmjhkvpcvwxsqgbpqxkycdlsdytpiuqhdhqnrcqmcyecrrfssmlvvvkpjldqaoydtpfjsufiwftrqgjfyxaoutccjpcxadgrhhxvbmjidqqjflftjres...

output:

cqqqppterthtchnrbdqkksffphanqcocjwfsjwdmhthcsakxvtfdyxjedmcvmfcukhygliyovuyipcxflvepsmawylyjxhpfsumerwswprlqkhcpkkqwhtxwgvlxuyjgvktmfeyrtfrpvjnzkdjggvirsejhmeedtequpoyryovquigldtbujakedwxiftodrcajgadinpbrkixiundosipmhmhmpkluqwcljctqmjdxqyawurfmmsplurgrqvxckrqystvtuuc
127 14 99 148 213 12 152 85 8 15...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #78:

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

input:

254
xrjfnduworypztxeqijpyuprdplqzvsqwtyturivmjingkuxihmchsxfvvafosdmgplhwdbseflnwdhfuycewyxbtfgbomxpzzfcratezjxpcpvjfxzbywrfbkrtgrejvrhnaihysavqomoufzyahgzcpimmrhostdstupfevouwsvslbeywaowhcnypfhyayxqevtwxfdqfybbicjwxmlcpkpilsozsqfdvyuxgscgarddqzbolbzjjcxrkygxrjfnduworypztxeqijpyuprdplqzvsqwtyturivmj...

output:

xpfyihgsljdkzfdlrjcbtzhscmhwzuaedtgsypufdpqtpuvonoomjpxwxcdyykjqoropmhvwvnzgvydooeiizghcumegvxhildpoehbffrbkwqpezwsvbarxbykguiqzpxrswwywtoxzsmrclatfzvjvrgwbbrpyawxbmxbjqhzffsnlpcyrxesyurqrdedhtiagsftflavihuyuwyxcttrvffonmjajyfcpyjqapsiscvdxfsqlzxnycebfum
131 237 211 185 142 49 1 178 23 240 203 188 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #79:

score: 9
Accepted
time: 5ms
memory: 8180kb

input:

292
kvvgbwynoebiapoeyqkmrdnkfviuvbvjkmjgqjrmjzrofvmtxtholphvnigovmteydqhburokcyrovjjhxmfgsgzawbslhjbnarychkldalicffvuluobkiqzvlqdvopumyigdwhuasyzjniwoerthkdpxqzktobftzqvgzphqspzaugwayrknpwkufmxvuqxbhoefkuqudzqtcyratwgboknochxkpuxcimycxjmgfdwwjxdhxlkzaohbhyttaaynqorastemempostkrlrimourvbuikkteohtkvvg...

output:

khuodwedvviqfuhzdntkgoybabzigxwnerunrmvlaexxktmquhjmgonkujhotdlsroelvempkyudpzfkriolplwhwglmomwmbgolxqecajjykmhxoxqpkqcxbnumbvfcwjabsdhqwjkohndivazoybuhootiafhhqnqsxckasrktvbezvrwascpyprjuvqlkvtuuhxiykubzgdkhqtftgkrfavrocooqybffbeypuavwthocrmomhurayskyaqvjrzivtmiijvrotdttzibxyjkgpyfpnzkggmzt
218 45 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #80:

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

input:

278
qprcltvmvglmzelluloxahrvjsvsnkxgjwfwiplmwnqreoewxpiqsmpspulvywcrjkvdsfjcaceqfjrnnilfvarlsviwbufpotgbshltbynlfothpwfedvtarqzumiedgagavenhzoqoeiazpqllmndnjqinqlfgsxnasosjqqjmyvjloccrwxwtsamgzmblxdcgyrpgubuebbxthcyxtxhnrfpfswwgyvzbjsadiacqeamcvtknmeodmlskaztfkxajbphbahebhizovbjhcwqprcltvmvglmzellul...

output:

qhflmjsiolitnmymknraumvebvvbehhcosjczqrlmbxcgtlluolqxzvufpjdaahlyjjwdzimfbwsrbhvaepbdnfqoknblwrvayspageoeckgwccrifxiqtjqitasryszpywefenblacozhtjhvnbjpfefcqjlnxfflgnliatsjcdvlmtvmbwpgmmwltaqfalkwvssobzrhnqxmzlxwgeqbrsvgusssuokhlpqxretqhapnpzxoejwsxtgwvanvddiavcgyewrpudopnijxgcam
150 260 197 162 141 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #81:

score: 9
Accepted
time: 4ms
memory: 7540kb

input:

265
dmbziqbtmmmyxwausfphikfhpnqfrnvvhyrerlveuzcjeeykdnxoskudwlxrcsrjszbhdsyammxiomxnkpvjxwopuqblqythekvlejamrpdoyedgytlqxovnplkvjeniwankuhohwllplrepliutzqaafiuhrhaidtglzvzrinbhdylftsmnyxbudaekpazmnlkvcvdvlrbuvwfhkqekmvnlaerznlhjhdhcmazkdaznkxqnqilxbvsykzfbnilmvebrqsagpdmbziqbtmmmyxwausfphikfhpnqfrnv...

output:

dmokvtpqzmxyxyrfvseoyhuxgillrbngfhxvnvzmidrmrkzmsafiwxvpknxufvpdvynrkoilnlkupnjlevmupbnzfykxeyylvtmaklpldphrhnlvudekvarhbwsecczxaalsahorzzazdphkvglzqfqehsmqjqpialnlaboydrtahkhnwbjlatjcblnjbaedstkijleqbdlefarbiudoibvhqkneedzelweynqqikdcxhmvqunrimvsmnpkhwrxhmuszmtywu
40 236 103 16 187 146 215 95 125 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #82:

score: 9
Accepted
time: 4ms
memory: 6888kb

input:

251
lihtvcwauiabuqgbybcqwwilaaynynzjourymeeifpcexiihsvltsugnyqcjthiyhzqluxxwbebbjfaxhfzfwqfwvasixzuhqklosclnxcamavwfeghjdjntlithbfliiefelpigwmcffgxmyqxkhipgnoxdyoqqgraqrahdmbxwxcogreguklqyzabzdeplhupqcrliuzjeuotvbiuzxtnhwbpoulauzzvflghmlxqbkgqtvezmaqxhqeflihtvcwauiabuqgbybcqwwilaaynynzjourymeeifpcex...

output:

luqywhnlnyaklubiqvruiehcfoifaecazllzelualzttouiwguwqeeqazqghjpiawxhioiqxedbtpvbyaocvblxyuftbgpnlziqxyduftnlwrfqjmvcgwhiuttuyxbzhfqeuhfvvihnxtzqmabhfkjhhcdfoqxjhsjgzggbnrlgyldapmuxwchyxzekqevismugsiczaqijfzgmwqcexwoboribrmfyxsaqlkaqwpixgbfpehelmxxalnbc
63 149 167 7 135 194 223 120 91 193 4 171 195 14...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #83:

score: 9
Accepted
time: 2ms
memory: 7308kb

input:

262
dcbelopfjvpvbddwnslmnoyjfunfvggptxbsyurivdcrohmtzqicptcutequyevxpialbzopyjznyybpohcvchjkyixqbafihjpknwgnhveyfuymyjbfbwogzikbwhnncngrzhbxvtppbppzgcuyneeabzpstauobiqrxwfngbkuaqzwurscajatbmextjotypklalfhekvfrzbupzbgrjnovmdsycqxlfzemtrwwdehukqobsalxqpfixvykgekxrqpwddcbelopfjvpvbddwnslmnoyjfunfvggptx...

output:

drxuzctjgdueecxyzoumkticzocxcjfbwfgnfyepuioxcaouaoeakcnbctlsapyyvbnifcnurqpvbuzwazyibvxspbpbffgonrzzsrijepjknwcaeowmdtqhjsztlzyqpppbeqhlpnvejtqhbywiatxvxyhdvvsvudylrhvbbyyxufgmrpogyfhbwjzfbpobhifmrpvdagjqwtvkbghonwwgqgkbrempzesutkplnqnppyqexribxnkyflkthuakblmjnd
54 215 129 170 50 152 240 36 113 57 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #84:

score: 9
Accepted
time: 5ms
memory: 8380kb

input:

298
ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppnppppppppppppppppppppppppppppppppppppppppppppppppppipppppppppppppppppvpppppppppppppppppppppppppppppppppppppppppp...

output:

ppppppppppppppppppppppppppppppppppppipppppppppppppppppppppppppppppppppppppppppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppppppvppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #85:

score: 9
Accepted
time: 2ms
memory: 7968kb

input:

284
yyyyyyyyyyyyyyyyyyyyyyydyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyfyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...

output:

yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyydyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyfyyyyyyyyyyyyyyyyyyyyy
187 254 132 100...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #86:

score: 9
Accepted
time: 2ms
memory: 7568kb

input:

271
mmmmmmmmmmmmmmmmtmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmimmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmdmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmtmmmmmmmm...

output:

mmmmmmmmmmmmmmmmtmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmdmmmmmmmmmmmmmmmmmmmmmmmmmmmmimmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
188 47 179 243 247 80 204 19...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #87:

score: 9
Accepted
time: 4ms
memory: 7296kb

input:

257
yyyyyxyyyyyyyyyyyyyyyyyyyyyyyymyyyyylyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyiyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyxyyyyyyyyyyyyyyyyyyyyyyyymyyyyylyy...

output:

yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyiyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyxyyyyyyyyyylyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyymyyyyyyyyyy
240 53 126 84 252 133 138 187 81 237 178 3...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #88:

score: 9
Accepted
time: 5ms
memory: 8292kb

input:

295
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbgbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbfbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

bbbbbbbbbbbbbbbbbfbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbgbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
24 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #89:

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

input:

283
bhdhfebjdecghjfeahaeccjhhififhdejcbadjabefbjajjjbgfdjjfebddegicfhegbejafdabhjcgcffiheegahbggjaaedijfcafahcaggaaegchhifieeabhbghjihadjiabaghdaidjhghihhchedeiieecebahagfiffabjbhfabeieddabggafffbfgjfaecedjifbfgbfciagahgddhggeahdbjjdciecidhaghafhfchjifcdecbegjgbajddiahifcejfjcjjhgehfdhabhdhfebjdecgh...

output:

bfeehfeehjajeiffgijecejfceijhhhjahhdiidahhcfafegehbddbbbbagifigheihefegieaahgjiffegejhfdiedejdiadbaacahjhhjgbhjghacghhjfjebaijajceabiehajdajddbggcghejdjcjdbjafgbghfjcbcaaiahjfgbacdfffghiafbcgdfehdggbjebfdagdeafihhhjagacfheijghdibafbdifhfaaacabbdjihdafceeedcecdjfccbfhfcgbafggdecgjahi
118 156 198 278 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #90:

score: 9
Accepted
time: 5ms
memory: 7524kb

input:

269
ebafdbdhdbdedfdfhacdaheibeeibbfbeigcfhbbgcigjicbhjehaecdciedhcjaaibfabhcdefjfhdbcecjhhadfjjjbccbhgigegdjeabfighbjjiefjicgbaejbgbfjadghfaibahabecjcbgfhiaiegfedaedcgbbbigeeiihhafafdhfgbebchhjcjadafijejbehbabidddgiifbgaehjjdgegijgcdjdfcfhhcigcbgjjdabhighddcacgdeegjhiedfffebafdbdhdbdedfdfhacdaheibee...

output:

ebhhjhghijiebcdfccahhbjaeidaggdbbhfdeaeedjhaibjjdbdbhbdifdhhejchfedfecbbideghffgfabgbbhihjdhdhedgdecfjgebbeceeafjefagdjjebahbcfjfbchebdehjdbcicajjieafgcafhidcjcjggghheijagghfighcaijedfafjddcaadbjbabdaejgiccabfdeehbficacfdafgibghbaiefgdbbicccgdfigebbbfbjidiaghjegiigciji
46 90 153 233 268 219 105 43 8...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #91:

score: 9
Accepted
time: 4ms
memory: 7260kb

input:

256
hjgghjhbfgcbjajegbabebeigbgbbgcjbbafaeaifafcfbigigbciechiciacbbhfebfhicjjjjcgcdfgfbhdhieifagdacaabfjfehifdafficijhcaeedeciagdfcdhfhbachfdiaecbaefdghejhiihhibfciabibhfjbgdcaabfcjefbcbccbdgejigjhjdfjgcbjfegjieegffgbghbebdjeaihjgcgjdjdgiadbbejbaicbjafccijajejhjgghjhbfgcbjajegbabebeigbgbbgcjbbafaeai...

output:

hfheifggjgfccjjgdccijhafjifggbbdjaaccbicbjjchaahbadicigjdieiaaijhjbbjhafaefaijiebgcbcafgdbbeccgijgfagcdbfhaccicbghfbeagajbhfhggjjghbcjfiecieiaehehjgfbhiddfdgbjiedbddaibfgicbcgjebffigbebgbcdeaceigfccabhbhaibbbhfgjcabcdibffebbddehejjeeceahffhjejbjajjieffiaff
15 32 77 94 16 182 18 139 143 88 70 22 127 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #92:

score: 9
Accepted
time: 5ms
memory: 8288kb

input:

294
fbjhbjadjahefeicfdhddfdjiiefcebebgfibiabjiiagciceegceidjdbicijchifijghhadabghaffbabjahdcfcjaccghdiefjebghhcdifdaadgagjhfefcbabedhddbfdehccjgicefifbejijehfiahiigbfccaccjdfaccfefcgaccjcejbbjachefbcdjcjediahjdcjdjdjgfefijadeaiibgjajaabffjgedgeibcajdbjceegcdccefihgafedcggjaehffgfdafgiiagbahbeedfeafb...

output:

fbdabjbbaiahhacdejgggjbhfeacdjijicceahgfjfeidadcafjdadjhcddjgdejhidccbbibichdjeicfghbajfhdjiddfeaiceecfdidedfaffefedceccjiehgaehehcaeecifbbcffhejjhiijcbhfagbjhcfgbbeigcaecadffeghbebaaccadjgiaeghcdafiebgjgjfffaggjdbbidhfdficcgfdiccfihjcebidegejbebjijadidfacdaeaiifjajgeihccfjjeaagabfjgfjfgciccab
139 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #93:

score: 9
Accepted
time: 2ms
memory: 8012kb

input:

281
fgbeeibgbahgfjjccfahaegjgghfcdbbbageijdjaigafgddabhfhaaggadcdcfeigjaedeciiegijahbgbiihbacbeaiecjgbajbbjechicefadeacgbfhhcfdgdhiffbaiebebdchgbabaaefecigebfeadfhaejhcabggcfiedebhfgfjciiaiidicbfechffgfaibfjdijadajihhdabdhibjdefcbbgchefjajdejdcdaihgabjhjjefgeibjedefgeiaahejhehahecheeafgbeeibgbahgfjj...

output:

ffbgaijchfhhcfaebegfcdaacaeaibjjgjicdcheeffjdhjghefhjdfaaeaeffhffgeheajgeagcejgbifbaabdiaahehjagedebbbggigffjegaeibeidadibegbbbeebfidhgdadhdhjcjcchdbefigehfbigbheecagigedbcdaihjbigbagihibhiichaaieachcgjahbfjbeeabefijaiiaadcdcchggbhaeajghagejadcfedcjafcfgidffbdachbejjjbcdbefidbjiie
79 259 214 16 273 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #94:

score: 9
Accepted
time: 2ms
memory: 7796kb

input:

280
kfeyyynidpmxvexyunkcrslmkkesjpfmrteqgclmwgvbjjhznqokutinmgbnltvybvmhqxjmqipfqppikrkbutjdjhzybepwaghvwzrtozpjkacosyaksnrjcldmoncsxoewlhdseyislsfluetsegcjfcltlikpfzersltfedfbguxmtyewiuuxjumiiuqakwebvdvhgmbottgnuylxnftanpoackwexjvnaaerssbqjbyscdyfpqrbhoxhsomwfnceudfftepkcrjeoczuztoukfeyyynidpmxvexy...

output:

khrbyyuwnljxjtnydoytudxnfajtsejduludusmebimhvnktqwbtzafeokcuustczppeqcookmrfdottxfaccyoemftfzscuknmiigpxspxprnvlwvlrebinrhvnncbefpssejrmhzqpoliigyfqmzagefjsmbgqmnmwldhnoeflcyxhivkcwgbyajgoqpulebzaxjtuoephzwsmttwkaktebfksfcpemvkcufbglpjrkjwyjvinkevlrkshtlxxbdqcdsejyrugyejusqesayio
154 77 13 128 184 8...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #95:

score: 9
Accepted
time: 2ms
memory: 7336kb

input:

266
xnesnhtjykbarnjnfrruxlcwvqouowxnelqhorrquljljlaxcjejhthzjidsbzoxdpazuyvqnyunrrpbrlouolfrxlbafsyghehzcbxpeftmwhcnjmkfpxkfcoxqhtstbeazuoifydxhfaqoedwpwppupoxvguihuiqnxgidilxypvxltveeiknwnxjjblchnevtqxgdrgystkonsvlfzrotclttefplqicuqdhdblbpwpdeqgyqnqhnqesrxisipvqcnwouybxnesnhtjykbarnjnfrruxlcwvqouow...

output:

xwedeffqqjrvlhjoyuuonfbydwwwexqroctnsqviibwtfnxbvsldxxsnvneijuhadhtqoxqupehwiabwgtcekaobzotvrltcqaxsjlkhxqzeofnrogonimnixftxpfynxjoihjhpdprebntetzqzlcjslullpcbwhpuuvsnbsyodnnsycxxlioodupyeczkppfqbqtxjruvlkgircpkrdhhebjfpxpryenhhnlpvudixuurajtlnegqalqzgqhmygqlxflrcry
229 138 6 30 78 231 107 238 120 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #96:

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

input:

254
cuqfnqloibwzloexxfyjwjwpdkpfouujdrqkrtqhhalrzuvpfvhofunzcdkegqcqoznskuniogdglyrwqekiyftywxtlehgazioqrwolrxuryjwqysccdfslqyuajikdftegkuckviwilqtkwmlaaanwcodwcerrtggzrlzmhgivaqbgrpxhmlbsbawmpfnwxelpfxcvxgwqnkestyygewcfccuukarcggpbjwgbzgivmeaxwcmgbgloggqsvtcuqfnqloibwzloexxfyjwjwpdkpfouujdrqkrtqhha...

output:

carxqewjkqpkqzpzfztyfrfgurjyeqqbgoplyukawwdubltwnumpflcicvarwhanioktfrncjubfcuqiwpqecouawxdgwfqhglrrgxjeognwgzskesileazrbsqwthuwcclexvwikcyfjyxrfgywlrvgcwgsugcocqlmdzilywuvlndpqgxvydtgrkaktaiqgnobisvmhtoltlkxclvicazgbbogefyxmwzeokjgarqekqodhufmdpmsxhwggn
50 170 246 161 196 54 227 148 127 201 222 44 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #97:

score: 9
Accepted
time: 5ms
memory: 8356kb

input:

291
tjrztteweevyxbwhmivuciyndbdyggshdfgztewenwhtsnngqvomktgeqqngdkrflklyftuihtkarcdxbdcooajhxdiwnerevguidrdgnmsgezvspxywybmnkbrliucxhsmthxvfqdebbaxxubrllnomxeqspnhwttvhexczfufrsbkvynjfxgruagmzyotwlmbuswitoazdjvqozfhiejycmybwiyhqnnsaggfjylvfgautgkzcuxjiaivqysywwqbabdzgnevzwlmmviyyyfzkpgguudutocitjrzt...

output:

tzflvrzqwtdhzewdugzyddgwyryvhbbnxwwkvtjeimyfisonyhflxiooseicyugmgznmyhrxzneyxenimbcofvavgccxtiyxlxtewyxvqgyebqbtsakbfshymobwgnfygdlgqqtnmknlsgrghvkyiiukbsxhnqzwusummrfwrgsqeshngbapxrwhulfwkteamozfurjttvaectcoapnbvclegueikaznkgbcxsfdtqjdpuomhdmjltbiuuddijgyandnyfjgejzirvabvquzvwwtiuvdyxgehdt
199 190 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #98:

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

input:

278
hsgppfvcemnngjqajmbezdwtvgygxpwjnqpxkfmlpmkjyhmjrznvuwooenbtmrdxekrmnlbaxxbnupwitpwgzalbrtsedvyzgmtsfymbwxpyterhyjehoadcigmjjqqcldxqxxeuamtfpbnijwjrakszmftprssljdkgfsaojwfnzkpsxzaozbuglsdyzeztlpzgpxkokbhtiphwhmfkfcwqltalcmeywadugzwytdxztpnmeoqejnjpvgifwfmxfcggugrkytbozsfiglihaihsgppfvcemnngjqajm...

output:

hkhnsejgpgrmltnidweceftmadvgaemotmgwxnjjgatgxedsjwlpfwjombrzbhshyukwehqlakyttppuisbmnyiwtebsoxboztzfzeilrjguwbzezqxnfhphcxfjduembogvztarqwpyrlajpmltpktigfpmmnxncdqfcbdcgoqxkypargtzbvapdyqizmfwgsvmjlxngxmfnnssiwpqzxexylhuwkrgekfsdyjolmfmnjyzvfxkbwsappuilypcfajjwtagkzdtrgkmozpzxj
247 278 50 108 46 237...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #99:

score: 9
Accepted
time: 4ms
memory: 7388kb

input:

265
ctrtcvfveofflofmqtntnalsidtqrkapafjdgjhaowscowfdflaekjnfgjkwvhnywourrsfkntbkedjtaooxxrznoemzhajqmhitunuxishmuuxqbyowvabqiqpwxyfvosjtkxnkxztsekdgjuoumxliexmsztgwshumzcacjkacenuotghzorezgajjlwtxbqgvrmzpmlwjnfkmoibqzarwwpsgjuhzozybrvsvahtcfwhkbxcpkaqxbwbypnpywrgvsxuqbctrtcvfveofflofmqtntnalsidtqrka...

output:

ceixlhfhwypwlquhwzyfvhphzgqbmsvsftotvvglnxmqdoujkxcatrtkogimnjwfufjfewttjmrflnumewueowvbiaafdgnviewdqqjzusjbblgckcdosnzdnwrcptkzfrxyobsxqkwjoaxukaakginrsmqxjzhgsrjbecrxgstaphaypteokgoqwzaoiwyvtfbukrrohktjqunbcoakwqmefzpxjozoxhaltssvjhvubjykxasawnmmxofpxnmanzzttcrub
193 133 260 156 97 3 127 223 30 76...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #100:

score: 9
Accepted
time: 2ms
memory: 7100kb

input:

251
ncseyyrumqkwaokyxbnjgxdscabygipdgpfunyxsombemsokafjqlipfggiywppwtfxkyrybhrslioqpggcgmgbtnxdctnxxvzsuakwcjbzpesubjhbpgfqvkjybrysysjwvnbkxtyzvublccxnsachibxohuyumfhexzduudjqdvdbiiabferhpgmdlrevofyfolnznxgyehzmwcwhpjtzkvzwpelpeqdftsdeerxgnottcamkhiltuopsncseyyrumqkwaokyxbnjgxdscabygipdgpfunyxsombem...

output:

nybghtmtknulsibzkhgixuenxkwxegeftbjayumbpqrkuflixseplcuwwwskcmayrreckduoovhkxxygxcudmttzdtpcrpnmhppsgdxgjvkefpduvyilpxyxtbnythogcubgoyhwhfaogzxdofyanmysvnsbjhzdjwwcdslevsigbzqtiibvfgcazcuoxgajfypfnqspclqbsxpieohejlgvznmkjerrqyeyayfmsbdrbnbpdsqozjbpfyw
183 118 14 219 83 228 205 92 97 120 131 238 188 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #101:

score: 9
Accepted
time: 5ms
memory: 8204kb

input:

289
aozpddtfwjsutsqyhvgjdaxvpyaihmaqirzqgtxvathtvgztbkvicdujjlcwelkebsvqskytgdkhfkiogexeegmflaozfiifgesdsxsrsjuconcdscryvlordriwcfeaagbnvwolwrxilgbvpwukljhbhjpdbbzpbqgkpqxfpobeaiydanizljrsywxtpwqxrkefdrztfzzsuypsktwppilwctowrpfttfulawxfznjmpsuvfebigpicbggbmrzwjnhviknturhoquznqkoesdgufqjfktgpbaozpddt...

output:

atpetbttowislipuctgahfkpqzigppdvbyuebkareglxknfvdkngtqptvevdsosgknsltazjxkttcfwtadfbalfktidcjaewdwxhlibzppgofwkefcxrubsvpeqijwrufzapipvurxgrxqrryhdhwsuokaijueoqqdgiwglzjnkkcsbjfgfsgbeihtflmjnrfyufwwdmivgzmiixrasbprzuhxdjnsqwwqbwszeguveyfztxofzydqocholtrjapivcymsbcszvslynpgpoljrbzkvbdohgjq
159 129 19...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #102:

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

input:

275
mocidmpozrmeuuulrhpxzijnqjfyfsgssralnvuqmakuapgtsvalleyowuvznnzxjfnypubsufwoffhzyydjvsbvvxxuskxpyjiwgtqvuvilxdwqoydjjswhvupblcwgmbkozwefqwmvztkwygzuojavxhaxjmeypzquimuzzgqfoiryevhvxvlrrfbrmvpdsytxdswtbplnwesrbjvbtijstjpzigvwqwupwjmdnlcdwjxbifwadavnnzebsmbvlsuxcqaffvmbgbejlljmocidmpozrmeuuulrhpxz...

output:

mpqmzfvuiunlrwnomsyrsgtlrsvdujjsofwdusezxxxaxmhiylvjajiiytauxvnywtyfovdvirwmflzvbbazsdsbuouabrdhqbmwsnxnbjqvutwwlivdvyfbvxovgvlkzwwabhefwuznhwysfmgzpppzfzslfarnijbzqwvqjvbfoppsjeelfbdsqeyewggrlwbpzoxwuxutcjglvknzgmndjgjdpmiicfkupzmuxavusbjqymptljxteaykvxheqjumcqpcjyusrlwojvv
69 105 272 216 140 68 99...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #103:

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

input:

269
iwckcqhjjvazcrtrwkwuibplkfjhjopkrfdjwxieyuoxpgtlxjwjvkovoqyksqwmthxuzsdcpotlhqtuohdqvnqchvjvrrskawzacffwgzbhimxragvueypdfmyinbejkwcweiqzphoopktzxhtnqwnmhkovahnqwimeosccbxwxyvjzdoqdykaoxpzpgtjyatximfsepodpvpuuijfsusxmqvgolvpnqjztogvcjsragzjxrlhdohyhcngsomqscenrzsfwfucbxiwckcqhjjvazcrtrwkwuibplkfj...

output:

ioqmpwnmrqpkhqxtjqapccucjxsaaxyvwqthauuzzslozvleojcfjtgexujjishxkzpfjrhvhavrqohtwdwauvozqsxfjswooxsgfbwpntlsjcnkltvguvxnvtpxrnhamrwowioohqkifrhhbjwnkqysmzizjtzzgppdrodehthepxvccvjbrzsgwpglkmvyqiijeqpyufcrmyjnwbpkooztkwfnopduogcyfevxchmdedvcydgwsifdquihkmbjscooxacykqkwx
95 161 239 30 215 155 150 31 3...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #104:

score: 9
Accepted
time: 4ms
memory: 7064kb

input:

256
fknoxbacycrxctykkbkbwmwpubmhcvgiocuezvujgxeznlaxzsjtmropjhkuqiqpihtnwgoubrijlpevrtafbueuvtsntwhuznzjhqngyajomdklgnvldqjaxfdnveyeykpgduczutsmzlbfchxzgnmcrubunrlvirxvjwtipsmtgnohvpemofodzphaemdvdzangjwzocwhwvditzlcqqedejvvgaonpordlirwjrlxrjddilzddxkvwttucbunfknoxbacycrxctykkbkbwmwpubmhcvgiocuezvuj...

output:

fmfepjlglvstkeojzwluacxzjowrpwjjcrxtqoorodkjudkxyhredoovrpvauzutxodmnrvkbntvraghhtcrilputzewhxzicjcxpzrszeiujguycigirzezvoglqunkdnvmngnkwhzwjvqtfdsosjrtvvuntqampdldpmhcuhvxgckdnnwjgkyemznwniuhbpnudctbneqbulubhebvdqwyvcayaelcdoabxdziltxgbmalmwnfbvmzijdptgfi
182 55 97 250 15 41 23 25 190 79 189 139 12...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #105:

score: 9
Accepted
time: 5ms
memory: 8244kb

input:

294
ejmahwgcpwfouwdyewysfgeijpazzwtqyphkqtnxqderaywyykoceescirealejskmzuoouugobbbtgojpoqrrpisixiqpkevflwqmmcpqqmjrxvjqjyoipbmabymmxbvmggnfllsbgjazfbpxevjwckxqflwxeuwhqpqrmvjrvohvqbgfcwademomtwkggihdkrtwhjufpkxnfkzqlgvajvduffuhnbjjokfpeddvoyolxswipmciziefmrrunbnmdesictmbproaezjlbgcuskgtqmptncszbjrdej...

output:

eqbizsumfaqoqnjdjcudwrlkfmowlqumulvrtjosqagepbvqesvhwjtavvfwjgfinktyzteapdammrrmqmysjkwbgcyjxcqrigwzloscpovjzqwnrchkvufgucrveimmqyqhxwpxfpwgcmjofbslezwpvibncwcjytpyvfoijtfdmbhkktbrdoomwpxpnebxekkagjijutamxpeqpnooahlohigrlzklgypsgemebqqiwkxugmamjjbeegsoyjgrdqwdprykcuzxfbfshpxuiofdbebnrzfeidbpem
54 22...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Subtask #6:

score: 13
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Dependency #5:

100%
Accepted

Test #106:

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

input:

290
oahdsuzjxlbtppnzzddxjqivjpvcfwkborvfhrbirwrtfvbvqwxtqsxqjrgybhkwrjrtvwqzbvwezkpjtkkpcdmwyyenweimobrcvhjuvsiohlhkensyzqpbkxdisvtjjlncqeihvcgzbgcqchlsgysmqjscvzvyvmqtgnwrrcuxicbwpaozeiwphbzxwhodbabirrhntsptebjifzyoezqxmfpteivcrpnooviqrqxtwrhhvaqzloahdsuzjxlbtppnzzddxjqivjpvcfwkborvfhrbirwrtfvbvqwx...

output:

ovvjnbzqygkrxmsdqagjbuqbbhxvyssvxtxavztvwraqhgcdvwkmqjftivcvdhfqbaqhutgoivawsbypwkiwxbhilthrbijrptxcibqwylrzwpoygcdobmxtporocneevpjrfjqwzbobbohpskiptzxgwrdwrkjichlqqmqzviexhjzfeigsdsnqpmyyhaclrinkhhrrrprzzkwrhskxlxqanebdavevccakevfzitmtrvwjwijpsvetocfvcpzewrjcncnzyouxhbxyrmcszyecobzwepjcsy
221 76 31...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #107:

score: 13
Accepted
time: 4ms
memory: 7448kb

input:

276
qvtqqvyyntfvsejtjarjkwkxysgzgfoscewganeaqrommvmtonokazfchgbnlfvnsxxivubijwkzqgzkqoivszxowoeomazfkiogwkqhkrdigwiqllrsfaswgvcpirgyfsydckjeqmnjhwqeyuyjubucsghcsyjbtczvslcmujxuiomsqnvanwpgcwjrlmoeictukxflzugkdgrqiitaadiqcdlvzggmnrjnjbxacweuiuprpkpdvsylqvtqqvyyntfvsejtjarjkwkxysgzgfoscewganeaqrommvmt...

output:

qjfjqzrslmwamgivilcantopjaspjkmikyxctrcwofjjkdhxgvvcnbvewgqzcnggxqeghbzinyzsifijgoqoaizuvomguratiijmknnsnzwxgnpjandvqokcagvlefqdiqavlhqvdeudfyougrmdjubzvwwaqlyqksyufqnuodrljhsjiwvfstyoyswcxepokotorgrbkgsnulekrckjqwxsywurkgpcosoltgkysmcvjjezshveicgwqmexwcvzuimhuacamylgtsrxflpb
132 54 179 163 184 92 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #108:

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

input:

263
idsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsv...

output:

ifwcqbpfrpwnzgultpgyohzpjaudswquzawbajjltzslsooumwgcldqucbjpeppudfgxstyxsdxtqlvrgljrvbbxdkuqswxpiufpsqihnswhfkvuaprsstgqnegpzcyxpsgwujpugvlyfmsbfywtcotnthrjzbrwxetdyeurobeeunuerlcdvajqljfhmheazundsupiwufaupihjxvuqxoaaolqlwvpmpdfvfsqayyanpnsyynhpkucxoufwhfpmlhezrf
180 255 64 201 234 78 254 72 231 254...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #109:

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

input:

250
mrjynajsojspmgmfvzjapohsuzwepjzqwhrehlpcfbflrqfdpwycpsmizsidjfsubmllkpcaurotkbfeebbhaznrhcakgqdnnqremqewwgjpswcwdkkwwfdouyoavzgeoczaorevidhprtcujgojypmbrutoyrglxwacaeksmjvaloqdyqluznfmjjfxpihhvvzyqnjiwdnwjmfhdqgoomrjynajsojspmgmfvzjapohsuzwepjzqwhrehlpcfbflrqfdpwycpsmizsidjfsubmllkpcaurotkbfeebb...

output:

meeuamgfpdeiwkpvysmlgmbecfufudoqghepisohwsmvlyobqjlrgyqziaudquzwdcvbfvsqykwjvdzkygpohldifayzgdnqhkpctrphvdmgnarzftlacuqylrkfhnswurzpjcbcopfjrjrygjswsblsghqwbokkuiajhjjlceyofrztfwnpnajanarzjotlwyjqpkjdvqemfrwhixpjwosemarcyealzhlwkphldnaosoninympkimojx
187 105 226 131 59 167 240 24 124 80 43 78 94 215...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #110:

score: 13
Accepted
time: 5ms
memory: 7172kb

input:

287
bxbblpxsplofcvxzwayffmrgwymbkrrtdqclmszfpcavkywggtbxbblpxsplofcvxzwayffmrgwymbkrrtdqclmszfpcavkywggtbxbblpxsplofcvxzwayffmrgwymbkrrtdqclmszfpcavkywggtbxbblpxsplofcvxzwayffmrgwymbkrrtdqclmszfpcavkywggtbxbblpxsplofcvxzwayffmrgwymbkrrtdqclmszfpcavkywggtbxbblpxsplofcvxzwayffmrgwymbkrrtdqclmszfpcavky...

output:

bcuqrzxbxbegslaadiihkyslbcmdrmlrokwiofdverqytmeodfsskldvdqazwbfpcrwdmcnjvluwrguwzocpcksuawayqhwfswwofguofrorbbfrxcaqhvyazybwrmwzxlewjvomosrhvtlinswtgubplbxmzvvpljbjsbsklydkdjgjhpdzgvyocebbxyfudbkpoffxroptctkepcftkwbabixeaskhaytgsoabcrmaeupobzipadhyvlzutdliffhvtuksfkhtfegyvrefexgueiqqvip
189 182 70 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #111:

score: 13
Accepted
time: 4ms
memory: 5892kb

input:

274
gfowimhsqhahiauwyukdkstfoducfectroninvjaateqptwahrclpystsyvxojnnsppgfowimhsqhahiauwyukdkstfoducfectroninvjaateqptwahrclpystsyvxojnnsppgfowimhsqhahiauwyukdkstfoducfectroninvjaateqptwahrclpystsyvxojnnsppgfowimhsqhahiauwyukdkstfoducfectroninvjaateqptwahrclpystsyvxojnnsppgfowimhsqhahiauwyukdkstfoduc...

output:

gwxzkwnftwwttksilrncswpjtbkjtfxqesejhjfaegdwchbequoawfkuzhiuywfcdvyhkasipjpglnumkvswhpfpmqbmtgkfwmkehnbfboneziuqotifiargdqkmqsuhyizazimpzyymtnnypoqowinqlucibzbqzmweuhjgdcgcoljayuyapecxphfbxznckmztdxkremklcqtkcsjyatnvbfaiayqvcuawdpncbuhtjcdehpgxvluryfyiybbcnrqztjbgirjorybuoz
87 129 213 137 99 27 16 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #112:

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

input:

261
rpaixnsvlwylioyyllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...

output:

rqkxmlbuxispdvclkqgmozrshlugxgoahixcnimksokpxdchyctiqfvshnztjaaxuufczzvdkfphmqfjlyyuqhybkjyzzqeidfizlbowgonhjaykrrbekfntluxrloilqdurypitwmpjpfkeebrzeafkbndprktnofciqnsldwnllhpzizerstdripmjymwviuyerunzykuldvsdptsoggbxtnfmkotnsfwlaiihfvfenmfdpifshyozbmeirioxvnszt
75 57 146 258 106 6 107 244 221 69 22 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #113:

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

input:

299
vypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkx...

output:

vkbiogeaknnyblefmksyskrjegovgufaiaaohgxepwqlxzxxlonfkboxnymbctgrnryjrflgkjdemhohozuonpfnyoaxqsqbzcdllawnmigaansbmwoftrkcykmmwepprtzrzuhnvblfbyekgbpokjuabsozqglwtttymicgyhjhorwjqlbxtgkbvsjiakhqlobpotcvphklsxmxfqjogndilnsgabyskbuygbojbnhjjdxllwvigqvzmjlujuavrljxyhidfssbyworprrrlquovgqpnoytvmaulalmmkh
...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #114:

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

input:

285
ltyrwnfxvlleuvkkmfvqncgzvjcbqmtuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytu...

output:

lxmhytneorvdvlekibtxmzurcvjougbbcjlcwrknivhojawwqwaihpzjuavbhoycobvedewotaunahnmtdydnkvjqrzmtknhchfmznorlsksflplmkgsbxnmizkzhesieyhtevdfmwqxnrpawnndbvbgnkygndhmuoljtodowekifbwnqkegcremdyjxmnfyjhgxlnwwcndjmyovylvhugzkfqgctvzhsqgsqjieqajebqnenigehiszafxtfajczpxmjstfsvkhqmynropllvwrwnmjd
252 87 56 76 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #115:

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

input:

290
butyrdetighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbt...

output:

bgshapczjqiupfjgbifrjhegzohaxrtseiridnkbrkmmbcyatysejbtldtolwsderasrvhnslumruerigfviainipkuzcnilzdbiijybgtybutejwdzhbcldptmmjstnquylarxbbbcfxtmyhztuaswasnvmscfqtcymsontugrwqhfcifbcplebjkdkhdrsrmhzrelhuujxkxjcbasvbniegdbuszfluveyremisdyrosobcqcflnmvgqsuuaqqxeldijhucasreasjrytughykwecdrwzypa
91 238 21...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #116:

score: 13
Accepted
time: 4ms
memory: 6448kb

input:

277
vvhaxuaukabhvoijsskikghthkpqzswqizdenqvlgfduraluhpdechspdvvvklxfgakrkqejcfmoxkxipflfqnwxlnkekqknxksyhlmuznsjkprhecuvjgrltxkrkqejcfmoxkxipflfqnwxlnkekqknxksyhlmuznsjkprhecuvjgrltxkrkqejcfmoxkxipflfqnwxlnkekqknxksyhlmuznsjkprhecuvjgrltxkrkqejcfmoxkxipflfqnwxlnkekqknxksyhlmuznsjkprhecuvjgrltxkrkqej...

output:

vzeuiuipieunuwfgmpoqdxziejkboxsjgfphwadykikkanoaebnchryhclvalehfiyavsvhcosdgrxjiatzhmcshjpjnllqvulwqnskcgwdffztdtddxtslhksqwogfejalzsqcyzdivhizvjiltbdakdsgxtndvxhpejlogrtdfohexuxgpnzkltfacctlfxdhkrmzrsrqktenmswgkocxqsghxrmkuqddnkfwscuzkxtsvvklonqgakyupvbjpwhbacupyxbrmeqlhmjkuk
59 46 245 162 152 88 8...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #117:

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

input:

264
hdqxepuseypmadmbvfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...

output:

hedilzhzmmhdcfiotqcdlxwdbkoftrhndimkinemsvwapvazkkauovtdefxshycoultmdssoavsrqmlyzamunpooigesyhpubhsrcdkqlpravhyjwswjiprtdbzjgexxxleaqrrllwogilzumhrjkpvyxadeqjrgoafzrynsgptjyzlmmvbrpzrbfmwiuccarjbqforuaderjtucohooebzeerorqjzjjviaxpaoljvvxliqtpcqhlxbpkurltcurpojbdlu
202 181 98 116 8 136 191 61 195 154...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #118:

score: 13
Accepted
time: 4ms
memory: 6636kb

input:

250
iwlrnkvraiooelijjlinxwpddwsjupogghwznvuyjsadxaxidkmhzevdedjrwapwvikgenolqgpawfjgcxddlhxqgkwozzyhqvrbqvvwpzzsizqmkbrusizesmbizvfppxanqcgvuvjjwwoaccboluyajljxxsnfbjdbvmvhrsboqehweezcnuwunxirtnbkpxmatsdyrkfxcxvswzastkrsyriwlrnkvraiooelijjlinxwpddwsjupogghwznvuyjsadxaxidkmhzevdedjrwapwvikgenolqgpawf...

output:

iwbilgpkqeispxubykwvirzwwmsqpytzhwhkpmoxjcjvymrlbskuxridtktkwgnabjfggwvnhyqscroqszakcgbfdddraxciehbskanvldoqnmvbirxwfxirvmvslwzwyiovliavyzjpsuxdoszaohddwinpzdavupwepozuwjnjbajyjxaujgojbpaeqjuhssbescejkkrihsvdgwzlgnxcpxnnkxsxrdqhktwrasvcelizqdelvvazff
153 25 60 181 52 164 29 87 42 237 54 49 23 178 17...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #119:

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

input:

287
vjyunbmqicocecegwkcinnsqvtrwzryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...

output:

vckecxyoneopbjdrwzkqsyzroqqbywqrnntpfznbrguunxajzbpqnqvovesuwnvinqirmezkgpyzqsqzcguzxvexjcbbguefywoyplamoxtajghmculgkrqanmkvwiticbnrokiiucylwjrcsxehudgweaqivmlrdehynoqmnxxlavgsfvbcdshytxnvtdpugprnuzvhoigzglireoqoqezqudbzbqbbdzjxlsoolzxkogniyrzvkyxtpsbmjpkaqxtugwlnmedutcavumnfrnkypaxyynw
14 162 279 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #120:

score: 13
Accepted
time: 2ms
memory: 6428kb

input:

275
aniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyi...

output:

avmetrovlapaeqxybkdfmstekjmmarrpccomwtecnnbcgeayjihbsaatbtqssdadxdzdsgzmjbweysxyvugibjsponiwjcygjvrivffffcnaptkycmlgiylmzpolxksomvszwaawduhaschjtfirqxxnupnxggapyhjbchczwyqrdefnrlyrfzrofpagatanjudpobcykpxetjszvdnmqhnfjsfllcgyaiuthigwthkefeuwkjliscbgrigvytssbkonbgibfxnhhrgnnsu
176 189 245 130 78 273 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #121:

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

input:

261
zyhpgykgikftsxgyvdjwxsaerbinwdvaknshcygvuzpnwsllvhpgagqdsdvenjaeyenqffrsjkhygsekijrwnalyyjmltgjhnycglswtqebvakmtlpxrzllhsnvqghhckbkfysibzyhpgykgikftsxgyvdjwxsaerbinwdvaknshcygvuzpnwsllvhpgagqdsdvenjaeyenqffrsjkhygsekijrwnalyyjmltgjhnycglswtqebvakmtlpxrzllhsnvqghhckbkfysibzyhpgykgikftsxgyvdjwxsae...

output:

zlyasltehkxnspjjvldrycgwetnelrzahvlhwrvjvhdibmkifkgwvdedmnavgippbctsfvoqgakdkpgqdsslhcvpzajvmgekpgtdngnicrqaaktvdvikkhgjuufreyspwbcydyqyyjtbxwnawzhnpykgwuieaeycgbksvptyisrruweknizplrzhyqcgdbthewzbnsjjxtsqbypyxdjfsbzefmjasmxigptgsnnzbfusyhnlnyvnltnysghjhyhzjcbfe
208 116 185 111 62 255 33 251 207 184 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #122:

score: 13
Accepted
time: 4ms
memory: 6492kb

input:

299
enujseyaizlucvjcvmgbutqpumvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

ejeahxilumufozjdtuwatnoqvyxdtkjuckwjdducqbifpnpukbawvazlmbwcnxhwlduluyeqeuqivoolfpcpvozzisgvyyvkihfiqrffpeyyqbdbqsmozgtxdzgielwrshgnfzqckmqmwxxiasdpcgcrvemardivpgshkoajvcuufkidoqowwusyyozuvezvqgybcgnsxpibjsqseqajkotzeqgukihdunssduepjhyfdlzgciuxrjhyallqpowwgjbuxcubsiwhjquzquyesiqlyhnvmwjijzmrorpftus
...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #123:

score: 13
Accepted
time: 4ms
memory: 6036kb

input:

285
hntsubeuvgtwltldhbyzhmeouaodmduqbbakesgcmqpyedajlpdoyilpdltgghntsubeuvgtwltldhbyzhmeouaodmduqbbakesgcmqpyedajlpdoyilpdltgghntsubeuvgtwltldhbyzhmeouaodmduqbbakesgcmqpyedajlpdoyilpdltgghntsubeuvgtwltldhbyzhmeouaodmduqbbakesgcmqpyedajlpdoyilpdltgghntsubeuvgtwltldhbyzhmeouaodmduqbbakesgcmqpyedajlpdo...

output:

hegglgxboejifwnimumppidqjbwczeilhlketazhsbuepwqhmrwfenaomuopzkxoeugcptvrfairemmyogbwhuqucuirtodvjjkjtzyurqtylvxqohlimnriaxzpscxebgpklriugszguvqqbjrilkqosrtfjydekqdgafzdufmfcavapudlzubgokaoygddwhjoslatqxyddbtmwwlufahsdgyvvqyfijktgadienrllbxolddwyocupzpzhuaoygidvrihusrbmpklllqgutjhatxdl
54 26 25 235 9...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #124:

score: 13
Accepted
time: 2ms
memory: 7604kb

input:

273
prdbczgnspszskktehjtavhwqitxblsezeromwcgclxrziddwfqtchmpnwawtiwikzxlzpbbofiwwghikpyjtomsccserkpcgpvtnbawldtgjupptcgdigmvezpoftfoiaaansurffpsygprneianwnsagfcjfzkjkzfapwxbuwxzzyangvrupkffhxxeunyabokoyqxxxmnwvydyjwcwacttnczfyzwwsggzdzpdaogivrqywcxdedebqelrxpwpzjhmedifxrkazdutprdbczgnspszskktehjtavh...

output:

pjgcchgpwwplxupuzzvrttiwijyivprgxgnwywffpezcswdwbjfqmcvwtxddcaoepakbqimsgbkahptfeaghmzaoydktgbgrlzcwnfwwyscdsdahnzoxcknydfpzvfgauvsnezibgdgqpadmeknrgztcsxpwxefrfqtrxxonspdppodgyucaakeiwezukixjzfhliywunktpepzftxbxjcaekjwtrssixlswyimacnrwtlmyraaxbhzoozzqcpfwrktefvdnojwtbnzzi
148 6 218 259 93 239 130 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #125:

score: 13
Accepted
time: 4ms
memory: 6344kb

input:

285
lofpfzarfsumowvmxjqbjejycmblcklbracobnvqcdslwhemeelclugfbdaddkaudmogfjsvhxgcvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

luzmcavvzzcipsprptxrdjoumrkshofslqiackrlidhocffcvucimdlwthfbbsgrghuqjaqbppbiimpgmzatnsfgvmnslosdtslelpgldcjonycfzpkmryhbgkqzfwfcezunivpysvmyfakxbldigkcvzxagqvzclscdevzgrmqhyyamllfgoojxrkpueywlsuvrftqbetdqpxbertlzkmblaospczujwueqnrnbpzhogvhreoviytdvzadtjeywdlwdjdaufjtxngebhxguzjyxguwpl
182 227 80 264...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #126:

score: 13
Accepted
time: 4ms
memory: 6280kb

input:

271
tukxvgfsreaxcauxfdwpvbhjvfvzwdvvmgtvztukxvgfsreaxcauxfdwpvbhjvfvzwdvvmgtvztukxvgfsreaxcauxfdwpvbhjvfvzwdvvmgtvztukxvgfsreaxcauxfdwpvbhjvfvzwdvvmgtvztukxvgfsreaxcauxfdwpvbhjvfvzwdvvmgtvztukxvgfsreaxcauxfdwpvbhjvfvzwdvvmgtvztukxvgfsreaxcauxfdwpvbhjvfvzwdvvmgtvztukxvgfsreaxcauxfdwpvbhjvfvzwdvvmgtvz...

output:

tfuylzcjdbopecaniapttkdqbvsiyryozilhwybmsvxpujvbbskuvucchghftzlevkwovhxvcfiitdkdgvyhzryltcccnzewhrrwqhfyzvpqqjcnazfpwooxdpfiuoiofbyijgijzntxootrkocnuvschrdcjgyeprzthybcxncmzlsrddckddzrklscggfxxdnzpznzkaublxbekldfufvyfrwfelonvncxopvtivjxoafxevyskrnrqtltitvavirsugstphrtucg
3 260 22 33 213 265 144 150 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #127:

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

input:

258
wkjssxeyzssmzhxixnjqrtnfkqupxmrqatlyaazfperamixhwdwclsohdaoarxzymbydpvpsazvcsobfythkrwkjssxeyzssmzhxixnjqrtnfkqupxmrqatlyaazfperamixhwdwclsohdaoarxzymbydpvpsazvcsobfythkrwkjssxeyzssmzhxixnjqrtnfkqupxmrqatlyaazfperamixhwdwclsohdaoarxzymbydpvpsazvcsobfythkrwkjssxeyzssmzhxixnjqrtnfkqupxmrqatlyaazfp...

output:

wpaxkghxfthaclubnrnnsnbxvzzqfrocosyigaivvjrfheasegeqicylpjygmvjpdbbxdialggtclnkgbeubkahsairnzrynnihfkowxqmuyroptaahslmauvppihqxbplrzrxpxujxqmbteqlkmjibiyvailaqtizqslbmcehpuzdzvzlagiuvmccxxsddbyfahwcnmhkccmsbokvdhpgekdbmjpxcdsvjobhqbohskkcdsfysowwyowfrnzgalth
237 214 162 146 113 120 236 118 2 135 127...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #128:

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

input:

295
zvlkfalxtwjhrjthrtggwyyprxigunideezbxecyikqyjzdbibzwkycphegaybwkbxpnxrzbjrwuxmhyrslrixiqnrnermsbkgixineiznnxrivsphmhvqotaxhnuqhzdbhsrthlfqglxikndmlrxghzwplwxhovnabukbqbfosfgbsjmuuxshyxbpmjvawahjodironqdtepruhpogfewdfzctsizwlzdodzxxoiqtdbbmymbgsdzqipkbreififnmcgikradcouyoqtvugwivwqfnpdkyjpbiiezez...

output:

zwaksrpbjrbdoifdjbbqaqrxobxlhktdjsrguqsugmqpohgzzkarvcoxeaautxogiqshmpqmtlwhmheyzdyxoxrbguuozujmtpngbgxlyklxnpoirpybbmyfqsmbensvvhcigvpupkrhrfinrdxtdifrcdzmhznbwpgkqwxykynvbidfbhzisyrxlwecxohgkoiukzhelrjqjwjbjdttzhvbifxtfaidfzsnnwhyxkeneealpmiwrnnivpyiwienxhgiqiiwhidfysrdneiwbdzwzxxgeqizrcltubb
249 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #129:

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

input:

282
igfipxkmzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvp...

output:

iorsrjqddpbpnajdybqywngjayovbrerqphbkhscvmtnejmwhiniczlbaaukmxmijiqrtpfqccnveakoxlkkgzjalxhrjnhdbpdywvrqopwugopfrspgktashotqjacnciylwgugwliqcpcakfemqctlnxhlumlhlerkrcdvckwvgprcpuqumdwmihmyuxnplhlzhapeoysyjmnocngcysfzytzeexiyqtyeekkkucpgxocvlqzakzlxmvprfdapkpvrrmllbcfnoyuwzvksoaofxq
173 11 227 73 5 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #130:

score: 13
Accepted
time: 4ms
memory: 6520kb

input:

269
mrburyhzaenygpxqgcfhahfvxremmtrznybleszannhqowfrtkjzjxiovpbvrrysbpddjbpxrcfijdjiwijflmnnjmkmrburyhzaenygpxqgcfhahfvxremmtrznybleszannhqowfrtkjzjxiovpbvrrysbpddjbpxrcfijdjiwijflmnnjmkmrburyhzaenygpxqgcfhahfvxremmtrznybleszannhqowfrtkjzjxiovpbvrrysbpddjbpxrcfijdjiwijflmnnjmkmrburyhzaenygpxqgcfhahf...

output:

meriahpgsoszwqhnijsdqwppuezxhnmqhrqyqzgrmwzhfrfymvykkfschckeahvjylrnlnkhobwqqzxespbhfhldecvejojfcbggcrjhdvakienjgqlnkofxfbioxdiyniprapqzujkobdpjbquwzoqfqmjvzmdnilocgtdkpyktschdrqddtrotdlhtwtzmpzxultnqsksrfnwxhrnjebaxsppmtiqnauztrjedxjmndqkpmekpvvzhdrvfyjsbtvbnrlmbkbrox
182 219 98 207 148 223 256 113...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #131:

score: 13
Accepted
time: 4ms
memory: 7008kb

input:

255
zrcrgrfjuganivhaovxgkdcbpquifkzlgnjizumqvggsbsymdgvvyjwdiwsobduqkzqtckcxneqznejxujzxllqxxucqleqptiecphxlsiwpwemwobwwooikfraqietisborevtzqedmrbkwmynkqoqjbkspwjsxuaqposygpsuhtgshsyrjetvvsweukmuqhswmyedhchlkvpaxcdjksnmqfpkwluqgdjtbxewsavvnqvbodcvamqpgnpwbhmdzrcrgrfjuganivhaovxgkdcbpquifkzlgnjizumqv...

output:

zthzssgkjxooeziekxhwxudvdyewdjxcbrfqocxwykmcvsojupxwqxbsjkvsunxgrbqmylcdlwgijgqtknvyuuspuszpjqvlmksputlynadeiawwlegwthqinpmimpnjbkdovaqveqppzhwfkjhxsewitcqgwvqkkytjvcpvdrzoavdgckcbgmsdhbesiowredsfqpjqbvqwfgknqrmetuozpwvqmmqcabenbblsrmaquuxoihgrqgslasinehu
170 109 148 70 142 151 184 135 18 101 197 23...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #132:

score: 13
Accepted
time: 4ms
memory: 7036kb

input:

293
buoxflctinsyenrjbzmlnqjyeqykfcdulqxnqnqwyudpddoydpankmiwwjbmhqykxjhkwcrbuoxflctinsyenrjbzmlnqjyeqykfcdulqxnqnqwyudpddoydpankmiwwjbmhqykxjhkwcrbuoxflctinsyenrjbzmlnqjyeqykfcdulqxnqnqwyudpddoydpankmiwwjbmhqykxjhkwcrbuoxflctinsyenrjbzmlnqjyeqykfcdulqxnqnqwyudpddoydpankmiwwjbmhqykxjhkwcrbuoxflctinsy...

output:

bmyypqesxezfftybqnrnjslehrkuvwcswdlqkkwcgcdnfmdfwervhhweyjxnhwdkuxhuyugvossajaehavysrklxwfsiznlcbqyqfzprddfynftiyheqehchgcaamcaxpcamyqycbzovwimowjejnjlaeqcfqtsmrvtxkbjagaiplpzyiplaksbzykqufadfcxulfyxdsjqwycainqoxpkvycjobuwvoycnlffvgdudndgwysrrsochldolxafwumscepbhttndejtrmhwwfuyulsyjjjzlprrexv
65 87 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #133:

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

input:

280
xotqwqdtezpzqraoaeqvjjtizhcfvsdalmfkwgtacmggmnogxcwwnqrcqoufsefelhgswoqqzdmtxqpryjrkluxafkffldpfdnwzaedvlffddmzalqmkazxjgsvupfzbqlvjsebixclcllhqgoioxnvfzpuujgswxpanhawuekxotqwqdtezpzqraoaeqvjjtizhcfvsdalmfkwgtacmggmnogxcwwnqrcqoufsefelhgswoqqzdmtxqpryjrkluxafkffldpfdnwzaedvlffddmzalqmkazxjgsvupf...

output:

xvjrcanttgelggdxlsfnsgzdwmsihfjzqztawsedmdgibqcmipjmxwjvpqxnsbtrxpxlqaflrwcmabvcoulhqinzyngqhngmvvpjdfziftpbfmksqxlgancbqupvmcjndtjjrtwqcgwfunmufwuxlwucerostzozrzzmjjqdeoiwjzaoaggpuboamlafbefgeaxqlgudofmekvawkleakqfzkolllgtdcujppllpgfxsfwwtqkdyhwfdpwfnlknfgvqfrhxcroaeqvtdrftovdeu
176 202 89 242 17 6...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #134:

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

input:

267
nbimtggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

output:

nhsgslepulirfwcrlypedhtyltjtwzxsyrpsgovoqlueitptpndpudjookmcpcvlatmtopakxgfiozxpyddbwujjwqkruipbflaiewpkchzszbarkjlsxdnprixfnppxyjubyfcxxreiwrhmsdiqefzpkrnvoauwwusqnmnwwvbuwxjspvopdenwygfegcaivqyavkklmfyubjqzfyoeqgfzgoofzismdrnzgafvvpbyrfzhhevnrltyrvtocsmbbjpsfqqdgxb
96 106 30 193 129 52 229 33 140 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #135:

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

input:

254
nlnhcsainrxoxwybirjnjhbwbwucabuixrgnerctpmsrlmujglfyfeynsxnlnhcsainrxoxwybirjnjhbwbwucabuixrgnerctpmsrlmujglfyfeynsxnlnhcsainrxoxwybirjnjhbwbwucabuixrgnerctpmsrlmujglfyfeynsxnlnhcsainrxoxwybirjnjhbwbwucabuixrgnerctpmsrlmujglfyfeynsxnlnhcsainrxoxwybirjnjhbwbwucabuixrgnerctpmsrlmujglfyfeynsxnlnhcs...

output:

niqujxhyxsgzszfktnabrrvansmodhvednawyjzqyqlcbpbkymaatsjiznihdxdykcgmqafjeztctbsdncsznyaighkrfusesxfqjginivcwkkyhgyyrcesfzrwpnykohgxlfiwxwjfznloykctzzofftbogcrrxnygbamycpgwhzrvwxmemqeydvhrhwihmtcbsxwowfsdbeujxddfzunrhftkhojtdjorpuxshwbxxbiclaarvyfgdexvbtl
240 138 203 249 69 134 246 214 158 70 36 79 4...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Subtask #7:

score: 25
Accepted

Dependency #6:

100%
Accepted

Test #136:

score: 25
Accepted
time: 3ms
memory: 5864kb

input:

279
lirnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnr...

output:

lfvajiqyhazeyeiagqldbirqhegialcmuckccrbkummucmjwvetvofwcwoxnfzgdgljopzrlwyewsrevdramihkrwpczrigyywzpoboztxlcuqphhfylljftichffzbjktvwnjiuqrtvijfylolaqabigjwkpcyihilezzyqpzznlqqzzvialbjqxdpdcnvuyrmiymlybdcdhiyamvemouylhxwjzfshmvfrgpmypbdhltqeckdahbijlfgrhgyswgwyvofnbkvkyppfsugbwhu
141 43 224 179 172 7...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #137:

score: 25
Accepted
time: 3ms
memory: 7012kb

input:

265
hofaumdtuurnczvlnrnjtajuipifkrmbhgyrthclqfgxozeojkweqhcqexkvbfzpgiudplencgekesmqnndectokikcgcxsqfuocffykxqijtqptxgrcihvwaorlfxprmntpbepxhhggrhzislguwsuhanencogcwwlyrqckmaaukaxgrcihvwaorlfxprmntpbepxhhggrhzislguwsuhanencogcwwlyrqckmaaukaxgrcihvwaorlfxprmntpbepxhhggrhzislguwsuhanencogcwwlyrqckmaau...

output:

heymbyqcacjocvwfdifedrqpmzyrlzfeoqkhalltohlpshcfacrimxneuegteawwzuccmkeqhypmkrgqreenvjictubhnrxnudgccmdnefacqjlaetphwuiufciuaccfqxasnrdppphediugkzuvxngtmpngffgjlcphxbuspyoeaneqiwckgopzxconverxtepxgesbqoifqkuvcnnztjqwcqjnprotlurbthqloskilkzakqyhubrgoihjnwlngykcbvnft
249 39 31 23 247 70 204 212 154 41...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #138:

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

input:

252
lvslllnuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

lelsvrbparzazeaazwzlpirscncgcknyaskzdzrvhqoerugthjghlvetvhcmiqdizxigvzmmcyvzqdwqxcthqhlzzmgdsawrbyftfhlmxuppqpthvwgijikmkdvyfivondoyqbbywlwyeijsbwqyluxiihidsyaahnvuufisbfpacjenqswgbleujdtbyggdulpoyvqqkdjlzzhvrbqkypzonmapyspclbtdqcalriirsscviqbxbgcumgpn
69 20 126 74 50 23 49 1 249 68 85 173 170 139 8...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #139:

score: 25
Accepted
time: 3ms
memory: 6500kb

input:

290
mkpazbuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

mvuuglfxtehsbuccddysaulfeiohtaghwsluvzuivdtsaasbzimqtduimemzbehwrvndnkblkfqoppgkqyjpilinamtmionuboyvrseyvjkdpwacfkbjhonxbhtczkwxdxyfyuyiimyqrulhlalhywpsdgfsopajeshdnebtmblyfdwokvxgukehssakbqccnmvbnttwiypmvgpvlfpbyckullpnfvsnjdqikbtnuphlspimninzekzuqnhpnawkoieojwfzdjowdqmkjxkhzizfosobdsthxm
126 155 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #140:

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

input:

277
hpnajknenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenene...

output:

hrbbabntxvrfchuizvesainhztxrkalenvbovemfqerenfxuowacoxaqkktrmkszuiaxqftacxpklyeajjevaaeliwtepujjcvalsclbsdalqbdbalmgqfztmlrsjokrljxudeqfqtaaqacvdgotikiflnguaafokfumbuhqxopaatweasygnqeftrxtnvbcafgixudmslgbuzoasqwsdqtwjrndnwrtbwqpbkdfvivxykahgcjwqssdefrihkzzqayneelnvursxhbaxkxsp
93 239 8 253 5 229 156...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #141:

score: 25
Accepted
time: 3ms
memory: 6060kb

input:

263
dimxwxklkzzvbsmkkcqlxbqckaoeshmipbwqcgqgzvyxcicztpgftiaxmqmgdkecwfpbeplhhwkfilcbisdsnaiihgcqvzurdimxwxklkzzvbsmkkcqlxbqckaoeshmipbwqcgqgzvyxcicztpgftiaxmqmgdkecwfpbeplhhwkfilcbisdsnaiihgcqvzurdimxwxklkzzvbsmkkcqlxbqckaoeshmipbwqcgqgzvyxcicztpgftiaxmqmgdkecwfpbeplhhwkfilcbisdsnaiihgcqvzurdimxwxkl...

output:

dfvnjgiyrdelpvsylaliipklatdbsycndnfwwgioyjtzvicrjrlfcxbrkwupdgnvbuswfmarltwxekzxazyvfodvdpyfntsixpaqcgcracrytjogkqwekhbxvikbtcrgggiqqctkmhqwlvpighsfxrfnqbkqhqdpimhmhohitdwzjqmjrunkicfjqsohaazxqfhtkbqgproihgwudlpxyzawtvdmpemvcqiwgfgmvrcecupzesghxwdkxcmmbxdwzbvpukx
131 64 184 99 113 29 30 6 79 151 95 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #142:

score: 25
Accepted
time: 4ms
memory: 7060kb

input:

250
rnrotfjchmmqtfvgehxyjrepoeikghjpdnygpsudolabrfeliyarfvkkendzhnakhynilsudytljsrjnjdxseashiawrvualofsgdjzgottambuepzbeerjgncbrjndzobutdeshfhmvbawxcrwxpdohemrgdebgskxbwldfeujthslncimlngnucyjraddsrfvommiczmjeovoabcofzfiglceofypahjvbaxdxkbvcjkcvhiiqwkdzlqrnrotfjchmmqtfvgehxyjrepoeikghjpdnygpsudolabrf...

output:

rtohpyxuetrzzdsvilrecjsoavjdhvzsoclaehhcurlgectileisjgaavformtuzftomcdnaxjkdvbmwysjqbetgioxdlxdinsagrornlwjzerjxhbbunhyvffjbsxubjkniqkedajfcadfacglbjizyenarhpvghddufeedjmnmwehfogwedfcshpsroobwdllkmoamvaxhckhbyqvksiontnkrkzrdbnliggndyrjfybppejmcgefupm
231 38 161 129 55 5 184 27 170 66 149 147 172 7 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #143:

score: 25
Accepted
time: 3ms
memory: 6416kb

input:

288
vazdijkuxgcgyvzobgadxehkbjzkyswgiiqfnilvfezhazonrochlnhtlrykmpjkofwxbcfmemememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememem...

output:

vqpqzlubhlanibsliiunegibxpgifwnweghntxwcgdxgfgixtqwykhavfpdhopnzucsfzicjdrxbwolmwyjqjmfkxflcurmalzazhnvxfqoxukhdqdopfthzjvkkpkzugxericgzcfqefzbtumnvxtuljitmxrnpaljfunfdyxduehgammetonauvsedaqovgdlsnwddowmmtziltkxxbdhhdreisunzmkmtgyhigclypjntlkeajrmmbawggftqdmmupwobcjwaxhtkfoxsexrqdtplzvfa
11 112 85 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #144:

score: 25
Accepted
time: 3ms
memory: 5908kb

input:

274
egrlpyuvvjsarrebtidphauhawjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...

output:

emoxaoyjeqeepziajopolauroyiiwnhprxyvdjadhxuhynynqtcrudxhzuawrpvbhhylnuixvuafjlypaqpraexmoargdtuancjysyckpicxgqytapkyprfiasdrgyglwqkvgiujlraxskiqxwfaptxeudmvrffhubzwzgrtkpiwlqajphtvkxoryalctvkmpzlhipwihsmxyjaexwrpggoasqawwuibdhfymuiwbawcpbrwosvwbrjfjaraavnddrviiyvklcmjajxaed
109 198 161 246 5 10 61 6...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #145:

score: 25
Accepted
time: 3ms
memory: 5652kb

input:

271
mnjvmzimlireoaegemqtdxenycllojmxdszwqxalgyxohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...

output:

mwbumsbfizqzhknyoexersefgaccoiplrnzbnyzhunsuimoclkrovaixzianorgppsscmjrgjlqzskslkqzkaprerxwalarpudlnedjxyemlgrynacyawpgpwyrelfxmioizbnnfynkolgemhfpjrmcbqoerncmrvtygtbjkdahbhxjxtvzxfkvftyxvdefhlrbelfuvndvvyqbkhkdojvsuhaewxfijyrejumypvnlirjtowxqcmzyyjqagsnidbkxbmmgnppfzace
138 243 206 50 187 214 141 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #146:

score: 25
Accepted
time: 3ms
memory: 7232kb

input:

258
pyojtbhbrqqrcsrqsedfeunlpzwznbgmehzjtrtcxjrshhdzlljpekhhnbgwashaagwbwrsieerljhtuctgysfcazmzjyigdbjjilxyjduvnndxaaqusvoefduxztyakoakhzvfmpxzlkweyjqiixrkwpqbccnwbpkjdzixuzqvvwfqnpcinbedfxxamsurvktgokypyojtbhbrqqrcsrqsedfeunlpzwznbgmehzjtrtcxjrshhdzlljpekhhnbgwashaagwbwrsieerljhtuctgysfcazmzjyigdbj...

output:

pcxyvrferdifagjjjtgkotyxhbgcrxslxoshwfohswixguegaxcqfcqvvzdznebxwbjdxzaepvnyyhudnwwvihnyqhyvhwuorlfaamtqozvjkbzqrqdukliqnexejpayamqmjszgqdmglefnjdrryhbzpustexjicwjckkjwtcjimhctmzempaitrkiqxsvxljwdklatahybteoaprjqjigkrneksrbdbkzlzkzkcamfdhfuufpnsisqflabqyqbdl
76 187 91 162 37 245 118 143 80 46 211 23...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #147:

score: 25
Accepted
time: 5ms
memory: 8320kb

input:

297
lcsycsqtiyhqwztoppbnpsttbgkbystovmffqzlkomtujhtcnsagickqnfeagrskxxufyovkpvexmsbyirasyavvonbwrqhxuhnvgwavcqhpjifyvxyzwufpdtvdxfckdzdneucloshktxxxvxsezgxjkgoulicazqgmcrasjbidcveeeswqljkgevzcptsyswofxvawdvyjqfkanzjgvmwjsllctnwfmqtxzlbtslhvcnmeevvjaocxldkmvgfumadzkfgwogdktwfxdczwaevjrdbpwyffnvvzckjl...

output:

lhfjgaywoxfifaktlvoukyxtfghsxyzskqqkogatnagjzkepgitkzdjxbxuvhzennfyqdfgxsyadgwylvrdfndhxozcsbemzycuvnjzvvrevtyqpnqbejxllcxdgcuecbvksfgumntcgovxqcklswwsvvaltjofcnfnswhymbaxlkaekabdrscgvdnmdecmxpkdtbzptlcptixwxvfcsjsavpdirtkzvicvqsagmjywkqfptucwomwvweqxqpcrmdtwvfzjhfjsvsvteosklivaehwzmfoyovscubsjzw
21...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #148:

score: 25
Accepted
time: 4ms
memory: 8484kb

input:

283
pmeuamhilassmpzhychdqqjlweqwtyomzymvjgcyppstwgubumnzzlxpvtawdbzyaqzthnibbwbjdpeeurgaqzqvvgaatwkddjtwsvoceqqteijipwrdqsfetkjalmmenubgyrymsptvcuvidonnabeyuwovontzrmwtcgxyvnmdqncllbqvoaraovsnxssqhdqamvladqlzzdvlohhnuhedhafabyeqthuyjkudabrtnhlwxasgwxzqapvncscfdhrawivnaldedyfwcwzibjuypyypmeuamhilassm...

output:

pyfcnulmnjqydpouqjptdldwpmuwswbwdmujqskqoztyampqdgeptvllquezesnygdazuzqedxqxyhhvwlvbnvwclfthmqaucluwwshzsvmygzqokeviwmcwgavzzdetiqyrbmvpibcbaybxjabbgvjbiitauyoaoddvtvuonqrtyfhhtoturjaldpeozqqnsdamtpdanixhpwwhgaytyhbncwbalcacwjsvaaaefirehymayxllgndvnvhzdzeqvtqdmsrjenseszrkaynrcnhamsw
26 187 61 204 16...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #149:

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

input:

270
ceywwlfrvyqfbysnfzxrvwtpimlwrgccsyvbjsalhbdxpcsxfrkrskihehectaxoogrhjdaefiiwuhvoxyyzbvbzfvyfcstpuuzocyfatgzfcmihqxbqinkbralkihiatvtxmtizxzsbkobpzwevzezynlytlsjuvzlzyjumdggpurvgwdhwtojcmrgswvevgiquhrehwqthkcqdcerervxibxnezfypqybmmxrzmjhchujzfvtllwputxnpubirptcaihuvkfcmvhceywwlfrvyqfbysnfzxrvwtpim...

output:

cmxgcqzrkwwwalvuvwizhnwtvectkzjyohcetzrjrczpxsbfukdsxsioxadtrrduxlvhzbhinbuxqvkdxfeflmbztrbclvgpwstygxffuzteybrcsmqbziyxtbziabnehscjjiezyiqsupcljrpmknyclutzbihwwuefholvergirpoavuvscrmzyshcmwioijhaxktafutgghqixhgempmokrvdyjhtnfvtvmywfzhhzqacxcflfeypvqbpybveyipwughyvrvlfr
36 229 175 5 240 53 192 246 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #150:

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

input:

256
nplegsmxfkerebbhslmbpdrjziiwrjbvfrbsvkfeeytoowxlmzyvuwnegrbyrqphgrtwqsxhjlgynctkdqhlckjmgkbxjaskgafktoguxxvmvhkxdfzwoyfhnikhkdrxmytwaxrfonxnuqgjauynyuysarmyvrjkdsrgzyqpmyavinbghwjowskjcxjrzfmzzdijimwrtfiopkarxcyvupngryudlvyzczrimrhooyargsyhvcpuisbyqhnrjrkdnplegsmxfkerebbhslmbpdrjziiwrjbvfrbsvkfe...

output:

njsoogwtxtaoaddfmpryoargwfherkngwmzkkxkdqwxijhjkumshvymjcfxjsqhbvyhyriybxzrfykgexsmlumabyfgiygtrhtrvrgrlvxctbhrzpbmjfshmwjabxjlcnxzyainxzykrwlfntrrkkbyrchvvnbdirgdsvzupoydgqurgmynspylnojhsapusvorujfdkjyrcclvdeziqyuvsxwkyeqfwaezqripuwignorkojkgxbrinmmyhpkze
18 227 254 240 220 239 125 185 67 198 238 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #151:

score: 25
Accepted
time: 4ms
memory: 7440kb

input:

295
?
dinrnuehnqzocvmugcntzsydnkehcsilrcqhfkbxlcjapvvtipklrvyxstcrccjoluodfzituvdvmukjcoktvibvfsoqrxsnwbwqqyhhhwoydupxqymjjsempivudwgmaynrmntxagjnbbfqrcseajiglpnypwzhsxakwlepxcjdinrnuehnqzocvmugcntzsydnkehcsilrcqhfkbxlcjapvvtipklrvyxstcrccjoluodfzituvdvmukjcoktvibvfsoqrxsnwbwqqyhhhwoydupxqymjjsempiv...

output:

xdzmtiobpjtprbnkrftyyjasumfreacycpdssuanxxcxviqpybnyvlhpcjiyehpnfptsuwbmgmfrsfetxcncafshrlqzodtiraqwifufilwzjppxdqvyczqxwtzxxqzbjhyffzpmuvuvyscqkwvytjvvtvnfwgniclsuiygjwcavwcrjndlnoezljtersvbswuomqvoevxaphfkmcprwbhsafrkgydkjgjwugyqvkpgcoehlrzcknmcclpgnzbchwlkmnfoqfdlxnpiobhduewvzkqqpgnohljehqou
210 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #152:

score: 25
Accepted
time: 3ms
memory: 5908kb

input:

281
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

vvtjmzyxopjngrbqeacixwtbanzfefbijynaldnelzijwxcjisgrqxpxmlfvvewduoixklpolgpxwmyjojsreglkhvefpelfshbmzbhgkyeeeclaiiaobciaejlthwmekzjlgpmutqcnztdcxhdhkifgqbeufwhceqvvcutvlvydvnxnmymscvoazgcglaihbpdehzyncyubsxzttuvejycoszstfpqvwtxyzchvxhxwhbpmzqjajhmraofryggokzlsgjcyuggyejxwzfrhyiwhn
224 237 10 227 220...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #153:

score: 25
Accepted
time: 3ms
memory: 5848kb

input:

268
iriririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririr...

output:

ipflamlwehnluecofcrhlchgbjjaehpligrysikjltbjlzzeswngvrioqrxdbmtunieiywwpiztvfehwllhbqklypfksdizrmnbsimbqfbryixjyshuwegyshozfaatpxkbzrlqnyjyvryaqxtjcwmlhkzsxxvjcoibtpjijxhbejqhwghuuvjjcabsprgdsmxkhxyrikfoekrssqpimfdkvglabsacylhumcticmaudabsmpjejajjumfvvpeojdasmshnydrcs
266 144 72 62 233 262 196 71 11...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #154:

score: 25
Accepted
time: 3ms
memory: 6532kb

input:

255
?
pyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonh...

output:

npywrqpwtokjtslffotacvqwvtmiicrkezpcgqobzrnsuiqjckrjrpjwronatheaxnysvzyygtsthkyobyhjytdhtjmxjzpfmtzthfmgfxdpphfwzeofbeoelnbywaqqowayijztcaqfggbywjtgoclxefncyjjcsyeemfxcrqvnaxdwfxfqnzmhzrzxzqottvhyezixjtcgvgunbvxcombfzqhvhgvszydxxkkfdqhibseotqzsppaxtfipghr
138 226 106 165 121 1 160 242 208 44 110 76 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #155:

score: 25
Accepted
time: 3ms
memory: 6696kb

input:

265
bmmeqhezlxurkjvniwptlzqlydxftibjrzyxeetmdecnufhhtxqtnqzzmpnafgtnxrdskqswpzmdiwxtwtwdmtibmtomzwzcuemqxasnhdoedjeqmdpywabmmeqhezlxurkjvniwptlzqlydxftibjrzyxeetmdecnufhhtxqtnqzzmpnafgtnxrdskqswpzmdiwxtwtwdmtibmtomzwzcuemqxasnhdoedjeqmdpywabmmeqhezlxurkjvniwptlzqlydxftibjrzyxeetmdecnufhhtxqtnqzzmpna...

output:

balqdsbeqcbdiqiiwuezghcssbewtetdpnntiqhuwlcnwrxdhlzxztfrvteujzqmzblhpioczlznggmtgmgoqxcfgtqypxltmyuumwsgszequkdjqjmxrfxwygzacjwqawumwhadqbgqnijcluavyaqzhoommvlngswyhtdpekveohlmyesxkxttnznfazvscbjztzjqmkpzkqitxllymxxkpqnoxwgfmzedcqmhnuyhxdasicirvqbypzehshmsyruetdedt
82 189 149 65 249 222 195 148 250 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #156:

score: 25
Accepted
time: 3ms
memory: 6272kb

input:

300
msvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlr...

output:

mjqqeltxlskhjnafvrmzorrukhkncxnezfjucsmqxfgdejfzxogpngescutmludycnlcewavylzvguqytobcorzgduuxcuskctwycdtjsmzzpuxvyjgqrlverduwoumnhneifemrkifuregwpbsdtwterrmcxtpgaxqyluwnfpbftsjjxgrohhrgljnxsujhbuswlnuysbqipsxdxrlrpppscplrzwskpycnntmrayxhezkksgxwgbuaqmfuppousrvajhaquvisrodoldjbbctemmqdccqhnxcglhralkji...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #157:

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

input:

288
etrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjet...

output:

epdtuxmtaaqkoslvvvqrdjgtmdlwmbxufwbatbiocbwwyvsnewzaajicgjwmxsubqwlbcbgshnjzohgczyhtuykuryvqbxqrlxjpfxpbcmdblavttlbgwqbinjaekzzjtfqjmndqhhompixdozvdtnklziazyiqbtuhgmzrzznsntibqywhudjjbvhlajobbaxdtpdihripkisoezdziwupfxytuoznruaurtnegzcrmrronpmllmcrtvkshzjenupngnpvvbfhuvbgrojwqusshvpdbfvdx
196 5 216 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #158:

score: 25
Accepted
time: 4ms
memory: 6920kb

input:

274
hukiiqpvojfuvjpnkwrccnjtqkignkbjacahjizrykywngrffvcsoqwmdpjtkoncyysbxvkgwhqgavozufqlewswxlglgzyjbnadbzaotnxhmwkikxqhgptqztglbbipplhtsfxvlzpwtljghkshpowibbobvqnmphnqnojryfvwfhsacdiajiaprtksffycxmijhhukiiqpvojfuvjpnkwrccnjtqkignkbjacahjizrykywngrffvcsoqwmdpjtkoncyysbxvkgwhqgavozufqlewswxlglgzyjbna...

output:

hjjkfeinthskxpucxricemwiftnzfancppuybzprblcmijxeifdvjpogvislafenmkvozalaoyffastjrkikojbnkxbzboxalsliwwodxwhfqhigbmgqjaccptuhtqssjnasatpxilwmrwvyiobdkkcjqkygthztfbpxqihznaknsbvtvklhwothwqoorjhvsznggycxqpwwloscovtwvvpyxoppilnvnyzpykzftogcqtzmqojlwphjopukbpqgjbzhnhjqnffniewcgn
251 30 195 235 135 92 61 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #159:

score: 25
Accepted
time: 2ms
memory: 5492kb

input:

260
?
wblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblu...

output:

awwpejvkrbhvtdwravaohvzdfxnyfpsqxgtrjltoniyccjmzanxhsacatxadakslmrjpgmxaobjyaxxaisozaieaawwxbvytyomvqgawntyvvorcavmjghbunmvygkbbjbeucuaidrsvaatxfuacdmcsnclmwrdtgdukxrujfbozhphsssufkjgdpuqmermminagdbbuijfbeudfrawtgeseietdliayypaeqrfrwpduekwddkczcnqgvqsjezrlaiup
1 199 36 244 256 259 12 158 252 34 211 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #160:

score: 25
Accepted
time: 3ms
memory: 6036kb

input:

298
iprtxilwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

output:

ixnrthurljecupvxapkagwarcrtmkqaqyajrqrghlevwcxpquawzslangcoailpaqugasbthvnahwuvmettvfoavarmlyodmkamyphsfbqjyzlqafyrrfayjwybadbqqwinxjhqlpawwbaxvwehapdvpaofvfbfxgaegswctqlaanpkdvuxlarfinacgdhptludizbpcgqgffnhpqzmasxjltkqwkynfksxwyrssfjvpdhnhvbqwdqmetacokzmyhnccmudnoirldaebehmwmlnmnkluhqxllpjpexzbig
1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #161:

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

input:

285
ctroifnwidurzzodpgxgmaluwcacqywdptmrtxtoynpehfngkzwgzeskzzdhhabvyapylhvnqxyquoygrxqhzvbhnlnevzuzegrfyjijazdaodzjpkvxhktdjsbhieyqbpgkibalejaiiifcmfgxxxvtqsosjklqytbnlznnoykhghzvbvurjonmcqltpakthrxqvdkbaysgatkcwuejssjgkpvpustzaepgsyhhmeonnnkgwahvagccsdiktgdpnnzahywncughrfasbuaoecoqbgaghctroifnwidu...

output:

cyqjsfnzocqgtvgnbnllyirkrpzyldgbsrpzxkvcgitsuyznhajfrwdiarhsxmnkaowcalnghggjvhtbfngplazauhwarkubbzezpahowskdewpvhnchnjqnaavepyfggxqfcqdaakvlqygwuetzevfuzgxsgnhqhqcvnotcdkthsigybgozubsxqbkptyjjtoezjzbhaijnytxkdtkdspakykamuntdivxoyuhhdchqhgvznjtsmecigzvbouxwzkdirmgyxlayoaremenhpeaopopis
193 144 150 86...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #162:

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

input:

272
hnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhn...

output:

haqaaaktfwularaaxaaaosspywaraiaadhgboglabudvrdcirfvvlrztkbticxhchctzvfmuuhccrdmifpqwwjftdtxvwxinfngrahtvrvkghksgweavzhfedkimlnbxzursslacechmpzagsnjbheuptaaffqhqjajwbokvrqdicmwcemcvajctjmnjsytgxtmuckrftiayweytqaydltlzaozyqbnrtjalntnqmpklurxzvjtmzbwhtkeytgmdtzawbfvjpjtwedtn
272 2 75 4 5 63 176 133 237...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #163:

score: 25
Accepted
time: 3ms
memory: 6488kb

input:

258
rypexyssdkvzaerfdylspsceeeteboujgkrzgpmattseipkochgvmhuoxdijzakebqlrnzpfsnjeumoyrvxvvowjgkeusrmyhjqlbskpshimvujujyjdnfrypexyssdkvzaerfdylspsceeeteboujgkrzgpmattseipkochgvmhuoxdijzakebqlrnzpfsnjeumoyrvxvvowjgkeusrmyhjqlbskpshimvujujyjdnfrypexyssdkvzaerfdylspsceeeteboujgkrzgpmattseipkochgvmhuoxdij...

output:

rujgcrmztukijtuhfvelrcedzeqfjjlsvmcxjsjcaalrbswpdjuxgoepekimpzikdhuvjuefzvzprvhmujgjtrypvokgiskeagmzbsymosrrlukskugtsaganeorojufalssjzdmuynxetqcbtwgzneuirbjlwqpenqabjbncdjivsvwvcegrbsmujntpdhkrxxruflgkpotibvsxsaggbxyfnjgghkjyepmqqljhdyyeshzkvrosewejemzzbaxvd
225 171 258 59 212 24 54 81 7 104 189 86 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #164:

score: 25
Accepted
time: 4ms
memory: 7264kb

input:

297
fdrcblwtcprkqeugfuhhenwafgprmginvlzufwwfahskdkcfxacdaazibipvibrrsudjjnrcpjlywrvywjqteciouiupgcqlbnfvjemzngrwsuzinunfvhxqiizfwjdhmtspfalzwkvjacelgucjmmtnbzdywbjqqevcojgnxtpygiqywjifvbtzzwcsrfdrcblwtcprkqeugfuhhenwafgprmginvlzufwwfahskdkcfxacdaazibipvibrrsudjjnrcpjlywrvywjqteciouiupgcqlbnfvjemzngr...

output:

fnjmawxkwctyzcwhffbzwaszsnmdpivwjajvfwrjbittneralfbyidemrfncggnsggqmoxziyogvetvnerquaizpyzbudetelgowmjqfojvbiywrilanzckgjxsnaldunuccjocbpqigivtalmmwzrcvgfbuwzanauvipttszjkkcwccohcxrqjvjlgudtslqphfteiwusgshurrlhwdhjbfiwagwhfuradfstxirybrhljbnwspkketgqizwnalhcenodowxnalbvgepgzglouyzgpmdzdsudvfcdqml
22...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #165:

score: 25
Accepted
time: 3ms
memory: 5520kb

input:

262
dhxncmaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoao...

output:

dacfahearbirarpfaactiabxaahdzserukoapsanvruiypnyjzpfzmdofpoohwxwpwkbdiaopdntnijldakghqhneajhhofqlmtmqudlvjwfrvncuhzotytyyshyqjsvltuwferacikuetagnsmlwahqkgapfzmaosyqruojqrdunzmgroukexzmlosepibdhthnqzfmfuwupdybcpivggluvhpqaljxgfoznnepwmnpiiudmocrfzofokxykxhenycsih
123 2 247 58 5 226 116 8 224 193 58 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #166:

score: 25
Accepted
time: 2ms
memory: 6060kb

input:

252
?
?
kziojgkncvaxatpnpoatxzvugzublnwihuisukkhxatdhtfshcstnmzfrikqlxblzbybghptlhthlykswpwsajbkpltoonrqxxrcyzmoixybtwcghlguzecjfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjrao...

output:

aakraaaaawajaaaaaaaazapaaaaaaaaaaaaaaajdpnbsqlfnjqtnwkfychxzrgkmpschbhzpwlsrtftonxivsgiidohcxyzjwejepudrnqkgomavfkqouujoarjosuzysmybwuwosfjcebzuglhgwptyxomzycrtxxqrnootlkbaswwsktylahthltphgbysbzlbxlqifzmnthicsfhdtaxhkzknusiuhinlbzguwvxtaophptaxvcngoizr
1 2 251 123 5 6 7 8 9 226 11 248 13 14 15 16 17...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #167:

score: 25
Accepted
time: 2ms
memory: 5424kb

input:

289
?
?
?
bklttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...

output:

aaabaaaaoqaaakmaraaawsjwtkagaamaaaadaagfaaaamjaaaaakaalleaaaadasjtaagoaalaaaaaaaaaaaadawyifaaaaaaaaaaaeaaaafyaetwcxaeixaaaaawaaaatanahasaaajaatauaaaaaaaaouaaaaapaqapeozwmifurejaudhiginengxrajmoaeupcdiewtgmxumgnseskcpwukvaakmiqwwdcxhhkswqpzomvkfreqljrjkrboutjzhigrjaccxqwnovokmdqlqyoefatghl
1 2 3 223 ...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #168:

score: 25
Accepted
time: 2ms
memory: 5392kb

input:

276
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

varcgcavantaktapaaarataflveraaazmlaazalcxapfbssambkazaalaeratgxrxaulnmavoracuyaahpmnehgqaswaaaafaaqazdkeajaaabatatvaajteaaabadmawaaasawaljaaannkkeqqozhbrnvstotzfczbpmeodpuggnmnxaiahwpmmrjsdbprpzxdgiwgtkgyzziwhiwfxqgzvxydalucnjisucyeivsptorvmadflxekljtfpguxqhheuntaprvfqgafjbnb
1 2 276 196 172 273 7 1...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #169:

score: 25
Accepted
time: 3ms
memory: 7572kb

input:

263
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
nmaotlnaoiyxipevcvqxkkurixqpglwyqaijvgxkjmyywiejxuzyfajchbcayohkmqnijxamevqgfcaifxtizgadksqbqjryyxoutmziogrsrgyjnruukhpgnzttrwcdmbrqfopkituqxuheohgalmnbuaxmfpcajjhfeupclkacthljcnckujvxljrfunssamohivgxssavcukbepztxgfsjxtxuxxrqxkhmqudxneaxryasnbpzprzaulnfsaqhspttjyn...

output:

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

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #170:

score: 25
Accepted
time: 3ms
memory: 7284kb

input:

250
?
?
axaubwiemjlkpkeugxgiufxhiqjwzvjpiwlcdnknhsqndzfeekruzjkobtuqmxyngrmlmnwzbatednwhhxntusskoctgbejlfntvjvszmmhnaxtbetcwpmlfrbxgxplilhlccqwprxdrjzpuxknyaynnuszrkhxcbufirlcryaceybwezwpmnliopdnwcxlxehwkkcuhsnrlntyurnvoybjnqulorytthvpzprammthisemgakzjtzdkzkaxaubwiemjlkpkeugxgiufxhiqjwzvjpiwlcdnknhs...

output:

kzadztzkaglemledsrihtrmmyapzgvhttyrsozqnzyovbnrcynllrnshkkwxxcfnwdepoinmpkzewbcajyrkclrawifbxruezsnwyayxupnzdcxwnprpqchhcluuhlipxxbrflmqpwctebtnrmewmzvjvtjlbguttwjokssunxhhntakbzjdnglmmrkgyxmqutnojukeefzldnsnhnkncjlwipjvbwjqihxucigxhuetkpklmeuibuafxx
3 1 249 176 4 5 179 7 8 9 184 180 10 63 13 212 15...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #171:

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

input:

251
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqfqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqyqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqfqqqqqqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqyqqqqqqqqqqqqqqqqqqqqqqqqqqq
37 91 247 150 181 17 26 169 41 133 92 49 121 168...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #172:

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

input:

290
kkkkkkkkkkkskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...

output:

kkkkkkkkkkkkkkkkkakkkkkkkkkkkkkkkkkkmkkkkkkkkakkakkkakkkkakkkakkkkkakkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkakkakkkkakkkkkkkkkkkkakkkakkaaakkkkakkkkkkkkkkkkkaakkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
263 290 2...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #173:

score: 25
Accepted
time: 2ms
memory: 5544kb

input:

276
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

output:

wwwwwwwwwwwwwwwwaawwwwwawwwwwwwwwwawwwawwwwwwwwwwwwwwwwwwwwfawwwwwwawwwwwwwwwwawwwwwwwwwwwwawawwwwwwwwwwwwwawwwwwwwawwwwwawwwwwwawwwwwwwwwwwawwwwwwawwwwawwwwwwwwwawwwwwwwwwwwwwwwwwwwwawwwwwwwwwwwwwwwwwwwwwaawwwwwwaawwwaawwawwwwwwwawwwwawwwxwwwwwwwwwwwwwawwwwwwwwawwwwwwwwwwwww
276 276 276 276 276 276...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #174:

score: 25
Accepted
time: 4ms
memory: 7632kb

input:

262
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeekeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeieeeeeeeeeeeeeeeeeeeyeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...

output:

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeekeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeieeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeyeeee
128 242 173 250 262 18 198 22 226 152...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #175:

score: 25
Accepted
time: 3ms
memory: 6080kb

input:

300
pppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppnpppp...

output:

ppppppppppppappppppppppppppppppppppppppppppppppappppapappppppppppppppapppppppppappppppppppppppppppppapppapppppppappppapappppppppppppppppppppppkpppppppppppppppppppppppppppppppapppppppppappappppppppppppplpppppppapappappappppppppnpppppppppppppapppppppppppppappppppappappppapappppppppppappppppppppppapppp...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #176:

score: 25
Accepted
time: 4ms
memory: 8016kb

input:

300
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeesssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #177:

score: 25
Accepted
time: 4ms
memory: 7900kb

input:

300
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

output:

kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkgkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #178:

score: 25
Accepted
time: 2ms
memory: 6948kb

input:

300
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnsnnnnn...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #179:

score: 25
Accepted
time: 4ms
memory: 8792kb

input:

300
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqfqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #180:

score: 25
Accepted
time: 4ms
memory: 7088kb

input:

300
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvtttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...

output:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvtvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Subtask #8:

score: 10
Accepted

Dependency #6:

100%
Accepted

Test #181:

score: 10
Accepted
time: 93ms
memory: 117448kb

input:

1981
wcxdytnmefmpbpdlaulslnrcydjzzzbetynstxnbcomfzmvldenrzfrvpsydtxbccvfydggevgubmofmgfopwewdrfofdznfevknffcniychezdvlnwumynjycbydjzzzbetynstxnbcomfzmvldenrzfrvpsydtxbccvfydggevgubmofmgfopwewdrfofdznfevknffcniychezdvlnwumynjycbydjzzzbetynstxnbcomfzmvldenrzfrvpsydtxbccvfydggevgubmofmgfopwewdrfofdznfe...

output:

wjjtyyjsikbuwvtxpfwiwoqirfleeswsywstzmmuvsumttlblqxsypctxyhomcluwpwhbifcobegbnrltzfikqyknvgvgcjpdqxwbukfjrustkhvnypmznbhbyxabgbfcruhyqlmomyensuuxbrjvlceufbtsyyhlnnoqzrgecmayawjszqujuntgatxbrooyfgpiuukesgptbffmpufctvahtamvndgvdmzxocbyvvueplxhhliegskwehwlzgpaoldqyxxqiajpefoavnukcvycrmcrlgiefujvwvnmuvu...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #182:

score: 10
Accepted
time: 104ms
memory: 124608kb

input:

1994
hjusebxsvofgeshlqkzuwrcfvlokcodospovwycuylzevtqqdfhdyepbipqnmrwcvsqztwrndyqhzrhftfwrsozyjnjpgzmylbtboxexxqknitcvbsqovaslserjmkicawherlrncayemftqyjbbpthleozuyvzbcubejjamvxuqcbaqphuntbukuiorsnxatipplfpfrnofampscdsasoywpoafrnvbdcsrxpfkfmjkjmcsvwwsjwzbbjahjusebxsvofgeshlqkzuwrcfvlokcodospovwycuylze...

output:

hysafnnnragmbvkknkjrqbvdfmfpwqxbdatwuhnywubrypqbhacpqiquivdwdmzjluawhxamtqzvwhrrfytbabuiyzuvrhwuvyyzaboyssfwtgnmdxxkoldfoopgbvgyijfbosvbtfgdqxsykjxtgajtzayyglbxczeywmjblbbxglwmzffqrtwyczauwflgabkvalrsuwbdxpzikaanmelgkbalqwuystfxfanvcivdcflwwsctnecxwkzbuhphgvgmkcuoepxxywrzirzdrrzzzawyllozmvdvauzyymgm...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #183:

score: 10
Accepted
time: 95ms
memory: 119548kb

input:

1972
wmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassy...

output:

waexhlqnfcovvewvaetntuucoifgqhvjbgxcsnjyakjmzhakrixmjjnrofwrlyelklwzuslokgtsznkkdfftsrkypaoqtqtlneyfobjpxxkgspbqgiqvzveobkdkpwvlgsorbzburvmfallqrwruijyzqcdtiiclipeqqeuvobzldwagtsjlcxcdafuizsbqmqmfwaivyjbhdrjdrjaehsazrgiabkuyfyzgoujusfvwxrfzaxoyuuxzonbrpozbejcdbiweonozbduwangmxajlzzwrstgkxsffjehcpaen...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #184:

score: 10
Accepted
time: 95ms
memory: 106688kb

input:

1917
sltbfutpxvuhzxkaujlauxbmvbptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgr...

output:

szrzwqqqysvspqybnjucymzwzmpnmcltojlbxbubinsjrlitxykntmvzkucgaatngqqlijpdoyhfhhgjtextbatwbsmztdmrfcxclticcbhwqzgiqzbgamdsfviyhnbuyvcjgmaenhbkygdedujkuvdckxfnkpebwulqwefstqhdwpecyhwovacgljznkyqjdhxvrkruogrkumpbgtwvokplyrmqkfgejtyayapmjnldvehxnrgqiufugvaumpkpelvhhpihzfecfyvxqtslztaitdxchgplycpjbbaakjxw...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #185:

score: 10
Accepted
time: 110ms
memory: 115740kb

input:

1996
feqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqsh...

output:

fdeowsdcrxqthzyagyvigmogovcfgajvdzdidauvdatscysqcpylsyopevkjdeeitgdcevwypsyfkwswfsgnogiufhqugyywfjjipufvggekawuodoepryiuxgwomecfmjixjvvtnkchorprurokvbavedpleveltupcgaktcxbuuxwagwxjoywmxqjdyrzqczbhwpubmogmptdjfqmhvkwyxyfzwiengttxuatlxzabeetzoxmoanqudkezmlntmvysrajaxjrvnscvuwdfzpknxihlxgpcmapfdlzkjzcq...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #186:

score: 10
Accepted
time: 106ms
memory: 125400kb

input:

1941
eqwqfjwuerndnphcpfcmknzwjpysdqvzfpbvdutmrxlygtorwnopuxmwtivumbmafpuyqdhcheowqmmyqnheyijhsnmtmvdpctpoxfpylchpofowhqhkxweofxvrsnuzanhtvdoxddtulbvziyqqmhmydtomfbljisrhhihggbtrdzdaciojqizmqqntmogsoaicmhbmlqamfqcouwhhipwbtlbulcpdkzbsnlmnaoflzilyinnugabmtfsljrlszlqyxhnvfgreplvxlggxmqaecjbvlqqbhxsokki...

output:

ehosqieitgqabzpbcmrgexbrrerryrkecanditfhmtcqphbmlisfghpamcfbmhmoqmdqduoxroriqjgypfasiwkxjfszbanlurcgowejizxbroeddmrwmcmiljuvzyqfaafhgyljqqsmnlltspikzimixmrqsiogbztojskyxcioefwawklonqvvlvxwcdwrtqcoxzdjzhvqeaexvtkfvgopamzwrbimqhotjgpxphxvpdqoeobuezmijmziftdnjidcecgxjvzivszxlaawekuojpmytqchfzztqqlbqljz...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #187:

score: 10
Accepted
time: 121ms
memory: 195420kb

input:

1987
tgeyotqnxqflxecdhkpvfuiablbmuisoocrqqlpdnjfukwxraplqdtwhutpvtnapjzeanhyvkqfcanbjoejfzurrooyyqjtczrqwmucgtrboipniiixkpwnlfqbhoyiepscksondkxmjffxeertiwluartdxewbkzbwjlrcgswwyapksxrtbkigqlcviemjezzhvgqlhnqstshvbthnzgemwybfawkciurfbfkjsfxjramwddbtpyqpcbbgaeqoejanxwfyeybuhozvudhdsszrdchnejkszgxafpaw...

output:

tpxolrtuvwxcydekvjmikwjocomfcmucelihwdqgzsujcwbjfuormjfbrrzahkkqsfnozquyrxosnpdaisibegpcampaxkupzffpvnarckiodqpnfgvudbupfqhzajndxcozkqyglgokaiimatdbymdjozhainhakqpwigtismjkxljrxugqirxnfqhrkbflvevsaqqxknuuqsxsfremsrrzarbeswenxxxwcyynawanbbkmsqmzxjbownhkcaxorejekaypzxsbtojoqyafmsevrztfzfxrxphnsmdqrbgx...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #188:

score: 10
Accepted
time: 67ms
memory: 114984kb

input:

1965
menlcbtfmqhdgfvfcaygutptszaxbdptfalbuiauxpakfynykjnbqqjxfhvnrrofewiekryemzaulfvwpledzkqzunxsdegikwqhuqrcznohskbpvhuumlbbessbzoxohkelqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgs...

output:

mkyxcvajveaynnrzsyruxhouhteeeezrfbpgxpfefesepjrdfynqyxcvcispaqrmdlmrbrxciqunudfbqdrtdshevqhjbwvmsyggfbdipcedbfrqlkcjdsorrojraatnwrproszeqpmnfndkqusftcadephujwbrrabxpugwootlltyppuvikasjiaijthuiphtbailexwcriuuhabygysxwjvymdygtffgcmtguzqjfdwvltlkipkywkrdzsrieqjsddjlbtxvxonizalxzemeevqpirtppcphmoqkxxmvj...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #189:

score: 10
Accepted
time: 96ms
memory: 105148kb

input:

1910
qupypfdwyqgfrazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazaz...

output:

qfgpxrlyjrhmaubhqcqnkdadvkzkarvjbmnhrhszmjmuvteiarrxocyxbblrktnfufxewwiuajizsgxuyyqrrcnqbhjrrocbzblsffuaryucqzhvmpaicgeopwpbzpldodrlhujhfadwuwgcspbjvydvhyyjdvvxdezklgujwghkvdeeowubljqhvyqmxqelkxaqkzcbslcaacgwfewukrcvpckvfkyxcmlrdlfxngfnbzbachlrjyfwfpqsyamqfwqudkyvnmnoacnabxhpybannxmcsiyvsysqvrdmucuz...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #190:

score: 10
Accepted
time: 96ms
memory: 135352kb

input:

1998
jkbavtzrmvibannvhwdgrulvyhswfvmnybfqrilitxocbzzatammmflrrkpxnxgomlubfkahytnfdfxrrxpwajlngjcufojzclnppeagvrotdbvkkjsouxittffbulzzysxqmtmzhfpvpeznflkzfvrwxwjkbavtzrmvibannvhwdgrulvyhswfvmnybfqrilitxocbzzatammmflrrkpxnxgomlubfkahytnfdfxrrxpwajlngjcufojzclnppeagvrotdbvkkjsouxittffbulzzysxqmtmzhfpvp...

output:

jwjtqymanyunbfiynutgkcyngyjxigiotokjnbmuurgrvjtgdfkanptftefacrafdxtlbfsftmuydlqvrrocqjgcywgdbazvmdtmoqslldxzppktbszxsioguzltbehstkdmrynhqedcvvvkurgityjihbnuaefmwgsmdbftpvxitaskxjmovbrvcnunjmpbsigsrusrdupdwvennwbcgixpfuhokvjlkklruytxakywisgfzaictgvkiykazxokvdkkofgppfpapdcmhxsxqzvwsgapuaqwueduajlpggnw...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #191:

score: 10
Accepted
time: 71ms
memory: 110052kb

input:

1910
vimpbjgdrfjnlyyhnuzghiecsbgfxnkpxqklaqpmgglakjxxqommluewhnnfpihdytensaycmbrpepvlmnoowubzwvqzckwlqqjljcsoixsnlbnxnqcerzpjrmmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmux...

output:

viwbhsbmuartjzpqdjcvlebxpjzqhmoagjzbardgsopvmfdnxerzdrcbiygvtifazjjtoqitckllqeitveyepvftjnmnshjtjgbtwtzrhfxhfaihhvvfuxdavyflvtuotyjizwbxeouvpftnvmyiawpklqnmeagosnrhhautbwnjtyspzkiemqbjpmuksjsggmjknlcdzkwdpjrykwnepuswglqtzcpqdxdifhlsnebltfcckzosaictucieuppkvpxuasjchxtfcfijgmqxkhvkdzqiqwwmhleqtqyfwqnn...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #192:

score: 10
Accepted
time: 88ms
memory: 131804kb

input:

1989
diddssubvuygwujkmnbtymttqyhwilaaethubptfevoxprvngapilphvytpcsdphknmyxrvwjhnykdptnlgmjopuaevusyxhrifodrggvjgxzqzuztpwpotkwebitdpqzfhhkbhvgwneiljcikclowsozguygtwislgwckphzswkyswbjjdeaqyfejppzocwdvqkzabdsduxtohqzswzjrescppfhhnhqniczpixqqskruvdrjgdblxrjwcmcsigfkaxhiffgbdbkvfkacynvapnnuwmxgzmjecqdss...

output:

dbvlpczaejepexrepfpjzqhokaqblzyvalrgnenxjxidlclcirinzckjqhadoquuvyurqyaensjeqestwtnqtkrzsnblqxnfazxnfvgeurytjxcsabxwvkjwmwcqknmtoztppfkdxvofzhgrcpsbopsaahryqrnuumzpsclwbryywkexadjvghhavrlavkhyalmmkidaulpbysyxhjarcskqydizxyhwowvjetjcrcqqbnimkzidufqfpzphopfwhglyledzhyggtswhhdwtolxhigoahwhnuynplvpfcctp...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #193:

score: 10
Accepted
time: 92ms
memory: 118640kb

input:

1934
uomnzfshftvzomqrisjphgafjzymsoalysejkdfpblyofzwcejbxabhderobokqkzclttvlxmfbwqpiqrqkieasxarxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwf...

output:

uvsbyexebheehiskosnzjafjzermnkywpfjzzzkudthyjazzhxpsqrqoepxcpfwpivuycazibxqcmvfftzfpuyfumnsvpcsubqymkdlcpsrogzthjkmgqhudacjxuftsabxugkievlncqgboxfjxactozlpigwhguivictqvwfkiieoxrvnqmmwgnqryvambkprgqmulcobwzcqiacttrunnqzsqepsipwnldtftkbutqwrqbzemrmoqpliwibgfwgnnrzbcnrfpqfkqmzliuhvbrxkyxrkhbfuujbwrxgrg...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #194:

score: 10
Accepted
time: 89ms
memory: 135252kb

input:

1912
mxhviqfqagdyjghwxpentmntyhdgtycbyhhwewfunygnndrtepeibhafbbzkaxllqujkuoptosvnujukqwuckzhwyfisjwpumeoluzjdgchypyfioptfcuvmutlzewvrcvlqthysxydqvuiupqgbmthqxzclfmbwcxteeceucxjcwmxbcttpgxjolrmdfwwdpfjwrknqjspyyjojsdjonhokiiomwvuazuvskcncwvgflaztrmmgwlnirsepzijhejwmtedfssimgzdxgqyrdjoimrtgikxcgfynqfh...

output:

mlptbbpksnusfpgbzkxhfgwnbtgncfyhvtjsnmyhbnijetkecttslhehzopsnbtzfqtgjcjrdwbktajilncirxioxsfkxeygyihjwymkhtpwrnqicfbrkddavmsvvxncvfknaykuvzsxvlckcfsjivhupwjfwkwlkmuwfmhkhgdtfzyyuiomiuwtwgfmqqrqxtfaifpnkxkpzycptjjpxeapemapwvqjzcjpgqtpowrcghtytqdtpomsddtipkqwufymkinolexqffvjdjhxlqewxdszexrisznbbiwtxrpg...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #195:

score: 10
Accepted
time: 91ms
memory: 130160kb

input:

1925
idwmgiozfsljjcwybumhncazlivzheqfwrpfpsgoupxwypxycrgocgzsipkhiqtfnmyrhefvutbzvwxyjzhwzyjxwcqfbxacbfyccjofmeifxpxlzwycwpjyegykjwysynxhccweqygbmczvudhicaefdfaeacybfgtfncqvasninfsciibhrpeoerjlycdbpoximsphtyevpbnvfpuibfzbwoxljwyhleoagvvjxmhmvfdexrdhzclaasdplnhrjnavvzfcmjmzknoxmkfamdhxnqdszvodzgpufxx...

output:

irjypbiqlzhmlouhhvilhnchplxnchtfdydpzxdvqvkneenrljecgdltgkmtaocykobxbpmnigfajjtszuogobxlrfvkxiuchrgpnlifohkrmamernmxvnaipndesumvvesxnroxzpniajxlsxljxznjkrpfnhismymwjzclfzfvdkeqjmzjedyaomfffhszosmvuzfifnsqtjtygbeyhtzwynclysizzxyuqfxlxkosukwxayqsrfbbbxasvevvvyizvhssypnhvrbistxhmmwvbflkalgvaiymogeantlz...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #196:

score: 10
Accepted
time: 83ms
memory: 123324kb

input:

1903
berzrojvkpryxzrojtjfxwqkukvogxwatdnzxqkdyqwkisnjnxletnbjidagbokkxgwivrrhbulcnnillkobzbyqxkgkcpvhrdioyrhjlkfaywmqthcrmnordsrwnpberzrojvkpryxzrojtjfxwqkukvogxwatdnzxqkdyqwkisnjnxletnbjidagbokkxgwivrrhbulcnnillkobzbyqxkgkcpvhrdioyrhjlkfaywmqthcrmnordsrwnpberzrojvkpryxzrojtjfxwqkukvogxwatdnzxqkdyqw...

output:

bgdzkayxayqekkuezzjtcaazoyufhaobzxdvenkuhawpmcrwnzrhegomcagdlhbkodsuisvxlavmrbimeieavdwutlmbsiqgwcdmdntqxnsxmdmygoadroasbzuvxzxjtomgemlmvbmroqhopqlucxcgapsnqmcwgaelszazjghdcnhdtdukxeyxzbkitotdpwbpxqfhkwrauuzjybmhscgijzenvtjctfarxapoaynfmnggngbsrtszyvofahdhkimalftfkscorsuhoylmzlkcgvhhoyjxdskqcjowouzj...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #197:

score: 10
Accepted
time: 80ms
memory: 125044kb

input:

1982
ngrbepedrqykbfylngypdzwtsmaeouerhyfzzieuirrtxzerjvyttrjfhitheodiczzdjvqrfyojjsaajdamrdwcpvthpalevkbhlctlyrmazjbyjldtvpozwkmyvwekinozashnutkiqaewtacpfuwedqlpzgytazbzoamqvwfhurluxeksnwwkwfefrdglvryngrbepedrqykbfylngypdzwtsmaeouerhyfzzieuirrtxzerjvyttrjfhitheodiczzdjvqrfyojjsaajdamrdwcpvthpalevkbh...

output:

nyyglqfhzmxzowebfnhvrmiomfvysaufrpscwryuwxmehmtjndjoowvfkdebvdaarzzewrwkjiialvbfeyrimkojykdritrfnybdnoslxndktjqefaxauqqacskdyrmhhqysevfwxgbpdlemrurgabdzatwvqxdozabesxmmdvxohcejfiydrapklerqwgjmtcdctecbhftugmduhuearenjadilgnhlvwkvcdsbbbmensqslrgqxsjttazbwuqfwnfphndnomjcofpkpxcocwfmkovtxyhyuzffoggdasop...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #198:

score: 10
Accepted
time: 89ms
memory: 108584kb

input:

1927
dldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillid...

output:

dvenkvuglqnmwvopgezwfqvrqxvdxikldxtpeewsvhxaxxndwydgdvorsmjyiktegkkzzzmfgkotwfihmcemolykaugrplnxvymsbosplhpxodainisarhrtjixyeysnqaijaqklpljoccpzkbcmivbxdzlrdeyxzilbbtsimxzxhqtxdxotngscitzcyhonfdytbpqhxenkgfknowbahtwtnxhsgfegvymhgasdenvhoyduypbfwchdqksbiurlgpggijcqjoqqgqecuvyfhbeeowgzernwcoysyyijgijt...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #199:

score: 10
Accepted
time: 79ms
memory: 115476kb

input:

1973
wxxkuvibjhtzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzr...

output:

wtbwspjdstlcnjbndjzwxmfvudxniyfaddwkhicatdlykknvhbqjueqibtvepfgougxmhcepiusrqauxcpytqfefnticnqxrxbiymqxzahhysusrkwmkmkrwdkwyxcaoosmlbrjzazcpfzykfbcfjhraruxtttkhuakuhkuiemxsksmxxkvznjkxyaafnyditaspnmltanfrlimkgqektedonabyirhuzgjkiccvwofipucraseouvghafvlcqccjswewtppqubdzdkekoyxnslahpyzxgmgdweagssmutrn...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #200:

score: 10
Accepted
time: 95ms
memory: 107020kb

input:

1950
xqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqv...

output:

xlrfwwmrlrmxfvbfwjguzqmgpaclksatvgyuyoqmjwxeinsjczbyzthwvfyjpwbryyxzkmrrbktixbrtbkkrfmgucvxvjrkhnofccpbibxnyggdowpxluvyhrjgbspnhwpwffwtbmagordlzxcsrgqngvpiwnhsqvnfuvjewrbwjrplhuxkvuawslblmfmddfojizrdnfcnueamkswkdsjyzjtjqitlukpdwzrgybjhlfrykkswrtyntujbarnwwfjkygilleuduqdbhzneoljzvyylwuhzeuancejhwpgcb...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #201:

score: 10
Accepted
time: 104ms
memory: 107736kb

input:

1963
dklllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...

output:

dlqloulompqffzduykvwboyljtwpqlpvrntaqgpccdrroholkskrjbcdmckdgdpjqmcfuhrndomcczmmfsaoaoveebpdfggelsreiqpwnopsjdnwerdguumilgpmnlpctokzotpljlbqawhkfmzqhcbsmhmhyysffujjawbdezezxjspxtlybelzxvejcoueeiqqsaujygqpnjbpjcmwejmhvwphjdxfnfuskihsxrowypnqiqoocwjbijxawdowljxxegfjakbzyzgtqlxtvohcthhbnkurftjyqmqmbbrg...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #202:

score: 10
Accepted
time: 121ms
memory: 144096kb

input:

1941
ammyoqvtkcdxzajfuyzwwodisdaafjlxaqsdfzomvshqvdpkckntkjvbdpzwwjuqswfpzaztmeeujavtkvdexlexzcsvttjxwevxmuymotwvkhnnhwrroybmjjmqzbnhnkqzsdcaqwhistlpoflooxjvatesjrywaosoygnvjjalubzbyypiekpmwgcgqshglonjqtdmqvrltdasmpajwmivhenvbgiqcxkuizdgszlmxwusxhoqssqyaeohihifjubmjmevnrfqanerbwbsitdrpltbnkeusetpqmi...

output:

aczeumtattqqjvpolkqmkrmybcqkzefsavnyseeuzytdbvbxjsjxciujcahjjhmalowpseyjdlsfgykoegbpzuhgnhddstvxgbmccqscrrjyoeucxgnyodphvlaityibxukawbvvbszstmasclbnqljpycxsoqalvmihsibejoyxhpojewvadvvfmyalilibnksjyahitsmboagoymapsfieznopmzmojwhgpzythfsqdoaodkiykellfczsxtzsjapezneihxuisxhikxvdhzrsnttjygttixwntrcyosoo...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #203:

score: 10
Accepted
time: 123ms
memory: 118664kb

input:

1987
uplsxkegxjsfeocceclaatkesltdvcqisbbrxfklmgorptstbwzzyxxathckezamixcbolajnkbfjzmtlfynxwovogtkesltdvcqisbbrxfklmgorptstbwzzyxxathckezamixcbolajnkbfjzmtlfynxwovogtkesltdvcqisbbrxfklmgorptstbwzzyxxathckezamixcbolajnkbfjzmtlfynxwovogtkesltdvcqisbbrxfklmgorptstbwzzyxxathckezamixcbolajnkbfjzmtlfynxwov...

output:

uatxckptagnzamdlvvgkfvyamyyedhksiyxizahewbwlnaucnfbzwgtugkisthggjcfivrvzuwyttzuzardvkxgflzacdqaprenloqqwzskejtlttlqhtvgdyyslquqnpmvmscolkqqlbyouodzynhgmuybnzwramhsqaqsfmbflmfesbyzebgbgnmapgxtucfuoguwegqolrdosbweeermkzczemxdshiwtxgdfzadpilrcjdrxueeookirjnrarkfzyzhvldfytkzprckruqqswutrdwqfvixfzvxrdbjc...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #204:

score: 10
Accepted
time: 99ms
memory: 107220kb

input:

1932
kpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawc...

output:

kiqyvbprfcxxjxtnpxotqnrkqhkrjxbfuwixodkvxrzxvazpldbhhhvpffcuwafecxzrouofqzgneewaprxokmnglplvmpqlvhnxvukfqvxgkixvrawdqziydpkdkbxyldamtybselwiwrladwliojsgrblcurepwxivujynllccirburdikqwmsplbrezzabraekvesfijhgmwfojgmruavzjszrqhpvmiiutiqgqkvgmnddsbsckbhvktfqjecwyvgnerczzgveyjtupnfjnogijoygxifitlzqkyamyvt...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #205:

score: 10
Accepted
time: 97ms
memory: 177088kb

input:

1978
ibrvksykxrmidzuvothktdxgcjjihwwvbtykvjggzturcfowhwdrthrxxrganbkkbvoamvjqnzptzbqljbyookdalsmhhgwkgyqytfprltuucgughawpnvgfgvfdlchxevizkdpcmnjzrtgeaypwgnbojvemvnchmbstepjoqenctxjhkscmfhkizxpulvllbvumvvjadcbhrmccvfcpbzlnsjrsbiazsqnpbujuximyonmfxllgxyjjwtzxmoeyrfktmdyxujynoabrrpvareqgwseidjqldwnprzi...

output:

ivvheaxlghipinknsixgxitotolvcwkipohkqzoqggvinqxxaaqqrhtusxypvpozbkztxnzskmdxmlcjvdagiekcbnuuwisborhuvnmrwufmkpxspgxjleuidelexmwczqllebldkurdpogkpqlvqfzbnvhrwcergpesaxoxabsdxztqhtsugeklzeojrpfywsullhicjllzxemvdybjexxutedwkkslgqoixxvylehxkagrlnqjinsdvtwetthbljjurylbwqlcxjnszrocbujhtfcafmvenszpqveylfav...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #206:

score: 10
Accepted
time: 99ms
memory: 109872kb

input:

1956
qhpojaaxsrvjxgepzgnndfabchsyhizdaejjgssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

qblphkoysqocsipkcleisfsbfjgulptancnhwyfntrxzwgvyioxetoldyfjistbeibqojhmrkbtpouyphjwzsogwjkyyilkbefotxrrhrjpxeeefhcxipluglrfrkyzlrzkdbtywaunqvhgxlasxhpwodwbtijhvuvflisdgwyfglivzkdkxezqcvatkjcaklvzzwqjvobeaacptyzzkdleilevvptqpcqcciidwhronjksgfrobhwdkhagohhhehkfbinrsyzgevurkfltrvmjvvlqtkiubonjovlbhhopj...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #207:

score: 10
Accepted
time: 87ms
memory: 104520kb

input:

1934
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...

output:

ycxdmstksvfpdqyewpagporlzpsssgdcdhhwffetsppxcfnnimcsessmsakmsrozyszzajektnzthrnyctuxwcsvrjuowgdlxzlvghpeuhwfklrbbiselqenrbqypkgnxqvigywkyhowyvpprwihcadllpevjmdiqcuflojvngvaujxfyneqhyxlukmdtwhcsiypgdomvtcfamlimvdeaqeodzxojzkhbypugigsfedxlzeyhjujyusegddubrocxeubtiinpquicfztnitqcdewabihuagqctxnqdquspmy...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #208:

score: 10
Accepted
time: 90ms
memory: 109972kb

input:

1947
zfuzgoalmkpjiljzyyxleimlchowmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeak...

output:

ztghcmvnysylofzyppnujxmvahcivnmllxpjhqwrnuyyuvxfvkkwjctdtzfrvhxaferveybpaeovfgwhwxwzihvpzyysrzumzyscsbxngfwvjigopvqeipmgskqahlgbmunbbhogpqylciwscgtslveqhjoiqilrfppwfzweyzdkhoojmsdhjlvojqwioclkxbqghahbzwifwyolchqzufmwwqjmwdjupvrrxaafyjvjbbhcntnhuersjmithhvzztlwafcxdejycidygogyicgmuyasnajgquxphlssaplh...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #209:

score: 10
Accepted
time: 92ms
memory: 198672kb

input:

1925
kbcvwzkrmfqxqdxigjnctwgzibratvikfwzjvahiiuxicvjlpfgopmccvdcprifxjylzvcivawsveebrmyxorwizigduaijtdplanqbcwdnpnnwfynmnflgtngcktuyrjtcpgvrnrsiwxatdjaxdhonbdrppspsmxllkjwnwnlakvnsdyivegksoexlcvjxozsuzdmwrkymqocwncntvfkkinyrpeqikupqjqpaltyrrumagmgxfdekdyzpahqshyaehbbcpostrwjcijwjppwmrbghduxhqqvifyjq...

output:

kjiznqujbdmrndieonwkqkhnissykmhtiypsfezbyjnlbltlmyamcvrhtlbeaegzibljksbfvwahlhcwzncodwtvmopcfkapiwbqetlrfdsexxqisqbdmroilgckspvfexqboktjvkbgqjkxybhiphbyjlffvjeejlqlxcshhvxwavajjdzwwpdjyrwwdcbcvaeqzxcbhxkzcxnshwkztujryzuvkbhpakwzmngdwwqudnlyauqaucemkbjhqkdzlpaxtcjzxqlohrlpdxyvhwwndfrrltcevteixdowwuze...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #210:

score: 10
Accepted
time: 102ms
memory: 120000kb

input:

1980
edbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbildxhlisqwpqiedbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbildxhlisqwpqiedbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbildxhlisqwpqiedbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbildxhlisqwpqiedbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbildxhlisqwpqiedbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbil...

output:

eunvchqtasbkkrmicjtbvajodreneednwkjcbuizjsxuasovdvkhkzxuasmwmawzbkxxyerqjkjpvxlvfuoibnoihiriqhhtlrandiwifdzdhxiexahdqwzqgbectuibdonjmsvmwlqdfxgamvujqdydgghbrwqclwsjmiikupfdlvhxsholathtogdsvzykegywvbehweahtlbxiuzcoqvzixjwoznhpdyxvvfhygguxxymrdqrxkesgtwpvtftqdnzuarjsiuoxegiklwctpegxdikdvliylzfcdarsczt...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #211:

score: 10
Accepted
time: 99ms
memory: 116432kb

input:

1925
jzbafnxwqapuzspfouwaisjhslijynyvxvujaucydvouxgnhjokpvpderjepjrskkegozgysjdddmseeokhivucvodvcjoscooeodsfhgiugodurokwsnzjzbafnxwqapuzspfouwaisjhslijynyvxvujaucydvouxgnhjokpvpderjepjrskkegozgysjdddmseeokhivucvodvcjoscooeodsfhgiugodurokwsnzjzbafnxwqapuzspfouwaisjhslijynyvxvujaucydvouxgnhjokpvpderje...

output:

jqgkdlxhcbdjhaxsvfochugidymttfhxoydgjupxhpckainzgkermaioxopskdmfcgdwczmystsyunxynavmizbldclfwbxvmbslcykxgoriafmjmkgqpanlcajhxrglslxncjauzxbsrodwqtgnqnippksbqzxroyrmyswaolnpsejgwznhfgxvwkbjatozbeahiuqxykmdkhgkpsvrccnbflwhliqnjjdouhaoomhrlxiwyjnulfzvyikaulmnsffpybuodjuyiubmsnlbmkbjwfoheaixtbwxrctztmgz...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #212:

score: 10
Accepted
time: 72ms
memory: 134636kb

input:

1903
bcbxtuagflljbltrrnlabsdtmobrsnckopotkawfjbtrzirnrmfnbmwqycpyutvtonhjpwnnsgwrzcguifdhgmlnayczaibucchwqlnadqdsisligzdsggnitswtdxjbaxstjjpliaenqgjfalorrtnvhufrfyzylrosfexmzeblknvhvkgaxdpxhxollftyfapoukhbyuqoqkkcsexqgjomyhdckjfpojblwbodtfkxagsosoxasafwglorzojwllqmruklvyzjwroxmrwqrfumaypqtdghjzpexgg...

output:

beodkedomissllxrdfrizwbznkipzsfdxszhgwwbntwwocficfieqyzkdrrayjqegypxiaoalpcjowbsjgmqgiolvkplqtcsmcoqhtgwetospcwwwizwvgfcoxjjbrpqbdalerhkqtgfcttbsrptvkanfgkhelcdumtrvjyugjcqytluxzxcofcaeoybmdaoyrrhagquwuqevphfvfhsrbttxltkgicznsspkmbgqpimxqnfjeoiygalbpujelwjdhdowhpqhuwoporuxhktqdjjelkbqtnsliyvdonrcowh...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #213:

score: 10
Accepted
time: 93ms
memory: 118216kb

input:

1949
ildtfudxsrjagwxtgoswkpmwdefyysyrfjukmlhweqbyztjtpqscfmentqymtwiznxovmlnbslcvvvqeovjicijmhbtomxhlkyqgzdktjkiuildtfudxsrjagwxtgoswkpmwdefyysyrfjukmlhweqbyztjtpqscfmentqymtwiznxovmlnbslcvvvqeovjicijmhbtomxhlkyqgzdktjkiuildtfudxsrjagwxtgoswkpmwdefyysyrfjukmlhweqbyztjtpqscfmentqymtwiznxovmlnbslcvvvq...

output:

itstxdazjxcewggtcwjofndexqrmstufdubxqbznyrovaywpnsdffvsocsmbuobtrphkdsusyfjirvrkavjaatwabjaxxhobmccaivimhqnzsdjahmmdxtnxfvhimwpxkgbxegdsnasszmcgnqksqmuglpggbbrhpdnanqseljwneavtfoqezaqoktloqwkgvyuzrgfyuqbqsjihdhbwuelpgybsivefkelnbyvtyochxambycbsoueritrejhtugyygztfusuxahkhqzementukpvjpdaadhnispltwreer...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #214:

score: 10
Accepted
time: 94ms
memory: 132616kb

input:

1995
zmetncscfwxjrpevcyssynhspcjtbhcmcnsdvcnhfsqotwluhlzctwgpbwyipufxbhilcczpstzebwqxezglzmrapxgwhdlbtzkgomqbnmtvcagddetpeldtfxcrktidubkknqwmlvkithbawstalsqxdganfnhjrmrrozirstrwwydxezhtihvuprlzufcbbeeeiwwhtyrxjtzmetncscfwxjrpevcyssynhspcjtbhcmcnsdvcnhfsqotwluhlzctwgpbwyipufxbhilcczpstzebwqxezglzmrap...

output:

zkwquizycmvnviykpikisohlseshhuzfgejxswccokthkbmldidfmjbxylrsvrzbnpksfxbtimnuhfvaebgqgvnjseazfvcvthzturorlhgkptozmbaaexunuhbztpnolehbrrfiurvehmwguwdrhuugntosasslmejexmmxaxyevrvduwcozsrgxkosbcjaigjlsddtgvdxirwenmzhrsiofugqyabonypcbhgpluwtjdoxmqamerwlewcqlzbougebgoelkymisnucyiezqsxnjdymkbjlszobtzgqiyeu...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #215:

score: 10
Accepted
time: 92ms
memory: 137688kb

input:

1941
clyzzqwrgaoyjvwtpcwymecxdgnyonwxmqfotsqszoekqobospzzmzzybgudqqhgnrnrehbmylxbdwihopiftfkdhskvnwhqhrsxojwnkrzeabsprqslsrxeouonhzyhhntcihbltcqqgstyptiiowdeacprrvpwmgtjovjvmqxnyvhsqcxlurxclbbxyultrzxmcvxicapxqfzcgdldpypbcebetvcnyxkisbhqxlfgmzopsawoxvukgrcbqjltgqfajikzfmmimnjjurnzyyqnogjcibamxvlfiil...

output:

cwnmohrmmpvrbaubfxbclqzrwcqsjtsjrubjzodxjxqzyzkuvbbvyydggqllrclhrldqdddadbbslgqplkdfjpvzubctckfsnftfdqrsuhwsuxnnzudkhasembyocwaavwfcfdvgealtunhqmztxdfjkmvfsnuefzfahzwktjxytamxjtoqryebpkrrfmqytfscmcqfollurxhumfwatslnasctcbnohplprhmlnxznzinbafvzywyfmrviptuiyybzeibigrojetkeutlacxtvgfyqlzocdethtyxvctlxq...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #216:

score: 10
Accepted
time: 96ms
memory: 108552kb

input:

1960
ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

output:

gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #217:

score: 10
Accepted
time: 82ms
memory: 101168kb

input:

1905
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...

output:

rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #218:

score: 10
Accepted
time: 106ms
memory: 110500kb

input:

1951
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

output:

iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #219:

score: 10
Accepted
time: 139ms
memory: 224532kb

input:

1997
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #220:

score: 10
Accepted
time: 92ms
memory: 108460kb

input:

1975
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

output:

wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #221:

score: 10
Accepted
time: 87ms
memory: 155588kb

input:

2000
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Subtask #9:

score: 12
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

Dependency #7:

100%
Accepted

Dependency #8:

100%
Accepted

Test #222:

score: 12
Accepted
time: 84ms
memory: 109496kb

input:

1954
cukfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfh...

output:

cfftxqimdoekzejotguftrmmeomptiamtglccxnbgplutudnymahrczptadsojverxshkbvavswejewxxqcoccusuyqsnvekyanybyxwwwovknsocuqxeqhqbztzslbdkjqiqkevtjydrnrepgqwmxxdyxdfimcgfeoaoihpjjbjyqkzlyxtcsloafyhkgwzffsgdkozegegqljtuwnzufbrvhxskqfgjdzyiqazkejoqbqrkolnibesgjnmyklwcxqtigvhsbtlmrdlvbssxpgcnbaefhackdnqlclswbfg...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #223:

score: 12
Accepted
time: 91ms
memory: 113144kb

input:

2000
imryvligkijncctcobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobf...

output:

ihdvvaplgtpoulhuzikvcaoyhifhpnnnuxfimiakyjymyjohncyqogdgqeuadatgjrcmgffqeafpxxcqzklacvqwjwezzpvzsduzqphglquvxqggymdhqreflyzymmlrwftczfqoiukqopetrcfnlzfkpygkamohylljvqczaccxolwclwrhppmpwllzpyztahjqnimqredggffexhxwpfdhvbxjbdighestbyvnuoalmxedehioobwjtkztyqklqyyoustjaoymbyvkbcyteffrnnhzqefecngqckjtkewm...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #224:

score: 12
Accepted
time: 82ms
memory: 103676kb

input:

1945
yjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

yyciyyukcbahnxpgznhbehlntzvzwxejuzagvwufututynjnzexdosdlzifsaltoyickeaddmftoupurqrxjypxpxlavczubycbgcqqxvafoofoimtfsdzzctfgtleqbllgzvovxroprgqklxnqccwlrcxsokcryarrpydyttakthucnjnoxqaslmefcodjicwadzxeofgudtjksygowvldqcbyfjjryqmmhdgqqpyjfdpnryjvajjimxkrqaohercaaxowjruwnazjxvbpjtevkxoklfvnlzixzoayemgao...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #225:

score: 12
Accepted
time: 87ms
memory: 103852kb

input:

1923
qwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorv...

output:

qrsrxzctlusmkgwsjammcqmaldbjayryjizkothtpnqwnbjpqagnjijjfozyotyemyisdzkrcyyqwnskonphcueeqbztofpytzntqeybmeitfmxusdwxdfpfpottagocunwiwbupjhfiruxhzjtgpavovdsyzvysedupxoxxggoausacjogxammpnjjapqzakwzjzpudegrqvysmleypfgignthqqjigcwlmktwiptbjcgusmnzrlyctcxwqexfgowuvmnkjrasszwojtuzswuczvspxnvcqvmgwixrexrjc...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #226:

score: 12
Accepted
time: 76ms
memory: 107784kb

input:

1969
xixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixix...

output:

xfldqdoezslxbzhjcrfavyumxeguhqnqmpyilckdiaessnzjttqlhunoildytvpixckmrvnjfjcykukpheipfkewznowkoknbhtwahpxeskhqiethvvpfplsygwhcbguxicozskazmkbswjmgxnzrzyreturvfvkzupgjcygorylpkdengjpeqjuwhtpihyvlibvqxfynatoqatdwnsmiyljxkofccpheivxuwnhowpmighilltmtskxljczzybphhueutjnwfuxadmczeyrkgznqfpbzacnafzugmivisrx...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #227:

score: 12
Accepted
time: 93ms
memory: 126896kb

input:

1914
qwnmufabtnomocccrrsqzxrwgfsxtqptchddzeokdzvibxlcmlaecoqxjesnxxzeeslaiuelclfuhiigxmyztrjzmcfjrkhportxxdtrxdbfbycgkjsiastbwcoygnmpsjinvocxvancjedctspgddhvdkkvvdyananwrbmahrzmdfrpupvygleixbsyweecqrtbvlfcjkhyughvteqwfnvokzcmcwzbqwfhqxytqwxbsbctapnjyqvrgcwqsfvdqwnmufabtnomocccrrsqzxrwgfsxtqptchddzeo...

output:

qrqnfxdoncmalkylbmpyrwzgjblrhavqhdsfhpwvxciukprudijkcuhnuefarudrcrhfdbxfezffdoyiqkpsoeveshfeytjotshngknxmovawjbpyssczzfykculvxnwnqfbxwynexonomohltlnvdfdkmmkiptqxbmosjsozkbsoyvzroknfqtvltountllkgvctbhmvqbhmvsphkcysyzgdtisntgwbibxsobqgrhysjvwjxmqeuldyqfjeavzkjfjmhimvxczejfjiknnlgrujwzpyeubvmganywuhumf...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #228:

score: 12
Accepted
time: 84ms
memory: 128156kb

input:

1960
enofvgtupusktekabhqoybhvsvucmkudnhgklhpmlnqhimtffcloywttklkiiftuvtmepjcxwjhijlklyhoifuzkfjivoenofvgtupusktekabhqoybhvsvucmkudnhgklhpmlnqhimtffcloywttklkiiftuvtmepjcxwjhijlklyhoifuzkfjivoenofvgtupusktekabhqoybhvsvucmkudnhgklhpmlnqhimtffcloywttklkiiftuvtmepjcxwjhijlklyhoifuzkfjivoenofvgtupuskteka...

output:

ezkrvvtxvckaihhzbgmxphetlhpskrghmvdplapvyxwraaubsuphygztrzhmiuzflxixnnbjcaqtdfuhrlsfnuyfhtgnqvquhphvasdvyhmezqkpqzbqqkebqwcqoeomzaaenbjcuuqmopiezwhcnlqtetuqezvsuyxanchzlmnwlcbpeblvqfybvsgyaqxhwujbixcqavpenzmuvnryycwtpdabtehibwigswvwdkiyckcthnsgysxqigcslsjnabqqpfqhwtcdyishsucpwlbbdjavsiekbbjvmwbdmtjp...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #229:

score: 12
Accepted
time: 99ms
memory: 140172kb

input:

1938
yustkcpaqvzaygkwglcrjheixlybbfcntnetvoxfonxdhavollgvlwksjrfxnmswfjzsuxlmviiaxnjfbwjfkpjcyqogyscfircbskbcvwwslgzbgchzorvzwrmrwdxowggjckagahdmbmqyzqmsdzmzskrizlwdlunyzamhjnewfnswdmiwvnsazhkvfjhpfwheyxtdvbyxlnbntinqhfpjcsudamprolvenqbmypezlibtfczxweukrwisphgptrcwocgplhqfvqnegoiyustkcpaqvzaygkwglcr...

output:

ysuvdbcrnwhjctuzvxkolnohabghiblqavmrxgawvdzmgnclclnblbyjqtglnobpzcwvskyyavpzsesdamsnaayhswhwdsyaylnasptcusvaaprmicpdscawfapvkoqqmypylnpjhhujosoflncrozcckuqmknvtvfjjdmmhfaiuomabsthrsrwjnqydxaytwannokdhvfgnsosvggtjzhxuleedzoqmftvqsovyyopughwtifjeliwihcygennziagfdkxapbrlgkupytjeeoavwyaumwkmyugoqfhgzbie...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #230:

score: 12
Accepted
time: 91ms
memory: 155876kb

input:

1916
pnxabayqofozddmnnblepkeaqhxpuzknmowdbcefwmxsdohzsjiwlnhfsolfhubbxfpilgwkpjrusfyrxvdeckgkhlfeihbmmsnqxacznjebloxvaxdkfjqxlbpaovweufgkmymbwcfemvnjltzpercvsgouuzjtjksazhcciyycnrnboprxprjdmeiftqkkccoujlekuogybjxgrlqdwttydtggkaxqjfsgrguwnrmruowsttrwcmsqswxpayovahkdozhizdlqrtfafviyxuxgllxwpcirwqcsekv...

output:

pcbhciyvdcnevanosjzadkfbzxzarfpgbmnigotgkaznbouksqzezgqonbnmznfjjohiqppfsorsmudxcvnfdjemrposhdejgulpwgakfheykpelcfhcvahdwuqywaygfcdzafjrrlvkseeeezshhoprcgknmvkwyfyxmmjeocnlgdtlryoxurawmeyxaudwaejevipthhhoaubijhmdlzegpxzfbpfqwvlznyhnobdgysliblxkgeyigjzitkhdgnsvcmpkburhuuhzdrodyrjbkahzkloxldnbgatrjrao...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #231:

score: 12
Accepted
time: 95ms
memory: 116664kb

input:

1964
llmrgjwoldyydwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwc...

output:

loukfkyqajqdukrlrzxakeceybmepbzemxiqbflpcmeudofqcqgzajvzkfoiqzqccjxvhtamdypwmkhfpebctqhacgovajivcrnhzwxmaoczfxrpmyfyqppsgbpjgmdbqokfxotblzlbzponnkwlhmlkzjeblkqjtprlholrmfhtcccmrgncqqhjkjepoviatepvckluynbxnmkklphykedpmkmyywhrraatvglgygemmwccvgnjarcxrcovkrarqprfsfdgooitrkddjwxdupxuvlkcnsvmukgbsfncbkcn...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #232:

score: 12
Accepted
time: 104ms
memory: 153368kb

input:

1942
shxhcdgsglgnnbgypfiazskywnhnleykfigyifrawnrahbvhhppdbdljzshsettsephpgbhmifrrpppsuxmfudwxmoqfakiwfockzgdkodkhulpnsnpgijrsmlzqroyifweproqsamjqgclpbyeesazkrhrszletngzzuwtpbszqvnxpqqhujkepdkevtghvdsbozmpzgltobjcfryucruzibienwifoxrvhxvnvcocxhuvwbmymnngtltbaopdrnbexcwobodifniyrvpvxnnszhgmevhpjheplypf...

output:

smzbzbqgrjjszlvmvojfkkvalmtyolbtgiscarbbzsbhpzcmrxaokkihihgxqyxhacmuzetlzicmoxuzqedhatusbcetielsogpzlswvdlcjjqdoqdtrgzrwuaqyzhpwezcixeqxrdoyshtopxknortcorxnysluglmcjlhvrfetjlcbsbnvgbethouvvvoqupzkmwhogpkthrdbjppvkeplnrsccjighrlytaehrmrwisczqytigmwlkjfwmibbidziawpyucobyvrplxkngwyenuwybxzwirhvapwnwytu...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #233:

score: 12
Accepted
time: 115ms
memory: 181552kb

input:

1988
ywzcrguxewlkmgfyyikjpixavfmjujlunujhfdlbfgymhavlkryjmpfglinpqghdacwkomknovihxdympbdbkznlzemypgjqywzcrguxewlkmgfyyikjpixavfmjujlunujhfdlbfgymhavlkryjmpfglinpqghdacwkomknovihxdympbdbkznlzemypgjqywzcrguxewlkmgfyyikjpixavfmjujlunujhfdlbfgymhavlkryjmpfglinpqghdacwkomknovihxdympbdbkznlzemypgjqywzcrgu...

output:

yvpozxodqgyjqtasbwlsautiestgqjvgstznpkiobdmatqwukmqtqqgenevlbjfdvslmzfegyaskcazcefxzsbtutbgmfwyfaoknpwjunpazlellpbuynhgzepxyzgnerhypeurpuupibezrzikzqwjzwaahwfxwvlpstkimrknhtuyqwpllkbpvabbxnqwsptxpvgiewtaqoljdwksmvzrhqduamtwrbgymhjegujlzryqhdhpwiazagwrsatuwiinddzsfhgcrmrtbdqeleiackareepoundneibcofmve...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #234:

score: 12
Accepted
time: 114ms
memory: 105340kb

input:

1933
gkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbid...

output:

glztfiikconeefsflpohwygvhvpgavdtuatxdtzikkvphuathehfnnkkiaiamjrzbgpmkxrpwrtaeqhzxlajucvrmvxzzwxjmhwxtyocfkzxgsvmehfvwlsefvtegbivdjlbgctsnexxcgkzrlklmznrnowrqhaxbtmakhcljwflyectamovggohjxvrakhayjqvimdtlagzwgtoetmczfgoopotumlizilzllmypwfkxifmtmncdxbjgzvnheejedpaeklgrnjbhwnbjmmnvpuqocymbnkokfabkugskhpk...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #235:

score: 12
Accepted
time: 109ms
memory: 150580kb

input:

1911
blwfhzceqljpyhpmtencwhezdqnsfhreujxftnpabfbjutpkyqzkkqiffmdxkipockpxurltvqhmtkeikedolbanafnxacwljkzewlolqsmsgggrqlxmcjwprusrrsbagjoecfrmfmmcwdpcbmmeoqqjztxgrzcrwmndxbpzvczemztnkoxuxcmoourjgzkpjhiwkszdegjzumobytxjbwisdqlwqfrpscyfibuzrwdmeboefbeduncblzgyfgfvhmpjcxhmqehsahfsxjrjrravbvuknqmmojtelfz...

output:

bylqxfvhfnlutzoiimnizkjorcxqrpgkmttkcznactlvpwriorzbmdfhvnrjujuaaoyfgdjfztrzdnufcoxwxujeioccblspahkkvqsepnyytdfwskhgmdwjgstegnoijbxxhwxirepnienzbxoznkgpeuiemftgyunkadqvpjvccdaokurqqamuyzjmvlerozlcamxjisodrkansvzywlbysiovgvuhzxdqgeomzzcfmhgrouumpfgfhpcbbigcakjrudnwbjuffzucujufcopmhmtllkmrypstivbwfzgk...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #236:

score: 12
Accepted
time: 108ms
memory: 155204kb

input:

1957
bhsffrulneechcqyqywazcmyrcjygglytnpmcseiacaovrfmvlthdgibbhxkibwamifjzzpptxxnoczhmotizewpdnmvynqanzaxnrrgcvdyqnbscyymvlainadeoggaqbaqbgkzlyunripuvwfmduqeohuwzpgceemetscxbzygfnzdluiglhhwlfpznbqliipyqhaxpfaoksbkwstvbhfjaqzmaoadhpjsxaakwgdamonyydwmjntfvjfpvdabttdwcpegbjgemynymhugnlpsgsjnkmakgtxdcxx...

output:

bunehfuqpyadhzqneqgnopmnnhthvkxsfkvakjbsufarvfkgllkpqfjhlvypctrnzzowpsdyhnqqunyvtjrfmbwdolaninxfvbjsuxrblywmmfevbhyrxorhmhuhcgtsmvxysbgcayiafrolzxynxzwghfamvatnqcrxkomwdotwvfmxesuxjaruwgkuefvaawmvsotbmddeusqqxkuivzkwggppkmjplitegfxwawwwjkmoitpsfsdntdxlqgtpntborvyeszgiunqlxflpquitkvbsrpeatsfxjfoiqxro...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #237:

score: 12
Accepted
time: 92ms
memory: 100492kb

input:

1902
ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...

output:

tabgizpcmokqfoomwvxitgvzbvlxqafrtdvghhakglawovorvhtpukyninpmlfaancrvpjooeljezsvplnxzxqvrqoovwfndfrwnjubhhrytbxweoitdmpasbkhwdssqqylwvpenhbjddklfnkwbpnfddrkbtuanepdphzijiwqgtglkrzfkjieznlbskwfmbtbewfjshhyixryqcsjbaupisozvecfgbujboqapfqvpkbkezxphfburymwsqvvvbaumieaproigiznzqeuduogamrasdtzkfogbjopdxapr...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #238:

score: 12
Accepted
time: 76ms
memory: 105180kb

input:

1948
ifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxou...

output:

itgxfetuxxwocurnmlehhmfesyuqiviyftmgmckjzbvgzijkjndizhmdyacbezvlnzitxhhpkmehtgnhnbuhiwdhmiflmsizvwoufurcgnfzajrzfqnixrhrwrkwnsxvpgbadrmxqkmyftsmixdfbdzyjocsmvvpsbzlehxxsyflbessqjqxviwucztluxvozmskmkgknlclyqqysbyyjbztigxihupodrcsbtzswqpswfepftpdrrkqtybveemuaevijkwsnomcphelwyrlngiaemdjsnpdsatprblbdqqq...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #239:

score: 12
Accepted
time: 74ms
memory: 104616kb

input:

1926
vccpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqv...

output:

vhihyayxyposwajnbjexuodwqmstqdxhjnpzvwyutjxauztfjyhlsepvoacevbenaznvwofydbcarntwyindqxfsbeblanwfgddozwfkwrewlzvcduojmldnrgpntpgvihwrqduvtaovkjlylwkccmtflibaqmdymmhwdcjlhpcbepjjxazgslkjxdbovztqvidpiiblfykofyeiegsdhypumvhngqgfflzqrcoiwuztpgqxfaffwgukmeikhxmhvqsrcmmdyvbgkrwtdmsqloswcavtutmahdrbitfonapz...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #240:

score: 12
Accepted
time: 95ms
memory: 128140kb

input:

1972
xumxuigkuxbcnhgbdlmjhgxhwcayepkaxofooivjmuksrwrxsowfczdzwcottkeumswxjcrxvcdvqywdxrfurdtbmpuselliovlxskupzbfegmzuigygohrqnstklnjyolrzieapaznkioqqbhbhwfonpemfnayqkycffvuomohzhmicwsrwpqbtywhvguyfjiwslmjetccjxqsfmtspwmyjbvzvaafmqzdufeddrkjwbyxxjucsohdrhsknalxztdlyadhelhmfpfqswcgdatawmgnjkwebjcpodjo...

output:

xpzdfbckwapsqiiwhydtzhgsahcsfstworustjmmulundpvkhzjzqwjnavabbwrrfweesyqalgspygtfhckpozmijycrizmezgkvhlgbxdxnzhtdrjozkwmtmwiadajijcslnrojeusvxusavilhfpyymovaxvpbgtrcsirjhcficqgzzwjlaqrglqtqpkgubpmufrgvnfwsoaobfvypoecisoiknwltaohbfbijmplrjfprmndfrxlzndjpusbhyacgwkmashtepljyenobahobpjawjqfjbylmrxqwhynr...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #241:

score: 12
Accepted
time: 100ms
memory: 102980kb

input:

1916
lsmgtjvhvpiixxggjecwyezelijayelgyxjeccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...

output:

lryruhasehcgvxtgzywehktoxtvdxpglypwfmcldeohcddnmudxytattjzvcluxtvbroopwjihdqaodaxvbtvivkvilajktfvjpbaetjdjksakfwllhqhzsvxwzadmwnggllmsxakiwoihnkfzgydxpcipdwaditlikxxsgesdcnixtebswgxtmzguwokmjhyioinkmnrybdwaguwfsaoxruwscthombzzyxsqnbemeqoxmwacnlubadrvvazucbfztfalfgaolwkwdwblrdlimktivzyvxuwpevznbwgypv...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #242:

score: 12
Accepted
time: 106ms
memory: 163776kb

input:

1995
fgosjckhofdzeihoxwlknxvcfgfdgbbfwlyehsnecbralviqxvmnipwlinfrmnzfnpwmnzuczspaxvtkbaapqfyenhonhdqwpvrltebtnerkvvypgcqrgwirupfqfzknizjhbytcsavhrksmhofrqoqglslylebxgtymbsyhsnbvlwvgctqwypvemmgmqgkfczavvmwpxbzhkbvbqukbjatcnrstuzgodoqndhshtqjeilzkgqemhlusujjktckgjpvmjbgmhivaokgrdaxcflxpxvzjrqfufoyjpyo...

output:

ftgzkybatthjkpqntmcimghojnclqkrpnfulafbanfqxkheabnxmvvkxplqyvbplowcnruasuvycwlmmiphwbvbjvembalyeuedxqwsrsgprxyahdqslakqlnuorcyjwkhgibadzxybqnhuxopjrkntnkxfiqpvoawilhjsqrzmbrzhjrwrfthcnkqeougibshuavvxljxdxqlfwqihooxwwvdklxgrlfoabynushguhisumbpmsxytiihkbonomvwlhowljyxmtmcuvfkbjksdrtwteovyucvibtziveqwt...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #243:

score: 12
Accepted
time: 92ms
memory: 125700kb

input:

1907
oxndkghoeywkpzflbbowuslvsblatfyntbrtsfsexermjtxlfkysealqnaducodhvuaqyyhugjhzwjhygobbwkhrngcopugbrnahkikryrsqykopjkmcwsthnanxvrjdsqzgnkgofsnkokrescfahgujdcnovihjysibfzftvrateypzytfwnhjfajvtynzupyxtvkqyadbijcuxwbnlouenuhbbyimtogagbfcmowxxjsxbfymwyjvwojphvgprmuurmwgjhhuoocbspbbthozewazyvcbfwflrpca...

output:

oxbiurxlwuiniddbdxpvvshbhuebqaukeiyqccslfntskkgiwgkgabqzfsaffxczhorbmgbqenhvbtwuurbodzmcjoqzbavcdozfryuiidxbxjlhhawpmxbbcafnkabieokwtktcovoqeedzflyadtvhtlhtkleuolgdwkwsxtfgeuimksbbmnynlirbcxqvlgjmilleykbgtfzjqwgezaukcsjxbpkhbandifahzhrlwkwnqpzlqqvoespidzkjghfhlwtqgnmpfouunhtutcvcomekkfnnlyybhzstlzzv...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #244:

score: 12
Accepted
time: 127ms
memory: 179320kb

input:

1986
fnbtrumnltjxntbmazvbjbtjznnueykcsafjfvyteucvfdvqdjgxwnocoevlyxorjdxumcjcunpmwdxcvtisfaxcfaubzkntvllkcbtcvyqxnwpanylwhkevaeiahktkxbiwklfjhihrhhcydkngairtfhmkcvbinxqnffyphgbgdjbydfvyhlhngsoewoesncjjsfrstweutkerhbfusjarnnsdadavcquefxajesuhwcbymcwnbxwjuotdmcdpbnwlyupcvqutbqosepexhlcqmsdfqlpqeqfsfhp...

output:

fpuntwnzpnkzxufnhmjsbbgaewuquinncfknqhhjlruorvxbqwwfudokhcfhroowbumhdlmcfxakccfguhymfuhhvpxbqjsqqzenabszxbjcfnwnacgehqxwcwclelcfgrxyuxcfardnkecqqfcwodfgrjxzghfznzirpprvqipxgbpbzvrvqfwfzwefzuvlcrxkxrzfcjuptcrdmnctfwmfqftseywrnudjdaghuseiwcuglrzifevsjxozqmxdehkhzaczrbhhjpuuooyfhcigqbpvkeanxdoqiyiuxqkm...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #245:

score: 12
Accepted
time: 111ms
memory: 163120kb

input:

1964
pbugtbawdjqcuzkucjrjwrbiyahvlmbhnjvosxfxfytsydkovbwihjbdjcbmxdsmeclmhtnbyanjtayydzqpqqzvanzfhxcntnpycwvfkohrmhyquuzbpzisnnpepzxsipxvaqyncbnyzlddhhzolgunnmgyxglpifcvsshloprdzjtiywzcaxphpwdhyzfzaynykojkzbosqipkzzrwbdrkfvaxzdqwyyqcokucfsrckxgfulowvjmlbiqulmkobkpuvtxpfzqxyiekuihwsngdtowsflcgdskbncd...

output:

pulldhewtkfzeijqfnapxesizyznzkatfkyligmweoxinfykjlnqprvdwhudurvgoatbvcwohzslqblrnyuaxpdjmphtfkdcpoivwkxznugverzebaanqxtqraanuagrmqgxymfvezcbkhyswubdbmgtaokwepqhmozfoxalficzdnbwmhzuccofbkrpyuqlldexgtqjzmwzwqhlxxlizbjvqabqvsahzzdrctnofognbrpcnknriclucwzziayamrstxzhihqdclcgiasphykcsltlgkrurasxdtxqixaml...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #246:

score: 12
Accepted
time: 95ms
memory: 110280kb

input:

1909
mwuranqgkeaewwjeybpoftevqmcrarjclgcnjxprghcjhpgapsrqivoxprclorcunaagcwurqmmmwuranqgkeaewwjeybpoftevqmcrarjclgcnjxprghcjhpgapsrqivoxprclorcunaagcwurqmmmwuranqgkeaewwjeybpoftevqmcrarjclgcnjxprghcjhpgapsrqivoxprclorcunaagcwurqmmmwuranqgkeaewwjeybpoftevqmcrarjclgcnjxprghcjhpgapsrqivoxprclorcunaagcw...

output:

mzbhhtxtwiscanwpqynqwnjypiueyhewgjcykvgwaadazeahpvaklphbgaorxurvuvecyvbppbhlifackehnxnwbswclyofbhsqvjtyaegbtvrdhavaebiwhjxlqcegprsvuqngvpvkgicxnxjbzsaghrroqoxubchvdafvdwmsogxfdlcbzcrhpckjzkimeuxkybvqmdywtsdwcgztiyexxsogddjojrnudtngcpthxfootcvpwuspikbowwgyhfertcoaoqvwgsragphorebdfilimkmqjkkcoemwfcwju...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #247:

score: 12
Accepted
time: 89ms
memory: 142256kb

input:

1909
piafcywmcybkcctyhdsvkyljupcpuabsqednffhbomvremqffbcwfetzvvbdkyffqizldvdafooorphwbbufrgchmnksdqrkvzljussdskwrridexrwzgxymqjiryieashjoqdqyakkpfksgbzttkxseicogmkplqwvregdtelceqmjiifgzpeuzijskeasetcfglpwhlfbwosnrpmwvnmcmfvnunviiqxncbqrkhlklfbwqmdmtxaboexbcddfhffakxyjfienefsejznvwkcxftsrbkdjejfxcikf...

output:

pcdaehccdaaasbiyksdmaysbgamskikmazoxqfofauaafdevcaerkmcipajhglkxatnhnajzvgfrlwlqfatzzarllhwfsoaaftuaspavysqjuidjhzcbqgsthxbxcavxfhhizqzcjbfnszzorrokqrpktwpecrjetaseaapotfnidxanalkauacpamaaalarticuafferazaaaaqdzfkbagkljuhjkraqsraqlmhlaatfaatfeaqzubjamzelxuhrezfefibbignfaeswatftafaaayjarayajasvvnuwzzi...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #248:

score: 12
Accepted
time: 84ms
memory: 118016kb

input:

1955
nubrnwjpijzmzjxgjgsuxvvaavzuryajifvrmmyweeiqelovetwajzdnxryahwbmerhvpqwqmplvncezohwyvciipzchulvwqpxqkcafrpdhyvasndryeekafpoojiblmewvflkyatpgcudlorlfzdpjxornxwadhglrgsiokfatfnqthnqwisomvmrmpegjjbybixdxiqgjextyuikpbskehbsngbwuykeixudyvsvweqkauqzmjpamdssvdoijfetsmggdvjvfbcavsuolqwinzqpofuwauumztfq...

output:

nwoveerskuzgmvwbgzuhtdcaahxixipjevramlnavgvgphmqglnodjylcmtlblyebvbbhlythoqzkuctngzfqlounldkowlaooztwdypuzwehvgdcrbssbgogsppsfkagzonzhvlssipmqijcppdniwcbwlbrwnoiuoneomovvpzvuqsuccglywvwwpyyoiaglxnptawedakvfcoipkmtdqbxbvsusvaijkgsdfejdwinhqsqzankfisimojrugmviqzgwdheoojlvppxyutgzcbxhjhjsevwjbdxdkqdlve...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #249:

score: 12
Accepted
time: 89ms
memory: 103432kb

input:

1933
mwcfttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...

output:

mzaluxdvwvmctlhtfqzzjayxaidpzzvekxolkqzccxycstvrbmrwtwyybkgzynacegakdvqiuklaehobmempcxzfuetyidwibbuqczfqufapfyatufafgaepivawflyoblaphuwfjutypsvwnbwerdxlpmlgvtitwayqhaipkywtjazrlzjsunitkcbqxelgqoxgwayelrgyefhmbrzklameqkpuywiajhrjuexxbsndbvnjoehymanzbkrzpewlgtedgrsdvpbvurcfgqjgphvgcuixwkaaefaxinnhcjep...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #250:

score: 12
Accepted
time: 84ms
memory: 104400kb

input:

1946
pcratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwrat...

output:

prohaplyziyjucbeddqvotzbguemndbkdabdnmmxhrdnqzllaexogxnxybdqisyiacsfxvtfszsogpiqnldlfenfhwzoaatuboblgkpzctpqymonjddertglwouqvtvzwlamkzcahmxcmylweyxhvhrfbbpdthhuxujtwcnallwcsysgubrudytdlegufbvjquckkmfoavzknovyymwpfpylvmaubhcndcahovfdpapsppvccuqrbunxsugqtqifoxzazcsbcugpqjzqqshudrcbkgrjjcezyvfthytqttky...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #251:

score: 12
Accepted
time: 75ms
memory: 99440kb

input:

1924
losceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosce...

output:

ldacidawateieeotabqlhusaijlexazrxtaammjmdedvppuphvblzamglfaeabukiyvrywmitxepsrclyaecgoaqjaagwhnxchjnaxzcxahokfpahicuxlfdjcjuyseiqyauhuhasiaaaayhhyurujbceiaaahabkolmnxnoavytsaespaopufasaatukhimzsiaurircxqzijtijgqxvpaessezaaabrcrowyyqavalobaaqkhbabkstzyjmaxtggtoqodqwcmlansvkmxhvaltrriagayuabljamtzpmzg...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #252:

score: 12
Accepted
time: 84ms
memory: 156024kb

input:

1902
?
xftagkapqzpkrcycbrcmionwpwhqwbvxsiluzotauabfipfhdjzuwjwquvcbqzjayegbkqtcfsbhrclvfugkysunxurcyalgeoqtlxxnvpcjayhgfgclcfepixzwezguzuodvtbyjqpciagesyjssgvuzaycehthefuprevlmfwqeqewzzcolroeaohnwmkzybxsukswjvpoawogyhbmgdsfrseruuoveeticwmxczmpeoakjvhwbxcdehceodayasntqkjojdkkbjdhjjdzfgqofouwsuseufcwh...

output:

axkogkiqdwivgulkiychkmkuojiiqxawganyvclenmxjukdlyujcydydwdzrpxnquhffkjjfqqypwmstqyqffckiakkjzmoifivihuufzjmtaeatjrylgvobkifhjrsflwgfxgqcawbbjrsvldhkgwqgccccemhlscrnzbxgwrqufrjgeiyonjyblyszwgdgafrbjlpujaiqsovfomgnhobkxuwbyhlzfcuscmtpdstxkrhaxjxrakkvtqxwztpeahptepyznwamthkskxqmeygxwombblbiudekrxmhzwie...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #253:

score: 12
Accepted
time: 83ms
memory: 107628kb

input:

1949
oojoifrmavlwlwfzggkytdupwexhwzqkwmezfmcheqlforgurfctgiboqbxizvuvvnhbaoadpcpqhakpbmrcepfrmavlwlwfzggkytdupwexhwzqkwmezfmcheqlforgurfctgiboqbxizvuvvnhbaoadpcpqhakpbmrcepfrmavlwlwfzggkytdupwexhwzqkwmezfmcheqlforgurfctgiboqbxizvuvvnhbaoadpcpqhakpbmrcepfrmavlwlwfzggkytdupwexhwzqkwmezfmcheqlforgurfct...

output:

ojivrxmypjcaztfzbjcsuzemngvxhfscmsqegrxpuedyumsksdzyckeravtvxlspmcccabszuoespugkqngdfgyyvyaesmeammpqeglroekukcqwopvjvbukoxrnekincqnxxrgkmlnuagveudptzocpnejteqkpxmgbwfrecnrymmxwcvdhykpnbrotawbxiqwswzqdnxlawzvlkxfvkueiuwqayazbnukxcmcolcninchhvfsutszpcdnyrhidazffeptfacmbacngsrljezhtdgaxhtcqxeaqfndohlan...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #254:

score: 12
Accepted
time: 111ms
memory: 116192kb

input:

1995
vfixyzkcbspzkzrhkazjcapcdoawulpvikdbewxvftgejajufwyhterggkdjmydfbgkadrpzxhyyhjtcvaafngcysrefklcojmrpmscpkmgwvmatxpitaiowijkhdpxuzoyvwrnosfmrijhtgglqnwsmgpxlxteseenkjbosyqnbcmxyzmfhikduvepusltqvtudcwjzgnsrgvoledzvercmujlvjuvfixyzkcbspzkzrhkazjcapcdoawulpvikdbewxvftgejajufwyhterggkdjmydfbgkadrpzx...

output:

vfbdqawanmuraddhgghvlgtaslopbcxgvezrpyfmqhpyvihqtidpzzaiaryvmnqatltvoczdmanypmnoxubasveuvxakzzbhlhffauytvnizthpnhhgjxyccrhjboppcnhgkdvfitpkcjtjgmpqkknzzzwhalouhzisvblclsqgcixkiosfmyetrhfcfleacqmgnjekratxhcldbfxsixrjksupanbwgtohoaoxvxemewluxncqfaqmlqosxfuudxfljsltusvrerhrdqwrqywdclsovabgftgnjlaravnkw...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #255:

score: 12
Accepted
time: 82ms
memory: 104024kb

input:

1940
zhkqmaphepaagdqnvgdridddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

output:

zkhkrbflmsenaaufajabklayvvpjwafarhkgsmzeusxfjopiarooysmzdabhfnrxhppkkjduxapvkwpqwhtxafqmzitzwguirjwamyuhsuajjpkaafaagxwyaweaudeanaaqjzamvzaxtmymjlkobcabktiktxwonducvajdbqgpviaukkqnagsdsazgiadzsapcrpqyfaarkczfoaelaubdezsxatbhabicxxrelyofjjzyvblkamabuqyzraqawsityodzqkrodzgqcbvnuqjbsxmpqqvqmteraedxrjew...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #256:

score: 12
Accepted
time: 88ms
memory: 107248kb

input:

1956
dvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvd...

output:

dmwxtjsgoeaaxvctfjmyuemwvnnrkgojaziqtkbffllqgtyfanwxjnqikunkocbqiurmilpbfawvogelscumteixgsjlesgcwudiqemqafnznlnzydfwjgjkelhdqexppyqegtwujjxqdmlokvswfxtuiihkixkkcsbfyznuvdvjslesjvgwdntvuaiyuizlikjrqlfzhadouxkpscxcewlnwnxgjpijrfqfrpifqkwceqltqhyapcehfjahzecqcwpxmdxfdqmveeicdecygbpxwmerqcfquromnkhxrfge...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #257:

score: 12
Accepted
time: 102ms
memory: 157772kb

input:

1957
dxpwkruxzbkxyssduwygymqvswcpsewocshohwowzylrcynyedcumtlwwddvzmltxxbzgfaetxursdqbfjgmcgubnsoltepgaujqolvnwtvvkchwsjvhayctbizxqjsxxdewomrvtdoctfhdgxuqhetdupazzztvjrkvbrkaovedonpftoteruzmlksgfjhqobsbgempfwwklqvxcthshkymduemiicmijeuzqzwrvxupspccuqdlcmpjekwivamjsyozwitiqjghvtsolaforgblwpdjtbfgbtrzre...

output:

dgajejeoekhnlczfzjcztnpxpiuwedabbdeediefmwtrorwztmzbveikhnqwccriiandzajgvbqhqicduisexwyqexssqdxleomeikgtochekwlgrblsrlabfbtnjgrksaiblffxddrfpgemwtkqivoyskjxlslvxibjikktzlqopyaypcvadhyhlawdaopihbcatkjhofsykchlqxdmmlwqbahjbuunmozwtnxkuyatdyucjhhuprqmvjqtgxuevxafsjxltudolyhyovsgeykezjnffmkljiohzdxbvfqw...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #258:

score: 12
Accepted
time: 65ms
memory: 61132kb

input:

1902
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

byxjavanbvalaaaazqdamxaqafpaagtaggqaxaiedazzmjankcacvaantdalpoanbaacsaaazaajavhaknhiaaenavaouiauaatawawabhkaaaaagaaaaovadiaalyandacaqulaaaiaadxaacbafaaaqaaagaaaaavayftaalaarpoaaxaaagdfcaaaqvaoacaolxcsaaaatasdhaasqaaaaaltazeaaoavjaaapaajaiaaakyaiaazaabtakdvaooaaaagaaaaamhuaaeibyjauysfmaachraaziaaazic...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #259:

score: 12
Accepted
time: 71ms
memory: 106124kb

input:

1948
ldnnhwsidapefkhuhmewbxjxqphviopwrcpfhenvlifpgnojwkvdtwoiqqywqzzooziujhbnkeiavgycmirvaoxjxqphviopwrcpfhenvlifpgnojwkvdtwoiqqywqzzooziujhbnkeiavgycmirvaoxjxqphviopwrcpfhenvlifpgnojwkvdtwoiqqywqzzooziujhbnkeiavgycmirvaoxjxqphviopwrcpfhenvlifpgnojwkvdtwoiqqywqzzooziujhbnkeiavgycmirvaoxjxqphviopwrcp...

output:

lpvaatajhyhchrtalztorqhpkapnaaiaytlhqkbmwxnpewhnwfxcdbzurixqqftlqtzkeusofdxgawvnvwihzqwmyjelldcqhobwkvhbmuacpoxyxqzwpsyajlcmsmresvxcjgwvsrxnipylhcimimrqcnndphqckldvoyzqahnqoeaqpappncbiwkxkyrbombmnvggetsimerltadhidtkabxjckhcoymwjkujdbryxosmpxnhgpiyjxanovmrzmgbzsactdwcbfdsubzdrjxsqretolbvickhyfpiiogbn...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #260:

score: 12
Accepted
time: 83ms
memory: 104456kb

input:

1926
vmmtcnzdxzoxibygxcgrtxqaxqrrnbfdydzyvadejxwbjqwwtokzhcedslcszmeghkegxpuchbzxfoxzpzuokbnywtjbrcetmeezuxxzccelwnvrjuathqpverlwzayogldcjvctvzmvmmtcnzdxzoxibygxcgrtxqaxqrrnbfdydzyvadejxwbjqwwtokzhcedslcszmeghkegxpuchbzxfoxzpzuokbnywtjbrcetmeezuxxzccelwnvrjuathqpverlwzayogldcjvctvzmvmmtcnzdxzoxibygx...

output:

vsaduaaalsjamuaayaeasagrahuiueiktcsyzukkqqfgxllhguvqsfzxpblvspnktcsnrrgquzbtcknetytlldhlqvgnlmryickehlardrvsvecrccpuhdpfqxtvtpneikkfcamvulgtaqtpdkldaicyqrhhqmeebsspjbenkybjujcgaodkyhzwamlfnwbwdupccfacdrcjamfcofyxlfckgdqjgnmmmzfjnswkyixktxqwsmkhjtpfgyfcohrihemekkcycysyxlyvrfkurtryjtekmrdjdeuhjqkpiglq...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #261:

score: 12
Accepted
time: 88ms
memory: 106260kb

input:

1904
olsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjec...

output:

ojcigzrzragaypwacuaozrfzmiyiwaoksbadwmxlupwkdutvjxtejuhbfdfqhtzvvunipktaagbljzptwrbzquycdayvnytmenitkirhhojnyhjgjpgkcqjxxmrujqobssnwnxbcrfltxwehdojenmxqdnqybfgexxdklwfkihekawrjfoubqpbkpqsshbnjiizacbvhqvlbwexehgpsdpqrtxsvkfstppirhfbbydvquszvlmghfelzgpnwtqweyczmthygjjsiiyqmciwlixhuirliiikdjqznhqtwcloo...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #262:

score: 12
Accepted
time: 88ms
memory: 109392kb

input:

1996
imivjhycajlpahjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

itvxaaauaxhaafuvjpokcvqlvujogaanicjuiaaabrswcybmyxczaazdyaarqajvqxrawtolafhiqfcpyjktsympanmvtdaamwfaejapasangcfgrnfafqauprjcaagfcosknahafhpslwdabragwfaazvafayabgyesmaprhyxnagjfhhkycacrbfavsaaeaiaaakarljkelluynyqqugvjaonemxrjiwjtdnraqljhisttzsfjkrxbzlglsgjmpwjzjzxyxzjyqomcplkfueknfjdggxcbgahgfdtwbvic...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #263:

score: 12
Accepted
time: 64ms
memory: 120792kb

input:

1974
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
vcfjpajrpuysglocrqenbafgttfmkatjqpfvllzxulckxphwkfzuybqvnxaryauahclteljvluvgausgaczmzsrsffweqapmzjoczzoxyachkwlwggegpujfmolibdkmfnvkvtolmuphoniacydgqqhpxskursbhzcotgakbvkepuwgyooqzwbmofjhopaprwzwsegyshjibflyzmrqfshhujilvezinxbbcbqcvqijnujxxrrmexiyznnmbleguksb...

output:

ayyaiqestdtbhsqwoyvfvspueamtrilsyececptunimiljhrilbkundddgbsozimxeqfyywtejmlsrxcoekxsqajwwnnedlmtcvtzizllyhfuepafgxdkgqxckdykromypsldmcdrwgigyggnttllqznfxlguyjehylcwrwswsiiderbelhyjstumbotlfldgunpjqgtuzihjjequxofbslspldezfupuqayiurthlrquecohnnhbfzjkeditlpetffjzwjtpxaeeafvpscznwhhpjhrzfzudypetcgtojgm...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #264:

score: 12
Accepted
time: 68ms
memory: 103076kb

input:

1919
asiksvnxtyibdotbxhkzrfelgayzuiavzjybcxporzbwsjzizkuhyvenhiaggunvegtakuhirqtyuzgjkvbljjppbiqlthljzpknpaslkdjtpcptljzouihbgnprynvuxojtqverenjyvjphhzcwhqvdddhyddvohvfvolfazpojaxgwbqaxntnjhvqiavzjybcxporzbwsjzizkuhyvenhiaggunvegtakuhirqtyuzgjkvbljjppbiqlthljzpknpaslkdjtpcptljzouihbgnprynvuxojtqvere...

output:

afnafmadesaafaaaacaoapjaafaagazaeyakaawaajncbwngnpgdplvqkspguhxdcojiiuwvuggxnayawjtvntlxmcrlxrdmgbaehryogxdmrxcplkqylsgonifqnhhptadbguhcmbhdkkdgbfbhvowwjkamvfuecaxqbpvewgecuxkdvxepzwhiihyazdgyvwfoxdymyifllnvunkpahslyjcehcghndmlpykggepfqgyozsrlwuzhgphdmgruuppxrdvkusjddxcdndgosqqzphormleiioyglfaieuhhx...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #265:

score: 12
Accepted
time: 35ms
memory: 60592kb

input:

1965
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
ubsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrsdryqrs...

output:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaualawaaaaaaaaaaaawaaaaaaaaaaaaalaaaaaaawaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalaaaaaaaaaaaaaaaaaaaaaaaaaaacvaaaaaaaaaaaamaaaaqaaaaaaaaagaaaaaaaaaaaaadaahaaaeaaaaaaaaaaaabaaaaaaaaaaaaaaauaaaaaaaaaaaaaaaaaaaaaaaaaomaaaaaaaaaaaaaaaaataaaaaaaaiaaaaaaaaaaaaa...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #266:

score: 12
Accepted
time: 67ms
memory: 101568kb

input:

1943
?
kxdkgbbhuaufcgohunnzflrrbseaweclhgycxpbtngyxqouoovtzvbprxgxgctgepfaeihffapxhptpovhyxrsebqdzuqdoezrsdirjnxiwszneflpgaqigzgthlaauuattftfpsubctrjhqmiixjzzuxiedjasyfelwdnopxrdnrxrnnadtngyxqouoovtzvbprxgxgctgepfaeihffapxhptpovhyxrsebqdzuqdoezrsdirjnxiwszneflpgaqigzgthlaauuattftfpsubctrjhqmiixjzzux...

output:

akeazaaaawrgmkaaagfoauaizaljxmmaaquaakagaaaatatipaaaaqfspafcaaasdaaaaxrmaqivaouaazaavaaaatamvlanhplaafpjafafaaauanaxnyavaagaiakkkgcbbnaahnoxayvrxhivcxvpdftxjqvwpowktfqggpsrfajvsowqrsagryoruuwnzgwjrmmebepanwtnpzzsopauowifyumypedopcobebgejsdzinczrlfakpxnrzzwpmrveosyyatcewtcmpzhkrjeivpmzdygbmrettppmrsr...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #267:

score: 12
Accepted
time: 96ms
memory: 166044kb

input:

1950
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...

output:

yyyaayyyyayyyayyyyyyyyyyyyyyaayyyyyyyyyayyyayyyyyayyyyaayyyayayayyyyyyaaayyayyyyyyayyayyyayayyyyyyyyyyyyyyyayayyyyyyyyyyyyyyyyayyyyyyayyyyyaayyyyyyyyyyyaayayyyyyayyayyyyyyayayyyyayayyyyyyyyyyayyayayyyyyyayyyyyyayyyaayyyyayyyyyayyyayyyyyyyyyyyyayyyyayyyyyyyyyayyyyayyyyyyyyyyayayyyyyyayyyyyyyyyyyayaya...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #268:

score: 12
Accepted
time: 63ms
memory: 94212kb

input:

1996
ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...

output:

oooaaoooooooooooooooooooooaooaooooooooooooaoaoooooooooooaooooooaoooooooaooooooooooooooooooooooooooaooooaoooaoaoaoaaoooooooooooooooooaaaoooaooooooaaooaoooooooooaaaoooooooooooooooooooooooaaoooooooooooaooooaaaoooooaoooaooooooaoaooooaoooooooooooaoooooooooooaaoaooaoaooaaoooaoaoaoooooooooooaooooooooooooaa...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #269:

score: 12
Accepted
time: 67ms
memory: 105700kb

input:

1941
ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...

output:

oaooaoooooooooooooooooooooooooooooaooooooooooooooooooooooooooooooooooaoooooaoooooooooooooooooooooooooooooooaoooooooooooooooooooooooooooooooooooaooaooooooooooooaooooooooooooooooooooooooooooooooooooooooooooaooaaoooaooooaoooooooooaoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #270:

score: 12
Accepted
time: 83ms
memory: 104688kb

input:

1987
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...

output:

haahaahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhahhhhhhhhhhhahhhhhahhhhqhhhahhahhhhhhhhhhhhaahahhhahhhhhhhhahhhhahhhhhahhahhhhhhhhhhhahhhhhhhhhahhhhhhhhhhahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhahhhhhhhhhhhhhhhhhhhhhhhahhhhhhhhahhhhhhhhhhhhhhhhhhaahhahhhhhhahhhhhhhhhhhhhhhhhhhhhhhhahhhhhhhhhhhhh...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #271:

score: 12
Accepted
time: 84ms
memory: 99788kb

input:

1965
fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...

output:

fffffffffffffffffffffffffffaffffffffffffffffaafffffffafffffffffffffffffffffaafffffffffafaffffffffffffffafffffffffffffffffffffffffffafffffffffaffffffffffffffffffafffffffffffffaffffffffffffffffffffffffffffffffffafffffaffffffffffffffffaffffffffffffffffffffffffffffafffaffaaffffffffffffffffffffffffffffff...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #272:

score: 12
Accepted
time: 114ms
memory: 192664kb

input:

2000
ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

output:

dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #273:

score: 12
Accepted
time: 95ms
memory: 158616kb

input:

2000
lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...

output:

lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllltlllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #274:

score: 12
Accepted
time: 95ms
memory: 215916kb

input:

2000
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

output:

wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #275:

score: 12
Accepted
time: 76ms
memory: 217364kb

input:

2000
ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

output:

gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Test #276:

score: 12
Accepted
time: 94ms
memory: 213956kb

input:

2000
ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp...

output:

pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp...

result:

ok Ok! Both jury's and participant's answers generate correct sequences!

Extra Test:

score: 0
Extra Test Passed