QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#449823#8596. Подарунок ЛедiQwerty1232#100 ✓655ms17144kbC++232.0kb2024-06-21 17:55:052024-06-21 17:55:05

Judging History

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

  • [2024-06-21 17:55:05]
  • 评测
  • 测评结果:100
  • 用时:655ms
  • 内存:17144kb
  • [2024-06-21 17:55:05]
  • 提交

answer

#include <bits/stdc++.h>

int32_t main() {
    std::ios_base::sync_with_stdio(false);
    std::cin.tie(nullptr);

    int n;
    std::cin >> n;
    std::vector<std::string> input(n);
    for (auto& s : input) {
        std::cin >> s;
        // assert(s.size() == 3 * n);
    }

    std::vector<int> nxt(n, -1);
    for (int i = 0; i < n; i++) {
        if (input[i] == "?") {
            nxt[i] = -2;
        }
    }
    while (true) {
        int i = -1;
        for (int j = 0; j < n; j++) {
            if (input[j] != "?" && nxt[j] <= -1) {
                i = j;
                break;
            }
        }
        if (i == -1) {
            break;
        }
        for (int j = 0; j < n; j++) {
            if (input[j] == "?") {
                continue;
            }
            int sz = std::min<int>(input[i].size() - 1, input[j].size() - 1);
            if (input[i].substr(1, sz) == input[j].substr(0, sz)) {
                nxt[i] = j;
                break;
            }
        }
        if (nxt[i] <= -1) {
            for (int j = 0; j < n; j++) {
                if (input[j] == "?") {
                    input[j] = input[i].substr(1);
                    nxt[i] = j;
                    break;
                }
            }
            if (nxt[i] <= -1) {
                break;
            }
        }
    }

    if (std::none_of(nxt.begin(), nxt.end(), [&](int a) { return a == -1; })) {
        for (int i = 0; i < n; i++) {
            if (input[i] == "?") {
                std::cout << "a";
            } else {
                std::cout << input[i].front();
            }
        }
        std::cout << "\n";
        for (int i = 0; i < n; i++) {
            if (input[i] == "?") {
                std::cout << i + 1 << " \n"[i == n - 1];
            } else {
                std::cout << nxt[i] + 1 << " \n"[i == n - 1];
            }
        }
        return 0;
    } else {
        assert(false && "FUCK");
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

input:

261
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

output:

ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddiddddiddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

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

Test #17:

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

input:

300
jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjbjjjjjjjjjjjjjjjjjjjjsjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjrjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjtjjjjjjjjjjjjjjjjjjjjjjjj...

result:

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

Test #18:

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

input:

286
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssscssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
1 1 1 1 1 1 1...

result:

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

Test #19:

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

input:

274
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssussssssssssssssscssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssscssssssssssssssssssss
1 1 1 1 1 1 1 1 1 1 1 1 1...

result:

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

Test #20:

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

input:

261
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuueuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuduuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

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

Test #21:

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

input:

274
didididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididi...

output:

dehccfficbiccaahehejeggdagjfcadgajbdbbbeibjhgfeeafjgcgebeghacabcfgjdaeafacdejegbhbcijbgjdjaahhjifachdeiihdabadjbjeicjjdijgfefjeihhggcdchgbbgdddchifgchadfhedhejbbaeaejfjagiccajahbfibhhccdcfaddggjabjjcbbeajfdhgdgccaifaggihdfhcfdaddhcjadaggaadiccffgfichehicijjieehehaaddacaehff
11 65 3 4 59 6 54 151 141...

result:

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

Test #22:

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

input:

261
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...

output:

chdjcceghiegaijjbdcchicijjdccdiggbgieddcgfdacdbjbideeaaadfaiibeaabdgbadhedaheegbffgghidjjfjagaeadbaeggijcgefbbicgaagfjhcjbgiadgbheibadgehaeeefagabjeadbhfdedfefgghbhhbjfggigfjcchehbjhdhbidfijdaagbbajaaeigjbbfcheehhcjehebgcfiihhaebcbjhaghfdgfheejeiifeddegddibjfgg
1 2 3 4 1 1 7 8 2 10 39 8 13 10 4 4 10...

result:

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

Test #23:

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

input:

298
fgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfg...

output:

fagifgjhifjggdhcdjbacfbabcbcjaiddbgihbbgfgchjfciebghbedjbhiafgcaigicfjbbigcegfdbdceifaiahiecigicjfdcfbbjbehejefaacbhdedjjchebfeahcfcfachhdbddehadihihedhcgfcbdhieaieiieggbebgjfdagjfeaegiafegdcjihagefjheibchaghhcbdbfjhjgbgbfhhihjdadijfiiebchdcdhfgebiiedgjaffccfjacaheejcgdebigddgfaghaieffhgccebbeehff
7...

result:

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

Test #24:

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

input:

285
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

output:

igjfjafbhaebiijajigjebhhbfdacgachjaeddicfggcejjgcichifgbjehaacaechagefjgfjfafbhhedggbgdbdbacighifgdhcaaghdggefdcfjgbehghagbfbidhibedcfbgegjbcdegffdjbhdjcbjdccfeiegjfeiacgfbgaagdhbabbigfahbijbfdehecabbbdfdaccbeigjbcbefhgdaehgbjfebchhcfgigehgcgjafdfhdbebgcdihibjdfibfjbcjhdbaibchaggaigbc
1 151 3 4 3 6 ...

result:

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

Test #25:

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

input:

272
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

output:

iaeaighbecbbjhfcjchjceidcjjgeibjgagbhgdddaijcdgdiffgdhefeefghgcdabggcbhghejbajffajicecbbijdfgecdadcjdbifjeadaeijfbechcheeeaccbecaafaheeghchedaaedfaihecdghbhfjefgeffiicgjbiaefdjfdgcfebagehigehfgigejbdcgehhabcfdjddhjcicjihedegjcdfaaadaebdjbihjchiahjfbecigbbdbacafediiidcaibi
1 2 3 2 1 6 7 8 3 10 8 8 13...

result:

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

Test #26:

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

input:

296
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qzexljnactcaxsjnasqdhywyrhmoxjmxbpmnzeuveirsmdzwsmoxltipgzqkxcfsuqgmqdxciugvfxsteltdhmutunxkeqqtqliaolztqthrhbedvvdvtzpihkdxekidvegsiuleowdeeqswkdaubscvtnfornwkfkeiflmvevopwmmuwzrnyijtphbqjfeupwicxveivyzkuvwtovxercujocksqlxzhxhtvvyncxwfhubjtcikmvcfegjwnarphpfqyluobiscaccopyjcbyqadqmhpqvyfcltqdrc
1 2...

result:

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

Test #27:

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

input:

283
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

output:

ifdgkclbqjvhdedriksictbzidhevdgqsyihpjovsedmyvulavudogsddzhotvuemzwecjpxtnldmqlwklxuhgzkhfjdejqvdpvpjsgxahaknqcssxuypiyptldfmjkfcfpgyldwcbkqaocirppgqzplkjtxtsotulzcvtlvsqtzdhejnzibobuzvaidqbptclosiihnrowjxqdqgerapjphuyqbhtavyikwltolrgjqijadtwokneqvwtlxvhjzjuzjwyubckhsqtfxubvkfhkitzg
1 2 3 4 25 43 7 ...

result:

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

Test #28:

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

input:

270
klklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklkl...

output:

kfxmqyljuitgldbrytqzwnzyzcrggrkcchliyshwadgwrhotuicudynzlznanoskkggcqnklctxbvznyannedcdszfkhnlgpoocbqtfwqrmuzcvcjzncxqklfkquehgbwkxgzvphevvygjpcaonxrhwkzujdkpxlcehlrplvdrayjxwebwtkjumbevjyortdngztkbfdtlffwuxwcwahatspmzpkyjlouyzfqfbjevyhspzswnybnnxgirmebwafvpejrpeetjxrnh
120 2 3 4 5 96 7 10 9 8 113 1...

result:

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

Test #29:

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

input:

257
ycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycyc...

output:

ytscdpohubayllylufhzsctsosxxgrcempnncqbfluaklvlarvanlvljmsyfefbtcnewulzhemcoauzinbxxprqzjnmzbwzqrkltbyzecdjbkjvafuefgdfpzcbbldolwwgmwzeqmqzpivfpnhwujefjnjqbsucoqjmthgofboogixqqhavoaioijayhlcutixxjjjpluqxpzbbwswhhzigjvajkemjuhmuwircnofmsjognxarfejkdmrjrbzqdm
75 119 214 183 5 163 7 133 9 159 226 200 4...

result:

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

Test #30:

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

input:

294
gbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgb...

output:

gcsojlkuqqszulrctvmasnwoqulhxjfomazioplqbsixohkugodtdzncuksgsujkurywtiwceayhboftqssdeahryeipywnhuypcboysraevoyyldowbkwnhmsqjerqhqiaaqnnesezagzqcnjovqbrrbvtgmbgpohnpvdjuotuthnltycpkdyynwynizwbzuemvnpzhkpbmjcizmyhrobijbqianjebwhukxbdrurhwpxdljjaiqbljjwjigyzgwugyzhjwjivpguwrxwqmlwmrtipcfooymlaldz
77 30...

result:

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

Subtask #3:

score: 6
Accepted

Test #31:

score: 6
Accepted
time: 1ms
memory: 3924kb

input:

295
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

uuuuuuuuuuuuuuuuuuuuuuuuuiuuuuuuumuuuuuuuuuuuuuuuuuuuuuuuuuuuukuuutuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuucuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
1 1 ...

result:

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

Test #32:

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

input:

282
jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjpjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjbjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
1 1 1 1 1 1 1 1 1...

result:

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

Test #33:

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

input:

268
llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...

output:

llllllllllllllllllllllllllllllklllllllfllllllllllqlllllllllllllllllllllllllllllqllllllllllllllllllllqlllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

result:

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

Test #34:

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

input:

254
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

output:

dddddddddydddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddvdddddddddddddddddddddddddddddddddddddddddddddedddddddddddddddddddddddddddddddduddddddd
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

result:

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

Test #35:

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

input:

293
tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...

output:

ttttttttttttttttttttttttttttftttttttttttttttttttttttttttttttttttttwtttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttetttttttttttttttttttttttttttttttttttttttttttdtttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
1 1 1 ...

result:

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

Test #36:

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

input:

291
kjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

khmnjhcigdigjloioiejgefgdhggblabbikgekaifcndnbcinkmehkjbfoghondieaikmanibdokodkchclldcfdfbghdcjgagnnaoadfmgikliafdkmabclmdaeelgiganeolhcgdbdbobefmleknbddkmfjicmjmglndeakgbohhihmljmkgjdheilflfhncjaejcoodgiejnbjhlddgmkadgmflfcicklgiekemdehklocaingedcgklejdcimcflmaajhmngcnjangeldfjkenmigagjllj
13 8 135...

result:

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

Test #37:

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

input:

278
chhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...

output:

cnlbfhhfieogdeljhnedmdceobbolddobimkdmlmkhfobfoiegjabdihoeceeijfnglnoehifjailmddkfdnekclogefldlobdehakaaocoofceicihcomoedaknkjjlkfhmnnolnegandodediaidigmakjemlaimmgomaeimeaenmmlkhmfibfoeidnddiafjkoiobenbbaadbogniffeejfgjfbcodngkijnofalhcecgeabfnojmankgnmioafdoilcmcllhkmkjfkaeah
6 6 6 6 6 6 6 6 6 6 6...

result:

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

Test #38:

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

input:

265
hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm...

output:

hknhafmndfedfdaibeemjhmhlbmhfccalahaahjnagagkjcfibghehfngiinfdhbhcbgbdklgjjaminekgdiklfdoimgfcggmgdbbdgnhmfglndgjfahcfbekleblhiaekmicngdennofhkoiankbimbikafiehfoobhfhhhdmljldhddlomdfianmkmmlalfcnebhbiodjkojbelcijkemgmhifjgjjglkfidolnibnjlbnifjjhoclacalbnacnbkhgfedb
20 42 16 56 5 6 5 35 6 6 11 42 6 1...

result:

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

Test #39:

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

input:

251
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...

output:

cldjkfkinneeejhhkhfjgllanfmlbgijhchgfjjagekegmnleoeojdhjfbfbmnnnadlekneoeecjjiiknmcobfifehedmggmjbfchfelfjabajmjmangnodnibojdakceokegiakooflbioglchhdcjjjeolagdjogmlmlcomlnnmkhmondbgeffdaihjjhajclckllehmeemanodheigjjiacoelalgikdeediakgjflmmkagfmbbkeiie
1 1 1 1 1 1 20 1 20 18 1 1 20 18 20 20 1 18 1 20...

result:

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

Test #40:

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

input:

289
ijjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

ihhihokioabnaachheceaahgllbocbahlohkoilhillclcggljonlnehdkiihicaconmcaimdlmodkfafglldgecmojgelfnfibmabjhbcelgkicafnkajgfolacjgmnkljkknbhodlejknhogknlclaellgkgnhklmllebendacabdklngcfggdmjiflelifhlibmoblbfhkokgnhamhfhmlgeojaolklnfhjkeiabjjgjdhcemdokiljfojmdejakfodnfinihiljmmloagimcmbmagmmfn
103 95 202...

result:

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

Test #41:

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

input:

278
kvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

knjewksuqygfeultwzttgpovltlxrrzbzrgjsanijusssfxdoewobpesethvkxjwuqkygicfjjqbzajipbjmozsnallikbmwrqwrfeleasykounacbmremkdiqazbfibvnttrwwxbqimnohdpttxtapkvgzxvmrcnfmrgyczpdhbcbfrvndvdddtznrbtboxjiogeaxohvkibygibleogyyrdmifgajryftwxsqvmzbklmfyewypevsanqaveacvqasvvorujotqqopxjxykxu
129 2 48 107 107 6 13...

result:

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

Test #42:

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

input:

265
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

aadbzuvcsfcjotyjncdojjftsztzylygyuyocgydfobfqwzjzsrftwnkxblezpeotccainmhfxhuajqmiwvqifwvqgjzrlwdgeynhvqhlqlmieebwjcrlujueojqlwvngqetmglrelgpcuyeiscimvgkggtccwpovvzygquktdquftcuaxzofqdhzqfcxahgpgjxqmgpafhssyduwhpkxrlegnbkbgodtmcfmxtwuoknmdtycwmfepbgxllwvxdbscvutzqap
1 30 23 4 5 6 1 8 23 6 8 12 13 63 ...

result:

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

Test #43:

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

input:

252
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qpstshaqlzubhxwfnvvnqcukxxagivjzkybohissmadxubjjolaauonjjfsgmqtgwehgbdlrntpfgzcqxyvfjpiriexnqqmkbjbiyfospyjoxbvwiapxepvwmvrreamdytnzrapzsvrpnyctctfgjltitethswvjubnwmzayzcgjjwzvgdlfsnjvwjyyamnczmpehvehzefzillorlaanzqnwoozxljgwfcyvgadpsjqcaufmksckmzvqhgi
1 41 17 29 5 1 1 17 1 41 18 1 18 1 1 41 17 18 1...

result:

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

Test #44:

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

input:

290
mvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

mqcfswhewsoutfjvjtpunqpetvloszsltwwoogaddetoeyjzvbviknsyexpmxtastbfhfirvlxdukccrzimhdehfqceajoptpptgljnqollcecytakyivqgnxqgphkqttdwapddubunygtbjqbbmdvivedkrofhutkwmjskfpslgmskabtzifubbmwlnknphmetlotcfaithojyehfsclwiorxnwtfqwnfdqjuhzybzfwucbybmvbojtmikfinffujewmbjfxgvhecbwinhggcpyjymdsbmhvi
117 15 14...

result:

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

Test #45:

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

input:

276
ciiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

output:

ctpbhmxndbmgjihpqkkxujlbpdojbdictjjysuukcxdqmqdcfioisifrqelqkjhkinzkvfujdovefhbmvodblsbvymfjavfuluornjsamjdemnpfwrggniyaujazqaklckuztbyxseaasmokraxxytdswucfkeyhdojsqhuguyodhshotsommzsyhdblizmzdetphrqlxvuajhzgxervblilaciqmtsqvvokntqrfewfvhpevodbmcwdawhucuxsyoxdzbbepirgasnqbfoc
118 130 58 242 242 58 1...

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

input:

292
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...

output:

rrrrprrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrcrrrrrrrrrrrrtrrrrrrerrrrrrrrrrrrrorrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrorrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
1 1 1 1...

result:

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

Test #47:

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

input:

278
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...

output:

ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffrffffffffffffffffffffffffffffffffffffffffffffffffhffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
1 1 1 1 1 1 1 1 1 1 1...

result:

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

Test #48:

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

input:

266
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...

output:

fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfffffffffffffffffffffffffffffffffffffffffffffffflfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

result:

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

Test #49:

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

input:

253
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

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

Test #50:

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

input:

291
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...

output:

oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooohoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooosoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooloooooooooooooooooooooooooooooqooooooooooooorooooooooooooooooooooooooooo
1 1 1 1 ...

result:

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

Test #51:

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

input:

295
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

output:

debcdececadbbecbebdebbccebdddedbacbaaedaaabebebcdacaabdbebcabadabbedddddcbaaecdbeceaacecabbaedcebbcedbacedacedecedbeeaacecacdebbaeabbaddbecbecbadbbeceebbdadcaacbccaacaabbcdeabdccbebeddccccccddbbaceadddebedcdecbdbeaaedebaadcbeadbcbacbacdcbccbecdbddcadaaecdbcaddaaebcbaedcbcebadccbdaaebbabbbbdcceb
1 1 ...

result:

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

Test #52:

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

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

input:

268
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...

output:

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

result:

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

Test #54:

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

input:

255
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

bbbcabccdaaeddeedbdabdacdebacaedcabacaeeadbaeceadcbcbecaeabcdecadbcbbaaeaaccdeaecbdbdaabdbaaecabaacdbecaebadbacbbddbabcadbebbbdeaccbdbccabbbcdcbaecbaedbeeccddcecdddeabaddabeaadabbcceaddecdeaedcbacdaebaaddcdeeddedccaedbebbadcbebedbdceeabededceddbdbdbaaadeb
1 1 1 1 1 5 6 7 8 9 10 8 12 13 14 15 16 14 1...

result:

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

Test #55:

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

input:

292
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

bbdbadbcbadbbbadecdbdbaebecdaedebedccedbebadaacccdeaccecaccadacecceaeabeecadcaddbbbdaaeadaaeceaaebcaedccacaacceeacdedabececcdbabbdacbcccbdccdeaecbbaadadaccaceadabbeebeadacddeddebcebeabebcdecbaeabbdbdaecedeccdebbccdeeeacceaacbaeaecdddbababbebabedabecbaaacccacdaabbdeebecdacbdddeadabbebcdecddcc
1 1 1 3...

result:

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

Test #56:

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

input:

289
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...

output:

cwuavzgwhszmyahthcciimlzvdjhcbxiqmfltbcigsykpukhodmjkxbiradxymarqcbwudexepqyshzrjjgpihrlirccuoxvvpctuimwzjrwhokrnrcvqnbceeehocbreqpxrzfqordozbifwqnjilgiuodroxinucduoypzqjejqiatburbygvskmbwfjbtewcurmmnbyxzsqiyxezlvlcaiazeklzpwhdkognsukqnzjmjrneyiwaouyfobjfbnouexgrxmellagodpqifejizdvqvkgshb
1 1 1 1 1 ...

result:

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

Test #57:

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

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

input:

262
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...

output:

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

result:

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

Test #59:

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

input:

300
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...

output:

nyltrdweybalineehgjailnwkeaelvunxnsojspruwnvrozslgakbhwcstulfomljytrlsynrtrfxwaawqxtmeoybbsvybrpxekyphrhjynfpviypjhxykwemozqalzymnlvfhldrsbxfaoizivknptlmkntfavtteyfmabjmjbhfguuiemradhgjuxujtuhuiagruigvevtpxtcdiqdegjwjglldeeyuctqmxhfiiiogtqyflielcsntwkvhfgysbfpstoiaqsanawkclqgdjhfpfhcxecavkeducyieagv...

result:

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

Test #60:

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

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

input:

273
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

voyhfvgcbjzlxkeirtnuofdmzntnqyaauswhhrbotgknbfmrxgictzfxevoqtjalnnlufrsvghrkkuhilluajqytfrkxkiffzikrqpddfhyihmzgrneewhlxipwpvhpwwjitelxrammnmvbcxjoeopeokdwcgbvzxzpyzmqtwvmuvvjpmvqgzwglocdjwyqhyzwuzgxolbzjugtmdgjsfgzgfinhbpwtbbbcsdwxjookbufnflpqbxdimzdxoqsokcphqyojktussymdd
1 1 2 3 4 5 6 5 8 9 10 8 1...

result:

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

Test #62:

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

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

input:

298
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qnmgmjhjoorlksuyhowxdxakysuhaijoxpkzzlmhmesnspcwptmomfnoyngzkkjuxhnxyrafrgrppelooxwxbezhpjksyczskdhlcidjzmchmpsdqckqghgixawmgsejjttxsuqmoydgxkjreqrhukpgywangspfmmxozdczvicolqxrgfijzuxefobpoegswtvtfmxjuyjilyhukbtszjxdmlxxjsotvgcanwquaxdaqqnzwoezouteppeepagobpamwlmacdvgkionybneuootakqozpqnrgrdduhqpn
1...

result:

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

Test #64:

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

input:

284
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

apogzhbjlaecakdwmpgoyqlyvafaxmhflhoqsriybbzjbtwdgrjemszofshnefhgyrkqsdfwwijfdrogipuywkxrqcbrptswcdvtxbpzmbswzkwvqubduqjngllyesriweavibqftmqpxilraulgbiuefibfrcvsamvjpeoyxvllrzostilvaygohkblbhjvwrjjreqqfirgfxexcrzvladilbqnmzhtkackcrnimucbrwtjdrawrowqqrkcbilmjfvlosiwanqzrdsvewodqasuukwx
1 1 2 3 4 5 6 7...

result:

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

Test #65:

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

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

input:

293
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...

output:

zxlhxpdphelfacuhqwyzwdqdnpafobctieclbygipnzlvweapqdtkdddvnpgsxrvibqwtwqdbpejyjxhddaqtbfdtnohhkpvuokafwppbptlagzfvpqkfgqybrxubllvdgmnthagbndcsqeqoozreveyyqhqmdnvczpicsreuuuyrcgkaglfpbxzusjevvwswzcwulehiejeqtlsqlnvyyzynykjbtcxxcajpnhgcphxjxyhbnjbnyyegqttutgchaufqqvyyjzniftfhcqmiizrxooonwzfvvggw
1 1 2 ...

result:

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

Test #67:

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

input:

280
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qffqpoqvkqnkidokvafmpqzpxhyelfsfcmefvyatxwlhcccdfiaucfwrkfhqnudbysusryjcihfalpykqnnpytklfcnhhponvyfejciffakfyejeauifyjmoahobkxozxwhxkrilwveqqdoggujypzhqnnwkstuxznlfkfphqkrrriejkxxuapinwsnmowwgledmlccxwwhywpcfubtioeaqsgexvjoaadyrpwbmoovzpvuimslkhtbjxdvrsujxrumukjxkpilmzoavsgjzaibq
1 1 1 1 1 1 1 1 1 1...

result:

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

Test #68:

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

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

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

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

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

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

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

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

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

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

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

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

input:

292
kvvgbwynoebiapoeyqkmrdnkfviuvbvjkmjgqjrmjzrofvmtxtholphvnigovmteydqhburokcyrovjjhxmfgsgzawbslhjbnarychkldalicffvuluobkiqzvlqdvopumyigdwhuasyzjniwoerthkdpxqzktobftzqvgzphqspzaugwayrknpwkufmxvuqxbhoefkuqudzqtcyratwgboknochxkpuxcimycxjmgfdwwjxdhxlkzaohbhyttaaynqorastemempostkrlrimourvbuikkteohtkvvg...

output:

khuodwedvviqfuhzdntkgoybabzigxwnerunrmvlaexxktmquhjmgonkujhotdlsroelvempkyudpzfkriolplwhwglmomwmbgolxqecajjykmhxoxqpkqcxbnumbvfcwjabsdhqwjkohndivazoybuhootiafhhqnqsxckasrktvbezvrwascpyprjuvqlkvtuuhxiykubzgdkhqtftgkrfavrocooqybffbeypuavwthocrmomhurayskyaqvjrzivtmiijvrotdttzibxyjkgpyfpnzkggmzt
218 45 ...

result:

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

Test #80:

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

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

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

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

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

input:

298
ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppnppppppppppppppppppppppppppppppppppppppppppppppppppipppppppppppppppppvpppppppppppppppppppppppppppppppppppppppppp...

output:

ppppppppppppppppppppppppppppppppppppipppppppppppppppppppppppppppppppppppppppppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppppppvppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
1...

result:

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

Test #85:

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

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

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

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

input:

295
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbgbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbfbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

bbbbbbbbbbbbbbbbbfbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbgbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
24 1...

result:

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

Test #89:

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

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

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

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

input:

294
fbjhbjadjahefeicfdhddfdjiiefcebebgfibiabjiiagciceegceidjdbicijchifijghhadabghaffbabjahdcfcjaccghdiefjebghhcdifdaadgagjhfefcbabedhddbfdehccjgicefifbejijehfiahiigbfccaccjdfaccfefcgaccjcejbbjachefbcdjcjediahjdcjdjdjgfefijadeaiibgjajaabffjgedgeibcajdbjceegcdccefihgafedcggjaehffgfdafgiiagbahbeedfeafb...

output:

fbdabjbbaiahhacdejgggjbhfeacdjijicceahgfjfeidadcafjdadjhcddjgdejhidccbbibichdjeicfghbajfhdjiddfeaiceecfdidedfaffefedceccjiehgaehehcaeecifbbcffhejjhiijcbhfagbjhcfgbbeigcaecadffeghbebaaccadjgiaeghcdafiebgjgjfffaggjdbbidhfdficcgfdiccfihjcebidegejbebjijadidfacdaeaiifjajgeihccfjjeaagabfjgfjfgciccab
139 2...

result:

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

Test #93:

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

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

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

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

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

input:

291
tjrztteweevyxbwhmivuciyndbdyggshdfgztewenwhtsnngqvomktgeqqngdkrflklyftuihtkarcdxbdcooajhxdiwnerevguidrdgnmsgezvspxywybmnkbrliucxhsmthxvfqdebbaxxubrllnomxeqspnhwttvhexczfufrsbkvynjfxgruagmzyotwlmbuswitoazdjvqozfhiejycmybwiyhqnnsaggfjylvfgautgkzcuxjiaivqysywwqbabdzgnevzwlmmviyyyfzkpgguudutocitjrzt...

output:

tzflvrzqwtdhzewdugzyddgwyryvhbbnxwwkvtjeimyfisonyhflxiooseicyugmgznmyhrxzneyxenimbcofvavgccxtiyxlxtewyxvqgyebqbtsakbfshymobwgnfygdlgqqtnmknlsgrghvkyiiukbsxhnqzwusummrfwrgsqeshngbapxrwhulfwkteamozfurjttvaectcoapnbvclegueikaznkgbcxsfdtqjdpuomhdmjltbiuuddijgyandnyfjgejzirvabvquzvwwtiuvdyxgehdt
199 190 ...

result:

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

Test #98:

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

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

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

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

input:

289
aozpddtfwjsutsqyhvgjdaxvpyaihmaqirzqgtxvathtvgztbkvicdujjlcwelkebsvqskytgdkhfkiogexeegmflaozfiifgesdsxsrsjuconcdscryvlordriwcfeaagbnvwolwrxilgbvpwukljhbhjpdbbzpbqgkpqxfpobeaiydanizljrsywxtpwqxrkefdrztfzzsuypsktwppilwctowrpfttfulawxfznjmpsuvfebigpicbggbmrzwjnhviknturhoquznqkoesdgufqjfktgpbaozpddt...

output:

atpetbttowislipuctgahfkpqzigppdvbyuebkareglxknfvdkngtqptvevdsosgknsltazjxkttcfwtadfbalfktidcjaewdwxhlibzppgofwkefcxrubsvpeqijwrufzapipvurxgrxqrryhdhwsuokaijueoqqdgiwglzjnkkcsbjfgfsgbeihtflmjnrfyufwwdmivgzmiixrasbprzuhxdjnsqwwqbwszeguveyfztxofzydqocholtrjapivcymsbcszvslynpgpoljrbzkvbdohgjq
159 129 19...

result:

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

Test #102:

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

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

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

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

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

input:

290
oahdsuzjxlbtppnzzddxjqivjpvcfwkborvfhrbirwrtfvbvqwxtqsxqjrgybhkwrjrtvwqzbvwezkpjtkkpcdmwyyenweimobrcvhjuvsiohlhkensyzqpbkxdisvtjjlncqeihvcgzbgcqchlsgysmqjscvzvyvmqtgnwrrcuxicbwpaozeiwphbzxwhodbabirrhntsptebjifzyoezqxmfpteivcrpnooviqrqxtwrhhvaqzloahdsuzjxlbtppnzzddxjqivjpvcfwkborvfhrbirwrtfvbvqwx...

output:

ovvjnbzqygkrxmsdqagjbuqbbhxvyssvxtxavztvwraqhgcdvwkmqjftivcvdhfqbaqhutgoivawsbypwkiwxbhilthrbijrptxcibqwylrzwpoygcdobmxtporocneevpjrfjqwzbobbohpskiptzxgwrdwrkjichlqqmqzviexhjzfeigsdsnqpmyyhaclrinkhhrrrprzzkwrhskxlxqanebdavevccakevfzitmtrvwjwijpsvetocfvcpzewrjcncnzyouxhbxyrmcszyecobzwepjcsy
221 76 31...

result:

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

Test #107:

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

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

input:

263
idsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsv...

output:

ifwcqbpfrpwnzgultpgyohzpjaudswquzawbajjltzslsooumwgcldqucbjpeppudfgxstyxsdxtqlvrgljrvbbxdkuqswxpiufpsqihnswhfkvuaprsstgqnegpzcyxpsgwujpugvlyfmsbfywtcotnthrjzbrwxetdyeurobeeunuerlcdvajqljfhmheazundsupiwufaupihjxvuqxoaaolqlwvpmpdfvfsqayyanpnsyynhpkucxoufwhfpmlhezrf
180 2 64 201 234 78 104 72 231 104 1...

result:

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

Test #109:

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

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

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

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

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

input:

299
vypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkx...

output:

vkbiogeaknnyblefmksyskrjegovgufaiaaohgxepwqlxzxxlonfkboxnymbctgrnryjrflgkjdemhohozuonpfnyoaxqsqbzcdllawnmigaansbmwoftrkcykmmwepprtzrzuhnvblfbyekgbpokjuabsozqglwtttymicgyhjhorwjqlbxtgkbvsjiakhqlobpotcvphklsxmxfqjogndilnsgabyskbuygbojbnhjjdxllwvigqvzmjlujuavrljxyhidfssbyworprrrlquovgqpnoytvmaulalmmkh
...

result:

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

Test #114:

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

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

input:

290
butyrdetighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbt...

output:

bgshapczjqiupfjgbifrjhegzohaxrtseiridnkbrkmmbcyatysejbtldtolwsderasrvhnslumruerigfviainipkuzcnilzdbiijybgtybutejwdzhbcldptmmjstnquylarxbbbcfxtmyhztuaswasnvmscfqtcymsontugrwqhfcifbcplebjkdkhdrsrmhzrelhuujxkxjcbasvbniegdbuszfluveyremisdyrosobcqcflnmvgqsuuaqqxeldijhucasreasjrytughykwecdrwzypa
91 238 21...

result:

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

Test #116:

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

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

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

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

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

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

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

input:

299
enujseyaizlucvjcvmgbutqpumvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

ejeahxilumufozjdtuwatnoqvyxdtkjuckwjdducqbifpnpukbawvazlmbwcnxhwlduluyeqeuqivoolfpcpvozzisgvyyvkihfiqrffpeyyqbdbqsmozgtxdzgielwrshgnfzqckmqmwxxiasdpcgcrvemardivpgshkoajvcuufkidoqowwusyyozuvezvqgybcgnsxpibjsqseqajkotzeqgukihdunssduepjhyfdlzgciuxrjhyallqpowwgjbuxcubsiwhjquzquyesiqlyhnvmwjijzmrorpftus
...

result:

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

Test #123:

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

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

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

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

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

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

input:

295
zvlkfalxtwjhrjthrtggwyyprxigunideezbxecyikqyjzdbibzwkycphegaybwkbxpnxrzbjrwuxmhyrslrixiqnrnermsbkgixineiznnxrivsphmhvqotaxhnuqhzdbhsrthlfqglxikndmlrxghzwplwxhovnabukbqbfosfgbsjmuuxshyxbpmjvawahjodironqdtepruhpogfewdfzctsizwlzdodzxxoiqtdbbmymbgsdzqipkbreififnmcgikradcouyoqtvugwivwqfnpdkyjpbiiezez...

output:

zwaksrpbjrbdoifdjbbqaqrxobxlhktdjsrguqsugmqpohgzzkarvcoxeaautxogiqshmpqmtlwhmheyzdyxoxrbguuozujmtpngbgxlyklxnpoirpybbmyfqsmbensvvhcigvpupkrhrfinrdxtdifrcdzmhznbwpgkqwxykynvbidfbhzisyrxlwecxohgkoiukzhelrjqjwjbjdttzhvbifxtfaidfzsnnwhyxkeneealpmiwrnnivpyiwienxhgiqiiwhidfysrdneiwbdzwzxxgeqizrcltubb
249 ...

result:

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

Test #129:

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

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

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

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

input:

293
buoxflctinsyenrjbzmlnqjyeqykfcdulqxnqnqwyudpddoydpankmiwwjbmhqykxjhkwcrbuoxflctinsyenrjbzmlnqjyeqykfcdulqxnqnqwyudpddoydpankmiwwjbmhqykxjhkwcrbuoxflctinsyenrjbzmlnqjyeqykfcdulqxnqnqwyudpddoydpankmiwwjbmhqykxjhkwcrbuoxflctinsyenrjbzmlnqjyeqykfcdulqxnqnqwyudpddoydpankmiwwjbmhqykxjhkwcrbuoxflctinsy...

output:

bmyypqesxezfftybqnrnjslehrkuvwcswdlqkkwcgcdnfmdfwervhhweyjxnhwdkuxhuyugvossajaehavysrklxwfsiznlcbqyqfzprddfynftiyheqehchgcaamcaxpcamyqycbzovwimowjejnjlaeqcfqtsmrvtxkbjagaiplpzyiplaksbzykqufadfcxulfyxdsjqwycainqoxpkvycjobuwvoycnlffvgdudndgwysrrsochldolxafwumscepbhttndejtrmhwwfuyulsyjjjzlprrexv
65 87 ...

result:

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

Test #133:

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

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

input:

267
nbimtggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

output:

nhsgslepulirfwcrlypedhtyltjtwzxsyrpsgovoqlueitptpndpudjookmcpcvlatmtopakxgfiozxpyddbwujjwqkruipbflaiewpkchzszbarkjlsxdnprixfnppxyjubyfcxxreiwrhmsdiqefzpkrnvoauwwusqnmnwwvbuwxjspvopdenwygfegcaivqyavkklmfyubjqzfyoeqgfzgoofzismdrnzgafvvpbyrfzhhevnrltyrvtocsmbbjpsfqqdgxb
96 2 30 193 129 52 186 33 76 153...

result:

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

Test #135:

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

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

input:

279
lirnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnr...

output:

lfvajiqyhazeyeiqgqldbirqhegialcmuckccrbkummucmjwvetvofwcwoxnfzgdgljopzrlwyewsrevdramihkrwpczrigyywzpoboztxlcuqphhfylljftichffzbjktvwnjiuqrtvijfylolaqabigjwpkcyihilezzyqpzznlqazzvialbjqxdpdcnvuyrmiymlybdcdhiyamvemouylhxwjzfshmvfrgpmypbdhltqeckdahbijlfgrhgyswgwyvofnbkvkyppfsugbwhu
141 43 224 179 172 7...

result:

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

Test #137:

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

input:

265
hofaumdtuurnczvlnrnjtajuipifkrmbhgyrthclqfgxozeojkweqhcqexkvbfzpgiudplencgekesmqnndectokikcgcxsqfuocffykxqijtqptxgrcihvwaorlfxprmntpbepxhhggrhzislguwsuhanencogcwwlyrqckmaaukaxgrcihvwaorlfxprmntpbepxhhggrhzislguwsuhanencogcwwlyrqckmaaukaxgrcihvwaorlfxprmntpbepxhhggrhzislguwsuhanencogcwwlyrqckmaau...

output:

heymbyqcacjocvwfdifedrqpmzyrlzfeoqkhalltohlpshcfacrimxneuegtefwwzuccmktqhypmkrgqreenvjictcbhnrxnudgccmdnefaaqplaetphwuiufciraccfqxasnrdupphediugkzuvxngtmpngffgjlcphxbuspyoeaneqjwckgopzxconverxtepxgesbqoiiqkuvcnnztjqwcqjnpeotlurbthqloskilkzakqyhubrgoihjnwlngykcbvnfu
249 39 31 23 247 70 62 212 154 41 ...

result:

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

Test #138:

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

input:

252
lvslllnuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

lelsvhbparzazeaazwzlpirscncgcknyaskzdzrvhqoerugthjgnlvetvhcmiqdizxigvzmmcyvzqdwqxcthqhlzzmgdsawrbyftfhlmxuppqpthvwgijikmkdvyfivondoyqbbywlwyeijsbwqyluxiihidsyaahnguufisbfpacjenqswgbleujdtbygrdulpoyvqqkdjlzzhvrbqkypzovmapyspclbtdqcalriirsscviqbxbgcumgpn
69 20 126 74 50 245 49 1 249 68 85 173 170 139 ...

result:

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

Test #139:

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

input:

290
mkpazbuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

mvuugsfxtmhsbuccddypaulfeiohtanhwsluvzuivdtsaasbzimqtduimemzbehwrvndnkblkfqogpgkqyjpilinamtmionuboyvrseyvjkdpwacfkdjhoexbhtczkwxdxyfyuyiimyqrulhlalhywbsdgfsopaieshpnebtmblyfdwokvxgjkehssakbqlcnmvbnttwiypmvgpvlfpbsckullpnfvsnjdqikbtnuphlspimniyzekzuqnhpnawkoceojwfzdjowdqukjxkhzizfonobdsthxm
126 155 1...

result:

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

Test #140:

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

input:

277
hpnajknenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenene...

output:

hrbbhbntxvrfchuizvesbinhztxrkalenvbovemfqerenfxuowacoxdqkktrmkszuiaxqftacxpklyetjjevuaeliwtepujjcvdlsclbsdglqbdbalmgqfztmlrsjokrljxudeqfqtaaqacvdgotikiflnguaafokfumbuhqxopaatweasyanqeftrxtnvbcafgixuamslgbazoasqwsdqawjrndnwrtawqpbkdfvivxykahgcjwqssaefriakzzqayneelnvursxhbaxkxsp
93 239 8 5 254 229 156...

result:

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

Test #141:

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

input:

263
dimxwxklkzzvbsmkkcqlxbqckaoeshmipbwqcgqgzvyxcicztpgftiaxmqmgdkecwfpbeplhhwkfilcbisdsnaiihgcqvzurdimxwxklkzzvbsmkkcqlxbqckaoeshmipbwqcgqgzvyxcicztpgftiaxmqmgdkecwfpbeplhhwkfilcbisdsnaiihgcqvzurdimxwxklkzzvbsmkkcqlxbqckaoeshmipbwqcgqgzvyxcicztpgftiaxmqmgdkecwfpbeplhhwkfilcbisdsnaiihgcqvzurdimxwxkl...

output:

dfvnjgijrdelpvsylaliipklatbbsycndafwwgioyjtzvicrjrlfcxbrkwupdbgvbuswfmprltwxekzxazyvfodvdpyfntsixpaqcgcracrytjogkqwekhbxvikbtcrgggiqqctkmhqwlvpighsfxrfnqnkqhqdpimhmhohitdwzjqmjrunkicfaqnohdazxqfhtkbqgproihgwudlcxyzawtvdmpemvsqiwgfgmvrcecupzesghxwdkxcmmyxdwzbvpukx
131 64 8 99 113 29 30 215 79 151 95 ...

result:

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

Test #142:

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

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

input:

288
vazdijkuxgcgyvzobgadxehkbjzkyswgiiqfnilvfezhazonrochlnhtlrykmpjkofwxbcfmemememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememem...

output:

vqpqzlubhlanibllpiunygibxpgifwnweghntxwcgdxgfgixtqwykhavfpdhosnzucsfzicjdrxbwoimwyjqjmfkxflfurmajzazhnvxfqoxukhdqdopethzjvkkpkzugxericgzcfqefzstumnvxtuljitmxrnpaljfunfdixduchgammetonauvsedaqovgdlsnwddowmmtzbltkxxbdhhdreibunzmkmtgyhigclcpjntlkeajrmmyawggftqdmmupwobelwaxhtkfoxsexrqdtplzvfa
11 112 85 1...

result:

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

Test #144:

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

input:

274
egrlpyuvvjsarrebtidphauhawjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...

output:

emoxloyjeqeepziyjopolauroyiiwnhprxyvdjadhxuhynynqtcrudxhzuawrpvbhhylnuixvuadjlypaqpraexmoargdtuancjysyckpicxgqytapkyprfiasdrgyglwqkvgiujlraxskiqxwfaptxeudmvrffhubzwzgrtkpiwlqajihtvkxorfalctvkmpzphwpaihsmxyjaexwrpggoasqawwuibahfymuiwbawcpbrwosvwbrjfjaraavnddrviiyvklcmjajxaed
109 198 161 246 198 10 61...

result:

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

Test #145:

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

input:

271
mnjvmzimlireoaegemqtdxenycllojmxdszwqxalgyxohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...

output:

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

result:

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

Test #146:

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

input:

258
pyojtbhbrqqrcsrqsedfeunlpzwznbgmehzjtrtcxjrshhdzlljpekhhnbgwashaagwbwrsieerljhtuctgysfcazmzjyigdbjjilxyjduvnndxaaqusvoefduxztyakoakhzvfmpxzlkweyjqiixrkwpqbccnwbpkjdzixuzqvvwfqnpcinbedfxxamsurvktgokypyojtbhbrqqrcsrqsedfeunlpzwznbgmehzjtrtcxjrshhdzlljpekhhnbgwashaagwbwrsieerljhtuctgysfcazmzjyigdbj...

output:

pwxyvrferdivagjjjtgkotyxhbgcrxslxochwfohswixguegaxcqfcqvvzdznebxwbjdxzaeprnyyhudnwwvyhnyqhyvhwuorlfaamtqozvjkbzqrqdukliqnexejpaiamqsjszgqdmglefnjdrryhbzpustexjicwjckkjctfjimhctmzempaitrkiqxsvxljwdklatahybteoaprjqjigkmneksrbdbkzlzkzkcamfdhfuufpnsisqflabqyqbdl
76 225 91 162 37 245 118 143 80 46 211 14...

result:

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

Test #147:

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

input:

297
lcsycsqtiyhqwztoppbnpsttbgkbystovmffqzlkomtujhtcnsagickqnfeagrskxxufyovkpvexmsbyirasyavvonbwrqhxuhnvgwavcqhpjifyvxyzwufpdtvdxfckdzdneucloshktxxxvxsezgxjkgoulicazqgmcrasjbidcveeeswqljkgevzcptsyswofxvawdvyjqfkanzjgvmwjsllctnwfmqtxzlbtslhvcnmeevvjaocxldkmvgfumadzkfgwogdktwfxdczwaevjrdbpwyffnvvzckjl...

output:

lhfjgaywoxfifaktlvoukyxtfghsxyzskqqkogatnagjzkepgitkzdjxbxuvhzennfyqdfgxsyadgwylvrdfndhxozcsbemzycuvnjzvvrevtyqpnqbejxllcxdgcuecbvksfgumntcgovxqcklswwsvvaltjofcnfnswhymbaxlkaekabdrscgvdnmdecmxpkdtbzptlcptixwxvfcsjsavpdirtkzvicvqsagmjywkqfptucwomwvweqxqpcrmdtwvfzjhfjsvsvteosklivaehwzmfoyovscubsjzw
21...

result:

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

Test #148:

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

input:

283
pmeuamhilassmpzhychdqqjlweqwtyomzymvjgcyppstwgubumnzzlxpvtawdbzyaqzthnibbwbjdpeeurgaqzqvvgaatwkddjtwsvoceqqteijipwrdqsfetkjalmmenubgyrymsptvcuvidonnabeyuwovontzrmwtcgxyvnmdqncllbqvoaraovsnxssqhdqamvladqlzzdvlohhnuhedhafabyeqthuyjkudabrtnhlwxasgwxzqapvncscfdhrawivnaldedyfwcwzibjuypyypmeuamhilassm...

output:

pyfcnulmnjqddpouqjptdldwpmuwswbwdmujqxkqoztyampqdgeptvllquezesnygxazuzqedsqxyhhvwlvbnvwclfthmqaucluwwshzsvmygzqokeviwmcygavzzdetiqyrbhvpibcbaybxjabbgvjbiitauyoaondvtvuonqrtyfhhtoturjaldpeozqqssdamtpdanixhpwwzgaytyhbncwbalcacwjsvaaaefirehymaydllgndvnvhzdmeqvtqdmsrjenweszrkaynrcnhamsw
26 187 61 204 16...

result:

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

Test #149:

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

input:

270
ceywwlfrvyqfbysnfzxrvwtpimlwrgccsyvbjsalhbdxpcsxfrkrskihehectaxoogrhjdaefiiwuhvoxyyzbvbzfvyfcstpuuzocyfatgzfcmihqxbqinkbralkihiatvtxmtizxzsbkobpzwevzezynlytlsjuvzlzyjumdggpurvgwdhwtojcmrgswvevgiquhrehwqthkcqdcerervxibxnezfypqybmmxrzmjhchujzfvtllwputxnpubirptcaihuvkfcmvhceywwlfrvyqfbysnfzxrvwtpim...

output:

cmxgcqzrkwwwalvuvwizhnwtvectkzjyohcetzrjrczpxsbfukdsxsioxadtrrduxlvhzbhinbuxqvkdxfeflmbzarbclvgpwstygxffuzteybrcsmqbziyxtbziabnehscjjiezyiqsupclcrpmknyclutzbihwwuefholvergjrpotvuvsirmzyshcmwioijhaxktafutgghqixhgempmokrvdyjhtnfvtvmywfzhhzqacxcflfeypvqbpybveyipwughyvrvlfr
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: 0
Accepted
time: 2ms
memory: 3792kb

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

input:

295
?
dinrnuehnqzocvmugcntzsydnkehcsilrcqhfkbxlcjapvvtipklrvyxstcrccjoluodfzituvdvmukjcoktvibvfsoqrxsnwbwqqyhhhwoydupxqymjjsempivudwgmaynrmntxagjnbbfqrcseajiglpnypwzhsxakwlepxcjdinrnuehnqzocvmugcntzsydnkehcsilrcqhfkbxlcjapvvtipklrvyxstcrccjoluodfzituvdvmukjcoktvibvfsoqrxsnwbwqqyhhhwoydupxqymjjsempiv...

output:

pdzmtiobpjtprbnkrftyyjasumfreacycpdssuanxxcxviqpybnyvlhpcjiyehpnfptsuwbmgmfrsfetxcncafshrlqzodtiraqwifudilwzjpvxdqvyczqxwtzxxqzbjhyffzpmuvuvyscqkwvytjvvtvnfwgniplsuiygjwcavwcrjndlnoxzcjtecscbswuomqvoevxaphfkmcprwbhsafrkgyekjgjwugyqvkpgfoehlrzcknmccllgnzbehwlkmnfoqfdlxnpiobhdurwvzkqqpgnohljehqou
240 ...

result:

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

Test #152:

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

input:

281
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

vvtjmzyxopjngrbqeacixwtbanzfefbijynaldnelzijwxcjisgrqxpxmlfvvewduoixklpoxgpxwmyjojsrtglkhvefpelfshvmzbhgkyeeeclaiiaobceaejlthwmekzjlgpmutqcnzzdcxhdhkifgqbeufwhceqvvcuttlvydvnxnmymscvoazgcglaihbpdehzyncyubsxzttuvejycoszslfpqvwtiybchvxhxwhbpmzqjajhmraofryggokzlsgjcyuggyejxwzfrhyiwhn
1 103 10 73 85 45 ...

result:

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

Test #153:

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

input:

268
iriririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririr...

output:

ipflamlwehnluecofcrhlchgbjjaehpligrysikjltbjlzzeswnhvrioqrxdbmtunieiywwpiztvfehwllhbqklypfksdizrmnbsimbqfbryixjyshuwegyshozfaatpxkbzrlqnyjyvryaqxtjcwmlhkzsxxvjcoibtpjijxhbejqhwghuuvjjcabsprgdsmxkhxyrikfoekrssqpimfdkvglabsacylhutcgicmaudabsmpjejajjumfvvpeojdasmsmnydrcs
266 144 72 62 233 52 196 8 9 29...

result:

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

Test #154:

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

input:

255
?
pyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonh...

output:

npywrspwtokjeslffotacvqwvtmiicrktzpcgqobzrnfuiqjckrjrpjwronatheaxnysvzqygtsthkyobyhjytdhtjmxjzpfmtzthfmgnxdpphfwzeofbeoelnbkwaqqobayijztcaqfggwywjtgoclxefncyjjcsyaemfxcrqvnaxdwfxfqnzmhzrzxzqottvhyezixjtcgvguebvxcombfzqhvhyvszydxxkyfdqhibseotqzsppgxtfipghr
45 226 106 165 121 195 160 242 1 6 110 76 13...

result:

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

Test #155:

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

input:

265
bmmeqhezlxurkjvniwptlzqlydxftibjrzyxeetmdecnufhhtxqtnqzzmpnafgtnxrdskqswpzmdiwxtwtwdmtibmtomzwzcuemqxasnhdoedjeqmdpywabmmeqhezlxurkjvniwptlzqlydxftibjrzyxeetmdecnufhhtxqtnqzzmpnafgtnxrdskqswpzmdiwxtwtwdmtibmtomzwzcuemqxasnhdoedjeqmdpywabmmeqhezlxurkjvniwptlzqlydxftibjrzyxeetmdecnufhhtxqtnqzzmpna...

output:

balqdsbeqcbdiqiiwuezghcssbewtetdjnnziqhuwlvnwrxdhlzxztfrcteujzqmzblhpiocalznggmtgmgoqxnfgtqypxltmyuumwsgszequkdjqjmxrfxwyrzacjwqawumwhatqbgqnijcluxvyaszhoommvlngdwyhtdpekveohlmyesgkxttnzpfazvscbqztzjqmkpzkqitxllymxxkpqnoxwgfmzedcqmhnuyhxdasicirvqbypzehshmsycuetdedt
82 189 149 65 249 222 33 148 250 2...

result:

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

Test #156:

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

input:

300
msvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlr...

output:

mjqqeltxlskhjnafvrmzorrukhkscxxqzfjucsmqxfndejfzxogpngescutmlgdycnlcewavylzvguqytobcorzgduuucunkctwycdtjsmzzpuxvyjgqrlverduwoumnhneifemrkifmregwpbsdtwterrmcxtpgaxqyluwnfpbftsjjxgrohhrglunxsujhbuswlnuysbqipsxdxrlrpppscplrzwskpycnntmrayxhezkksgxwgbuaqjfuppousrvajhaquviseodoldjbbctemmqdccrhnxcglhralkji...

result:

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

Test #157:

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

input:

288
etrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjet...

output:

epdtuxmtfzqioslvvvqhvjgjmdxwmbxofwbatbionbwgjvsnelzcujscguwmsspbqwlbabgshzmzxhgtzyhxjykdtyvrbxcrlyqrfvpucmdblavttlbuwqbitjaekzzttfqjmmdqhdompixuozvrpnslztkzyizbtuhgszrqznjukxtqbwhqajbbqhlajobbandtpdoxrupkisoezdaiwuulyykuoznruanrwneccfgdrronpmlcmirtvdihzjengpngnphvbfhjvbirnjwbuiphvwdaavdx
196 5 9 224...

result:

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

Test #158:

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

input:

274
hukiiqpvojfuvjpnkwrccnjtqkignkbjacahjizrykywngrffvcsoqwmdpjtkoncyysbxvkgwhqgavozufqlewswxlglgzyjbnadbzaotnxhmwkikxqhgptqztglbbipplhtsfxvlzpwtljghkshpowibbobvqnmphnqnojryfvwfhsacdiajiaprtksffycxmijhhukiiqpvojfuvjpnkwrccnjtqkignkbjacahjizrykywngrffvcsoqwmdpjtkoncyysbxvkgwhqgavozufqlewswxlglgzyjbna...

output:

hjjkfeinthykipmcxricefwiyjnzfancppuybzprblcmijxeifdvjpogvislafenmkvozalaoybjaftjrkikogbjkxfzboxalsciwwodxwhfqhigbmgqjaccptuhtqysjnasatpxplwmrwvyiovdkkcnqkfbthztsbpbqihznaknsxvtvklhwochwqoorjhvsznggycxqpwwloslovtwvxpsxoppilnvnszpykzftogtqtzmqojlwthuopukbpqgjbzhnhjqnffniewcgn
251 30 195 235 135 92 61 ...

result:

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

Test #159:

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

input:

260
?
wblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblu...

output:

uwwpejvkrbhvtdwrjvgohvzdfxnyfpsqxgtrjltoniyccjmzanxhsecatxedkkslmrjpgmxpobjykxxnisozviegmwwxerytysmvqgawntyvvozcavvjrhbunmoygnbbjbeucuaidrsxaatkfuacdmcspclmwrdtgdumxrujfbovhphbssuffjgdauqaarmminagdbbuijfbeudarawtgaseietdliayypaeqafrwaduakwddkczcaqavqsaezrlaiap
255 199 36 244 256 1 7 158 17 34 211 7 ...

result:

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

Test #160:

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

input:

298
iprtxilwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

output:

ixnrthurljecupvxmpkmgwbrcrtmkqeqyqjrqrghlevwcxpquawzslangcoailpaqugwsbthvnahwuvmettvfohvarmlyodmkamyphsfbqjyzlqafyrrfayjwybadbqqwinxjhqlpvwwbaxvwehapdvpaofvfbfxgaegswctqlaanpkdvuxlarfinacgdhptludizbpcgqgffnapqzmasxjltkqakynfksxwyrssfjvpdhnhabqwdametacokzmyhnccmudnoirldaabehawmlnankluhqxllpjpexzaig
1...

result:

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

Test #161:

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

input:

285
ctroifnwidurzzodpgxgmaluwcacqywdptmrtxtoynpehfngkzwgzeskzzdhhabvyapylhvnqxyquoygrxqhzvbhnlnevzuzegrfyjijazdaodzjpkvxhktdjsbhieyqbpgkibalejaiiifcmfgxxxvtqsosjklqytbnlznnoykhghzvbvurjonmcqltpakthrxqvdkbaysgatkcwuejssjgkpvpustzaepgsyhhmeonnnkgwahvagccsdiktgdpnnzahywncughrfasbuaoecoqbgaghctroifnwidu...

output:

cyqjsfnzocqftvgnbnllyirkrpzyldgbsrpzxkvcgitsuywghajfrwniarzsxmnkaowcalnghggjvhtbfngplazauhyargubbzezpahowskdewpvhnchnjqnaavepufsgxqicqddakvlqygwuetzevahzgxfgnhqhqcvnotcdkthsigybgozubsxqbkpkyjjtoezjzbhaijnytxkdtkdspakykamuntdivxoyuhhdchqhgvznjtsmecigzvbotxwzkdirmgyxlayoaremenhpeaopopus
193 144 150 86...

result:

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

Test #162:

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

input:

272
hnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhn...

output:

hnqupaktfwulmrwaxwajosspywqrziuadhgboglebhdvrdcirfjylcltktpicxhchcmzvfeuuhccgdmrfgawwafzdhxawxinznorahtvnvkshksrwoavthzedriydmfxzurssbamtthmpbcgezjbnlutrfvffqcejahwbmkvbqdicmkcfmcvajaqvmnjsytgxtmgckrfteaywiytqpidltljjqzttbnrtjvlntnquaklarxzvjtazbwatkeyagaataaaaavjpatwedta
2 181 75 5 9 63 176 133 4 1...

result:

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

Test #163:

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

input:

258
rypexyssdkvzaerfdylspsceeeteboujgkrzgpmattseipkochgvmhuoxdijzakebqlrnzpfsnjeumoyrvxvvowjgkeusrmyhjqlbskpshimvujujyjdnfrypexyssdkvzaerfdylspsceeeteboujgkrzgpmattseipkochgvmhuoxdijzakebqlrnzpfsnjeumoyrvxvvowjgkeusrmyhjqlbskpshimvujujyjdnfrypexyssdkvzaerfdylspsceeeteboujgkrzgpmattseipkochgvmhuoxdij...

output:

rujgjrrzivkijtuhfvelrcedzhqfjjlsvmcxjvscaakrbscpdjuxgoepekimpzikdhuvjuefzvzprvkmujgjtgypvokgiskeaemzbsymosrrlukskumttmganaorojufalssjzdmuynxetqcbtwgzneuisbjlwapenqabjbncduqvsswlcegrssgujntpdrkrxxruflgipothbvsxweggbxyfnjgghkjyepmqqljhdyybjhzevrosewejemzzbaxvd
225 5 258 59 236 24 163 81 61 36 189 7 16...

result:

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

Test #164:

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

input:

297
fdrcblwtcprkqeugfuhhenwafgprmginvlzufwwfahskdkcfxacdaazibipvibrrsudjjnrcpjlywrvywjqteciouiupgcqlbnfvjemzngrwsuzinunfvhxqiizfwjdhmtspfalzwkvjacelgucjmmtnbzdywbjqqevcojgnxtpygiqywjifvbtzzwcsrfdrcblwtcprkqeugfuhhenwafgprmginvlzufwwfahskdkcfxacdaazibipvibrrsudjjnrcpjlywrvywjqteciouiupgcqlbnfvjemzngr...

output:

fnjmfwxkwctyicwhffbzwaszsnmdpivwjajvfrujcittncralobyidemrfncggnsgzqmwxzinogbetvmerquaizpyzbudetengowvjqfyjvbiywrilanzckgjxsnaldunucgjoobpqigivcalmmwztcvgfbujzanauvipttsajkkwwzcohcxrqeijlgudtslqphlteiwcsgshcrblhwdhubfiwagwhfzradfstxrrybrhxjfnwspkketgqlrwnvlhcenodowejalbvglpgzguouyzgpmdzdsudvfadqml
22...

result:

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

Test #165:

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

input:

262
dhxncmaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoao...

output:

dxcfnhegrbirqrpfcmctinbxrdhdzserukoepsanvruiypnyszpfzmdofpoohwxwpwkbdiaopdntnijldakghqhneakhhofqlmtmqudlvjwmrvfjuhzotytyyshynjsvltuwferacikuetagnsplwahqfgapfzmaojyqauojqrdunzmgroukaxzmlosepibahthnqzaafuwupdybcaivgaluvhpqaljagfoznaepwmapiiudmocrfzofokxykxhenycsih
123 204 247 58 247 226 116 141 2 193 ...

result:

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

Test #166:

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

input:

252
?
?
kziojgkncvaxatpnpoatxzvugzublnwihuisukkhxatdhtfshcstnmzfrikqlxblzbybghptlhthlykswpwsajbkpltoonrqxxrcyzmoixybtwcghlguzecjfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjrao...

output:

zikrojraowjjiughuujizfpsowuqskakakxfhavxtaptdhunjpbjkkfechqqclknphxnrhmowlbcodzglvgisbrzkiwhzbgjcxyevzsybimwgxahnnpotttqlffohutldtybqhylslxnybktswwltpoonrqxxrctybznmpofshdjtnmzftxyaghlguzecvusgzpoatxrspsowuicwbmsyzsiazanaaaaaaaaaaaawaaaaaahaaaaaaaaaaar
2 5 1 6 12 7 8 9 11 13 14 15 16 17 63 18 19 20 ...

result:

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

Test #167:

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

input:

289
?
?
?
bklttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...

output:

hgtbfyqdoqvnckmjrgijwsjwtkbgwemfjhxdqmgfalavmjuromzkpkllejcrndlsjtxmgocgltiuaeqwskaomdawyifdxenihujwzwepcoafyaetwcxaeixaaaaawaaaatanahasaaajaatauaaaaaaaaouaaaaapaqapeaaamifureaaadaagiaangarajaaaaapcdaewaaaaumgaseskaaaakaaakaiawwaaahaaaaaaaoavkaraqaaaaaraoutazhaaaaaaaxqaaoaakmaqlaaoeaaaaaa
2 23 5 223...

result:

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

Test #168:

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

input:

276
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

vbrcgcjvantvkthpxxlrdtoflverpjnzmlulzdlcxxpfbssambkvziglqerxtgxrxwulnmzvorfcuyaghpmnehgqzswkgwifrpqizdkeajzxnbmtwtvupjtedosbjdmmwhbzstwkljgrtsnvknqzoqhbreuknotgfczvpmeaaaaggnaaaaaaawpmaraadbaapaxdaaaataayzaiahiaaaaaaaayaaaacaaasucyeiasatarvmaafaaealjafpauaqhaeantapaafqgafabna
1 3 2 196 5 7 6 145 10 ...

result:

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

Test #169:

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

input:

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

output:

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

result:

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

Test #170:

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

input:

250
?
?
axaubwiemjlkpkeugxgiufxhiqjwzvjpiwlcdnknhsqndzfeekruzjkobtuqmxyngrmlmnwzbatednwhhxntusskoctgbejlfntvjvszmmhnaxtbetcwpmlfrbxgxplilhlccqwprxdrjzpuxknyaynnuszrkhxcbufirlcryaceybwezwpmnliopdnwcxlxehwkkcuhsnrlntyurnvoybjnqulorytthvpzprammthisemgakzjtzdkzkaxaubwiemjlkpkeugxgiufxhiqjwzvjpiwlcdnknhs...

output:

xaaubmnnknlehlsdurbwerzxypzmgmjvjpiswzlczorybttchvwlcxozpuxprxfndjezbattgkbpmntvjjvkzpxawnszrhuesnrwlnndzfneeckwnpammthhhiuusemgakziemiqopdrnvoyryewhhlkpkelunutzwjktzdnxxgiuilkhljdcglcqgkrmxyaynnnqtuqmxylbwknkusskjofirlcbryacxhicqjwhtbtetcwpmulfrbfxx
2 4 1 5 148 7 100 9 10 13 6 180 15 63 136 8 38 17...

result:

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

Test #171:

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

input:

251
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqfqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqyqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqfqqqqqqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqyqqqqqqqqqqqqqqqqqqqqqqqqqqq
37 6 34 150 181 220 26 169 41 69 92 49 121 70 11...

result:

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

Test #172:

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

input:

290
kkkkkkkkkkkskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...

output:

kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkmkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkakkkkakkkkkkkkkkkkkaakkkkkkkakkkkkkkkkkkkkkakkkkkkkakkkkkkkkkkkkkkkkakkkskkkkakkkkkakkkkkakakkkkkkkkkkkakkkkkkkkakkkkkkkakkkkkkakkkkkkkkkkkkkkkkkkkakkakkkkk
263 2 2 6...

result:

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

Test #173:

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

input:

276
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

output:

wwwwwwwwwwwwwwwwwawwwwwawwwwwwwwwwawwwawwwwwwwwwwwwwwwwwwwwfawwwwwwawwwwwwwwwwawwwwwwwwwwwwawawwwwwwwwwwwwwawwwwwwwawwwwwawwwwwwawwwwwwwwwwwawwwwwwawwwwawwwwwwwwwawwwwwwwwwwwwwwwwwwwwawwwwwwwwwwwwwwwwwwwwwaawwwwwwaawwwaawwawwwwwwwawwwwawwwxwwwwwwwwwwwwwawwwwwwwwaawwwwwwwwwwww
1 1 1 1 1 1 1 1 1 1 1 1...

result:

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

Test #174:

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

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

input:

300
pppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppnpppp...

output:

ppppppppppppappppppppppppppppppppppppppppppppppappppapappppppppppppppapppppppppappppppppppppppppppppapppapppppppappppapappppppppppppppppppppppkpppppppppppppppppppppppppppppppapppppppppappappppppppppppplpppppppapappappappppppppnpppppppppppppapppppppppppppappppppappappppapappppppppppappppppppppppapppp...

result:

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

Test #176:

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

input:

300
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeesssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...

result:

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

Test #177:

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

input:

300
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

output:

kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkgkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...

result:

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

Test #178:

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

input:

300
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnsnnnnn...

result:

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

Test #179:

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

input:

300
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqfqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

result:

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

Test #180:

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

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

input:

1981
wcxdytnmefmpbpdlaulslnrcydjzzzbetynstxnbcomfzmvldenrzfrvpsydtxbccvfydggevgubmofmgfopwewdrfofdznfevknffcniychezdvlnwumynjycbydjzzzbetynstxnbcomfzmvldenrzfrvpsydtxbccvfydggevgubmofmgfopwewdrfofdznfevknffcniychezdvlnwumynjycbydjzzzbetynstxnbcomfzmvldenrzfrvpsydtxbccvfydggevgubmofmgfopwewdrfofdznfe...

output:

wjjtyyjsikbuwvtxpfwiwoqirfleeswsywstzmmuvsumttlblqxsypctxyhomcluwpwhbifcobegbnrltzfikqyknvgvgcjpdqxwbukfjrustkhvnypmznbhbyxabgbfcruhyqlmomyensuuxbrjvlceufbtsyyhlnnoqzrgecmayawjszqujuntgatxbrooyfgpiuukesgptbffmpufctvahtamvndgvdmzxocbyvvueplxhhliegskwehwlzgpaoldqyxxqiajpefoavnukcvycrmcrlgiefujvwvnmuvu...

result:

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

Test #182:

score: 0
Accepted
time: 542ms
memory: 16972kb

input:

1994
hjusebxsvofgeshlqkzuwrcfvlokcodospovwycuylzevtqqdfhdyepbipqnmrwcvsqztwrndyqhzrhftfwrsozyjnjpgzmylbtboxexxqknitcvbsqovaslserjmkicawherlrncayemftqyjbbpthleozuyvzbcubejjamvxuqcbaqphuntbukuiorsnxatipplfpfrnofampscdsasoywpoafrnvbdcsrxpfkfmjkjmcsvwwsjwzbbjahjusebxsvofgeshlqkzuwrcfvlokcodospovwycuylze...

output:

hysafnnnragmbvkknkjrqbvdfmfpwqxbdatwuhnywubrypqbhacpqiquivdwdmzjluawhxamtqzvwhrrfytbabuiyzuvrhwuvyyzaboyssfwtgnmdxxkoldfoopgbvgyijfbosvbtfgdqxsykjxtgajtzayyglbxczeywmjblbbxglwmzffqrtwyczauwflgabkvalrsuwbdxpzikaanmelgkbalqwuystfxfanvcivdcflwwsctnecxwkzbuhphgvgmkcuoepxxywrzirzdrrzzzawyllozmvdvauzyymgm...

result:

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

Test #183:

score: 0
Accepted
time: 555ms
memory: 16500kb

input:

1972
wmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassy...

output:

waexhlqnfcovvewvaetntuucoifgqhvjbgxcsnjyakjmzhakrixmjjnrofwrlyelklwzuslokgtsznkkdfftsrkypaoqtqtlneyfobjpxxkgspbqgiqvzveobkdkpwvlgsorbzburvmfallqrwruijyzqcdtiiclipeqqeuvobzldwagtsjlcxcdafuizsbqmqmfwaivyjbhdrjdrjaehsazrgiabkuyfyzgoujusfvwxrfzaxoyuuxzonbrpozbejcdbiweonozbduwangmxajlzzwrstgkxsffjehcpaen...

result:

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

Test #184:

score: 0
Accepted
time: 530ms
memory: 15884kb

input:

1917
sltbfutpxvuhzxkaujlauxbmvbptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgr...

output:

szrzwqqqysvspqybnjucymzwzmpnmcltojlbxbubinsjrlitxykntmvzkucgaatngqqlijpdoyhfhhgjtextbatwbsmztdmrfcxclticcbhwqzgiqzbgamdsfviyhnbuyvcjgmaenhbkygdedujkuvdckxfnkpebwulqwefstqhdwpecyhwovacgljznkyqjdhxvrkruogrkumpbgtwvokplyrmqkfgejtyayapmjnldvehxnrgqiufugvaumpkpelvhhpihzfecfyvxqtslztaitdxchgplycpjbbaakjxw...

result:

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

Test #185:

score: 0
Accepted
time: 586ms
memory: 16780kb

input:

1996
feqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqsh...

output:

fdeowsdcrxqthzyagyvigmogovcfgajvdzdidauvdatscysqcpylsyopevkjdeeitgdcevwypsyfkwswfsgnogiufhqugyywfjjipufvggekawuodoepryiuxgwomecfmjixjvvtnkchorprurokvbavedpleveltupcgaktcxbuuxwagwxjoywmxqjdyrzqczbhwpubmogmptdjfqmhvkwyxyfzwiengttxuatlxzabeetzoxmoanqudkezmlntmvysrajaxjrvnscvuwdfzpknxihlxgpcmapfdlzkjzcq...

result:

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

Test #186:

score: 0
Accepted
time: 546ms
memory: 16468kb

input:

1941
eqwqfjwuerndnphcpfcmknzwjpysdqvzfpbvdutmrxlygtorwnopuxmwtivumbmafpuyqdhcheowqmmyqnheyijhsnmtmvdpctpoxfpylchpofowhqhkxweofxvrsnuzanhtvdoxddtulbvziyqqmhmydtomfbljisrhhihggbtrdzdaciojqizmqqntmogsoaicmhbmlqamfqcouwhhipwbtlbulcpdkzbsnlmnaoflzilyinnugabmtfsljrlszlqyxhnvfgreplvxlggxmqaecjbvlqqbhxsokki...

output:

ehosqieitgqabzpbcmrgexbrrerryrkecanditfhmtcqphbmlisfghpamcfbmhmoqmdqduoxroriqjgypfasiwkxjfszbanlurcgowejizxbroeddmrwmcmiljuvzyqfaafhgyljqqsmnlltspikzimixmrqsiogbztojskyxcioefwawklonqvvlvxwcdwrtqcoxzdjzhvqeaexvtkfvgopamzwrbimqhotjgpxphxvpdqoeobuezmijmziftdnjidcecgxjvzivszxlaawekuojpmytqchfzztqqlbqljz...

result:

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

Test #187:

score: 0
Accepted
time: 579ms
memory: 16988kb

input:

1987
tgeyotqnxqflxecdhkpvfuiablbmuisoocrqqlpdnjfukwxraplqdtwhutpvtnapjzeanhyvkqfcanbjoejfzurrooyyqjtczrqwmucgtrboipniiixkpwnlfqbhoyiepscksondkxmjffxeertiwluartdxewbkzbwjlrcgswwyapksxrtbkigqlcviemjezzhvgqlhnqstshvbthnzgemwybfawkciurfbfkjsfxjramwddbtpyqpcbbgaeqoejanxwfyeybuhozvudhdsszrdchnejkszgxafpaw...

output:

tpxolrtuvwxcydekvjmikwjocomfcmucelihwdqgzsujcwbjfuormjfbrrzahkkqsfnozquyrxosnpdaisibegpcampaxkupzffpvnarckiodqpnfgvudbupfqhzajndxcozkqyglgokaiimatdbymdjozhainhakqpwigtismjkxljrxugqirxnfqhrkbflvevsaqqxknuuqsxsfremsrrzarbeswenxxxwcyynawanbbkmsqmzxjbownhkcaxorejekaypzxsbtojoqyafmsevrztfzfxrxphnsmdqrbgx...

result:

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

Test #188:

score: 0
Accepted
time: 557ms
memory: 16648kb

input:

1965
menlcbtfmqhdgfvfcaygutptszaxbdptfalbuiauxpakfynykjnbqqjxfhvnrrofewiekryemzaulfvwpledzkqzunxsdegikwqhuqrcznohskbpvhuumlbbessbzoxohkelqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgs...

output:

mkyxcvajveaynnrzsyruxhouhteeeezrfbpgxpfefesepjrdfynqyxcvcispaqrmdlmrbrxciqunudfbqdrtdshevqhjbwvmsyggfbdipcedbfrqlkcjdsorrojraatnwrproszeqpmnfndkqusftcadephujwbrrabxpugwootlltyppuvikasjiaijthuiphtbailexwcriuuhabygysxwjvymdygtffgcmtguzqjfdwvltlkipkywkrdzsrieqjsddjlbtxvxonizalxzemeevqpirtppcphmoqkxxmvj...

result:

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

Test #189:

score: 0
Accepted
time: 490ms
memory: 15724kb

input:

1910
qupypfdwyqgfrazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazaz...

output:

qfgpxrlyjrhmaubhqcqnkdadvkzkarvjbmnhrhszmjmuvteiarrxocyxbblrktnfufxewwiuajizsgxuyyqrrcnqbhjrrocbzblsffuaryucqzhvmpaicgeopwpbzpldodrlhujhfadwuwgcspbjvydvhyyjdvvxdezklgujwghkvdeeowubljqhvyqmxqelkxaqkzcbslcaacgwfewukrcvpckvfkyxcmlrdlfxngfnbzbachlrjyfwfpqsyamqfwqudkyvnmnoacnabxhpybannxmcsiyvsysqvrdmucuz...

result:

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

Test #190:

score: 0
Accepted
time: 576ms
memory: 17076kb

input:

1998
jkbavtzrmvibannvhwdgrulvyhswfvmnybfqrilitxocbzzatammmflrrkpxnxgomlubfkahytnfdfxrrxpwajlngjcufojzclnppeagvrotdbvkkjsouxittffbulzzysxqmtmzhfpvpeznflkzfvrwxwjkbavtzrmvibannvhwdgrulvyhswfvmnybfqrilitxocbzzatammmflrrkpxnxgomlubfkahytnfdfxrrxpwajlngjcufojzclnppeagvrotdbvkkjsouxittffbulzzysxqmtmzhfpvp...

output:

jwjtqymanyunbfiynutgkcyngyjxigiotokjnbmuurgrvjtgdfkanptftefacrafdxtlbfsftmuydlqvrrocqjgcywgdbazvmdtmoqslldxzppktbszxsioguzltbehstkdmrynhqedcvvvkurgityjihbnuaefmwgsmdbftpvxitaskxjmovbrvcnunjmpbsigsrusrdupdwvennwbcgixpfuhokvjlkklruytxakywisgfzaictgvkiykazxokvdkkofgppfpapdcmhxsxqzvwsgapuaqwueduajlpggnw...

result:

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

Test #191:

score: 0
Accepted
time: 507ms
memory: 15800kb

input:

1910
vimpbjgdrfjnlyyhnuzghiecsbgfxnkpxqklaqpmgglakjxxqommluewhnnfpihdytensaycmbrpepvlmnoowubzwvqzckwlqqjljcsoixsnlbnxnqcerzpjrmmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmux...

output:

viwbhsbmuartjzpqdjcvlebxpjzqhmoagjzbardgsopvmfdnxerzdrcbiygvtifazjjtoqitckllqeitveyepvftjnmnshjtjgbtwtzrhfxhfaihhvvfuxdavyflvtuotyjizwbxeouvpftnvmyiawpklqnmeagosnrhhautbwnjtyspzkiemqbjpmuksjsggmjknlcdzkwdpjrykwnepuswglqtzcpqdxdifhlsnebltfcckzosaictucieuppkvpxuasjchxtfcfijgmqxkhvkdzqiqwwmhleqtqyfwqnn...

result:

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

Test #192:

score: 0
Accepted
time: 572ms
memory: 16788kb

input:

1989
diddssubvuygwujkmnbtymttqyhwilaaethubptfevoxprvngapilphvytpcsdphknmyxrvwjhnykdptnlgmjopuaevusyxhrifodrggvjgxzqzuztpwpotkwebitdpqzfhhkbhvgwneiljcikclowsozguygtwislgwckphzswkyswbjjdeaqyfejppzocwdvqkzabdsduxtohqzswzjrescppfhhnhqniczpixqqskruvdrjgdblxrjwcmcsigfkaxhiffgbdbkvfkacynvapnnuwmxgzmjecqdss...

output:

dbvlpczaejepexrepfpjzqhokaqblzyvalrgnenxjxidlclcirinzckjqhadoquuvyurqyaensjeqestwtnqtkrzsnblqxnfazxnfvgeurytjxcsabxwvkjwmwcqknmtoztppfkdxvofzhgrcpsbopsaahryqrnuumzpsclwbryywkexadjvghhavrlavkhyalmmkidaulpbysyxhjarcskqydizxyhwowvjetjcrcqqbnimkzidufqfpzphopfwhglyledzhyggtswhhdwtolxhigoahwhnuynplvpfcctp...

result:

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

Test #193:

score: 0
Accepted
time: 530ms
memory: 16184kb

input:

1934
uomnzfshftvzomqrisjphgafjzymsoalysejkdfpblyofzwcejbxabhderobokqkzclttvlxmfbwqpiqrqkieasxarxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwf...

output:

uvsbyexebheehiskosnzjafjzermnkywpfjzzzkudthyjazzhxpsqrqoepxcpfwpivuycazibxqcmvfftzfpuyfumnsvpcsubqymkdlcpsrogzthjkmgqhudacjxuftsabxugkievlncqgboxfjxactozlpigwhguivictqvwfkiieoxrvnqmmwgnqryvambkprgqmulcobwzcqiacttrunnqzsqepsipwnldtftkbutqwrqbzemrmoqpliwibgfwgnnrzbcnrfpqfkqmzliuhvbrxkyxrkhbfuujbwrxgrg...

result:

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

Test #194:

score: 0
Accepted
time: 515ms
memory: 15768kb

input:

1912
mxhviqfqagdyjghwxpentmntyhdgtycbyhhwewfunygnndrtepeibhafbbzkaxllqujkuoptosvnujukqwuckzhwyfisjwpumeoluzjdgchypyfioptfcuvmutlzewvrcvlqthysxydqvuiupqgbmthqxzclfmbwcxteeceucxjcwmxbcttpgxjolrmdfwwdpfjwrknqjspyyjojsdjonhokiiomwvuazuvskcncwvgflaztrmmgwlnirsepzijhejwmtedfssimgzdxgqyrdjoimrtgikxcgfynqfh...

output:

mlptbbpksnusfpgbzkxhfgwnbtgncfyhvtjsnmyhbnijetkecttslhehzopsnbtzfqtgjcjrdwbktajilncirxioxsfkxeygyihjwymkhtpwrnqicfbrkddavmsvvxncvfknaykuvzsxvlckcfsjivhupwjfwkwlkmuwfmhkhgdtfzyyuiomiuwtwgfmqqrqxtfaifpnkxkpzycptjjpxeapemapwvqjzcjpgqtpowrcghtytqdtpomsddtipkqwufymkinolexqffvjdjhxlqewxdszexrisznbbiwtxrpg...

result:

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

Test #195:

score: 0
Accepted
time: 527ms
memory: 16052kb

input:

1925
idwmgiozfsljjcwybumhncazlivzheqfwrpfpsgoupxwypxycrgocgzsipkhiqtfnmyrhefvutbzvwxyjzhwzyjxwcqfbxacbfyccjofmeifxpxlzwycwpjyegykjwysynxhccweqygbmczvudhicaefdfaeacybfgtfncqvasninfsciibhrpeoerjlycdbpoximsphtyevpbnvfpuibfzbwoxljwyhleoagvvjxmhmvfdexrdhzclaasdplnhrjnavvzfcmjmzknoxmkfamdhxnqdszvodzgpufxx...

output:

irjypbiqlzhmlouhhvilhnchplxnchtfdydpzxdvqvkneenrljecgdltgkmtaocykobxbpmnigfajjtszuogobxlrfvkxiuchrgpnlifohkrmamernmxvnaipndesumvvesxnroxzpniajxlsxljxznjkrpfnhismymwjzclfzfvdkeqjmzjedyaomfffhszosmvuzfifnsqtjtygbeyhtzwynclysizzxyuqfxlxkosukwxayqsrfbbbxasvevvvyizvhssypnhvrbistxhmmwvbflkalgvaiymogeantlz...

result:

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

Test #196:

score: 0
Accepted
time: 510ms
memory: 15528kb

input:

1903
berzrojvkpryxzrojtjfxwqkukvogxwatdnzxqkdyqwkisnjnxletnbjidagbokkxgwivrrhbulcnnillkobzbyqxkgkcpvhrdioyrhjlkfaywmqthcrmnordsrwnpberzrojvkpryxzrojtjfxwqkukvogxwatdnzxqkdyqwkisnjnxletnbjidagbokkxgwivrrhbulcnnillkobzbyqxkgkcpvhrdioyrhjlkfaywmqthcrmnordsrwnpberzrojvkpryxzrojtjfxwqkukvogxwatdnzxqkdyqw...

output:

bgdzkayxayqekkuezzjtcaazoyufhaobzxdvenkuhawpmcrwnzrhegomcagdlhbkodsuisvxlavmrbimeieavdwutlmbsiqgwcdmdntqxnsxmdmygoadroasbzuvxzxjtomgemlmvbmroqhopqlucxcgapsnqmcwgaelszazjghdcnhdtdukxeyxzbkitotdpwbpxqfhkwrauuzjybmhscgijzenvtjctfarxapoaynfmnggngbsrtszyvofahdhkimalftfkscorsuhoylmzlkcgvhhoyjxdskqcjowouzj...

result:

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

Test #197:

score: 0
Accepted
time: 562ms
memory: 16908kb

input:

1982
ngrbepedrqykbfylngypdzwtsmaeouerhyfzzieuirrtxzerjvyttrjfhitheodiczzdjvqrfyojjsaajdamrdwcpvthpalevkbhlctlyrmazjbyjldtvpozwkmyvwekinozashnutkiqaewtacpfuwedqlpzgytazbzoamqvwfhurluxeksnwwkwfefrdglvryngrbepedrqykbfylngypdzwtsmaeouerhyfzzieuirrtxzerjvyttrjfhitheodiczzdjvqrfyojjsaajdamrdwcpvthpalevkbh...

output:

nyyglqfhzmxzowebfnhvrmiomfvysaufrpscwryuwxmehmtjndjoowvfkdebvdaarzzewrwkjiialvbfeyrimkojykdritrfnybdnoslxndktjqefaxauqqacskdyrmhhqysevfwxgbpdlemrurgabdzatwvqxdozabesxmmdvxohcejfiydrapklerqwgjmtcdctecbhftugmduhuearenjadilgnhlvwkvcdsbbbmensqslrgqxsjttazbwuqfwnfphndnomjcofpkpxcocwfmkovtxyhyuzffoggdasop...

result:

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

Test #198:

score: 0
Accepted
time: 525ms
memory: 16140kb

input:

1927
dldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillid...

output:

dvenkvuglqnmwvopgezwfqvrqxvdxikldxtpeewsvhxaxxndwydgdvorsmjyiktegkkzzzmfgkotwfihmcemolykaugrplnxvymsbosplhpxodainisarhrtjixyeysnqaijaqklpljoccpzkbcmivbxdzlrdeyxzilbbtsimxzxhqtxdxotngscitzcyhonfdytbpqhxenkgfknowbahtwtnxhsgfegvymhgasdenvhoyduypbfwchdqksbiurlgpggijcqjoqqgqecuvyfhbeeowgzernwcoysyyijgijt...

result:

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

Test #199:

score: 0
Accepted
time: 552ms
memory: 16660kb

input:

1973
wxxkuvibjhtzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzr...

output:

wtbwspjdstlcnjbndjzwxmfvudxniyfaddwkhicatdlykknvhbqjueqibtvepfgougxmhcepiusrqauxcpytqfefnticnqxrxbiymqxzahhysusrkwmkmkrwdkwyxcaoosmlbrjzazcpfzykfbcfjhraruxtttkhuakuhkuiemxsksmxxkvznjkxyaafnyditaspnmltanfrlimkgqektedonabyirhuzgjkiccvwofipucraseouvghafvlcqccjswewtppqubdzdkekoyxnslahpyzxgmgdweagssmutrn...

result:

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

Test #200:

score: 0
Accepted
time: 478ms
memory: 16596kb

input:

1950
xqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqv...

output:

xlrfwwmrlrmxfvbfwjguzqmgpaclksatvgyuyoqmjwxeinsjczbyzthwvfyjpwbryyxzkmrrbktixbrtbkkrfmgucvxvjrkhnofccpbibxnyggdowpxluvyhrjgbspnhwpwffwtbmagordlzxcsrgqngvpiwnhsqvnfuvjewrbwjrplhuxkvuawslblmfmddfojizrdnfcnueamkswkdsjyzjtjqitlukpdwzrgybjhlfrykkswrtyntujbarnwwfjkygilleuduqdbhzneoljzvyylwuhzeuancejhwpgcb...

result:

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

Test #201:

score: 0
Accepted
time: 394ms
memory: 16592kb

input:

1963
dklllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...

output:

dlqloulompqffzduykvwboyljtwpqlpvrntaqgpccdrroholkskrjbcdmckdgdpjqmcfuhrndomcczmmfsaoaoveebpdfggelsreiqpwnopsjdnwerdguumilgpmnlpctokzotpljlbqawhkfmzqhcbsmhmhyysffujjawbdezezxjspxtlybelzxvejcoueeiqqsaujygqpnjbpjcmwejmhvwphjdxfnfuskihsxrowypnqiqoocwjbijxawdowljxxegfjakbzyzgtqlxtvohcthhbnkurftjyqmqmbbrg...

result:

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

Test #202:

score: 0
Accepted
time: 535ms
memory: 16396kb

input:

1941
ammyoqvtkcdxzajfuyzwwodisdaafjlxaqsdfzomvshqvdpkckntkjvbdpzwwjuqswfpzaztmeeujavtkvdexlexzcsvttjxwevxmuymotwvkhnnhwrroybmjjmqzbnhnkqzsdcaqwhistlpoflooxjvatesjrywaosoygnvjjalubzbyypiekpmwgcgqshglonjqtdmqvrltdasmpajwmivhenvbgiqcxkuizdgszlmxwusxhoqssqyaeohihifjubmjmevnrfqanerbwbsitdrpltbnkeusetpqmi...

output:

aczeumtattqqjvpolkqmkrmybcqkzefsavnyseeuzytdbvbxjsjxciujcahjjhmalowpseyjdlsfgykoegbpzuhgnhddstvxgbmccqscrrjyoeucxgnyodphvlaityibxukawbvvbszstmasclbnqljpycxsoqalvmihsibejoyxhpojewvadvvfmyalilibnksjyahitsmboagoymapsfieznopmzmojwhgpzythfsqdoaodkiykellfczsxtzsjapezneihxuisxhikxvdhzrsnttjygttixwntrcyosoo...

result:

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

Test #203:

score: 0
Accepted
time: 572ms
memory: 16860kb

input:

1987
uplsxkegxjsfeocceclaatkesltdvcqisbbrxfklmgorptstbwzzyxxathckezamixcbolajnkbfjzmtlfynxwovogtkesltdvcqisbbrxfklmgorptstbwzzyxxathckezamixcbolajnkbfjzmtlfynxwovogtkesltdvcqisbbrxfklmgorptstbwzzyxxathckezamixcbolajnkbfjzmtlfynxwovogtkesltdvcqisbbrxfklmgorptstbwzzyxxathckezamixcbolajnkbfjzmtlfynxwov...

output:

uatxckptagnzamdlvvgkfvyamyyedhksiyxizahewbwlnaucnfbzwgtugkisthggjcfivrvzuwyttzuzardvkxgflzacdqaprenloqqwzskejtlttlqhtvgdyyslquqnpmvmscolkqqlbyouodzynhgmuybnzwramhsqaqsfmbflmfesbyzebgbgnmapgxtucfuoguwegqolrdosbweeermkzczemxdshiwtxgdfzadpilrcjdrxueeookirjnrarkfzyzhvldfytkzprckruqqswutrdwqfvixfzvxrdbjc...

result:

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

Test #204:

score: 0
Accepted
time: 533ms
memory: 16048kb

input:

1932
kpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawc...

output:

kiqyvbprfcxxjxtnpxotqnrkqhkrjxbfuwixodkvxrzxvazpldbhhhvpffcuwafecxzrouofqzgneewaprxokmnglplvmpqlvhnxvukfqvxgkixvrawdqziydpkdkbxyldamtybselwiwrladwliojsgrblcurepwxivujynllccirburdikqwmsplbrezzabraekvesfijhgmwfojgmruavzjszrqhpvmiiutiqgqkvgmnddsbsckbhvktfqjecwyvgnerczzgveyjtupnfjnogijoygxifitlzqkyamyvt...

result:

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

Test #205:

score: 0
Accepted
time: 583ms
memory: 16596kb

input:

1978
ibrvksykxrmidzuvothktdxgcjjihwwvbtykvjggzturcfowhwdrthrxxrganbkkbvoamvjqnzptzbqljbyookdalsmhhgwkgyqytfprltuucgughawpnvgfgvfdlchxevizkdpcmnjzrtgeaypwgnbojvemvnchmbstepjoqenctxjhkscmfhkizxpulvllbvumvvjadcbhrmccvfcpbzlnsjrsbiazsqnpbujuximyonmfxllgxyjjwtzxmoeyrfktmdyxujynoabrrpvareqgwseidjqldwnprzi...

output:

ivvheaxlghipinknsixgxitotolvcwkipohkqzoqggvinqxxaaqqrhtusxypvpozbkztxnzskmdxmlcjvdagiekcbnuuwisborhuvnmrwufmkpxspgxjleuidelexmwczqllebldkurdpogkpqlvqfzbnvhrwcergpesaxoxabsdxztqhtsugeklzeojrpfywsullhicjllzxemvdybjexxutedwkkslgqoixxvylehxkagrlnqjinsdvtwetthbljjurylbwqlcxjnszrocbujhtfcafmvenszpqveylfav...

result:

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

Test #206:

score: 0
Accepted
time: 557ms
memory: 16312kb

input:

1956
qhpojaaxsrvjxgepzgnndfabchsyhizdaejjgssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

qblphkoysqocsipkcleisfsbfjgulptancnhwyfntrxzwgvyioxetoldyfjistbeibqojhmrkbtpouyphjwzsogwjkyyilkbefotxrrhrjpxeeefhcxipluglrfrkyzlrzkdbtywaunqvhgxlasxhpwodwbtijhvuvflisdgwyfglivzkdkxezqcvatkjcaklvzzwqjvobeaacptyzzkdleilevvptqpcqcciidwhronjksgfrobhwdkhagohhhehkfbinrsyzgevurkfltrvmjvvlqtkiubonjovlbhhopj...

result:

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

Test #207:

score: 0
Accepted
time: 381ms
memory: 16016kb

input:

1934
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...

output:

ycxdmstksvfpdqyewpagporlzpsssgdcdhhwffetsppxcfnnimcsessmsakmsrozyszzajektnzthrnyctuxwcsvrjuowgdlxzlvghpeuhwfklrbbiselqenrbqypkgnxqvigywkyhowyvpprwihcadllpevjmdiqcuflojvngvaujxfyneqhyxlukmdtwhcsiypgdomvtcfamlimvdeaqeodzxojzkhbypugigsfedxlzeyhjujyusegddubrocxeubtiinpquicfztnitqcdewabihuagqctxnqdquspmy...

result:

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

Test #208:

score: 0
Accepted
time: 535ms
memory: 16260kb

input:

1947
zfuzgoalmkpjiljzyyxleimlchowmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeak...

output:

ztghcmvnysylofzyppnujxmvahcivnmllxpjhqwrnuyyuvxfvkkwjctdtzfrvhxaferveybpaeovfgwhwxwzihvpzyysrzumzyscsbxngfwvjigopvqeipmgskqahlgbmunbbhogpqylciwscgtslveqhjoiqilrfppwfzweyzdkhoojmsdhjlvojqwioclkxbqghahbzwifwyolchqzufmwwqjmwdjupvrrxaafyjvjbbhcntnhuersjmithhvzztlwafcxdejycidygogyicgmuyasnajgquxphlssaplh...

result:

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

Test #209:

score: 0
Accepted
time: 531ms
memory: 16200kb

input:

1925
kbcvwzkrmfqxqdxigjnctwgzibratvikfwzjvahiiuxicvjlpfgopmccvdcprifxjylzvcivawsveebrmyxorwizigduaijtdplanqbcwdnpnnwfynmnflgtngcktuyrjtcpgvrnrsiwxatdjaxdhonbdrppspsmxllkjwnwnlakvnsdyivegksoexlcvjxozsuzdmwrkymqocwncntvfkkinyrpeqikupqjqpaltyrrumagmgxfdekdyzpahqshyaehbbcpostrwjcijwjppwmrbghduxhqqvifyjq...

output:

kjiznqujbdmrndieonwkqkhnissykmhtiypsfezbyjnlbltlmyamcvrhtlbeaegzibljksbfvwahlhcwzncodwtvmopcfkapiwbqetlrfdsexxqisqbdmroilgckspvfexqboktjvkbgqjkxybhiphbyjlffvjeejlqlxcshhvxwavajjdzwwpdjyrwwdcbcvaeqzxcbhxkzcxnshwkztujryzuvkbhpakwzmngdwwqudnlyauqaucemkbjhqkdzlpaxtcjzxqlohrlpdxyvhwwndfrrltcevteixdowwuze...

result:

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

Test #210:

score: 0
Accepted
time: 571ms
memory: 16916kb

input:

1980
edbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbildxhlisqwpqiedbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbildxhlisqwpqiedbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbildxhlisqwpqiedbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbildxhlisqwpqiedbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbildxhlisqwpqiedbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbil...

output:

eunvchqtasbkkrmicjtbvajodreneednwkjcbuizjsxuasovdvkhkzxuasmwmawzbkxxyerqjkjpvxlvfuoibnoihiriqhhtlrandiwifdzdhxiexahdqwzqgbectuibdonjmsvmwlqdfxgamvujqdydgghbrwqclwsjmiikupfdlvhxsholathtogdsvzykegywvbehweahtlbxiuzcoqvzixjwoznhpdyxvvfhygguxxymrdqrxkesgtwpvtftqdnzuarjsiuoxegiklwctpegxdikdvliylzfcdarsczt...

result:

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

Test #211:

score: 0
Accepted
time: 530ms
memory: 16056kb

input:

1925
jzbafnxwqapuzspfouwaisjhslijynyvxvujaucydvouxgnhjokpvpderjepjrskkegozgysjdddmseeokhivucvodvcjoscooeodsfhgiugodurokwsnzjzbafnxwqapuzspfouwaisjhslijynyvxvujaucydvouxgnhjokpvpderjepjrskkegozgysjdddmseeokhivucvodvcjoscooeodsfhgiugodurokwsnzjzbafnxwqapuzspfouwaisjhslijynyvxvujaucydvouxgnhjokpvpderje...

output:

jqgkdlxhcbdjhaxsvfochugidymttfhxoydgjupxhpckainzgkermaioxopskdmfcgdwczmystsyunxynavmizbldclfwbxvmbslcykxgoriafmjmkgqpanlcajhxrglslxncjauzxbsrodwqtgnqnippksbqzxroyrmyswaolnpsejgwznhfgxvwkbjatozbeahiuqxykmdkhgkpsvrccnbflwhliqnjjdouhaoomhrlxiwyjnulfzvyikaulmnsffpybuodjuyiubmsnlbmkbjwfoheaixtbwxrctztmgz...

result:

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

Test #212:

score: 0
Accepted
time: 508ms
memory: 15472kb

input:

1903
bcbxtuagflljbltrrnlabsdtmobrsnckopotkawfjbtrzirnrmfnbmwqycpyutvtonhjpwnnsgwrzcguifdhgmlnayczaibucchwqlnadqdsisligzdsggnitswtdxjbaxstjjpliaenqgjfalorrtnvhufrfyzylrosfexmzeblknvhvkgaxdpxhxollftyfapoukhbyuqoqkkcsexqgjomyhdckjfpojblwbodtfkxagsosoxasafwglorzojwllqmruklvyzjwroxmrwqrfumaypqtdghjzpexgg...

output:

beodkedomissllxrdfrizwbznkipzsfdxszhgwwbntwwocficfieqyzkdrrayjqegypxiaoalpcjowbsjgmqgiolvkplqtcsmcoqhtgwetospcwwwizwvgfcoxjjbrpqbdalerhkqtgfcttbsrptvkanfgkhelcdumtrvjyugjcqytluxzxcofcaeoybmdaoyrrhagquwuqevphfvfhsrbttxltkgicznsspkmbgqpimxqnfjeoiygalbpujelwjdhdowhpqhuwoporuxhktqdjjelkbqtnsliyvdonrcowh...

result:

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

Test #213:

score: 0
Accepted
time: 541ms
memory: 16640kb

input:

1949
ildtfudxsrjagwxtgoswkpmwdefyysyrfjukmlhweqbyztjtpqscfmentqymtwiznxovmlnbslcvvvqeovjicijmhbtomxhlkyqgzdktjkiuildtfudxsrjagwxtgoswkpmwdefyysyrfjukmlhweqbyztjtpqscfmentqymtwiznxovmlnbslcvvvqeovjicijmhbtomxhlkyqgzdktjkiuildtfudxsrjagwxtgoswkpmwdefyysyrfjukmlhweqbyztjtpqscfmentqymtwiznxovmlnbslcvvvq...

output:

itstxdazjxcewggtcwjofndexqrmstufdubxqbznyrovaywpnsdffvsocsmbuobtrphkdsusyfjirvrkavjaatwabjaxxhobmccaivimhqnzsdjahmmdxtnxfvhimwpxkgbxegdsnasszmcgnqksqmuglpggbbrhpdnanqseljwneavtfoqezaqoktloqwkgvyuzrgfyuqbqsjihdhbwuelpgybsivefkelnbyvtyochxambycbsoueritrejhtugyygztfusuxahkhqzementukpvjpdaadhnispltwreer...

result:

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

Test #214:

score: 0
Accepted
time: 581ms
memory: 16732kb

input:

1995
zmetncscfwxjrpevcyssynhspcjtbhcmcnsdvcnhfsqotwluhlzctwgpbwyipufxbhilcczpstzebwqxezglzmrapxgwhdlbtzkgomqbnmtvcagddetpeldtfxcrktidubkknqwmlvkithbawstalsqxdganfnhjrmrrozirstrwwydxezhtihvuprlzufcbbeeeiwwhtyrxjtzmetncscfwxjrpevcyssynhspcjtbhcmcnsdvcnhfsqotwluhlzctwgpbwyipufxbhilcczpstzebwqxezglzmrap...

output:

zkwquizycmvnviykpikisohlseshhuzfgejxswccokthkbmldidfmjbxylrsvrzbnpksfxbtimnuhfvaebgqgvnjseazfvcvthzturorlhgkptozmbaaexunuhbztpnolehbrrfiurvehmwguwdrhuugntosasslmejexmmxaxyevrvduwcozsrgxkosbcjaigjlsddtgvdxirwenmzhrsiofugqyabonypcbhgpluwtjdoxmqamerwlewcqlzbougebgoelkymisnucyiezqsxnjdymkbjlszobtzgqiyeu...

result:

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

Test #215:

score: 0
Accepted
time: 536ms
memory: 16048kb

input:

1941
clyzzqwrgaoyjvwtpcwymecxdgnyonwxmqfotsqszoekqobospzzmzzybgudqqhgnrnrehbmylxbdwihopiftfkdhskvnwhqhrsxojwnkrzeabsprqslsrxeouonhzyhhntcihbltcqqgstyptiiowdeacprrvpwmgtjovjvmqxnyvhsqcxlurxclbbxyultrzxmcvxicapxqfzcgdldpypbcebetvcnyxkisbhqxlfgmzopsawoxvukgrcbqjltgqfajikzfmmimnjjurnzyyqnogjcibamxvlfiil...

output:

cwnmohrmmpvrbaubfxbclqzrwcqsjtsjrubjzodxjxqzyzkuvbbvyydggqllrclhrldqdddadbbslgqplkdfjpvzubctckfsnftfdqrsuhwsuxnnzudkhasembyocwaavwfcfdvgealtunhqmztxdfjkmvfsnuefzfahzwktjxytamxjtoqryebpkrrfmqytfscmcqfollurxhumfwatslnasctcbnohplprhmlnxznzinbafvzywyfmrviptuiyybzeibigrojetkeutlacxtvgfyqlzocdethtyxvctlxq...

result:

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

Test #216:

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

input:

1960
ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

output:

gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

result:

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

Test #217:

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

input:

1905
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...

output:

rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...

result:

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

Test #218:

score: 0
Accepted
time: 53ms
memory: 16324kb

input:

1951
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

output:

iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

result:

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

Test #219:

score: 0
Accepted
time: 627ms
memory: 16764kb

input:

1997
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

result:

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

Test #220:

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

input:

1975
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

output:

wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

result:

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

Test #221:

score: 0
Accepted
time: 637ms
memory: 17124kb

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

input:

1954
cukfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfh...

output:

cfftxqimdoekzejotguftrmmeomptiamtglccxnbgplutudnymahrczptadsojverxshkbvavswejewxxqcoccusuyqsnvekyanybyxwwwovknsocuqxeqhqbztzslbdkjqiqkevtjydrnrepgqwmxxdyxdfimcgfeoaoihpjjbjyqkzlyxtcsloafyhkgwzffsgdkozegegqljtuwnzufbrvhxskqfgjdzyiqazkejoqbqrkolnibesgjnmyklwcxqtigvhsbtlmrdlvbssxpgcnbhefhqckdnqlclswbfg...

result:

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

Test #223:

score: 0
Accepted
time: 576ms
memory: 17032kb

input:

2000
imryvligkijncctcobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobf...

output:

ihdvvaplgtpoulhuzikvcaoyhifhpnnnuxfimiakyjymyjohncyqogdgqeuadatgjrcmgffqeafpxxcqzklacvqwjwezzpvzsduzqphglquvxqggymdhqreflyzymmlrwftczfqoiukqopetrcfnlzfkpygkfmohylljvqczaccxolwclwrhppmpwllzpyztahjqnimqredggffexhxwpfdhvbxjbdighestbyvnuoclmxedehioobwjtkztyqklqyyoustjaoymbyvkbcyteffrnnhzqefecngqckjtkewm...

result:

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

Test #224:

score: 0
Accepted
time: 146ms
memory: 16056kb

input:

1945
yjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

yyciyyukcbahnxpgznhbehlntzvzwxejuzjgvwufututynjnzexdosdlzifstltoyickeaddmftoupurqrxjypxpxlavczubycbgcqqxvafoofoimtfsdzzctfgtleqbllgzvovxroprgqklxnqccwlrcxsokcrybrrpydyttakthucnjnoxqaslmefcodjicwadzxeofgudtjksygowvldqcbyfjjryqmmhdgqqpyjfdpnryjvtjjimxkrqfohercaaxowjruwnszjxvbpjtevkxoklfvnlzixzodyemgao...

result:

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

Test #225:

score: 0
Accepted
time: 497ms
memory: 15740kb

input:

1923
qwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorv...

output:

qrsrxzctlusmkgwsjammcqmaldbjxyryjizkothtpnqwnbjpqagnjijjfozyotyemyisdzkrcyyqwnskonphcueeqbztofpytzntqeybmeitfmxusdwxdfpfpottagocunwiwbupjhfiruxhzjtgpavovdsyzvysedupxoxxggoausacjogxammpnjjapqzakwzjzpudegrqvysmleypfgignthqqjigcwlmktwiptbjcgusmnzrlyctcxwqexfgowuvmnkjrasszwojtuzswuczvspxnvcqvmgwixrexrjc...

result:

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

Test #226:

score: 0
Accepted
time: 512ms
memory: 16712kb

input:

1969
xixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixix...

output:

xfldqdoezslxbzhjcrfavyumxeguhqnqmpyilckdiaessnzjttqlhunoildytvpixckmrvnjfjcykukpheipfkewznowkoknbhtwshpxeskhqiethvvpfplsygwhcbguxicozskazmkbswjmgxnzrzyreturvfvkzupgjcygorylpkdengjpeqjuwhtpihyvlibvqxfynatoqatdwnsmiyljxkofccpheivxuwnhowpmighilltmtskxljczzybphhueutjnwfuxadmczeyrkgznqfpbzacnkfzugmivisrx...

result:

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

Test #227:

score: 0
Accepted
time: 532ms
memory: 15708kb

input:

1914
qwnmufabtnomocccrrsqzxrwgfsxtqptchddzeokdzvibxlcmlaecoqxjesnxxzeeslaiuelclfuhiigxmyztrjzmcfjrkhportxxdtrxdbfbycgkjsiastbwcoygnmpsjinvocxvancjedctspgddhvdkkvvdyananwrbmahrzmdfrpupvygleixbsyweecqrtbvlfcjkhyughvteqwfnvokzcmcwzbqwfhqxytqwxbsbctapnjyqvrgcwqsfvdqwnmufabtnomocccrrsqzxrwgfsxtqptchddzeo...

output:

qrqnfxdoncmalkylbmpyrwzgjblrhavqhdsfhpwvxciukprudijkcuhnuefarudrcrhfdbxfezffdoyiqkpsoeveshfeytjotshngknxmovawjbpyssczzfykculvxnwnqfbxwynexonomohltlnvdfdkmmkiptqxbmosjsozkbsoyvzroknfqtvltountllkgvctbhmvqbhmvsphkcysyzgdtisntgwbibxsobqgrhysjvwjxmqeuldyqfjeavzkjfjmhimvxczejfjiknnlgrujwzpyeubvmganywuhumf...

result:

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

Test #228:

score: 0
Accepted
time: 558ms
memory: 16500kb

input:

1960
enofvgtupusktekabhqoybhvsvucmkudnhgklhpmlnqhimtffcloywttklkiiftuvtmepjcxwjhijlklyhoifuzkfjivoenofvgtupusktekabhqoybhvsvucmkudnhgklhpmlnqhimtffcloywttklkiiftuvtmepjcxwjhijlklyhoifuzkfjivoenofvgtupusktekabhqoybhvsvucmkudnhgklhpmlnqhimtffcloywttklkiiftuvtmepjcxwjhijlklyhoifuzkfjivoenofvgtupuskteka...

output:

ezkrvvtxvckaihhzbgmxphetlhpskrghmvdplapvyxwraaubsuphygztrzhmiuzflxivnnbjcaqtdfuhrlsfnuyfhtgnqvquhphvasdvyhmozqkpqzbqqkexqwcyoeomzaaenbjcuuqmopiezwhcnlqtetuqezjsuyxanchzlmnwlcbpeblvqfybvsgyaqxhwujbixcqavpenzmuvnryycwtpdabtqhibwigswvwdkiyckcthnsgysxqigcslsjnabqqpfqhwtcdyishsucpwlbbdjavsiekbbjvmwbdmtjp...

result:

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

Test #229:

score: 0
Accepted
time: 544ms
memory: 16088kb

input:

1938
yustkcpaqvzaygkwglcrjheixlybbfcntnetvoxfonxdhavollgvlwksjrfxnmswfjzsuxlmviiaxnjfbwjfkpjcyqogyscfircbskbcvwwslgzbgchzorvzwrmrwdxowggjckagahdmbmqyzqmsdzmzskrizlwdlunyzamhjnewfnswdmiwvnsazhkvfjhpfwheyxtdvbyxlnbntinqhfpjcsudamprolvenqbmypezlibtfczxweukrwisphgptrcwocgplhqfvqnegoiyustkcpaqvzaygkwglcr...

output:

ysuvdbcrnwhjctuzvxkolnohqbghiblqavmrxgawvdzmgnclclnblbyjqtglnobpzcwvskyyjvpzsesdamsnaayhswhwdsyaylnasptcusvyaprmicpdscawfapvkoqjmypylnpjhhujosofyncrozcckuqmknvtvfcjdmmhfaiuomabsthrsrwjnqydxaytwannokdhvfgnsosvggtjzhxuleedzoqmftvqsovyyopughwtifjeliwihcygennziagfdwxapbrlgkupytjeeoavwyaumwfmyugoqfhgzbie...

result:

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

Test #230:

score: 0
Accepted
time: 509ms
memory: 15740kb

input:

1916
pnxabayqofozddmnnblepkeaqhxpuzknmowdbcefwmxsdohzsjiwlnhfsolfhubbxfpilgwkpjrusfyrxvdeckgkhlfeihbmmsnqxacznjebloxvaxdkfjqxlbpaovweufgkmymbwcfemvnjltzpercvsgouuzjtjksazhcciyycnrnboprxprjdmeiftqkkccoujlekuogybjxgrlqdwttydtggkaxqjfsgrguwnrmruowsttrwcmsqswxpayovahkdozhizdlqrtfafviyxuxgllxwpcirwqcsekv...

output:

pcbhciyvdcnevanosjzadkfbzxzarfpgbmnigotgkaznbouksqzezgqonbnmznfjjohiqppfsorsmudxcvnfdjemrposhdejgulpwgkkfheykpelcfhcvahdwuqywuygfcdzafjrrlvkseeeezshhoprcgknmvkwyfyxmmjeocnlgdtlryoxurawmeyxaudwaejevipthhhoaubijhmdlzegpxzfbpfqwvlznyhnobdgysliblxkgeyigjzitkhdgnsvcmpkburhuuhzdrodyrjbkahzkloxldnbgatrjrao...

result:

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

Test #231:

score: 0
Accepted
time: 560ms
memory: 16584kb

input:

1964
llmrgjwoldyydwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwc...

output:

loukfkyqajqdukrlrzxakeceybmepbzemxiqbflpcmeudofqcqgzajvzkfoiqzqccjxvhtamdypwmkhfpebctqhacgovajivcrnhzwxmaoczfxrpmyfyqppsgbpjgmdbqokfvotblzlbzponnkwlhmlkzjeblkqjtprlholrmfhtcccmrgncqqhjkjepoviatepvckluynbxnmkklphykedpmkmyywhrraatvglgygemmwccvgnjarcxrcovkrarqprfsfdgooitrkddjwxdupxuvlkcnsvmukgbsfncbkcn...

result:

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

Test #232:

score: 0
Accepted
time: 542ms
memory: 16376kb

input:

1942
shxhcdgsglgnnbgypfiazskywnhnleykfigyifrawnrahbvhhppdbdljzshsettsephpgbhmifrrpppsuxmfudwxmoqfakiwfockzgdkodkhulpnsnpgijrsmlzqroyifweproqsamjqgclpbyeesazkrhrszletngzzuwtpbszqvnxpqqhujkepdkevtghvdsbozmpzgltobjcfryucruzibienwifoxrvhxvnvcocxhuvwbmymnngtltbaopdrnbexcwobodifniyrvpvxnnszhgmevhpjheplypf...

output:

smzbzbqgrjjszlvmvojfkkvalmtyolbtgiscarbbzsbhpzcmrxaokkihihgxqyxhacmuzetlzicmoxuzqedhatusbcetielsogpzlswvdlcjjqdoqdtrgzrwuaqyzhpwezcixeqxrdoyshtopxknortcorxnysluglmcjlhvrfetjlcbsbnvgbethouvvvoqupzkmwhogpkthrdbjppvkeplnrsccjighrlytaehrmrwisczqytigmwlkjfwmibbidziawpyucobyvrplxkngwyenuwybxzwirhvapwnwytu...

result:

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

Test #233:

score: 0
Accepted
time: 583ms
memory: 16948kb

input:

1988
ywzcrguxewlkmgfyyikjpixavfmjujlunujhfdlbfgymhavlkryjmpfglinpqghdacwkomknovihxdympbdbkznlzemypgjqywzcrguxewlkmgfyyikjpixavfmjujlunujhfdlbfgymhavlkryjmpfglinpqghdacwkomknovihxdympbdbkznlzemypgjqywzcrguxewlkmgfyyikjpixavfmjujlunujhfdlbfgymhavlkryjmpfglinpqghdacwkomknovihxdympbdbkznlzemypgjqywzcrgu...

output:

yvpozxodqgyjqtzsbwlsautiestgqjvgstznpkiobdmatqwukmqtqqgenevlbjfdvslmzfegyaskcazcefxzsbtutbgmfwyfaoknpwjunpazlellpbuynhgzepxyzgnerhypeurpuupibezrzikzqwjzwaahwfxwvlpstkimrknhtuyqwpllkbpvabbxnqwsptxpvgiewtaqoljdwksmvzrhqduamtwrbgymhjegujlzryqhdhpwiazggwrsatuwiinddzsfhgcrmrtbdqeleiackareepoundneibcofmve...

result:

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

Test #234:

score: 0
Accepted
time: 535ms
memory: 15980kb

input:

1933
gkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbid...

output:

glztfiikconeefsflpohwygvhvpgbvdtustxdtzikkvphuathehfnnkkiaiamjrzbgpmkxrpwrtaeqhzxlvjucvrmvxzzwxjmhwxtyocfkzxgsvmehfvwlsefvtegbivdjlbgctsnexxcgkzrlklmznrnowrqhaxbtmakhcljwflyectcmovggohjxvrwkhayjqvimdtlpgzwgtoetmczfgoopotumlizilzllmypwfkxifmtmncdxbjgzvnheejedpaeklgrnjbhwnbjmmnvpuqocymbnkokfabkugskhpk...

result:

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

Test #235:

score: 0
Accepted
time: 518ms
memory: 16060kb

input:

1911
blwfhzceqljpyhpmtencwhezdqnsfhreujxftnpabfbjutpkyqzkkqiffmdxkipockpxurltvqhmtkeikedolbanafnxacwljkzewlolqsmsgggrqlxmcjwprusrrsbagjoecfrmfmmcwdpcbmmeoqqjztxgrzcrwmndxbpzvczemztnkoxuxcmoourjgzkpjhiwkszdegjzumobytxjbwisdqlwqfrpscyfibuzrwdmeboefbeduncblzgyfgfvhmpjcxhmqehsahfsxjrjrravbvuknqmmojtelfz...

output:

bylqxfvhfnlutzoiimnizkjorcxqrpgkmttkcznactlvpwriorzbmdfhvnrjujuaaoyfgdjfztrzdnufcoxwxujeioccblspahkkvqsepnyytdfwskhgmdwjgstegnlijbxxhwxirepnienzbxoznkgpeuiemftgyunkadqvpjvccdaokurqqamuyzjmvlerozlcamxjisodrkansvzywlbysiovgvuhzxdqgeomzzcfmhgrouumpfgfhpcbbigcakjrudnwbjuffzucujufcopmhmtllkmrypstivbwfzgk...

result:

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

Test #236:

score: 0
Accepted
time: 562ms
memory: 16432kb

input:

1957
bhsffrulneechcqyqywazcmyrcjygglytnpmcseiacaovrfmvlthdgibbhxkibwamifjzzpptxxnoczhmotizewpdnmvynqanzaxnrrgcvdyqnbscyymvlainadeoggaqbaqbgkzlyunripuvwfmduqeohuwzpgceemetscxbzygfnzdluiglhhwlfpznbqliipyqhaxpfaoksbkwstvbhfjaqzmaoadhpjsxaakwgdamonyydwmjntfvjfpvdabttdwcpegbjgemynymhugnlpsgsjnkmakgtxdcxx...

output:

bunehfuqpyadhzqneqgnopmnnhthvkxsfkvakjbsufarvfkgllkpqfjhlvypctrnzzowpsdyhnqqunyvtjrfmbwdolaninxfvbjsuxrblywmmfevbhyrxorhmhuhcgtsmuxysbgcayiafrolzgynxzwghfamvatnqcrxkomwdotwvfmxesuxjaruwgkuefvaawmvsotbmddeusqqxkuivzkwggppkmjplitegfxpawwwjkmoitpcfsdntdxlqgtpntborvyeszgiunqlxflpquitkvbsrpeatsfxjfoiqxro...

result:

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

Test #237:

score: 0
Accepted
time: 387ms
memory: 15660kb

input:

1902
ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...

output:

tabgizpcmokqfoomwvxitgvzbvlxqafrtdvghhakglawovorvhtpukyninpmlfaancrvpjooeljezsvplnxzxqvrqoovwfndfrwnjubhhrytbxweoitdmpasbkhwdssqqylwvpenhbjddklfnkwbpnfddrkbtuxnepdphzijiwqgtglkrzfkjieznlbskwfmbtbewfjshhyixryqcsjbaupisozvecfgbujboqapfqvpkbkezxphfburymwsqvvvbaumieaproigiznzqeuduogamrasdtzkfogbjopdxnpr...

result:

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

Test #238:

score: 0
Accepted
time: 519ms
memory: 16404kb

input:

1948
ifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxou...

output:

itgxfetuxxwocurnmlehhmfesyuqiviyftmgmckjzbvgzijkjndizhmdyacbezvlnzitxhhpkmehtgnhnbuhiwdhmiflmsizvwoufurcgnfzdjrzfqnixrhrwrkwnsxvpgbgdrmxqkmyftsmixdfbdzyjocsmvvpsbzlehxxsyflbessqjqxviwucztluxvozmskmkgknlclyqqysbyyjbztigxihupodrcsbtzswqpswfepftpdrrkqtybveemuaevijkwsnomcphelwyrlngiaemdjsnpdsutprblbdqqq...

result:

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

Test #239:

score: 0
Accepted
time: 537ms
memory: 16144kb

input:

1926
vccpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqv...

output:

vhihyayxyposwajnbjexuodwqmstqdxhjnpzvwyutjxauztfjyhlsepvoacevbenaznvwofydbcarntwyindqxfsbeblanwfgddozwfkwrewlzvcduojmldnrgpntpgvihwrqduvtaovkjlylwkccmtflibaqmdymmhwdcjlhpcbepjjxazgslkjxdbovztqvidpiiblfykofyeiegsdhypumvhngqgfflzqrcoiwuztpgqxfaffwgukmeikhxmhvqsrcmmdyvbgkrwtdmsqloswcavtutmahdrbitfonapz...

result:

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

Test #240:

score: 0
Accepted
time: 578ms
memory: 16868kb

input:

1972
xumxuigkuxbcnhgbdlmjhgxhwcayepkaxofooivjmuksrwrxsowfczdzwcottkeumswxjcrxvcdvqywdxrfurdtbmpuselliovlxskupzbfegmzuigygohrqnstklnjyolrzieapaznkioqqbhbhwfonpemfnayqkycffvuomohzhmicwsrwpqbtywhvguyfjiwslmjetccjxqsfmtspwmyjbvzvaafmqzdufeddrkjwbyxxjucsohdrhsknalxztdlyadhelhmfpfqswcgdatawmgnjkwebjcpodjo...

output:

xpzdfbckwapsqiiwhydtzhgsahcsfstworustjmmulundpvkhzjzqwjnavabbwrrfweesyqalgspygtfhckpozmijycrizmezgkvhlgbxdxnzhtdrjozkwmtmwiadajijcslnrojeusvxusavilhfiyymovaxvpbgtrcsirjhcficqgzzwjlaqrglqtqpkgubpmufrgvnfwsoaobfvypoecisoiknwltaohbfbijmplrjfprmndfrxlzndjpusbhyacgwkmashtepljyenobahobxjawjqfjbylmrxqwhynr...

result:

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

Test #241:

score: 0
Accepted
time: 526ms
memory: 15768kb

input:

1916
lsmgtjvhvpiixxggjecwyezelijayelgyxjeccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...

output:

lryruhusehcgvxtgzywehktoxtvdxpglypwfmcldeohcddnmudxytattjzvcluxtvbroopwjihdqaodaxvbtvivkvilajktfvjpbjetjdjksakfwllhqhzsvxwzadmwnggllmsxakiwoihnkfzgydxpcipdwfditlikxxsgesdcnixtebswgxtmzguwokmjhyioinkmnrybdwaguwfsaoxruwscthombzzyxsqnbemeqoxmwacnlubadrvvezucbfztfalfgaolwkwdwblrdlimktivzyvxuapevpnbwgypv...

result:

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

Test #242:

score: 0
Accepted
time: 587ms
memory: 16992kb

input:

1995
fgosjckhofdzeihoxwlknxvcfgfdgbbfwlyehsnecbralviqxvmnipwlinfrmnzfnpwmnzuczspaxvtkbaapqfyenhonhdqwpvrltebtnerkvvypgcqrgwirupfqfzknizjhbytcsavhrksmhofrqoqglslylebxgtymbsyhsnbvlwvgctqwypvemmgmqgkfczavvmwpxbzhkbvbqukbjatcnrstuzgodoqndhshtqjeilzkgqemhlusujjktckgjpvmjbgmhivaokgrdaxcflxpxvzjrqfufoyjpyo...

output:

ftgzkybattwjkpqntmcimghojnclqkrpnfulafbanfqxkheabnxmvvkxplqyvbplowcnruasuvycwlmmiphwbvbjvembalyeuedxqwsrsgprxyahdqslakqlnuorcyjwkhgibadzxybqnhuxopjrkntnkxfiqpvoawilhjsqrzmbrzhjrwrfthcnkqeougibshuavvxljxdxqlfwqihooxwwvdklxgrlfoabynushguhisumbpmsxytiihkbonomvwlhowljyxmtmcuvfkbjksdrtwteovyucvibtziveqwt...

result:

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

Test #243:

score: 0
Accepted
time: 514ms
memory: 15864kb

input:

1907
oxndkghoeywkpzflbbowuslvsblatfyntbrtsfsexermjtxlfkysealqnaducodhvuaqyyhugjhzwjhygobbwkhrngcopugbrnahkikryrsqykopjkmcwsthnanxvrjdsqzgnkgofsnkokrescfahgujdcnovihjysibfzftvrateypzytfwnhjfajvtynzupyxtvkqyadbijcuxwbnlouenuhbbyimtogagbfcmowxxjsxbfymwyjvwojphvgprmuurmwgjhhuoocbspbbthozewazyvcbfwflrpca...

output:

oxbiurxlwuiniddbdxpvvshbhuebqaukeiyqccslfntskkgiwgkgabqzfsaffxczhorbmgbqenhvbtwuurbodzmcjoqzbavcdozfryuiidxbxjlhhawpmxbbcafnkabieouwtktcovoqeedzflyadtvhtlhtkleuolgdwkwsxtfgeuimksbbmnynlirbcxqvlgjmilleykbgtfzjqwgezaukcsjxbpkhbandifahzhrlwkwnqpzlqqvoespidzkjghfhlwtqgnmpfouunhtutcvcomekkfnnlyybhzstlzzv...

result:

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

Test #244:

score: 0
Accepted
time: 585ms
memory: 16932kb

input:

1986
fnbtrumnltjxntbmazvbjbtjznnueykcsafjfvyteucvfdvqdjgxwnocoevlyxorjdxumcjcunpmwdxcvtisfaxcfaubzkntvllkcbtcvyqxnwpanylwhkevaeiahktkxbiwklfjhihrhhcydkngairtfhmkcvbinxqnffyphgbgdjbydfvyhlhngsoewoesncjjsfrstweutkerhbfusjarnnsdadavcquefxajesuhwcbymcwnbxwjuotdmcdpbnwlyupcvqutbqosepexhlcqmsdfqlpqeqfsfhp...

output:

fpuntwnzpnkzxufnhmjsbbgaewuquinncfknqhhjlruornxbqwwfudokhcfhroowbumhdlmcfxakccfguhymfuhhvpxbqjsqqzenabszxbjcfnwnacgehqxwcwclelcfgrxyuxcfardnkecqqfcwodfgrjxzghfznzirpprvqipxgbpbzvrvqfwfzwefzuvlcrxkxrzfcjuptcrdmnctfwmfqftseywrnudjdaghuseiwcuglrzifevsjxozqmxdehkhzaczrbhhjpuuooyfhcigqbpvkeanxdoqiyiuxqkm...

result:

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

Test #245:

score: 0
Accepted
time: 571ms
memory: 16580kb

input:

1964
pbugtbawdjqcuzkucjrjwrbiyahvlmbhnjvosxfxfytsydkovbwihjbdjcbmxdsmeclmhtnbyanjtayydzqpqqzvanzfhxcntnpycwvfkohrmhyquuzbpzisnnpepzxsipxvaqyncbnyzlddhhzolgunnmgyxglpifcvsshloprdzjtiywzcaxphpwdhyzfzaynykojkzbosqipkzzrwbdrkfvaxzdqwyyqcokucfsrckxgfulowvjmlbiqulmkobkpuvtxpfzqxyiekuihwsngdtowsflcgdskbncd...

output:

pulldhewtkfzeijqfnapxesizyznzkatfkyligmweoxinfykjlnqprvdwhudurvgoatbvcwohzslqblrnyuaxpdjmphtfkdcpoivwkxznugverzebaanqxtqraanuagrmqgxymfvezcbkhyswubdjmgtaokwepqhmozfoxalficzdnbwmhzuccofbkrpquqlldexgtqjzmwzwqhlxxlizbjvqabqvsahzzdrctnofognbrpcnknriclucwzziayamustxzhihqdclcgiasphykcsltlgkrurasxdtxqixaml...

result:

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

Test #246:

score: 0
Accepted
time: 519ms
memory: 15768kb

input:

1909
mwuranqgkeaewwjeybpoftevqmcrarjclgcnjxprghcjhpgapsrqivoxprclorcunaagcwurqmmmwuranqgkeaewwjeybpoftevqmcrarjclgcnjxprghcjhpgapsrqivoxprclorcunaagcwurqmmmwuranqgkeaewwjeybpoftevqmcrarjclgcnjxprghcjhpgapsrqivoxprclorcunaagcwurqmmmwuranqgkeaewwjeybpoftevqmcrarjclgcnjxprghcjhpgapsrqivoxprclorcunaagcw...

output:

mzbhhtxtwiscxnwpqynqwnjypiueyhewgjcykvgwaadjzeahpvaklphbgaorxurvuvecyvwppbhlifackehnxnwbswclyofbhsqvjtyaegbtvrdhavaebiwhjxlqcegprsvuqngvpvkgicxnxjbzsagtrroqoxubchvdafvdwmsogxfdlcbzcrhpckjzkimeuxkycvqbdywtsdwcgztiyexxsogddjojrnudtngcpthxfootcvpwuspikbuwmgyhfertcoaoqvwgsragphorebdfilimkmqjkkcoemwfcwju...

result:

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

Test #247:

score: 0
Accepted
time: 510ms
memory: 15108kb

input:

1909
piafcywmcybkcctyhdsvkyljupcpuabsqednffhbomvremqffbcwfetzvvbdkyffqizldvdafooorphwbbufrgchmnksdqrkvzljussdskwrridexrwzgxymqjiryieashjoqdqyakkpfksgbzttkxseicogmkplqwvregdtelceqmjiifgzpeuzijskeasetcfglpwhlfbwosnrpmwvnmcmfvnunviiqxncbqrkhlklfbwqmdmtxaboexbcddfhffakxyjfienefsejznvwkcxftsrbkdjejfxcikf...

output:

pcdaehccdbqfsbiyksdmaysbgkmskikmyzoxqfofaukifdevczerkmcipbjhglkxctnhnajzvgfrlwlqfatzznrllhwfsoqjftuaspdvysqjuidjhzcbqgsthxbxcpvxfhhizqzcjbfnszzorrokqrpktwpecrjetnsexcpotfnidxfndlkuuacpumpwallrticugfferczuccqqdzfkbagkljuhjkrwqsrzqlmhlrrtfagtfetqzubjrmzelxuhrezfefibbignfueswatftqfroayjprgyyjesvvnuwzzi...

result:

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

Test #248:

score: 0
Accepted
time: 581ms
memory: 16192kb

input:

1955
nubrnwjpijzmzjxgjgsuxvvaavzuryajifvrmmyweeiqelovetwajzdnxryahwbmerhvpqwqmplvncezohwyvciipzchulvwqpxqkcafrpdhyvasndryeekafpoojiblmewvflkyatpgcudlorlfzdpjxornxwadhglrgsiokfatfnqthnqwisomvmrmpegjjbybixdxiqgjextyuikpbskehbsngbwuykeixudyvsvweqkauqzmjpamdssvdoijfetsmggdvjvfbcavsuolqwinzqpofuwauumztfq...

output:

nwoveerskuzgmvwbgzuhtdcrehxixipjevrdmlnxvgvgphmqglqodjylbmtlblyebvbbflythoqzkuctngzfqlounldvowlaooztwdepuzwehvgncrbssbgogsppswkagznnzmvlssipmqicappdniwcbwtbrwnoisyneomovvpzvuqsuccblywvwwhyjoiaglxtptawedakvgcoipkmtdqfxrvsusvaijkgsdfegdwinnqsqzankfisimojrugmviqzgwdheaojlvppxyuygzcbxhjhjsevwjbdxdkqdsve...

result:

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

Test #249:

score: 0
Accepted
time: 373ms
memory: 16124kb

input:

1933
mwcfttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...

output:

mzlluxdvwvmctlhtfqzzjayxyidpzzvekxolkqzccxycstvrbmrwtwyybkgzyngcegqkdvqiuklfehobmempcxzfuetyidwibbuqczfqufapfyatufafgaepivywflyoblaphuwfjutypsvwnbwerdxlpmlgvtitwnyqhwipkywtjazrlzjsunitkcbqxelgqoxgwayelrgyefhmbrzklameqkpuywiajhrjuexxbsndbvnjoehymmnzbkrzpewlgtedgrsdvpbvurcfgqjgphvgcuixwkteefaxinnhcjep...

result:

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

Test #250:

score: 0
Accepted
time: 520ms
memory: 16304kb

input:

1946
pcratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwrat...

output:

prohaplyziyjucbeddqvotzbguemndbkdabdnmmxhrdnqzllaexogxnxybdqisyiacsfxvtfszsogpiqnldlfenfhwzohztuboblgkpzctpqymonjddertglwouqvtvzwlamkzcahmxcmylweyxhvhrfbbpdthhuxujtwcnallwcsysgubrudytdlegufbvjquckkmfoavzknovyymwpfpylvmiubhcndcahovfdprpsppvccuqrbunxsugqtqifoxzjzcsbcugpqjzqqshudrcbkgrjjcezyvfthytqttky...

result:

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

Test #251:

score: 0
Accepted
time: 400ms
memory: 15304kb

input:

1924
losceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosce...

output:

ldocidlwnteieeotqbqlhuseijlexezrxtkxmmjmdedvppuphvblzumglfgeabukiyvrywmitxepsrclyfecgosqjazgwhnxchjnwxzcxkhokfpfhicuxlfdjcjuyseiqyauhuhasiahrbyhhyurujbceivfahbbkolmnxnoavytsnesplopufnsbgtukhimzsieurircxqzijtijgqxvpaessezaiabrcrowyyqvvalobfaqkhbabkstzyjmlxtggtoqodqwcmlansvkmxhvaltrrikgpyupbljumtzpmzg...

result:

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

Test #252:

score: 0
Accepted
time: 538ms
memory: 15552kb

input:

1902
?
xftagkapqzpkrcycbrcmionwpwhqwbvxsiluzotauabfipfhdjzuwjwquvcbqzjayegbkqtcfsbhrclvfugkysunxurcyalgeoqtlxxnvpcjayhgfgclcfepixzwezguzuodvtbyjqpciagesyjssgvuzaycehthefuprevlmfwqeqewzzcolroeaohnwmkzybxsukswjvpoawogyhbmgdsfrseruuoveeticwmxczmpeoakjvhwbxcdehceodayasntqkjojdkkbjdhjjdzfgqofouwsuseufcwh...

output:

lxkogwiqdwyvgulkiychkmkuojiiqxawganyvclenmxjukdlyujcydydwdzrpxnquwffkjjfqqypwmsyqyqffckiakkjzmoifivihuufzjmtyeatjrylgvobkifhjrsflwgfxgqcadbbjrsvldhagwqgccccemhlicrnzbxgwrqufrjgeiyonfyblyszwhdgafrbjlpujaiqsovlomgnhobkxuwbyhlzfcuscmspdstxkrhaxjxwakkvtbxwztpeahztepybdwamthkskxqmeyvxwombblbfudtarxmhzwie...

result:

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

Test #253:

score: 0
Accepted
time: 536ms
memory: 16364kb

input:

1949
oojoifrmavlwlwfzggkytdupwexhwzqkwmezfmcheqlforgurfctgiboqbxizvuvvnhbaoadpcpqhakpbmrcepfrmavlwlwfzggkytdupwexhwzqkwmezfmcheqlforgurfctgiboqbxizvuvvnhbaoadpcpqhakpbmrcepfrmavlwlwfzggkytdupwexhwzqkwmezfmcheqlforgurfctgiboqbxizvuvvnhbaoadpcpqhakpbmrcepfrmavlwlwfzggkytdupwexhwzqkwmezfmcheqlforgurfct...

output:

ojivrxmypjclztfzbjcsuzemngvxhfscmsqegrxpuedyumsksdzyckeravtvxlspmcccbbszuoespugkqngdfgyyvyaesmeammpqeglroekukcqwopvjvbukoxrnekincqnxxrgkmlnuagveudptzocpnejteqkpxmgbwfrecnrymmxwcvdhykpnbrotywbxiqwswzqdnxlzwzvlkxfvkueiuwqayazbnukxcmcolcninchhvfsutszpcdnyrhidazffeptfacmbacngsrljezhtdgqxhtcqxetqfndohlan...

result:

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

Test #254:

score: 0
Accepted
time: 625ms
memory: 16652kb

input:

1995
vfixyzkcbspzkzrhkazjcapcdoawulpvikdbewxvftgejajufwyhterggkdjmydfbgkadrpzxhyyhjtcvaafngcysrefklcojmrpmscpkmgwvmatxpitaiowijkhdpxuzoyvwrnosfmrijhtgglqnwsmgpxlxteseenkjbosyqnbcmxyzmfhikduvepusltqvtudcwjzgnsrgvoledzvercmujlvjuvfixyzkcbspzkzrhkazjcapcdoawulpvikdbewxvftgejajufwyhterggkdjmydfbgkadrpzx...

output:

vfbdqawrnmuraddhgghvlgtzslopbcxgvezrpyfmqhpyvihqtidpzzjiarylonqatltvoczdmajypmnoxvbasveuvxakzzbclhffauyavnizthpnhhgjxyccrhkbopdcnhgkdvfctpkcjtjgmpqkxnzzzwhalouezifvblclsqocixkiosfayetrhzcfleackmgnjekratxhcldyfxsixrqksepanbwgtohoaoxvxemewluincqfaqmlqosxfuudxzljsoylsmremhrdqwrqywdclpovfbgftgnjlsravnkc...

result:

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

Test #255:

score: 0
Accepted
time: 548ms
memory: 15944kb

input:

1940
zhkqmaphepaagdqnvgdridddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

output:

zkhkrbflmseniwufajlbklgyvvpjwzfirhkgsmzeusxfjopijrooysmzdxbhfnrxhppkkjduxapvkwpqwhtxyfqmzitzwguirjwimyuhsuwjjpktofbvgxwyaweiudegnnaqjzsmvzkxtmymjlkobcabktiktxwonducvajdbqgpviaukkqncgsdshzgisdzszpcrpqyfefqkczfoaelaubdezsxatbhabicxxrelyobjjzcvvlkamabuqyzraqawsityodzqkrodzgqcbvncqjbnxmpqqaqmtesaeuxrjew...

result:

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

Test #256:

score: 0
Accepted
time: 606ms
memory: 16128kb

input:

1956
dvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvd...

output:

dmwxtjsgoeavxzctfjmyuemwvnprkgijaziqikbffllqgtyfanwxjnqikunkocbqiupmilpbfswvogepscumteingsjlesgcwudidekqaununlnzrdfwjgjkelhdqexppyqeghwujjxddmlwkvswfxtfgihkixkkcsbfyznuhdvjslesjvghdnlvuaiyuizlikjrqlffhadouwkpspxcowlnwnxgjpbjofkfrpqfqkwpeqltqxyapgehfjahzecqcwpxmdxfdqfveeicaecygbpxwaerqcfquromnkhxufgd...

result:

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

Test #257:

score: 0
Accepted
time: 585ms
memory: 16300kb

input:

1957
dxpwkruxzbkxyssduwygymqvswcpsewocshohwowzylrcynyedcumtlwwddvzmltxxbzgfaetxursdqbfjgmcgubnsoltepgaujqolvnwtvvkchwsjvhayctbizxqjsxxdewomrvtdoctfhdgxuqhetdupazzztvjrkvbrkaovedonpftoteruzmlksgfjhqobsbgempfwwklqvxcthshkymduemiicmijeuzqzwrvxupspccuqdlcmpjekwivamjsyozwitiqjghvtsolaforgblwpdjtbfgbtrzre...

output:

dgxjejeoekhnlczfzjcztnpxpiupedabbdeediefmwtrorxztkzbveikhnqwccrijandrajgnbqhqicduibexduqexssqdxlekmeikgtochekwlgrblsrlazfbtnjgrwsaiblffxddrfpgenwokqivoyskjxlslvxibjikqtnllopyaypcvadhyhlawdafpihbcatkjhofsykchlqxdmmlwqbahvcuuimozwtnxkuyatdytkjhhupsamvjqtgxuevxafojxltulslyhyovsgeykezjnffmkljighzdxbvfqw...

result:

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

Test #258:

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

input:

1902
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

byxjavanbvalaaaazqdamxaqafpaagtaggqaxaiedazzmjankcacvaantdalpoanbaacsaaazaajavhaknhiaaenavaouiauaatawawabhkaaaaagaaaaovadiaalyandacaqulaaaiaadxaacbafaaaqaaagaaaaavayftaalaarpoaaxaaagdfcaaaqvaoacaolxcsaaaatasdhaasqaaaaaltazeaaoavjaaapaajaiaaakyaiaazaabtakdvaooaaaagaaaaamhuaaeibyjauysfmaachraaziaaazic...

result:

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

Test #259:

score: 0
Accepted
time: 599ms
memory: 15984kb

input:

1948
ldnnhwsidapefkhuhmewbxjxqphviopwrcpfhenvlifpgnojwkvdtwoiqqywqzzooziujhbnkeiavgycmirvaoxjxqphviopwrcpfhenvlifpgnojwkvdtwoiqqywqzzooziujhbnkeiavgycmirvaoxjxqphviopwrcpfhenvlifpgnojwkvdtwoiqqywqzzooziujhbnkeiavgycmirvaoxjxqphviopwrcpfhenvlifpgnojwkvdtwoiqqywqzzooziujhbnkeiavgycmirvaoxjxqphviopwrcp...

output:

lpvyitsjhyhchrtylztorqhpkqpnbaihutlhpkbmlxnpebhnwficqbzwrixqqftlqtzkersofldgawvnvwihzqwmvjelldcqhobskphbmudcpttbxbnypsybjecmlmtesvxcjubvsrjeipylncimimrqcnsdpzqakldvoyhqahngretrpappncriwkkkfrbembmyvggetsdherlwauuidtecbxgtkocdymwjkpjdbryxosmpxnmgpiyjxanovmrzxgbzsajtdwkbfdsubzjrjxsqretolbvickhdapiiogtn...

result:

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

Test #260:

score: 0
Accepted
time: 595ms
memory: 15604kb

input:

1926
vmmtcnzdxzoxibygxcgrtxqaxqrrnbfdydzyvadejxwbjqwwtokzhcedslcszmeghkegxpuchbzxfoxzpzuokbnywtjbrcetmeezuxxzccelwnvrjuathqpverlwzayogldcjvctvzmvmmtcnzdxzoxibygxcgrtxqaxqrrnbfdydzyvadejxwbjqwwtokzhcedslcszmeghkegxpuchbzxfoxzpzuokbnywtjbrcetmeezuxxzccelwnvrjuathqpverlwzayogldcjvctvzmvmmtcnzdxzoxibygx...

output:

vsrduilflsjgmuobypeisagrvhaiueiktcsyznqkgqfgxllkquvqsfzxpblvrfnktdsngrequxbtaknetyhlobhfqvdnlmryickehuhegrvsgecfcvpuhlpfzxtvrpmegkkfcqmxolgtaqapdkldawhyrzhhqmeebshpjbenkymjuicgaodbvyfwamlfnsbkdueccfacdicjamfdofyxlfckgnqjgnmmmzftnswkyikkixcqsmkbjfpfgyrdohriirmekkcycyyyxlyvrfkirtryjtekwrdjmwqkzqkpiglq...

result:

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

Test #261:

score: 0
Accepted
time: 538ms
memory: 15584kb

input:

1904
olsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjec...

output:

ojcigzrzrygaypwacujozrfzmiyiwcoksbjdwmxlupwkeutvjxtejuhbfdfqhtzdvuntpktabgbljzqtorbzquycdaovnytmenitkrrhhojnyhjgjpgkcqjxxmeujqobssnwnxbcxhltxwehdojenmxqdnyybegexxdklwfkihekawrjfoubqpbkpqsshbnjiizacbveqblbwexehrlgdpqrtxsvkfstppirhfbbydvquszvlmgyfenzgpnwtqweockmthygjjsiiyqmsiwlixhuirliiikdjqznaqtwqloo...

result:

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

Test #262:

score: 0
Accepted
time: 613ms
memory: 16176kb

input:

1996
imivjhycajlpahjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

itvxltmuaxhlxfuvjpokcvqlvujogftnicjuimdtbrswcybmyxczrazdyetrqijvqxrnwtolsfhiqfcpyjktsympqnmvtdrhmwfaejbpmsengcfgrnfwfqtuprjcwugfcosknqhhfhpslwdcbrtgwfyuzvofdymbgyesmwprhyxnygjfhhkycucrbfwvsuceqiihmkawljkcleiynyaqigvsapnemorjiwjtdnraqyjhlqttvsmjkrxlzlglsgjmpwjzjzcyvzyyqomdplkfuakufjdmgxcbgahgfdtwbvnc...

result:

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

Test #263:

score: 0
Accepted
time: 574ms
memory: 14900kb

input:

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

output:

rnhevlspxugquyikauvvnynyezttuerscnrfmolibhufljtvsatjvudilcfohbpmqdcwuobbejvqorxzoyhjcfzopnncxdfqjvcurjpkyycxqegkhredxlffgkdwrdcmdlspymorxtjceurltruiaqupfufegbtobplcirphnjjidcrpefyyxgpyfgatimrqgpzwpuvmqeibjvweazmrqfshhujizlvezinyxbbchbzqqjrnzcndqnbzowbwvhapunzzkyrkpypzucyfqexizohsbghddnzuukbwftjnrowf...

result:

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

Test #264:

score: 0
Accepted
time: 585ms
memory: 15084kb

input:

1919
asiksvnxtyibdotbxhkzrfelgayzuiavzjybcxporzbwsjzizkuhyvenhiaggunvegtakuhirqtyuzgjkvbljjppbiqlthljzpknpaslkdjtpcptljzouihbgnprynvuxojtqverenjyvjphhzcwhqvdddhyddvohvfvolfazpojaxgwbqaxntnjhvqiavzjybcxporzbwsjzizkuhyvenhiaggunvegtakuhirqtyuzgjkvbljjppbiqlthljzpknpaslkdjtpcptljzouihbgnprynvuxojtqvere...

output:

afngfmmdesoafbvkzchokpjlffupgazieymkdxwjkjtcbwiwfugdfcvqcspgvxvdfojfijwbbgvxnohvwjtvntlvmcrlxrdggfzehrwoghdmrxcplcqylsgonifgnuhkttrbgawbdbhdlddgdfbwvpwsjzamvhbecgoqxpnzwmecudkpvgepzghvihyazdgyvwfqxaomyqfslgvunztafnlujnxicghudmlyykggepcqgyuzgrljuzhtlhiqcruimpxrjrkusjdixcdpdmarqqzhhyxylgvmhmsmfaielulu...

result:

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

Test #265:

score: 0
Accepted
time: 181ms
memory: 9952kb

input:

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

output:

bsdryqrvwjuadzraaiejyqinbpyockofsbdilafzyucxuslqwkyclmihkomqtwjitqwirbxqhdalohmwogwwwwsvesguzyyzavlevipfmneibytehfvrrgumuuzuvlcsfgshcdmcpruwifgraprdqbwtocvcxsfmihcjduymkfioqugnkaxrufgwcbdmpxultmjeddahjrdeoashtunxnnkbbeqjhxddukfmtnmhufuvrarqpzhwjfekqkapkbvoyhompdjvgiuadsadbxdnxtlhgvbfgbiidshcyoynqmte...

result:

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

Test #266:

score: 0
Accepted
time: 596ms
memory: 15136kb

input:

1943
?
kxdkgbbhuaufcgohunnzflrrbseaweclhgycxpbtngyxqouoovtzvbprxgxgctgepfaeihffapxhptpovhyxrsebqdzuqdoezrsdirjnxiwszneflpgaqigzgthlaauuattftfpsubctrjhqmiixjzzuxiedjasyfelwdnopxrdnrxrnnadtngyxqouoovtzvbprxgxgctgepfaeihffapxhptpovhyxrsebqdzuqdoezrsdirjnxiwszneflpgaqigzgthlaauuattftfpsubctrjhqmiixjzzux...

output:

pkevzqzocwrgmkmswgfowusizgljxmmltquatkbgofsntptipodsaqfspefcklysdzaurxrmaqivjoupwzigvtruetumvlanhpldufpjafuftazulntxnyovakgpiskkcgqubnaaaukxmvugxhivrxvpkfkxjfvphfwltmtpgpsrfajzsmcqrsairqorujwnzgwhdmoebeiznwtnyjjsopaujwyfytnypedopzebibgejdfehnczfuscknxhrozjpmvxezsffatceeltdpphkrjfgnbgtdpgbakcsxppmifr...

result:

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

Test #267:

score: 0
Accepted
time: 550ms
memory: 15776kb

input:

1950
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...

output:

yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...

result:

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

Test #268:

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

input:

1996
ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...

output:

oooaaoooooooooooooooooooooaooaooooooooooooaoaoooooooooooaooooooaoooooooaooooooooooooooooooooooooooaooooaoooaoaoaoaaoooooooooooooooooaaaoooaooooooaaooaoooooooooaaaoooooooooooooooooooooooaaoooooooooooaooooaaaoooooaoooaooooooaoaooooaoooooooooooaoooooooooooaaoaooaoaooaaoooaoaoaoooooooooooaooooooooooooaa...

result:

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

Test #269:

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

input:

1941
ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...

output:

oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooaooaooooooooooooaooooooooooooooooooooooooooooooooooooooooooooaooaaoooaooooaoooooooooaoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...

result:

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

Test #270:

score: 0
Accepted
time: 78ms
memory: 15804kb

input:

1987
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...

output:

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhqhhhhhhhhhhhhhhhhhhhhahahhhahhhhhhhhahhhhahhhhhahhahhhhhhhhhhhahhhhhhhhhahhhhhhhhhhahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhahhhhhhhhhhhhhhhhhhhhhhhahhhhhhhhahhhhhhhhhhhhhhhhhhaahhahhhhhhahhhhhhhhhhhhhhhhhhhhhhhhahhhhhhhhhhhhh...

result:

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

Test #271:

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

input:

1965
fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...

output:

fffffffffffffffffffffffffffaffffffffffffffffaafffffffafffffffffffffffffffffaafffffffffafaffffffffffffffafffffffffffffffffffffffffffafffffffffaffffffffffffffffffafffffffffffffaffffffffffffffffffffffffffffffffffafffffaffffffffffffffffaffffffffffffffffffffffffffffafffaffaaffffffffffffffffffffffffffffff...

result:

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

Test #272:

score: 0
Accepted
time: 655ms
memory: 16888kb

input:

2000
ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

output:

dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

result:

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

Test #273:

score: 0
Accepted
time: 625ms
memory: 17144kb

input:

2000
lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...

output:

lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllltlllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...

result:

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

Test #274:

score: 0
Accepted
time: 651ms
memory: 16932kb

input:

2000
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

output:

wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

result:

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

Test #275:

score: 0
Accepted
time: 645ms
memory: 17008kb

input:

2000
ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

output:

gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

result:

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

Test #276:

score: 0
Accepted
time: 634ms
memory: 17116kb

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