QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#586215#8596. Подарунок Ледisunrise2048100 ✓43ms15736kbC++141.5kb2024-09-24 08:50:192024-09-24 08:50:20

Judging History

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

  • [2024-09-24 08:50:20]
  • 评测
  • 测评结果:100
  • 用时:43ms
  • 内存:15736kb
  • [2024-09-24 08:50:19]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using ull=unsigned long long;
const int N=2e3+5;
const ull bas=1033;
int n;
char a[N][N*3];
int p[N];
ull h1[N],h2[N];
unordered_map<ull,int> ma;
vector<int> id;
int kmp[N*3];
char b[N*2];
void calch(int no){
    for(int i=1;i<3*n;++i)h1[no]=h1[no]*bas+a[no][i];
    for(int i=2;i<=3*n;++i)h2[no]=h2[no]*bas+a[no][i];
    ma[h1[no]]=no;
}
void calc(int no){
    for(int i=1;i<2*n;++i){
        b[i]=a[no][i+n];
    }
    int j=0;
    for(int i=2;i<2*n;++i){
        while(j&&b[j+1]!=b[i])j=kmp[j];
        if(b[j+1]==b[i])++j;
        kmp[i]=j;
    }
    int cy=2*n-1-kmp[2*n-1];
    a[no][3*n]=a[no][3*n-cy];
    calch(no);
}
void find(int no){
    if(p[no])return;
    if(ma.find(h2[no])!=ma.end()){
        p[no]=ma[h2[no]];
        return;
    }
    p[no]=id.back();
    id.pop_back();
    for(int i=1;i<3*n;++i)a[p[no]][i]=a[no][i+1];
    calc(p[no]);
    find(p[no]);
}
int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);cout.tie(0);
    cin>>n;
    for(int i=1;i<=n;++i){
        cin>>a[i]+1;
        if(a[i][1]!='?'){
            calch(i);
        }
        else id.push_back(i);
    }
    for(int i=1;i<=n;++i){
        if(p[i])continue;
        if(a[i][1]=='?')continue;
        find(i);
    }
    for(int i=1;i<=n;++i){
        if(p[i])continue;
        p[i]=i;
        a[i][1]='a';
    }
    for(int i=1;i<=n;++i)cout<<a[i][1];
    cout<<'\n';
    for(int i=1;i<=n;++i)cout<<p[i]<<' ';
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 10
Accepted

Test #1:

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

input:

3
zatzatzat
atzatzatz
tzatzatza

output:

zat
2 3 1 

result:

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

Test #2:

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

input:

5
mvxabmvxabmvxab
abmvxabmvxabmvx
bmvxabmvxabmvxa
vxabmvxabmvxabm
xabmvxabmvxabmv

output:

mabvx
4 3 1 5 2 

result:

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

Test #3:

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

input:

5
aijjjaijjjaijjj
ijjjaijjjaijjja
jaijjjaijjjaijj
jjaijjjaijjjaij
jjjaijjjaijjjai

output:

aijjj
2 5 1 3 4 

result:

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

Test #4:

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

input:

3
qnqnqnqnq
nqnqnqnqn
ooooooooo

output:

qno
2 1 3 

result:

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

Test #5:

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

input:

4
pxiipxiipxii
iipxiipxiipx
xiipxiipxiip
ipxiipxiipxi

output:

pixi
3 4 2 1 

result:

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

Test #6:

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

input:

5
acaaaacaaaacaaa
aacaaaacaaaacaa
caaaacaaaacaaaa
aaaacaaaacaaaac
aaacaaaacaaaaca

output:

aacaa
3 1 4 5 2 

result:

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

Test #7:

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

input:

4
bcbabcbabcba
cbabcbabcbab
babcbabcbabc
abcbabcbabcb

output:

bcba
2 3 4 1 

result:

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

Test #8:

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

input:

5
bbcaabbcaabbcaa
abbcaabbcaabbca
caabbcaabbcaabb
aabbcaabbcaabbc
bcaabbcaabbcaab

output:

bacab
5 1 4 2 3 

result:

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

Test #9:

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

input:

4
caacaacaacaa
aacaacaacaac
cacaacaacaac
acaacaacaaca

output:

caca
2 4 4 1 

result:

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

Test #10:

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

input:

3
bacbacbac
acbacbacb
cbacbacba

output:

bac
2 3 1 

result:

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

Test #11:

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

input:

5
rhuqrrhuqrrhuqr
uqrrhuqrrhuqrrh
qrrhuqrrhuqrrhu
rrhuqrrhuqrrhuq
huqrrhuqrrhuqrr

output:

ruqrh
5 3 4 1 2 

result:

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

Test #12:

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

input:

3
rqyrqyrqy
qyrqyrqyr
yrqyrqyrq

output:

rqy
2 3 1 

result:

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

Test #13:

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

input:

4
wfruwfruwfru
fruwfruwfruw
uwfruwfruwfr
ruwfruwfruwf

output:

wfur
2 4 1 3 

result:

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

Test #14:

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

input:

4
arlharlharlh
lharlharlhar
harlharlharl
rlharlharlha

output:

alhr
4 3 1 2 

result:

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

Test #15:

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

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

input:

261
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

output:

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

result:

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

Test #17:

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

input:

300
jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjbjjjjjjjjjjjjjjjjjjjjsjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjrjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjtjjjjjjjjjjjjjjjjjjjjjjjj...

result:

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

Test #18:

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

input:

286
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssscssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
286 286 286 2...

result:

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

Test #19:

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

input:

274
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssussssssssssssssscssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssscssssssssssssssssssss
274 274 274 274 274 274 2...

result:

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

Test #20:

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

input:

261
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

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

result:

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

Test #21:

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

input:

274
didididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididididi...

output:

dehccfficbiccaahehejeggdagjfcadgajbdbbbeibjhgfeeafjgcgebeghacabcfgjdaeafacdejegbhbcijbgjdjaahhjifachdeiihdabadjbjeicjjdijgfefjeihhggcdchgbbgdddchifgchadfhedhejbbaeaejfjagiccajahbfibhhccdcfaddggjabjjcbbeajfdhgdgccaifaggihdfhcfdaddhcjadaggaadiccffgfichehicijjieehehaaddacaehff
253 247 272 243 252 273 2...

result:

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

Test #22:

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

input:

261
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...

output:

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

result:

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

Test #23:

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

input:

298
fgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfg...

output:

fagifgjhifjggdhcdjbacfbabcbcjaiddbgihbbgfgchjfciebghbedjbhiafgcaigicfjbbigcegfdbdceifaiahiecigicjfdcfbbjbehejefaacbhdedjjchebfeahcfcfachhdbddehadihihedhcgfcbdhieaieiieggbebgjfdagjfeaegiafegdcjihagefjheibchaghhcbdbfjhjgbgbfhhihjdadijfiiebchdcdhfgebiiedgjaffccfjacaheejcgdebigddgfaghaieffhgccebbeehff
1...

result:

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

Test #24:

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

input:

285
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

output:

igjfjafbhaebiijajigjebhhbfdacgachjaeddicfggcejjgcichifgbjehaacaechagefjgfjfafbhhedggbgdbdbacighifgdhcaaghdggefdcfjgbehghagbfbidhibedcfbgegjbcdegffdjbhdjcbjdccfeiegjfeiacgfbgaagdhbabbigfahbijbfdehecabbbdfdaccbeigjbcbefhgdaehgbjfebchhcfgigehgcgjafdfhdbebgcdihibjdfibfjbcjhdbaibchaggaigbc
282 151 269 26...

result:

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

Test #25:

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

input:

272
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

output:

iaeaighbecbbjhfcjchjceidcjjgeibjgagbhgdddaijcdgdiffgdhefeefghgcdabggcbhghejbajffajicecbbijdfgecdadcjdbifjeadaeijfbechcheeeaccbecaafaheeghchedaaedfaihecdghbhfjefgeffiicgjbiaefdjfdgcfebagehigehfgigejbdcgehhabcfdjddhjcicjihedegjcdfaaadaebdjbihjchiahjfbecigbbdbacafediiidcaibi
272 269 262 269 272 253 246...

result:

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

Test #26:

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

input:

296
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qzexljnactcaxsjnasqdhywyrhmoxjmxbpmnzeuveirsmdzwsmoxltipgzqkxcfsuqgmqdxciugvfxsteltdhmutunxkeqqtqliaolztqthrhbedvvdvtzpihkdxekidvegsiuleowdeeqswkdaubscvtnfornwkfkeiflmvevopwmmuwzrnyijtphbqjfeupwicxveivyzkuvwtovxercujocksqlxzhxhtvvyncxwfhubjtcikmvcfegjwnarphpfqyluobiscaccopyjcbyqadqmhpqvyfcltqdrc
282...

result:

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

Test #27:

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

input:

283
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

output:

ifdgkclbqjvhdedriksictbzidhevdgqsyihpjovsedmyvulavudogsddzhotvuemzwecjpxtnldmqlwklxuhgzkhfjdejqvdpvpjsgxahaknqcssxuypiyptldfmjkfcfpgyldwcbkqaocirppgqzplkjtxtsotulzcvtlvsqtzdhejnzibobuzvaidqbptclosiihnrowjxqdqgerapjphuyqbhtavyikwltolrgjqijadtwokneqvwtlxvhjzjuzjwyubckhsqtfxubvkfhkitzg
280 277 188 283 ...

result:

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

Test #28:

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

input:

270
klklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklklkl...

output:

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

result:

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

Test #29:

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

input:

257
ycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycycyc...

output:

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

result:

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

Test #30:

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

input:

294
gbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgbgb...

output:

gcsojlkuqqszulrctvmasnwoqulhxjfomazioplqbsixohkugodtdzncuksgsujkurywtiwceayhboftqssdeahryeipywnhuypcboysraevoyyldowbkwnhmsqjerqhqiaaqnnesezagzqcnjovqbrrbvtgmbgpohnpvdjuotuthnltycpkdyynwynizwbzuemvnpzhkpbmjcizmyhrobijbqianjebwhukxbdrurhwpxdljjaiqbljjwjigyzgwugyzhjwjivpguwrxwqmlwmrtipcfooymlaldz
191 2...

result:

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

Subtask #3:

score: 6
Accepted

Test #31:

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

input:

295
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

uuuuuuuuuuuuuuuuuuuuuuuuuiuuuuuuumuuuuuuuuuuuuuuuuuuuuuuuuuuuukuuutuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuucuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
295 ...

result:

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

Test #32:

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

input:

282
jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjpjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjbjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
282 282 282 282 2...

result:

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

Test #33:

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

input:

268
llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...

output:

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

result:

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

Test #34:

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

input:

254
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

output:

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

result:

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

Test #35:

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

input:

293
tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...

output:

ttttttttttttttttttttttttttttftttttttttttttttttttttttttttttttttttttwtttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttetttttttttttttttttttttttttttttttttttttttttttdtttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
293 29...

result:

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

Test #36:

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

input:

291
kjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

khmnjhcigdigjloioiejgefgdhggblabbikgekaifcndnbcinkmehkjbfoghondieaikmanibdokodkchclldcfdfbghdcjgagnnaoadfmgikliafdkmabclmdaeelgiganeolhcgdbdbobefmleknbddkmfjicmjmglndeakgbohhihmljmkgjdheilflfhncjaejcoodgiejnbjhlddgmkadgmflfcicklgiekemdehklocaingedcgklejdcimcflmaajhmngcnjangeldfjkenmigagjllj
279 204 ...

result:

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

Test #37:

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

input:

278
chhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...

output:

cnlbfhhfieogdeljhnedmdceobbolddobimkdmlmkhfobfoiegjabdihoeceeijfnglnoehifjailmddkfdnekclogefldlobdehakaaocoofceicihcomoedaknkjjlkfhmnnolnegandodediaidigmakjemlaimmgomaeimeaenmmlkhmfibfoeidnddiafjkoiobenbbaadbogniffeejfgjfbcodngkijnofalhcecgeabfnojmankgnmioafdoilcmcllhkmkjfkaeah
278 278 278 278 278 2...

result:

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

Test #38:

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

input:

265
hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm...

output:

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

result:

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

Test #39:

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

input:

251
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...

output:

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

result:

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

Test #40:

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

input:

289
ijjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

ihhihokioabnaachheceaahgllbocbahlohkoilhillclcggljonlnehdkiihicaconmcaimdlmodkfafglldgecmojgelfnfibmabjhbcelgkicafnkajgfolacjgmnkljkknbhodlejknhogknlclaellgkgnhklmllebendacabdklngcfggdmjiflelifhlibmoblbfhkokgnhamhfhmlgeojaolklnfhjkeiabjjgjdhcemdokiljfojmdejakfodnfinihiljmmloagimcmbmagmmfn
257 228 20...

result:

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

Test #41:

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

input:

278
kvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

knjewksuqygfeultwzttgpovltlxrrzbzrgjsanijusssfxdoewobpesethvkxjwuqkygicfjjqbzajipbjmozsnallikbmwrqwrfeleasykounacbmremkdiqazbfibvnttrwwxbqimnohdpttxtapkvgzxvmrcnfmrgyczpdhbcbfrvndvdddtznrbtboxjiogeaxohvkibygibleogyyrdmifgajryftwxsqvmzbklmfyewypevsanqaveacvqasvvorujotqqopxjxykxu
260 249 144 243 243 2...

result:

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

Test #42:

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

input:

265
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

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

result:

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

Test #43:

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

input:

252
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

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

result:

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

Test #44:

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

input:

290
mvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

mqcfswhewsoutfjvjtpunqpetvloszsltwwoogaddetoeyjzvbviknsyexpmxtastbfhfirvlxdukccrzimhdehfqceajoptpptgljnqollcecytakyivqgnxqgphkqttdwapddubunygtbjqbbmdvivedkrofhutkwmjskfpslgmskabtzifubbmwlnknphmetlotcfaithojyehfsclwiorxnwtfqwnfdqjuhzybzfwucbybmvbojtmikfinffujewmbjfxgvhecbwinhggcpyjymdsbmhvi
117 258 2...

result:

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

Test #45:

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

input:

276
ciiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

output:

ctpbhmxndbmgjihpqkkxujlbpdojbdictjjysuukcxdqmqdcfioisifrqelqkjhkinzkvfujdovefhbmvodblsbvymfjavfuluornjsamjdemnpfwrggniyaujazqaklckuztbyxseaasmokraxxytdswucfkeyhdojsqhuguyodhshotsommzsyhdblizmzdetphrqlxvuajhzgxervblilaciqmtsqvvokntqrfewfvhpevodbmcwdawhucuxsyoxdzbbepirgasnqbfoc
189 130 240 242 242 240...

result:

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

Subtask #4:

score: 9
Accepted

Test #46:

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

input:

292
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...

output:

rrrrprrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrcrrrrrrrrrrrrtrrrrrrerrrrrrrrrrrrrorrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrorrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
4 4 4 4...

result:

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

Test #47:

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

input:

278
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...

output:

ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffrffffffffffffffffffffffffffffffffffffffffffffffffhffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
167 167 167 167 167 1...

result:

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

Test #48:

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

input:

266
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...

output:

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

result:

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

Test #49:

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

input:

253
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

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

result:

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

Test #50:

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

input:

291
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...

output:

oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooohoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooosoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooloooooooooooooooooooooooooooooqooooooooooooorooooooooooooooooooooooooooo
219 219 ...

result:

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

Test #51:

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

input:

295
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

output:

debcdececadbbecbebdebbccebdddedbacbaaedaaabebebcdacaabdbebcabadabbedddddcbaaecdbeceaacecabbaedcebbcedbacedacedecedbeeaacecacdebbaeabbaddbecbecbadbbeceebbdadcaacbccaacaabbcdeabdccbebeddccccccddbbaceadddebedcdecbdbeaaedebaadcbeadbcbacbacdcbccbecdbddcadaaecdbcaddaaebcbaedcbcebadccbdaaebbabbbbdcceb
1 1 ...

result:

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

Test #52:

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

input:

281
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...

output:

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

result:

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

Test #53:

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

input:

268
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...

output:

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

result:

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

Test #54:

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

input:

255
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

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

result:

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

Test #55:

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

input:

292
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

bbdbadbcbadbbbadecdbdbaebecdaedebedccedbebadaacccdeaccecaccadacecceaeabeecadcaddbbbdaaeadaaeceaaebcaedccacaacceeacdedabececcdbabbdacbcccbdccdeaecbbaadadaccaceadabbeebeadacddeddebcebeabebcdecbaeabbdbdaecedeccdebbccdeeeacceaacbaeaecdddbababbebabedabecbaaacccacdaabbdeebecdacbdddeadabbebcdecddcc
2 2 2 3...

result:

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

Test #56:

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

input:

289
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...

output:

cwuavzgwhszmyahthcciimlzvdjhcbxiqmfltbcigsykpukhodmjkxbiradxymarqcbwudexepqyshzrjjgpihrlirccuoxvvpctuimwzjrwhokrnrcvqnbceeehocbreqpxrzfqordozbifwqnjilgiuodroxinucduoypzqjejqiatburbygvskmbwfjbtewcurmmnbyxzsqiyxezlvlcaiazeklzpwhdkognsukqnzjmjrneyiwaouyfobjfbnouexgrxmellagodpqifejizdvqvkgshb
215 215 21...

result:

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

Test #57:

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

input:

275
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

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

result:

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

Test #58:

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

input:

262
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...

output:

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

result:

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

Test #59:

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

input:

300
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...

output:

nyltrdweybalineehgjailnwkeaelvunxnsojspruwnvrozslgakbhwcstulfomljytrlsynrtrfxwaawqxtmeoybbsvybrpxekyphrhjynfpviypjhxykwemozqalzymnlvfhldrsbxfaoizivknptlmkntfavtteyfmabjmjbhfguuiemradhgjuxujtuhuiagruigvevtpxtcdiqdegjwjglldeeyuctqmxhfiiiogtqyflielcsntwkvhfgysbfpstoiaqsanawkclqgdjhfpfhcxecavkeducyieagv...

result:

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

Test #60:

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

input:

286
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...

output:

rvueznemoeywyknhdyintobqvtldfvwqutarxctyzefzuaudbhjdcbhbcvtyreyhyvewelkasdzkcmeqoyhwczrgeqaafzczsjjyooemmryrdfgojufpzgpamodmlfbwbladpjhogkvmbxvjghqbrjtwhsnkfljnwinnhnjrsohuaxpzkykzmpqdqckwykwmwesduiolbwiackadupfmqrzxahscqwtrsfjtktyedufhaavvfsordyuzecvafwlppvhqlupflwuvzctlxiwtecaubpapxh
1 1 2 3 2 3 3...

result:

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

Test #61:

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

input:

273
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

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

result:

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

Test #62:

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

input:

260
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...

output:

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

result:

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

Test #63:

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

input:

298
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qnmgmjhjoorlksuyhowxdxakysuhaijoxpkzzlmhmesnspcwptmomfnoyngzkkjuxhnxyrafrgrppelooxwxbezhpjksyczskdhlcidjzmchmpsdqckqghgixawmgsejjttxsuqmoydgxkjreqrhukpgywangspfmmxozdczvicolqxrgfijzuxefobpoegswtvtfmxjuyjilyhukbtszjxdmlxxjsotvgcanwquaxdaqqnzwoezouteppeepagobpamwlmacdvgkionybneuootakqozpqnrgrdduhqpn
2...

result:

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

Test #64:

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

input:

284
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

apogzhbjlaecakdwmpgoyqlyvafaxmhflhoqsriybbzjbtwdgrjemszofshnefhgyrkqsdfwwijfdrogipuywkxrqcbrptswcdvtxbpzmbswzkwvqubduqjngllyesriweavibqftmqpxilraulgbiuefibfrcvsamvjpeoyxvllrzostilvaygohkblbhjvwrjjreqqfirgfxexcrzvladilbqnmzhtkackcrnimucbrwtjdrawrowqqrkcbilmjfvlosiwanqzrdsvewodqasuukwx
1 1 2 56 4 5 6 ...

result:

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

Test #65:

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

input:

256
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...

output:

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

result:

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

Test #66:

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

input:

293
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...

output:

zxlhxpdphelfacuhqwyzwdqdnpafobctieclbygipnzlvweapqdtkdddvnpgsxrvibqwtwqdbpejyjxhddaqtbfdtnohhkpvuokafwppbptlagzfvpqkfgqybrxubllvdgmnthagbndcsqeqoozreveyyqhqmdnvczpicsreuuuyrcgkaglfpbxzusjevvwswzcwulehiejeqtlsqlnvyyzynykjbtcxxcajpnhgcphxjxyhbnjbnyyegqttutgchaufqqvyyjzniftfhcqmiizrxooonwzfvvggw
1 1 2 ...

result:

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

Test #67:

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

input:

280
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qffqpoqvkqnkidokvafmpqzpxhyelfsfcmefvyatxwlhcccdfiaucfwrkfhqnudbysusryjcihfalpykqnnpytklfcnhhponvyfejciffakfyejeauifyjmoahobkxozxwhxkrilwveqqdoggujypzhqnnwkstuxznlfkfphqkrrriejkxxuapinwsnmowwgledmlccxwwhywpcfubtioeaqsgexvjoaadyrpwbmoovzpvuimslkhtbjxdvrsujxrumukjxkpilmzoavsgjzaibq
280 280 280 280 280...

result:

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

Test #68:

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

input:

266
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...

output:

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

result:

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

Test #69:

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

input:

254
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

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

result:

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

Test #70:

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

input:

291
gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

output:

gzpljjluoorhbvftgbaeflggasehwzpmxbnefjwajsbuvokttbgvvfrugefzksyzchoqpazkmjzueylcqhbazhmoceyravkjaelsobwsdyiiczcogzeobknmrujoicbmffcorrrrunnscnzsaackmxulkqxphqdkzketorhjkkexspqwebhpsyalgzbfndwteksqmsuprkulqiffdesarntrwnviqfyxsnnahxcfqoylnajpqbsvlkteobuwjawqinpdzczlmhjathosmzxvynwkrcrqyazqegg
1 1 2 3 ...

result:

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

Test #71:

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

input:

278
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

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

result:

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

Test #72:

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

input:

265
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

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

result:

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

Test #73:

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

input:

252
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...

output:

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

result:

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

Test #74:

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

input:

289
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...

output:

hxcdgbglccapakrljlqujomxoikhvbtrqvujqcjhqelcpcspzqizxapqyjheojfffzmvuhrcfvgpxbboyxjixxawebzedukjmikncwtcoltincjofvmrqoolvtuqqnsjznbrzxtunzouxxbyftvlogbakbsiwohswpkxinnbjyfolzpfopcpmbcolxrzgsqzxrkdpgwnrremhqwpusvswqwipiseepwywakbezojqvawugsdiiixmanqzkfzidbgznizvicziddrurnbvgetlpgqjmkmkuhmi
1 1 2 3 4 ...

result:

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

Test #75:

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

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

input:

281
ffozzfclawruudmagwzfmalubhznepniirhtasvdscasxjmhmteljfqffitupfspwbtplamodxrnaeielpyratsxownkmvrezvqtukmxbknbcxhlufdedcxgxndelrnxrqjbtquugybhumiqlngimmulqdnvwhoheuoiolswakcwdqxacsuchkfyyrbfxsxsskcruberllxxzvabcalysvptbqjyfefhcvynsprxujnjgvsbvbgkjdspkkgotuhgphrewhdwobpzvkpthzctyrhygffozzfclawruudm...

output:

fmfhbsbeskqtvvrplmbuwyffwnxnsfkxuxgcusffcvxdgulnxuwkixtioblhutrxpmwhbtgjlppvplenvprzskkyoqdrydxdxnjekcrwdxstacawrvfbmnkmqhsbpqlvywdrtoqtoynhlasjgzuyuzdfcislrjzauuaiutiamqbzrdnrsylidvnccxhleaofhffbveerpzggqhnjhmmpercoegagkudttxacwkklemxbjahsuehpxmsqbubhlcyowyhhilzobrpcaesjtgvausnfz
115 167 79 119 39 ...

result:

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

Test #77:

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

input:

267
cjpcxadgrhhxvbmjidqqjflftjreslkvhxpsokwppudwapvmwpeyetdlckwoezcowsttnccmmwgfohceiayibaudxqtnlfrulwqrumkqvuvgyteqrsmkjyskhiupjqntnjfrxrxhuhmmptfggmkgkwjtykyeiceuyaerdvhkprdurhxituilmmjhkvpcvwxsqgbpqxkycdlsdytpiuqhdhqnrcqmcyecrrfssmlvvvkpjldqaoydtpfjsufiwftrqgjfyxaoutccjpcxadgrhhxvbmjidqqjflftjres...

output:

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

result:

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

Test #78:

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

input:

254
xrjfnduworypztxeqijpyuprdplqzvsqwtyturivmjingkuxihmchsxfvvafosdmgplhwdbseflnwdhfuycewyxbtfgbomxpzzfcratezjxpcpvjfxzbywrfbkrtgrejvrhnaihysavqomoufzyahgzcpimmrhostdstupfevouwsvslbeywaowhcnypfhyayxqevtwxfdqfybbicjwxmlcpkpilsozsqfdvyuxgscgarddqzbolbzjjcxrkygxrjfnduworypztxeqijpyuprdplqzvsqwtyturivmj...

output:

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

result:

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

Test #79:

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

input:

292
kvvgbwynoebiapoeyqkmrdnkfviuvbvjkmjgqjrmjzrofvmtxtholphvnigovmteydqhburokcyrovjjhxmfgsgzawbslhjbnarychkldalicffvuluobkiqzvlqdvopumyigdwhuasyzjniwoerthkdpxqzktobftzqvgzphqspzaugwayrknpwkufmxvuqxbhoefkuqudzqtcyratwgboknochxkpuxcimycxjmgfdwwjxdhxlkzaohbhyttaaynqorastemempostkrlrimourvbuikkteohtkvvg...

output:

khuodwedvviqfuhzdntkgoybabzigxwnerunrmvlaexxktmquhjmgonkujhotdlsroelvempkyudpzfkriolplwhwglmomwmbgolxqecajjykmhxoxqpkqcxbnumbvfcwjabsdhqwjkohndivazoybuhootiafhhqnqsxckasrktvbezvrwascpyprjuvqlkvtuuhxiykubzgdkhqtftgkrfavrocooqybffbeypuavwthocrmomhurayskyaqvjrzivtmiijvrotdttzibxyjkgpyfpnzkggmzt
218 45 ...

result:

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

Test #80:

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

input:

278
qprcltvmvglmzelluloxahrvjsvsnkxgjwfwiplmwnqreoewxpiqsmpspulvywcrjkvdsfjcaceqfjrnnilfvarlsviwbufpotgbshltbynlfothpwfedvtarqzumiedgagavenhzoqoeiazpqllmndnjqinqlfgsxnasosjqqjmyvjloccrwxwtsamgzmblxdcgyrpgubuebbxthcyxtxhnrfpfswwgyvzbjsadiacqeamcvtknmeodmlskaztfkxajbphbahebhizovbjhcwqprcltvmvglmzellul...

output:

qhflmjsiolitnmymknraumvebvvbehhcosjczqrlmbxcgtlluolqxzvufpjdaahlyjjwdzimfbwsrbhvaepbdnfqoknblwrvayspageoeckgwccrifxiqtjqitasryszpywefenblacozhtjhvnbjpfefcqjlnxfflgnliatsjcdvlmtvmbwpgmmwltaqfalkwvssobzrhnqxmzlxwgeqbrsvgusssuokhlpqxretqhapnpzxoejwsxtgwvanvddiavcgyewrpudopnijxgcam
150 260 197 162 141 1...

result:

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

Test #81:

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

input:

265
dmbziqbtmmmyxwausfphikfhpnqfrnvvhyrerlveuzcjeeykdnxoskudwlxrcsrjszbhdsyammxiomxnkpvjxwopuqblqythekvlejamrpdoyedgytlqxovnplkvjeniwankuhohwllplrepliutzqaafiuhrhaidtglzvzrinbhdylftsmnyxbudaekpazmnlkvcvdvlrbuvwfhkqekmvnlaerznlhjhdhcmazkdaznkxqnqilxbvsykzfbnilmvebrqsagpdmbziqbtmmmyxwausfphikfhpnqfrnv...

output:

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

result:

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

Test #82:

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

input:

251
lihtvcwauiabuqgbybcqwwilaaynynzjourymeeifpcexiihsvltsugnyqcjthiyhzqluxxwbebbjfaxhfzfwqfwvasixzuhqklosclnxcamavwfeghjdjntlithbfliiefelpigwmcffgxmyqxkhipgnoxdyoqqgraqrahdmbxwxcogreguklqyzabzdeplhupqcrliuzjeuotvbiuzxtnhwbpoulauzzvflghmlxqbkgqtvezmaqxhqeflihtvcwauiabuqgbybcqwwilaaynynzjourymeeifpcex...

output:

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

result:

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

Test #83:

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

input:

262
dcbelopfjvpvbddwnslmnoyjfunfvggptxbsyurivdcrohmtzqicptcutequyevxpialbzopyjznyybpohcvchjkyixqbafihjpknwgnhveyfuymyjbfbwogzikbwhnncngrzhbxvtppbppzgcuyneeabzpstauobiqrxwfngbkuaqzwurscajatbmextjotypklalfhekvfrzbupzbgrjnovmdsycqxlfzemtrwwdehukqobsalxqpfixvykgekxrqpwddcbelopfjvpvbddwnslmnoyjfunfvggptx...

output:

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

result:

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

Test #84:

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

input:

298
ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppnppppppppppppppppppppppppppppppppppppppppppppppppppipppppppppppppppppvpppppppppppppppppppppppppppppppppppppppppp...

output:

ppppppppppppppppppppppppppppppppppppipppppppppppppppppppppppppppppppppppppppppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppppppvppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
1...

result:

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

Test #85:

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

input:

284
yyyyyyyyyyyyyyyyyyyyyyydyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyfyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...

output:

yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyydyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyfyyyyyyyyyyyyyyyyyyyyy
187 254 132 100...

result:

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

Test #86:

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

input:

271
mmmmmmmmmmmmmmmmtmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmimmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmdmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmtmmmmmmmm...

output:

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

result:

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

Test #87:

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

input:

257
yyyyyxyyyyyyyyyyyyyyyyyyyyyyyymyyyyylyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyiyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyxyyyyyyyyyyyyyyyyyyyyyyyymyyyyylyy...

output:

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

result:

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

Test #88:

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

input:

295
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbgbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbfbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

bbbbbbbbbbbbbbbbbfbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbgbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
24 1...

result:

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

Test #89:

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

input:

283
bhdhfebjdecghjfeahaeccjhhififhdejcbadjabefbjajjjbgfdjjfebddegicfhegbejafdabhjcgcffiheegahbggjaaedijfcafahcaggaaegchhifieeabhbghjihadjiabaghdaidjhghihhchedeiieecebahagfiffabjbhfabeieddabggafffbfgjfaecedjifbfgbfciagahgddhggeahdbjjdciecidhaghafhfchjifcdecbegjgbajddiahifcejfjcjjhgehfdhabhdhfebjdecgh...

output:

bfeehfeehjajeiffgijecejfceijhhhjahhdiidahhcfafegehbddbbbbagifigheihefegieaahgjiffegejhfdiedejdiadbaacahjhhjgbhjghacghhjfjebaijajceabiehajdajddbggcghejdjcjdbjafgbghfjcbcaaiahjfgbacdfffghiafbcgdfehdggbjebfdagdeafihhhjagacfheijghdibafbdifhfaaacabbdjihdafceeedcecdjfccbfhfcgbafggdecgjahi
118 156 198 278 ...

result:

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

Test #90:

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

input:

269
ebafdbdhdbdedfdfhacdaheibeeibbfbeigcfhbbgcigjicbhjehaecdciedhcjaaibfabhcdefjfhdbcecjhhadfjjjbccbhgigegdjeabfighbjjiefjicgbaejbgbfjadghfaibahabecjcbgfhiaiegfedaedcgbbbigeeiihhafafdhfgbebchhjcjadafijejbehbabidddgiifbgaehjjdgegijgcdjdfcfhhcigcbgjjdabhighddcacgdeegjhiedfffebafdbdhdbdedfdfhacdaheibee...

output:

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

result:

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

Test #91:

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

input:

256
hjgghjhbfgcbjajegbabebeigbgbbgcjbbafaeaifafcfbigigbciechiciacbbhfebfhicjjjjcgcdfgfbhdhieifagdacaabfjfehifdafficijhcaeedeciagdfcdhfhbachfdiaecbaefdghejhiihhibfciabibhfjbgdcaabfcjefbcbccbdgejigjhjdfjgcbjfegjieegffgbghbebdjeaihjgcgjdjdgiadbbejbaicbjafccijajejhjgghjhbfgcbjajegbabebeigbgbbgcjbbafaeai...

output:

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

result:

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

Test #92:

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

input:

294
fbjhbjadjahefeicfdhddfdjiiefcebebgfibiabjiiagciceegceidjdbicijchifijghhadabghaffbabjahdcfcjaccghdiefjebghhcdifdaadgagjhfefcbabedhddbfdehccjgicefifbejijehfiahiigbfccaccjdfaccfefcgaccjcejbbjachefbcdjcjediahjdcjdjdjgfefijadeaiibgjajaabffjgedgeibcajdbjceegcdccefihgafedcggjaehffgfdafgiiagbahbeedfeafb...

output:

fbdabjbbaiahhacdejgggjbhfeacdjijicceahgfjfeidadcafjdadjhcddjgdejhidccbbibichdjeicfghbajfhdjiddfeaiceecfdidedfaffefedceccjiehgaehehcaeecifbbcffhejjhiijcbhfagbjhcfgbbeigcaecadffeghbebaaccadjgiaeghcdafiebgjgjfffaggjdbbidhfdficcgfdiccfihjcebidegejbebjijadidfacdaeaiifjajgeihccfjjeaagabfjgfjfgciccab
139 2...

result:

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

Test #93:

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

input:

281
fgbeeibgbahgfjjccfahaegjgghfcdbbbageijdjaigafgddabhfhaaggadcdcfeigjaedeciiegijahbgbiihbacbeaiecjgbajbbjechicefadeacgbfhhcfdgdhiffbaiebebdchgbabaaefecigebfeadfhaejhcabggcfiedebhfgfjciiaiidicbfechffgfaibfjdijadajihhdabdhibjdefcbbgchefjajdejdcdaihgabjhjjefgeibjedefgeiaahejhehahecheeafgbeeibgbahgfjj...

output:

ffbgaijchfhhcfaebegfcdaacaeaibjjgjicdcheeffjdhjghefhjdfaaeaeffhffgeheajgeagcejgbifbaabdiaahehjagedebbbggigffjegaeibeidadibegbbbeebfidhgdadhdhjcjcchdbefigehfbigbheecagigedbcdaihjbigbagihibhiichaaieachcgjahbfjbeeabefijaiiaadcdcchggbhaeajghagejadcfedcjafcfgidffbdachbejjjbcdbefidbjiie
79 259 214 16 273 ...

result:

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

Test #94:

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

input:

280
kfeyyynidpmxvexyunkcrslmkkesjpfmrteqgclmwgvbjjhznqokutinmgbnltvybvmhqxjmqipfqppikrkbutjdjhzybepwaghvwzrtozpjkacosyaksnrjcldmoncsxoewlhdseyislsfluetsegcjfcltlikpfzersltfedfbguxmtyewiuuxjumiiuqakwebvdvhgmbottgnuylxnftanpoackwexjvnaaerssbqjbyscdyfpqrbhoxhsomwfnceudfftepkcrjeoczuztoukfeyyynidpmxvexy...

output:

khrbyyuwnljxjtnydoytudxnfajtsejduludusmebimhvnktqwbtzafeokcuustczppeqcookmrfdottxfaccyoemftfzscuknmiigpxspxprnvlwvlrebinrhvnncbefpssejrmhzqpoliigyfqmzagefjsmbgqmnmwldhnoeflcyxhivkcwgbyajgoqpulebzaxjtuoephzwsmttwkaktebfksfcpemvkcufbglpjrkjwyjvinkevlrkshtlxxbdqcdsejyrugyejusqesayio
154 77 13 128 184 8...

result:

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

Test #95:

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

input:

266
xnesnhtjykbarnjnfrruxlcwvqouowxnelqhorrquljljlaxcjejhthzjidsbzoxdpazuyvqnyunrrpbrlouolfrxlbafsyghehzcbxpeftmwhcnjmkfpxkfcoxqhtstbeazuoifydxhfaqoedwpwppupoxvguihuiqnxgidilxypvxltveeiknwnxjjblchnevtqxgdrgystkonsvlfzrotclttefplqicuqdhdblbpwpdeqgyqnqhnqesrxisipvqcnwouybxnesnhtjykbarnjnfrruxlcwvqouow...

output:

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

result:

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

Test #96:

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

input:

254
cuqfnqloibwzloexxfyjwjwpdkpfouujdrqkrtqhhalrzuvpfvhofunzcdkegqcqoznskuniogdglyrwqekiyftywxtlehgazioqrwolrxuryjwqysccdfslqyuajikdftegkuckviwilqtkwmlaaanwcodwcerrtggzrlzmhgivaqbgrpxhmlbsbawmpfnwxelpfxcvxgwqnkestyygewcfccuukarcggpbjwgbzgivmeaxwcmgbgloggqsvtcuqfnqloibwzloexxfyjwjwpdkpfouujdrqkrtqhha...

output:

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

result:

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

Test #97:

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

input:

291
tjrztteweevyxbwhmivuciyndbdyggshdfgztewenwhtsnngqvomktgeqqngdkrflklyftuihtkarcdxbdcooajhxdiwnerevguidrdgnmsgezvspxywybmnkbrliucxhsmthxvfqdebbaxxubrllnomxeqspnhwttvhexczfufrsbkvynjfxgruagmzyotwlmbuswitoazdjvqozfhiejycmybwiyhqnnsaggfjylvfgautgkzcuxjiaivqysywwqbabdzgnevzwlmmviyyyfzkpgguudutocitjrzt...

output:

tzflvrzqwtdhzewdugzyddgwyryvhbbnxwwkvtjeimyfisonyhflxiooseicyugmgznmyhrxzneyxenimbcofvavgccxtiyxlxtewyxvqgyebqbtsakbfshymobwgnfygdlgqqtnmknlsgrghvkyiiukbsxhnqzwusummrfwrgsqeshngbapxrwhulfwkteamozfurjttvaectcoapnbvclegueikaznkgbcxsfdtqjdpuomhdmjltbiuuddijgyandnyfjgejzirvabvquzvwwtiuvdyxgehdt
199 190 ...

result:

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

Test #98:

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

input:

278
hsgppfvcemnngjqajmbezdwtvgygxpwjnqpxkfmlpmkjyhmjrznvuwooenbtmrdxekrmnlbaxxbnupwitpwgzalbrtsedvyzgmtsfymbwxpyterhyjehoadcigmjjqqcldxqxxeuamtfpbnijwjrakszmftprssljdkgfsaojwfnzkpsxzaozbuglsdyzeztlpzgpxkokbhtiphwhmfkfcwqltalcmeywadugzwytdxztpnmeoqejnjpvgifwfmxfcggugrkytbozsfiglihaihsgppfvcemnngjqajm...

output:

hkhnsejgpgrmltnidweceftmadvgaemotmgwxnjjgatgxedsjwlpfwjombrzbhshyukwehqlakyttppuisbmnyiwtebsoxboztzfzeilrjguwbzezqxnfhphcxfjduembogvztarqwpyrlajpmltpktigfpmmnxncdqfcbdcgoqxkypargtzbvapdyqizmfwgsvmjlxngxmfnnssiwpqzxexylhuwkrgekfsdyjolmfmnjyzvfxkbwsappuilypcfajjwtagkzdtrgkmozpzxj
247 278 50 108 46 237...

result:

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

Test #99:

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

input:

265
ctrtcvfveofflofmqtntnalsidtqrkapafjdgjhaowscowfdflaekjnfgjkwvhnywourrsfkntbkedjtaooxxrznoemzhajqmhitunuxishmuuxqbyowvabqiqpwxyfvosjtkxnkxztsekdgjuoumxliexmsztgwshumzcacjkacenuotghzorezgajjlwtxbqgvrmzpmlwjnfkmoibqzarwwpsgjuhzozybrvsvahtcfwhkbxcpkaqxbwbypnpywrgvsxuqbctrtcvfveofflofmqtntnalsidtqrka...

output:

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

result:

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

Test #100:

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

input:

251
ncseyyrumqkwaokyxbnjgxdscabygipdgpfunyxsombemsokafjqlipfggiywppwtfxkyrybhrslioqpggcgmgbtnxdctnxxvzsuakwcjbzpesubjhbpgfqvkjybrysysjwvnbkxtyzvublccxnsachibxohuyumfhexzduudjqdvdbiiabferhpgmdlrevofyfolnznxgyehzmwcwhpjtzkvzwpelpeqdftsdeerxgnottcamkhiltuopsncseyyrumqkwaokyxbnjgxdscabygipdgpfunyxsombem...

output:

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

result:

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

Test #101:

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

input:

289
aozpddtfwjsutsqyhvgjdaxvpyaihmaqirzqgtxvathtvgztbkvicdujjlcwelkebsvqskytgdkhfkiogexeegmflaozfiifgesdsxsrsjuconcdscryvlordriwcfeaagbnvwolwrxilgbvpwukljhbhjpdbbzpbqgkpqxfpobeaiydanizljrsywxtpwqxrkefdrztfzzsuypsktwppilwctowrpfttfulawxfznjmpsuvfebigpicbggbmrzwjnhviknturhoquznqkoesdgufqjfktgpbaozpddt...

output:

atpetbttowislipuctgahfkpqzigppdvbyuebkareglxknfvdkngtqptvevdsosgknsltazjxkttcfwtadfbalfktidcjaewdwxhlibzppgofwkefcxrubsvpeqijwrufzapipvurxgrxqrryhdhwsuokaijueoqqdgiwglzjnkkcsbjfgfsgbeihtflmjnrfyufwwdmivgzmiixrasbprzuhxdjnsqwwqbwszeguveyfztxofzydqocholtrjapivcymsbcszvslynpgpoljrbzkvbdohgjq
159 129 19...

result:

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

Test #102:

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

input:

275
mocidmpozrmeuuulrhpxzijnqjfyfsgssralnvuqmakuapgtsvalleyowuvznnzxjfnypubsufwoffhzyydjvsbvvxxuskxpyjiwgtqvuvilxdwqoydjjswhvupblcwgmbkozwefqwmvztkwygzuojavxhaxjmeypzquimuzzgqfoiryevhvxvlrrfbrmvpdsytxdswtbplnwesrbjvbtijstjpzigvwqwupwjmdnlcdwjxbifwadavnnzebsmbvlsuxcqaffvmbgbejlljmocidmpozrmeuuulrhpxz...

output:

mpqmzfvuiunlrwnomsyrsgtlrsvdujjsofwdusezxxxaxmhiylvjajiiytauxvnywtyfovdvirwmflzvbbazsdsbuouabrdhqbmwsnxnbjqvutwwlivdvyfbvxovgvlkzwwabhefwuznhwysfmgzpppzfzslfarnijbzqwvqjvbfoppsjeelfbdsqeyewggrlwbpzoxwuxutcjglvknzgmndjgjdpmiicfkupzmuxavusbjqymptljxteaykvxheqjumcqpcjyusrlwojvv
69 105 272 216 140 68 99...

result:

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

Test #103:

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

input:

269
iwckcqhjjvazcrtrwkwuibplkfjhjopkrfdjwxieyuoxpgtlxjwjvkovoqyksqwmthxuzsdcpotlhqtuohdqvnqchvjvrrskawzacffwgzbhimxragvueypdfmyinbejkwcweiqzphoopktzxhtnqwnmhkovahnqwimeosccbxwxyvjzdoqdykaoxpzpgtjyatximfsepodpvpuuijfsusxmqvgolvpnqjztogvcjsragzjxrlhdohyhcngsomqscenrzsfwfucbxiwckcqhjjvazcrtrwkwuibplkfj...

output:

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

result:

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

Test #104:

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

input:

256
fknoxbacycrxctykkbkbwmwpubmhcvgiocuezvujgxeznlaxzsjtmropjhkuqiqpihtnwgoubrijlpevrtafbueuvtsntwhuznzjhqngyajomdklgnvldqjaxfdnveyeykpgduczutsmzlbfchxzgnmcrubunrlvirxvjwtipsmtgnohvpemofodzphaemdvdzangjwzocwhwvditzlcqqedejvvgaonpordlirwjrlxrjddilzddxkvwttucbunfknoxbacycrxctykkbkbwmwpubmhcvgiocuezvuj...

output:

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

result:

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

Test #105:

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

input:

294
ejmahwgcpwfouwdyewysfgeijpazzwtqyphkqtnxqderaywyykoceescirealejskmzuoouugobbbtgojpoqrrpisixiqpkevflwqmmcpqqmjrxvjqjyoipbmabymmxbvmggnfllsbgjazfbpxevjwckxqflwxeuwhqpqrmvjrvohvqbgfcwademomtwkggihdkrtwhjufpkxnfkzqlgvajvduffuhnbjjokfpeddvoyolxswipmciziefmrrunbnmdesictmbproaezjlbgcuskgtqmptncszbjrdej...

output:

eqbizsumfaqoqnjdjcudwrlkfmowlqumulvrtjosqagepbvqesvhwjtavvfwjgfinktyzteapdammrrmqmysjkwbgcyjxcqrigwzloscpovjzqwnrchkvufgucrveimmqyqhxwpxfpwgcmjofbslezwpvibncwcjytpyvfoijtfdmbhkktbrdoomwpxpnebxekkagjijutamxpeqpnooahlohigrlzklgypsgemebqqiwkxugmamjjbeegsoyjgrdqwdprykcuzxfbfshpxuiofdbebnrzfeidbpem
54 22...

result:

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

Subtask #6:

score: 13
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Dependency #5:

100%
Accepted

Test #106:

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

input:

290
oahdsuzjxlbtppnzzddxjqivjpvcfwkborvfhrbirwrtfvbvqwxtqsxqjrgybhkwrjrtvwqzbvwezkpjtkkpcdmwyyenweimobrcvhjuvsiohlhkensyzqpbkxdisvtjjlncqeihvcgzbgcqchlsgysmqjscvzvyvmqtgnwrrcuxicbwpaozeiwphbzxwhodbabirrhntsptebjifzyoezqxmfpteivcrpnooviqrqxtwrhhvaqzloahdsuzjxlbtppnzzddxjqivjpvcfwkborvfhrbirwrtfvbvqwx...

output:

ovvjnbzqygkrxmsdqagjbuqbbhxvyssvxtxavztvwraqhgcdvwkmqjftivcvdhfqbaqhutgoivawsbypwkiwxbhilthrbijrptxcibqwylrzwpoygcdobmxtporocneevpjrfjqwzbobbohpskiptzxgwrdwrkjichlqqmqzviexhjzfeigsdsnqpmyyhaclrinkhhrrrprzzkwrhskxlxqanebdavevccakevfzitmtrvwjwijpsvetocfvcpzewrjcncnzyouxhbxyrmcszyecobzwepjcsy
221 76 31...

result:

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

Test #107:

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

input:

276
qvtqqvyyntfvsejtjarjkwkxysgzgfoscewganeaqrommvmtonokazfchgbnlfvnsxxivubijwkzqgzkqoivszxowoeomazfkiogwkqhkrdigwiqllrsfaswgvcpirgyfsydckjeqmnjhwqeyuyjubucsghcsyjbtczvslcmujxuiomsqnvanwpgcwjrlmoeictukxflzugkdgrqiitaadiqcdlvzggmnrjnjbxacweuiuprpkpdvsylqvtqqvyyntfvsejtjarjkwkxysgzgfoscewganeaqrommvmt...

output:

qjfjqzrslmwamgivilcantopjaspjkmikyxctrcwofjjkdhxgvvcnbvewgqzcnggxqeghbzinyzsifijgoqoaizuvomguratiijmknnsnzwxgnpjandvqokcagvlefqdiqavlhqvdeudfyougrmdjubzvwwaqlyqksyufqnuodrljhsjiwvfstyoyswcxepokotorgrbkgsnulekrckjqwxsywurkgpcosoltgkysmcvjjezshveicgwqmexwcvzuimhuacamylgtsrxflpb
132 54 179 163 184 92 1...

result:

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

Test #108:

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

input:

263
idsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsvidsv...

output:

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

result:

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

Test #109:

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

input:

250
mrjynajsojspmgmfvzjapohsuzwepjzqwhrehlpcfbflrqfdpwycpsmizsidjfsubmllkpcaurotkbfeebbhaznrhcakgqdnnqremqewwgjpswcwdkkwwfdouyoavzgeoczaorevidhprtcujgojypmbrutoyrglxwacaeksmjvaloqdyqluznfmjjfxpihhvvzyqnjiwdnwjmfhdqgoomrjynajsojspmgmfvzjapohsuzwepjzqwhrehlpcfbflrqfdpwycpsmizsidjfsubmllkpcaurotkbfeebb...

output:

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

result:

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

Test #110:

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

input:

287
bxbblpxsplofcvxzwayffmrgwymbkrrtdqclmszfpcavkywggtbxbblpxsplofcvxzwayffmrgwymbkrrtdqclmszfpcavkywggtbxbblpxsplofcvxzwayffmrgwymbkrrtdqclmszfpcavkywggtbxbblpxsplofcvxzwayffmrgwymbkrrtdqclmszfpcavkywggtbxbblpxsplofcvxzwayffmrgwymbkrrtdqclmszfpcavkywggtbxbblpxsplofcvxzwayffmrgwymbkrrtdqclmszfpcavky...

output:

bcuqrzxbxbegslaadiihkyslbcmdrmlrokwiofdverqytmeodfsskldvdqazwbfpcrwdmcnjvluwrguwzocpcksuawayqhwfswwofguofrorbbfrxcaqhvyazybwrmwzxlewjvomosrhvtlinswtgubplbxmzvvpljbjsbsklydkdjgjhpdzgvyocebbxyfudbkpoffxroptctkepcftkwbabixeaskhaytgsoabcrmaeupobzipadhyvlzutdliffhvtuksfkhtfegyvrefexgueiqqvip
189 182 70 2...

result:

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

Test #111:

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

input:

274
gfowimhsqhahiauwyukdkstfoducfectroninvjaateqptwahrclpystsyvxojnnsppgfowimhsqhahiauwyukdkstfoducfectroninvjaateqptwahrclpystsyvxojnnsppgfowimhsqhahiauwyukdkstfoducfectroninvjaateqptwahrclpystsyvxojnnsppgfowimhsqhahiauwyukdkstfoducfectroninvjaateqptwahrclpystsyvxojnnsppgfowimhsqhahiauwyukdkstfoduc...

output:

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

result:

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

Test #112:

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

input:

261
rpaixnsvlwylioyyllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...

output:

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

result:

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

Test #113:

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

input:

299
vypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkxraritxstuossirlmvypyloozkx...

output:

vkbiogeaknnyblefmksyskrjegovgufaiaaohgxepwqlxzxxlonfkboxnymbctgrnryjrflgkjdemhohozuonpfnyoaxqsqbzcdllawnmigaansbmwoftrkcykmmwepprtzrzuhnvblfbyekgbpokjuabsozqglwtttymicgyhjhorwjqlbxtgkbvsjiakhqlobpotcvphklsxmxfqjogndilnsgabyskbuygbojbnhjjdxllwvigqvzmjlujuavrljxyhidfssbyworprrrlquovgqpnoytvmaulalmmkh
...

result:

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

Test #114:

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

input:

285
ltyrwnfxvlleuvkkmfvqncgzvjcbqmtuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytuytu...

output:

lxmhytneorvdvlekibtxmzurcvjougbbcjlcwrknivhojawwqwaihpzjuavbhoycobvedewotaunahnmtdydnkvjqrzmtknhchfmznorlsksflplmkgsbxnmizkzhesieyhtevdfmwqxnrpawnndbvbgnkygndhmuoljtodowekifbwnqkegcremdyjxmnfyjhgxlnwwcndjmyovylvhugzkfqgctvzhsqgsqjieqajebqnenigehiszafxtfajczpxmjstfsvkhqmynropllvwrwnmjd
252 87 56 76 1...

result:

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

Test #115:

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

input:

290
butyrdetighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbtighuijlbt...

output:

bgshapczjqiupfjgbifrjhegzohaxrtseiridnkbrkmmbcyatysejbtldtolwsderasrvhnslumruerigfviainipkuzcnilzdbiijybgtybutejwdzhbcldptmmjstnquylarxbbbcfxtmyhztuaswasnvmscfqtcymsontugrwqhfcifbcplebjkdkhdrsrmhzrelhuujxkxjcbasvbniegdbuszfluveyremisdyrosobcqcflnmvgqsuuaqqxeldijhucasreasjrytughykwecdrwzypa
91 238 21...

result:

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

Test #116:

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

input:

277
vvhaxuaukabhvoijsskikghthkpqzswqizdenqvlgfduraluhpdechspdvvvklxfgakrkqejcfmoxkxipflfqnwxlnkekqknxksyhlmuznsjkprhecuvjgrltxkrkqejcfmoxkxipflfqnwxlnkekqknxksyhlmuznsjkprhecuvjgrltxkrkqejcfmoxkxipflfqnwxlnkekqknxksyhlmuznsjkprhecuvjgrltxkrkqejcfmoxkxipflfqnwxlnkekqknxksyhlmuznsjkprhecuvjgrltxkrkqej...

output:

vzeuiuipieunuwfgmpoqdxziejkboxsjgfphwadykikkanoaebnchryhclvalehfiyavsvhcosdgrxjiatzhmcshjpjnllqvulwqnskcgwdffztdtddxtslhksqwogfejalzsqcyzdivhizvjiltbdakdsgxtndvxhpejlogrtdfohexuxgpnzkltfacctlfxdhkrmzrsrqktenmswgkocxqsghxrmkuqddnkfwscuzkxtsvvklonqgakyupvbjpwhbacupyxbrmeqlhmjkuk
59 46 245 162 152 88 8...

result:

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

Test #117:

score: 13
Accepted
time: 1ms
memory: 5692kb

input:

264
hdqxepuseypmadmbvfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...

output:

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

result:

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

Test #118:

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

input:

250
iwlrnkvraiooelijjlinxwpddwsjupogghwznvuyjsadxaxidkmhzevdedjrwapwvikgenolqgpawfjgcxddlhxqgkwozzyhqvrbqvvwpzzsizqmkbrusizesmbizvfppxanqcgvuvjjwwoaccboluyajljxxsnfbjdbvmvhrsboqehweezcnuwunxirtnbkpxmatsdyrkfxcxvswzastkrsyriwlrnkvraiooelijjlinxwpddwsjupogghwznvuyjsadxaxidkmhzevdedjrwapwvikgenolqgpawf...

output:

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

result:

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

Test #119:

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

input:

287
vjyunbmqicocecegwkcinnsqvtrwzryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...

output:

vckecxyoneopbjdrwzkqsyzroqqbywqrnntpfznbrguunxajzbpqnqvovesuwnvinqirmezkgpyzqsqzcguzxvexjcbbguefywoyplamoxtajghmculgkrqanmkvwiticbnrokiiucylwjrcsxehudgweaqivmlrdehynoqmnxxlavgsfvbcdshytxnvtdpugprnuzvhoigzglireoqoqezqudbzbqbbdzjxlsoolzxkogniyrzvkyxtpsbmjpkaqxtugwlnmedutcavumnfrnkypaxyynw
14 162 279 2...

result:

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

Test #120:

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

input:

275
aniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyiejtrtdftijsbfcaniexacnvnhjfjwyi...

output:

avmetrovlapaeqxybkdfmstekjmmarrpccomwtecnnbcgeayjihbsaatbtqssdadxdzdsgzmjbweysxyvugibjsponiwjcygjvrivffffcnaptkycmlgiylmzpolxksomvszwaawduhaschjtfirqxxnupnxggapyhjbchczwyqrdefnrlyrfzrofpagatanjudpobcykpxetjszvdnmqhnfjsfllcgyaiuthigwthkefeuwkjliscbgrigvytssbkonbgibfxnhhrgnnsu
176 189 245 130 78 273 1...

result:

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

Test #121:

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

input:

261
zyhpgykgikftsxgyvdjwxsaerbinwdvaknshcygvuzpnwsllvhpgagqdsdvenjaeyenqffrsjkhygsekijrwnalyyjmltgjhnycglswtqebvakmtlpxrzllhsnvqghhckbkfysibzyhpgykgikftsxgyvdjwxsaerbinwdvaknshcygvuzpnwsllvhpgagqdsdvenjaeyenqffrsjkhygsekijrwnalyyjmltgjhnycglswtqebvakmtlpxrzllhsnvqghhckbkfysibzyhpgykgikftsxgyvdjwxsae...

output:

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

result:

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

Test #122:

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

input:

299
enujseyaizlucvjcvmgbutqpumvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

ejeahxilumufozjdtuwatnoqvyxdtkjuckwjdducqbifpnpukbawvazlmbwcnxhwlduluyeqeuqivoolfpcpvozzisgvyyvkihfiqrffpeyyqbdbqsmozgtxdzgielwrshgnfzqckmqmwxxiasdpcgcrvemardivpgshkoajvcuufkidoqowwusyyozuvezvqgybcgnsxpibjsqseqajkotzeqgukihdunssduepjhyfdlzgciuxrjhyallqpowwgjbuxcubsiwhjquzquyesiqlyhnvmwjijzmrorpftus
...

result:

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

Test #123:

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

input:

285
hntsubeuvgtwltldhbyzhmeouaodmduqbbakesgcmqpyedajlpdoyilpdltgghntsubeuvgtwltldhbyzhmeouaodmduqbbakesgcmqpyedajlpdoyilpdltgghntsubeuvgtwltldhbyzhmeouaodmduqbbakesgcmqpyedajlpdoyilpdltgghntsubeuvgtwltldhbyzhmeouaodmduqbbakesgcmqpyedajlpdoyilpdltgghntsubeuvgtwltldhbyzhmeouaodmduqbbakesgcmqpyedajlpdo...

output:

hegglgxboejifwnimumppidqjbwczeilhlketazhsbuepwqhmrwfenaomuopzkxoeugcptvrfairemmyogbwhuqucuirtodvjjkjtzyurqtylvxqohlimnriaxzpscxebgpklriugszguvqqbjrilkqosrtfjydekqdgafzdufmfcavapudlzubgokaoygddwhjoslatqxyddbtmwwlufahsdgyvvqyfijktgadienrllbxolddwyocupzpzhuaoygidvrihusrbmpklllqgutjhatxdl
54 26 25 235 9...

result:

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

Test #124:

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

input:

273
prdbczgnspszskktehjtavhwqitxblsezeromwcgclxrziddwfqtchmpnwawtiwikzxlzpbbofiwwghikpyjtomsccserkpcgpvtnbawldtgjupptcgdigmvezpoftfoiaaansurffpsygprneianwnsagfcjfzkjkzfapwxbuwxzzyangvrupkffhxxeunyabokoyqxxxmnwvydyjwcwacttnczfyzwwsggzdzpdaogivrqywcxdedebqelrxpwpzjhmedifxrkazdutprdbczgnspszskktehjtavh...

output:

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

result:

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

Test #125:

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

input:

285
lofpfzarfsumowvmxjqbjejycmblcklbracobnvqcdslwhemeelclugfbdaddkaudmogfjsvhxgcvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

luzmcavvzzcipsprptxrdjoumrkshofslqiackrlidhocffcvucimdlwthfbbsgrghuqjaqbppbiimpgmzatnsfgvmnslosdtslelpgldcjonycfzpkmryhbgkqzfwfcezunivpysvmyfakxbldigkcvzxagqvzclscdevzgrmqhyyamllfgoojxrkpueywlsuvrftqbetdqpxbertlzkmblaospczujwueqnrnbpzhogvhreoviytdvzadtjeywdlwdjdaufjtxngebhxguzjyxguwpl
182 227 80 264...

result:

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

Test #126:

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

input:

271
tukxvgfsreaxcauxfdwpvbhjvfvzwdvvmgtvztukxvgfsreaxcauxfdwpvbhjvfvzwdvvmgtvztukxvgfsreaxcauxfdwpvbhjvfvzwdvvmgtvztukxvgfsreaxcauxfdwpvbhjvfvzwdvvmgtvztukxvgfsreaxcauxfdwpvbhjvfvzwdvvmgtvztukxvgfsreaxcauxfdwpvbhjvfvzwdvvmgtvztukxvgfsreaxcauxfdwpvbhjvfvzwdvvmgtvztukxvgfsreaxcauxfdwpvbhjvfvzwdvvmgtvz...

output:

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

result:

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

Test #127:

score: 13
Accepted
time: 1ms
memory: 5840kb

input:

258
wkjssxeyzssmzhxixnjqrtnfkqupxmrqatlyaazfperamixhwdwclsohdaoarxzymbydpvpsazvcsobfythkrwkjssxeyzssmzhxixnjqrtnfkqupxmrqatlyaazfperamixhwdwclsohdaoarxzymbydpvpsazvcsobfythkrwkjssxeyzssmzhxixnjqrtnfkqupxmrqatlyaazfperamixhwdwclsohdaoarxzymbydpvpsazvcsobfythkrwkjssxeyzssmzhxixnjqrtnfkqupxmrqatlyaazfp...

output:

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

result:

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

Test #128:

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

input:

295
zvlkfalxtwjhrjthrtggwyyprxigunideezbxecyikqyjzdbibzwkycphegaybwkbxpnxrzbjrwuxmhyrslrixiqnrnermsbkgixineiznnxrivsphmhvqotaxhnuqhzdbhsrthlfqglxikndmlrxghzwplwxhovnabukbqbfosfgbsjmuuxshyxbpmjvawahjodironqdtepruhpogfewdfzctsizwlzdodzxxoiqtdbbmymbgsdzqipkbreififnmcgikradcouyoqtvugwivwqfnpdkyjpbiiezez...

output:

zwaksrpbjrbdoifdjbbqaqrxobxlhktdjsrguqsugmqpohgzzkarvcoxeaautxogiqshmpqmtlwhmheyzdyxoxrbguuozujmtpngbgxlyklxnpoirpybbmyfqsmbensvvhcigvpupkrhrfinrdxtdifrcdzmhznbwpgkqwxykynvbidfbhzisyrxlwecxohgkoiukzhelrjqjwjbjdttzhvbifxtfaidfzsnnwhyxkeneealpmiwrnnivpyiwienxhgiqiiwhidfysrdneiwbdzwzxxgeqizrcltubb
249 ...

result:

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

Test #129:

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

input:

282
igfipxkmzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvpzvp...

output:

iorsrjqddpbpnajdybqywngjayovbrerqphbkhscvmtnejmwhiniczlbaaukmxmijiqrtpfqccnveakoxlkkgzjalxhrjnhdbpdywvrqopwugopfrspgktashotqjacnciylwgugwliqcpcakfemqctlnxhlumlhlerkrcdvckwvgprcpuqumdwmihmyuxnplhlzhapeoysyjmnocngcysfzytzeexiyqtyeekkkucpgxocvlqzakzlxmvprfdapkpvrrmllbcfnoyuwzvksoaofxq
173 11 227 73 5 1...

result:

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

Test #130:

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

input:

269
mrburyhzaenygpxqgcfhahfvxremmtrznybleszannhqowfrtkjzjxiovpbvrrysbpddjbpxrcfijdjiwijflmnnjmkmrburyhzaenygpxqgcfhahfvxremmtrznybleszannhqowfrtkjzjxiovpbvrrysbpddjbpxrcfijdjiwijflmnnjmkmrburyhzaenygpxqgcfhahfvxremmtrznybleszannhqowfrtkjzjxiovpbvrrysbpddjbpxrcfijdjiwijflmnnjmkmrburyhzaenygpxqgcfhahf...

output:

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

result:

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

Test #131:

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

input:

255
zrcrgrfjuganivhaovxgkdcbpquifkzlgnjizumqvggsbsymdgvvyjwdiwsobduqkzqtckcxneqznejxujzxllqxxucqleqptiecphxlsiwpwemwobwwooikfraqietisborevtzqedmrbkwmynkqoqjbkspwjsxuaqposygpsuhtgshsyrjetvvsweukmuqhswmyedhchlkvpaxcdjksnmqfpkwluqgdjtbxewsavvnqvbodcvamqpgnpwbhmdzrcrgrfjuganivhaovxgkdcbpquifkzlgnjizumqv...

output:

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

result:

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

Test #132:

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

input:

293
buoxflctinsyenrjbzmlnqjyeqykfcdulqxnqnqwyudpddoydpankmiwwjbmhqykxjhkwcrbuoxflctinsyenrjbzmlnqjyeqykfcdulqxnqnqwyudpddoydpankmiwwjbmhqykxjhkwcrbuoxflctinsyenrjbzmlnqjyeqykfcdulqxnqnqwyudpddoydpankmiwwjbmhqykxjhkwcrbuoxflctinsyenrjbzmlnqjyeqykfcdulqxnqnqwyudpddoydpankmiwwjbmhqykxjhkwcrbuoxflctinsy...

output:

bmyypqesxezfftybqnrnjslehrkuvwcswdlqkkwcgcdnfmdfwervhhweyjxnhwdkuxhuyugvossajaehavysrklxwfsiznlcbqyqfzprddfynftiyheqehchgcaamcaxpcamyqycbzovwimowjejnjlaeqcfqtsmrvtxkbjagaiplpzyiplaksbzykqufadfcxulfyxdsjqwycainqoxpkvycjobuwvoycnlffvgdudndgwysrrsochldolxafwumscepbhttndejtrmhwwfuyulsyjjjzlprrexv
65 87 ...

result:

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

Test #133:

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

input:

280
xotqwqdtezpzqraoaeqvjjtizhcfvsdalmfkwgtacmggmnogxcwwnqrcqoufsefelhgswoqqzdmtxqpryjrkluxafkffldpfdnwzaedvlffddmzalqmkazxjgsvupfzbqlvjsebixclcllhqgoioxnvfzpuujgswxpanhawuekxotqwqdtezpzqraoaeqvjjtizhcfvsdalmfkwgtacmggmnogxcwwnqrcqoufsefelhgswoqqzdmtxqpryjrkluxafkffldpfdnwzaedvlffddmzalqmkazxjgsvupf...

output:

xvjrcanttgelggdxlsfnsgzdwmsihfjzqztawsedmdgibqcmipjmxwjvpqxnsbtrxpxlqaflrwcmabvcoulhqinzyngqhngmvvpjdfziftpbfmksqxlgancbqupvmcjndtjjrtwqcgwfunmufwuxlwucerostzozrzzmjjqdeoiwjzaoaggpuboamlafbefgeaxqlgudofmekvawkleakqfzkolllgtdcujppllpgfxsfwwtqkdyhwfdpwfnlknfgvqfrhxcroaeqvtdrftovdeu
176 202 89 242 17 6...

result:

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

Test #134:

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

input:

267
nbimtggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

output:

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

result:

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

Test #135:

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

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

input:

279
lirnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnrrnr...

output:

lfvajiqyhazeyeiagqldbirqhegialcmuckccrbkummucmjwvetvofwcwoxnfzgdgljopzrlwyewsrevdramihkrwpczrigyywzpoboztxlcuqphhfylljftichffzbjktvwnjiuqrtvijfylolaqabigjwkpcyihilezzyqpzznlqqzzvialbjqxdpdcnvuyrmiymlybdcdhiyamvemouylhxwjzfshmvfrgpmypbdhltqeckdahbijlfgrhgyswgwyvofnbkvkyppfsugbwhu
141 43 224 179 172 7...

result:

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

Test #137:

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

input:

265
hofaumdtuurnczvlnrnjtajuipifkrmbhgyrthclqfgxozeojkweqhcqexkvbfzpgiudplencgekesmqnndectokikcgcxsqfuocffykxqijtqptxgrcihvwaorlfxprmntpbepxhhggrhzislguwsuhanencogcwwlyrqckmaaukaxgrcihvwaorlfxprmntpbepxhhggrhzislguwsuhanencogcwwlyrqckmaaukaxgrcihvwaorlfxprmntpbepxhhggrhzislguwsuhanencogcwwlyrqckmaau...

output:

heymbyqcacjocvwfdifedrqpmzyrlzfeoqkhalltohlpshcfacrimxneuegteuwwzuccmkeqhypmkrgqreenvjictibhnrxnudgccmdnefatqjlaetphwuiufciuaccfqxasnrdrpphediugkzuvxngtmpngffgjlcphxbuspyoeaneqpwckgopzxconverxaepxgesbqoicqkuvcnnztjqwcqjnptotlurbthqloskilkzakqyhubrgoihjnwlngykcbvnff
249 39 31 23 247 70 265 212 154 41...

result:

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

Test #138:

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

input:

252
lvslllnuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

lelsvvbparzazeaazwzlpirscncgcknyaskzdzrvhqoerugthjgrlvetvhcmiqdizxigvzmmcyvzqdwqxcthqglzzmgdsawrbyftfhlmxuppqpthvwgijikmkdvyfivondoyqbbywlwyeijsbwqyluxiihidsyaahnhuufisbfpacjenqswgbleujdtbygndulpoyvqqkdjlzzhvrbqkypzohmapyspclbtdqcalriirsscviqbxbgcumgpn
69 20 126 74 50 54 49 1 249 68 85 173 170 139 8...

result:

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

Test #139:

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

input:

290
mkpazbuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

mvuugnfxtuhsbuccddycaulfeyohtashwsluvzlivdtsaasbzimqtduimemzbehwrvndnkblkfqojpgkqyjpilinamtmionuboyvrseyvjkdpwacfkpjhoibbhtczkwxdxyfyuyiimyqrulhlalhywxsdgfsopaeeshdnebtmblyfdwokvxggkehssakbqucnmvbnttwiypmvgpvlfpbnckullpnfvsnjdqikbtnuphlspimniizekzuqnhpnawkopeojwfzdjowdqmkjxkhzizfosobdsthxm
126 155 1...

result:

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

Test #140:

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

input:

277
hpnajknenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenene...

output:

hrbbabntxvrfchuizvesainhztxrkalenvbovemfqerenfxuowacoxaqkktrmkszuiaxqftacxpklyeajjevaaeliwtepujjcvalsclbsdalqbdbalmgqfztmlrsjokrljxudeqfqtaaqacvdgotikiflnguaafokfumbuhqxopaatweasygnqeftrxtnvbcafgixudmslgbuzoasqwsdqtwjrndnwrtdwqpbkdfvivxykahgcjwqssbefrihkzzqayneelnvursxhbaxkxsp
93 239 8 253 5 229 156...

result:

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

Test #141:

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

input:

263
dimxwxklkzzvbsmkkcqlxbqckaoeshmipbwqcgqgzvyxcicztpgftiaxmqmgdkecwfpbeplhhwkfilcbisdsnaiihgcqvzurdimxwxklkzzvbsmkkcqlxbqckaoeshmipbwqcgqgzvyxcicztpgftiaxmqmgdkecwfpbeplhhwkfilcbisdsnaiihgcqvzurdimxwxklkzzvbsmkkcqlxbqckaoeshmipbwqcgqgzvyxcicztpgftiaxmqmgdkecwfpbeplhhwkfilcbisdsnaiihgcqvzurdimxwxkl...

output:

dfvnjgizrdelpvsylaliipklatybsycndsfwwgiocjtzvicrjrlfcxbrkwupddnvbuswfmarltwxekzxazyvfodvdpyfntsixpaqcgcracrytjogkqwekhbxvikbtcrgggiqqctkmhqwlvpighsfxrfnqnkqhqdpimhmhohitdwzjqmjrunkicfpqgohbazxqfhtkbqgproihgwudlyxyzawtvdmpemvaqiwgfgmvrcecupzesghxwdkxcmmbxdwjbvpukx
131 64 257 99 113 29 30 214 79 151 9...

result:

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

Test #142:

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

input:

250
rnrotfjchmmqtfvgehxyjrepoeikghjpdnygpsudolabrfeliyarfvkkendzhnakhynilsudytljsrjnjdxseashiawrvualofsgdjzgottambuepzbeerjgncbrjndzobutdeshfhmvbawxcrwxpdohemrgdebgskxbwldfeujthslncimlngnucyjraddsrfvommiczmjeovoabcofzfiglceofypahjvbaxdxkbvcjkcvhiiqwkdzlqrnrotfjchmmqtfvgehxyjrepoeikghjpdnygpsudolabrf...

output:

rtohpyxuetrzzdsvilrecjsoavjdhvzsoclaehhcurlgectileisjgaavformtuzftomcdnaxjkdvbmwysjqbetgioxdlxdinsagrornlwjzerjxhbbunhyvffjbsxubjkniqkedajfcadfacglbjizyenarhpvghddufeedjmncwehfogwedfmshpsroobwdllkmoamvaxhckhbyqvksiontnkrkzrdbnliggndyrjfybppejmcgefupm
231 38 161 129 55 5 184 27 170 66 149 147 183 7 1...

result:

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

Test #143:

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

input:

288
vazdijkuxgcgyvzobgadxehkbjzkyswgiiqfnilvfezhazonrochlnhtlrykmpjkofwxbcfmemememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememememem...

output:

vqpqzlubhlaniblleiunygibxpgifwnweghntxwcgdxgfgixtqwykhavfpdhocnzucsfzicjdrxbwobmwyjqjmfkxflburmaczazhnvxfqoxukhdqdopithzjvkkpkzugxericgzcfqefzjtumnvxtuljitmxrnpalsfunfdexdujhgammetonauvsedaqovgdlsnwddowmmtzfltkxxbdhhdreiiunzmkmtgyhigclspjntlkeajrmmyawggftqdmmupwobplwaxhtkfoxsexrqdtplzvfa
11 112 85 1...

result:

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

Test #144:

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

input:

274
egrlpyuvvjsarrebtidphauhawjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...

output:

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

result:

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

Test #145:

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

input:

271
mnjvmzimlireoaegemqtdxenycllojmxdszwqxalgyxohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...

output:

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

result:

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

Test #146:

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

input:

258
pyojtbhbrqqrcsrqsedfeunlpzwznbgmehzjtrtcxjrshhdzlljpekhhnbgwashaagwbwrsieerljhtuctgysfcazmzjyigdbjjilxyjduvnndxaaqusvoefduxztyakoakhzvfmpxzlkweyjqiixrkwpqbccnwbpkjdzixuzqvvwfqnpcinbedfxxamsurvktgokypyojtbhbrqqrcsrqsedfeunlpzwznbgmehzjtrtcxjrshhdzlljpekhhnbgwashaagwbwrsieerljhtuctgysfcazmzjyigdbj...

output:

pmxyvrferdifagjjjtgkotyxhbgcrxslxochwfohswixguegaxcqfcqvvzdznebxwbjdxzaepsnyyhudnwwvihnyqhyvhwuorlfaamtqozvjkbzqrqdukliqnexejpayamqrjszgqdmglefnjdrryhbzpustexjicwjckkjctvjimhctmzempaitrkiqxsvxljwdklatahybteoaprjqjigkwneksrbdbkzlzkzkcamfdhfuufpnsisqflabqyqbdl
76 135 91 162 37 245 118 143 80 46 211 23...

result:

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

Test #147:

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

input:

297
lcsycsqtiyhqwztoppbnpsttbgkbystovmffqzlkomtujhtcnsagickqnfeagrskxxufyovkpvexmsbyirasyavvonbwrqhxuhnvgwavcqhpjifyvxyzwufpdtvdxfckdzdneucloshktxxxvxsezgxjkgoulicazqgmcrasjbidcveeeswqljkgevzcptsyswofxvawdvyjqfkanzjgvmwjsllctnwfmqtxzlbtslhvcnmeevvjaocxldkmvgfumadzkfgwogdktwfxdczwaevjrdbpwyffnvvzckjl...

output:

lhfjgaywoxfifaktlvoukyxtfghsxyzskqqkogatnagjzkepgitkzdjxbxuvhzennfyqdfgxsyadgwylvrdfndhxozcsbemzycuvnjzvvrevtyqpnqbejxllcxdgcuecbvksfgumntcgovxqcklswwsvvaltjofcnfnswhymbaxlkaekabdrscgvdnmdecmxpkdtbzptlcptixwxvfcsjsavpdirtkzvicvqsagmjywkqfptucwomwvweqxqpcrmdtwvfzjhfjsvsvteosklcvaehwzmfoyovsiubsjzw
21...

result:

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

Test #148:

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

input:

283
pmeuamhilassmpzhychdqqjlweqwtyomzymvjgcyppstwgubumnzzlxpvtawdbzyaqzthnibbwbjdpeeurgaqzqvvgaatwkddjtwsvoceqqteijipwrdqsfetkjalmmenubgyrymsptvcuvidonnabeyuwovontzrmwtcgxyvnmdqncllbqvoaraovsnxssqhdqamvladqlzzdvlohhnuhedhafabyeqthuyjkudabrtnhlwxasgwxzqapvncscfdhrawivnaldedyfwcwzibjuypyypmeuamhilassm...

output:

pyfcnulmnjqwdpouqjptdlmwpmuwswbwdmujqdkqoztyampqdgeptvzlquezesnygsazuzqednqxyhhvwlvbnvwclfthmqaucluwwshzsvmygzqokeviwmchgavzzdetiqyrbyvpibcbaybxjabbgvjbiitauyoaosdvtvuonqrtyfhhtoturjaldpeozqqxsdamtpdanixhpwwlgaytyhbncwbalcacwjsvaaaefirehymayxllgndvnvhzddeqvtqdmsrjendeszrkaynrcnhamsw
26 187 61 204 16...

result:

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

Test #149:

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

input:

270
ceywwlfrvyqfbysnfzxrvwtpimlwrgccsyvbjsalhbdxpcsxfrkrskihehectaxoogrhjdaefiiwuhvoxyyzbvbzfvyfcstpuuzocyfatgzfcmihqxbqinkbralkihiatvtxmtizxzsbkobpzwevzezynlytlsjuvzlzyjumdggpurvgwdhwtojcmrgswvevgiquhrehwqthkcqdcerervxibxnezfypqybmmxrzmjhchujzfvtllwputxnpubirptcaihuvkfcmvhceywwlfrvyqfbysnfzxrvwtpim...

output:

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

result:

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

Test #150:

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

input:

256
nplegsmxfkerebbhslmbpdrjziiwrjbvfrbsvkfeeytoowxlmzyvuwnegrbyrqphgrtwqsxhjlgynctkdqhlckjmgkbxjaskgafktoguxxvmvhkxdfzwoyfhnikhkdrxmytwaxrfonxnuqgjauynyuysarmyvrjkdsrgzyqpmyavinbghwjowskjcxjrzfmzzdijimwrtfiopkarxcyvupngryudlvyzczrimrhooyargsyhvcpuisbyqhnrjrkdnplegsmxfkerebbhslmbpdrjziiwrjbvfrbsvkfe...

output:

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

result:

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

Test #151:

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

input:

295
?
dinrnuehnqzocvmugcntzsydnkehcsilrcqhfkbxlcjapvvtipklrvyxstcrccjoluodfzituvdvmukjcoktvibvfsoqrxsnwbwqqyhhhwoydupxqymjjsempivudwgmaynrmntxagjnbbfqrcseajiglpnypwzhsxakwlepxcjdinrnuehnqzocvmugcntzsydnkehcsilrcqhfkbxlcjapvvtipklrvyxstcrccjoluodfzituvdvmukjcoktvibvfsoqrxsnwbwqqyhhhwoydupxqymjjsempiv...

output:

rdzmtiobpjtprbnkrftyyjasumfreacycpdssuanxxcxviqpybnyvlhpcjiyehpnfptsuwbmgmfrsfetxcncafshrlqzodtiraqwifueilwzjplxdqvyczqxwtzxxqzbjhyffzpmuvuvyscqkwvytjvvtvnfwgniflsuiygjwcavwcrjndlnoezcjtecscbswuomqvoevxaphfkmcprwbhsafrkgyxkjgjwugyqvkpgpoehlrzcknmcclvgnzbdhwlkmnfoqfdlxnpiobhdupwvzkqqpgnohljehqou
247 ...

result:

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

Test #152:

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

input:

281
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

vvtjmzyxopjngrbqeacixwtbanzfefbijynaldnelzijwxcjisgrqxpxmlfvvewduoixklpobgpxwmyjojsriglkhvefpelfshtmzbhgkyeeeclaiiaobczaejlthwmekzjlgpmutqcnzldcxhdhkifgqbeufwhceqvvcutelvydvnxnmymscvoazgcglaihbpdehzyncyubsxzttuvejycoszsvfpqvwttyxchvxhxwhbpmzqjajhmraofryggokzlsgjcyuggyejxwzfrhyiwhn
224 237 10 229 227...

result:

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

Test #153:

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

input:

268
iriririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririririr...

output:

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

result:

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

Test #154:

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

input:

255
?
pyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonhpccztlwhdcehmvpyqvotqcpoxonh...

output:

gpywrypwtokjyslffotacvqwvtmiicrkezpcgqobzrnauiqjckrjrpjwronatheaxnysvzgygtsthkyobyhjytdhtjmxjzpfmtzthfmgwxdpphfwzeofbeoelnbbwaqqokayijztcaqfggnywjtqoclxefncyjjcsyfemfxcrqvnaxdwfxfqnzmhzrzxzqottvhyezixjtcgvgutbvxcombfzqhvhevszydxxksfdqhibseotqzsppnxtfipghr
174 226 106 165 121 249 160 242 247 231 110 ...

result:

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

Test #155:

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

input:

265
bmmeqhezlxurkjvniwptlzqlydxftibjrzyxeetmdecnufhhtxqtnqzzmpnafgtnxrdskqswpzmdiwxtwtwdmtibmtomzwzcuemqxasnhdoedjeqmdpywabmmeqhezlxurkjvniwptlzqlydxftibjrzyxeetmdecnufhhtxqtnqzzmpnafgtnxrdskqswpzmdiwxtwtwdmtibmtomzwzcuemqxasnhdoedjeqmdpywabmmeqhezlxurkjvniwptlzqlydxftibjrzyxeetmdecnufhhtxqtnqzzmpna...

output:

balqdsbeqcbdiqiiwuezghcssbewtetdcnniiqhuwlqnwrxdhlzxztfrgteujzqmzblhpiocplznggmtgmgoqxtfgtqypxltmyuumwsgszequkdjqjmdrfxwyszacjwqawumwhaxqbgqnijclutvyarzhoommvlngxwyhndpekveohlmyesakxttnzcfazvscbvztzjqmkpzkqztxllymxxkpqnoxwgfmzedcqmhnuyhxdasicirvqbypzehshmsyjuetdedt
82 189 149 65 249 222 258 148 250 ...

result:

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

Test #156:

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

input:

300
msvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlrkmsvrnuzffskacptjszvrqmsxlr...

output:

mjqqeltxlskhjnafvrmzorrukhkrcxejzfjucsmqxfwdejfzxogpngescutmludycnlcewavylzvguqytobcorzgduugcumkctwycdtjsmzzpuxvyjgqrlverduwoumnhneifemrkifnregwpbsdtwterrmcxtpgaxqyluwnfpbftsjjxgrohhrulgnxsujhbuswlnuysbqipsxdxrlrpppscplrznskpycnntmrayxhezkksgxwgbuaqqfuppousrvajhaquvisxodoldjbbctemmqdccshnxcglhralkji...

result:

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

Test #157:

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

input:

288
etrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjetrevmjet...

output:

epdtuxmtaaqwoslvvvqpbjgwmdnwmbxifwbatbiojbwgivsnehziijdcgdwmfscbqwlbgbnchkczwhgyzyhluykuoyvbbxarlaqxfbpncmdblavttlbtwqbiqjaekzzxtfqjmkdqhjompixsozvutnqlzszzyipbtuhguzrmznkrdttquwhuvjrbqhlajobbaydtpdcrrtpkisoezddiwujxtyxuoznruamrznesgapsrronpmlsmurtvluhzjencpngnpgvbfhjvbnrojxjuvhhvidzfvdx
196 5 285 2...

result:

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

Test #158:

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

input:

274
hukiiqpvojfuvjpnkwrccnjtqkignkbjacahjizrykywngrffvcsoqwmdpjtkoncyysbxvkgwhqgavozufqlewswxlglgzyjbnadbzaotnxhmwkikxqhgptqztglbbipplhtsfxvlzpwtljghkshpowibbobvqnmphnqnojryfvwfhsacdiajiaprtksffycxmijhhukiiqpvojfuvjpnkwrccnjtqkignkbjacahjizrykywngrffvcsoqwmdpjtkoncyysbxvkgwhqgavozufqlewswxlglgzyjbna...

output:

hjjkfeinthikuptcxricetwissnzfancppuylzprblcmijxeifdvjpogvxslafenmkvozalaoyxbastjrkikobbfkxnzboxalsciwwodxwhfqhigbmgqjaccptuhtqvsjnasatpxylwmrwvyiocdkkcpqkjgthztfbpfqihznaknsjvtvklhwobhwqoorjhvsznggycxqpwwlosiovtwvbpjxoppilnvnyzpykzftogfqtzmqojlwmhiopukbpqgjbzhnhjqnffnyewcgn
251 30 195 235 135 92 61 ...

result:

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

Test #159:

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

input:

260
?
wblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblujemcrawblu...

output:

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

result:

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

Test #160:

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

input:

298
iprtxilwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

output:

ixnrthurljecupvxapkagwarcrtmkqaqyajrqrghlevwcxpquawzslangcoailpaqugasbthvnahwuvmettvfoavarmlyodmkamyphsfbqjyzlqafyrrfayjwybadbqqwinxjhqlpawwbaxvwehapdvpaofvfbfxgaegswctqlaanpkdvuxlarfinacgdhptludizbpcgqgffnvpqzmasxjltkqhkynfksxwyrssfjvpdhnhwbqwdqmetacokzmyhnccmudnoirldaebehbwmlnmnkluhqxllpjpexzmig
1...

result:

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

Test #161:

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

input:

285
ctroifnwidurzzodpgxgmaluwcacqywdptmrtxtoynpehfngkzwgzeskzzdhhabvyapylhvnqxyquoygrxqhzvbhnlnevzuzegrfyjijazdaodzjpkvxhktdjsbhieyqbpgkibalejaiiifcmfgxxxvtqsosjklqytbnlznnoykhghzvbvurjonmcqltpakthrxqvdkbaysgatkcwuejssjgkpvpustzaepgsyhhmeonnnkgwahvagccsdiktgdpnnzahywncughrfasbuaoecoqbgaghctroifnwidu...

output:

cyqjsfnzocqutvgnbnllyirkrpzyldgbsrpzxkvcgitsuytkhajfrwfiarhsxmnkaowcalnghggjvhtbfngplazauhaardubbzezpahowskdewpvhnchnjqnaavepifsgxqucqdgakvlqygwuetzevyzzgxngnhqhqcvnotcdkthsigybgozubsxqbkpgyjjtoezjzbhaijnytxkdtkdspakykamuntdivxoyuhhdchqhgvznjtsmecigzvbowxwzkdirmgyxlayoaremenhpeaopopfs
193 144 150 86...

result:

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

Test #162:

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

input:

272
hnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhnattlhn...

output:

haqaaaktfwularaaxaaaosspywaraiaadhgboglabudvrdcirfvtltqtkjjicxhchcizvfpuuhccidmefgvwwqfadfxkwxinbnmhahtvevkchksvwfavrhtedlinbzexzursscabtthmpmbgfmjdyruztorffqsnjarwbokvzqdicmachmcvajzaamnjsytgxtmgckrftraywgytqemdltlptlzcybnrtjjlntnqheklarxzvjtuzbwztkeyqgjwtaawmpvjputwedtn
272 2 75 4 5 63 176 133 266...

result:

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

Test #163:

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

input:

258
rypexyssdkvzaerfdylspsceeeteboujgkrzgpmattseipkochgvmhuoxdijzakebqlrnzpfsnjeumoyrvxvvowjgkeusrmyhjqlbskpshimvujujyjdnfrypexyssdkvzaerfdylspsceeeteboujgkrzgpmattseipkochgvmhuoxdijzakebqlrnzpfsnjeumoyrvxvvowjgkeusrmyhjqlbskpshimvujujyjdnfrypexyssdkvzaerfdylspsceeeteboujgkrzgpmattseipkochgvmhuoxdij...

output:

rujgerjzbgkijtuhfvelrcedzeqfjjlsvmcxjwhcaairbsrpdjuxgoepekimpzikdhuvjuefzvzprvgmujgjtsypvokgiskealmzbsymosrrsukskuqtuagansoroeufalssjzdmuynxjtqcbtwgzneuiabjlwmpenqabjbncdtmvslwecegrgskujntpdckrxxruflgkpotsbvsxvhggbxyfnjvghkjyepmqqljhdyyirhzjvrosewejemzzbaxvd
225 241 258 59 55 24 5 81 143 176 189 238...

result:

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

Test #164:

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

input:

297
fdrcblwtcprkqeugfuhhenwafgprmginvlzufwwfahskdkcfxacdaazibipvibrrsudjjnrcpjlywrvywjqteciouiupgcqlbnfvjemzngrwsuzinunfvhxqiizfwjdhmtspfalzwkvjacelgucjmmtnbzdywbjqqevcojgnxtpygiqywjifvbtzzwcsrfdrcblwtcprkqeugfuhhenwafgprmginvlzufwwfahskdkcfxacdaazibipvibrrsudjjnrcpjlywrvywjqteciouiupgcqlbnfvjemzngr...

output:

fnjmawxkwctyucwhffbzwaszsnmdpivwjajvfljjvittnrraelbyidemrfncgfnsgxqmrxzizoguetvberquaizpyzbudetecgowcjqfljvbiywrilanzckgjxsnaldunicejowbpqigivzalmmwzacvgfbujzanauvipttstjkkcwocohcxrqgujlgudtslqphyteiwvsgshnrmlhwdhbbfiwagwhfnradfstxwrybrhzjgnwspkketgqolwnclhcenodowcualbvgrpgzgiouyzgpmdzdsudvffdqml
22...

result:

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

Test #165:

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

input:

262
dhxncmaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoaoao...

output:

dacfahearbirarpfaactiabxaahdzserukoapsanvruiypnyjzpfzmdofpoohwxwpwkbdiaopdntnijldakghqhneafhhofqlmtmqudlvjwprvlnuhzotytyyshyjjsvftuwferacikuetagnsmlwahqkgapfzmaosyqeuojqrdunzmgroukdxzmlosepibrhthnqznmfuwupdybccivgqluvhpqaljggfoznnepwmxpiiudmocrfzofokxykxhenycsih
123 2 247 58 5 226 116 8 235 193 58 1...

result:

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

Test #166:

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

input:

252
?
?
kziojgkncvaxatpnpoatxzvugzublnwihuisukkhxatdhtfshcstnmzfrikqlxblzbybghptlhthlykswpwsajbkpltoonrqxxrcyzmoixybtwcghlguzecjfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjraojuujfhsowuwbmsyzsrjrao...

output:

aakraaaaawajaaaaaaaazapaaaaaaaaaaaaaaaiszysmbwunjwospkfschrxtakoppzguhvcwlezuglhgyxfszmntjdhsfpnbomezycrxxqrnoaotlwtxynlbdsoqulfqtynzjwwyxzrgbmschbzkpgomvcntfttonxivgiidohcrnqwstkyalhthltphgbsybzlbxlqkbejpuicptaxaswvfzknqoghdtaxhkkuwsiuhifhjuujoarjoizr
1 2 251 248 5 6 7 8 9 238 11 223 13 14 15 16 17...

result:

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

Test #167:

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

input:

289
?
?
?
bklttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...

output:

aaabaaaaoqaaakmaraaawsjwtkagaamaaaadaagfaaaamjaaaaakaalleaaaadasjtaagoaalaaaaaaaaaaaadawyifaaaaaaaaaaaeaaaafyaetwcxaeixaaaaawaaaatanahasaaajaatauaaaaaaaaouaaaaapaqapeocpmifurewazdwjgiuhngirajnexdmpcdoewakswumgqseskeuitkgcmkxilwwnrchjkpzmorouvkvraqlamqxrhoutjzhfewbajixqgjocnkmvqldqoeyaftgh
1 2 3 223 ...

result:

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

Test #168:

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

input:

276
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...

output:

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

result:

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

Test #169:

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

input:

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

output:

zmtumaxjinqmkxaunbnmlzagrxgaoyajcbhcjafyzuxjeiwyymjkxgvjyiaqywlgpqxirzigquqqmucvarssxgvihomassnkufrjlxmvjufkcncajloehuxqutikpodfqrmdcwpxxcuxtxjisfgxttzenrgphkbuurnjygrsrgoxfhhiatznxrpzpbnstcaklcpuevfhjjacptfebkxqkkxuxyyrqbqskdayjtetpshqasfnluhavcvepihxyioaonltoam
144 1 2 3 152 5 6 7 8 9 10 11 12 103...

result:

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

Test #170:

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

input:

250
?
?
axaubwiemjlkpkeugxgiufxhiqjwzvjpiwlcdnknhsqndzfeekruzjkobtuqmxyngrmlmnwzbatednwhhxntusskoctgbejlfntvjvszmmhnaxtbetcwpmlfrbxgxplilhlccqwprxdrjzpuxknyaynnuszrkhxcbufirlcryaceybwezwpmnliopdnwcxlxehwkkcuhsnrlntyurnvoybjnqulorytthvpzprammthisemgakzjtzdkzkaxaubwiemjlkpkeugxgiufxhiqjwzvjpiwlcdnknhs...

output:

xbarflmpwcletledbrtwjrqiyhxcgayrclrsizfozkssbukckwblyxmqutqnnyfnayexmrgqckclhliujigkxndawztkznueuekwpklhhynyocvwnpnrdphhoiuumeizkagmesiqhtmmakeerfewzdnnlrnlshutrwjzsnxpzxvjvtnkmpjdbglgttkabzjdxrnpxupzoxclwvhnttyrojclwipjbvjmmzpxczewhbutshnknnumbuafxx
29 1 249 2 4 5 6 7 8 9 244 180 10 63 13 241 15 23...

result:

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

Test #171:

score: 25
Accepted
time: 1ms
memory: 4828kb

input:

251
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqfqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqyqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqfqqqqqqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqyqqqqqqqqqqqqqqqqqqqqqqqqqqq
37 249 247 150 181 184 26 169 41 243 92 49 121 2...

result:

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

Test #172:

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

input:

290
kkkkkkkkkkkskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...

output:

kkkkkkkkkkkkkkkkkakkkkkkkkkkkkkkkkkkmkkkkkkkkakkakkkakkkkakkkakkkkkakkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkakkakkkkakkkkkkkkkkkkakkkakkaaakkkkakkkkkkkkkkkkkaakkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
263 290 2...

result:

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

Test #173:

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

input:

276
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

output:

wwwwwwwwwwwwwwwwaawwwwwawwwwwwwwwwawwwawwwwwwwwwwwwwwwwwwwwfawwwwwwawwwwwwwwwwawwwwwwwwwwwwawawwwwwwwwwwwwwawwwwwwwawwwwwawwwwwwawwwwwwwwwwwawwwwwwawwwwawwwwwwwwwawwwwwwwwwwwwwwwwwwwwawwwwwwwwwwwwwwwwwwwwwaawwwwwwaawwwaawwawwwwwwwawwwwawwwxwwwwwwwwwwwwwawwwwwwwwawwwwwwwwwwwww
276 276 276 276 276 276...

result:

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

Test #174:

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

input:

262
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeekeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeieeeeeeeeeeeeeeeeeeeyeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...

output:

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

result:

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

Test #175:

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

input:

300
pppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppnpppppppppppppppppppppppppppppppppppppppppppppppppppppppnpppp...

output:

ppppppppppppappppppppppppppppppppppppppppppppppappppapappppppppppppppapppppppppappppppppppppppppppppapppapppppppappppapappppppppppppppppppppppkpppppppppppppppppppppppppppppppapppppppppappappppppppppppplpppppppapappappappppppppnpppppppppppppapppppppppppppappppppappappppapappppppppppappppppppppppapppp...

result:

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

Test #176:

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

input:

300
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeesssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...

result:

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

Test #177:

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

input:

300
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

output:

kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkgkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...

result:

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

Test #178:

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

input:

300
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnsnnnnn...

result:

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

Test #179:

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

input:

300
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

output:

qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqfqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...

result:

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

Test #180:

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

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

input:

1981
wcxdytnmefmpbpdlaulslnrcydjzzzbetynstxnbcomfzmvldenrzfrvpsydtxbccvfydggevgubmofmgfopwewdrfofdznfevknffcniychezdvlnwumynjycbydjzzzbetynstxnbcomfzmvldenrzfrvpsydtxbccvfydggevgubmofmgfopwewdrfofdznfevknffcniychezdvlnwumynjycbydjzzzbetynstxnbcomfzmvldenrzfrvpsydtxbccvfydggevgubmofmgfopwewdrfofdznfe...

output:

wjjtyyjsikbuwvtxpfwiwoqirfleeswsywstzmmuvsumttlblqxsypctxyhomcluwpwhbifcobegbnrltzfikqyknvgvgcjpdqxwbukfjrustkhvnypmznbhbyxabgbfcruhyqlmomyensuuxbrjvlceufbtsyyhlnnoqzrgecmayawjszqujuntgatxbrooyfgpiuukesgptbffmpufctvahtamvndgvdmzxocbyvvueplxhhliegskwehwlzgpaoldqyxxqiajpefoavnukcvycrmcrlgiefujvwvnmuvu...

result:

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

Test #182:

score: 10
Accepted
time: 38ms
memory: 15448kb

input:

1994
hjusebxsvofgeshlqkzuwrcfvlokcodospovwycuylzevtqqdfhdyepbipqnmrwcvsqztwrndyqhzrhftfwrsozyjnjpgzmylbtboxexxqknitcvbsqovaslserjmkicawherlrncayemftqyjbbpthleozuyvzbcubejjamvxuqcbaqphuntbukuiorsnxatipplfpfrnofampscdsasoywpoafrnvbdcsrxpfkfmjkjmcsvwwsjwzbbjahjusebxsvofgeshlqkzuwrcfvlokcodospovwycuylze...

output:

hysafnnnragmbvkknkjrqbvdfmfpwqxbdatwuhnywubrypqbhacpqiquivdwdmzjluawhxamtqzvwhrrfytbabuiyzuvrhwuvyyzaboyssfwtgnmdxxkoldfoopgbvgyijfbosvbtfgdqxsykjxtgajtzayyglbxczeywmjblbbxglwmzffqrtwyczauwflgabkvalrsuwbdxpzikaanmelgkbalqwuystfxfanvcivdcflwwsctnecxwkzbuhphgvgmkcuoepxxywrzirzdrrzzzawyllozmvdvauzyymgm...

result:

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

Test #183:

score: 10
Accepted
time: 37ms
memory: 15276kb

input:

1972
wmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassyolabxmqsqvpcwzjohquowmijrzxpdqrshchbkchqlassy...

output:

waexhlqnfcovvewvaetntuucoifgqhvjbgxcsnjyakjmzhakrixmjjnrofwrlyelklwzuslokgtsznkkdfftsrkypaoqtqtlneyfobjpxxkgspbqgiqvzveobkdkpwvlgsorbzburvmfallqrwruijyzqcdtiiclipeqqeuvobzldwagtsjlcxcdafuizsbqmqmfwaivyjbhdrjdrjaehsazrgiabkuyfyzgoujusfvwxrfzaxoyuuxzonbrpozbejcdbiweonozbduwangmxajlzzwrstgkxsffjehcpaen...

result:

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

Test #184:

score: 10
Accepted
time: 23ms
memory: 14944kb

input:

1917
sltbfutpxvuhzxkaujlauxbmvbptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgruxnnqmptsgr...

output:

szrzwqqqysvspqybnjucymzwzmpnmcltojlbxbubinsjrlitxykntmvzkucgaatngqqlijpdoyhfhhgjtextbatwbsmztdmrfcxclticcbhwqzgiqzbgamdsfviyhnbuyvcjgmaenhbkygdedujkuvdckxfnkpebwulqwefstqhdwpecyhwovacgljznkyqjdhxvrkruogrkumpbgtwvokplyrmqkfgejtyayapmjnldvehxnrgqiufugvaumpkpelvhhpihzfecfyvxqtslztaitdxchgplycpjbbaakjxw...

result:

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

Test #185:

score: 10
Accepted
time: 42ms
memory: 15468kb

input:

1996
feqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqshfeqsh...

output:

fdeowsdcrxqthzyagyvigmogovcfgajvdzdidauvdatscysqcpylsyopevkjdeeitgdcevwypsyfkwswfsgnogiufhqugyywfjjipufvggekawuodoepryiuxgwomecfmjixjvvtnkchorprurokvbavedpleveltupcgaktcxbuuxwagwxjoywmxqjdyrzqczbhwpubmogmptdjfqmhvkwyxyfzwiengttxuatlxzabeetzoxmoanqudkezmlntmvysrajaxjrvnscvuwdfzpknxihlxgpcmapfdlzkjzcq...

result:

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

Test #186:

score: 10
Accepted
time: 32ms
memory: 15132kb

input:

1941
eqwqfjwuerndnphcpfcmknzwjpysdqvzfpbvdutmrxlygtorwnopuxmwtivumbmafpuyqdhcheowqmmyqnheyijhsnmtmvdpctpoxfpylchpofowhqhkxweofxvrsnuzanhtvdoxddtulbvziyqqmhmydtomfbljisrhhihggbtrdzdaciojqizmqqntmogsoaicmhbmlqamfqcouwhhipwbtlbulcpdkzbsnlmnaoflzilyinnugabmtfsljrlszlqyxhnvfgreplvxlggxmqaecjbvlqqbhxsokki...

output:

ehosqieitgqabzpbcmrgexbrrerryrkecanditfhmtcqphbmlisfghpamcfbmhmoqmdqduoxroriqjgypfasiwkxjfszbanlurcgowejizxbroeddmrwmcmiljuvzyqfaafhgyljqqsmnlltspikzimixmrqsiogbztojskyxcioefwawklonqvvlvxwcdwrtqcoxzdjzhvqeaexvtkfvgopamzwrbimqhotjgpxphxvpdqoeobuezmijmziftdnjidcecgxjvzivszxlaawekuojpmytqchfzztqqlbqljz...

result:

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

Test #187:

score: 10
Accepted
time: 42ms
memory: 15596kb

input:

1987
tgeyotqnxqflxecdhkpvfuiablbmuisoocrqqlpdnjfukwxraplqdtwhutpvtnapjzeanhyvkqfcanbjoejfzurrooyyqjtczrqwmucgtrboipniiixkpwnlfqbhoyiepscksondkxmjffxeertiwluartdxewbkzbwjlrcgswwyapksxrtbkigqlcviemjezzhvgqlhnqstshvbthnzgemwybfawkciurfbfkjsfxjramwddbtpyqpcbbgaeqoejanxwfyeybuhozvudhdsszrdchnejkszgxafpaw...

output:

tpxolrtuvwxcydekvjmikwjocomfcmucelihwdqgzsujcwbjfuormjfbrrzahkkqsfnozquyrxosnpdaisibegpcampaxkupzffpvnarckiodqpnfgvudbupfqhzajndxcozkqyglgokaiimatdbymdjozhainhakqpwigtismjkxljrxugqirxnfqhrkbflvevsaqqxknuuqsxsfremsrrzarbeswenxxxwcyynawanbbkmsqmzxjbownhkcaxorejekaypzxsbtojoqyafmsevrztfzfxrxphnsmdqrbgx...

result:

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

Test #188:

score: 10
Accepted
time: 37ms
memory: 15208kb

input:

1965
menlcbtfmqhdgfvfcaygutptszaxbdptfalbuiauxpakfynykjnbqqjxfhvnrrofewiekryemzaulfvwpledzkqzunxsdegikwqhuqrcznohskbpvhuumlbbessbzoxohkelqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgselqgs...

output:

mkyxcvajveaynnrzsyruxhouhteeeezrfbpgxpfefesepjrdfynqyxcvcispaqrmdlmrbrxciqunudfbqdrtdshevqhjbwvmsyggfbdipcedbfrqlkcjdsorrojraatnwrproszeqpmnfndkqusftcadephujwbrrabxpugwootlltyppuvikasjiaijthuiphtbailexwcriuuhabygysxwjvymdygtffgcmtguzqjfdwvltlkipkywkrdzsrieqjsddjlbtxvxonizalxzemeevqpirtppcphmoqkxxmvj...

result:

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

Test #189:

score: 10
Accepted
time: 31ms
memory: 14884kb

input:

1910
qupypfdwyqgfrazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazazaz...

output:

qfgpxrlyjrhmaubhqcqnkdadvkzkarvjbmnhrhszmjmuvteiarrxocyxbblrktnfufxewwiuajizsgxuyyqrrcnqbhjrrocbzblsffuaryucqzhvmpaicgeopwpbzpldodrlhujhfadwuwgcspbjvydvhyyjdvvxdezklgujwghkvdeeowubljqhvyqmxqelkxaqkzcbslcaacgwfewukrcvpckvfkyxcmlrdlfxngfnbzbachlrjyfwfpqsyamqfwqudkyvnmnoacnabxhpybannxmcsiyvsysqvrdmucuz...

result:

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

Test #190:

score: 10
Accepted
time: 33ms
memory: 15472kb

input:

1998
jkbavtzrmvibannvhwdgrulvyhswfvmnybfqrilitxocbzzatammmflrrkpxnxgomlubfkahytnfdfxrrxpwajlngjcufojzclnppeagvrotdbvkkjsouxittffbulzzysxqmtmzhfpvpeznflkzfvrwxwjkbavtzrmvibannvhwdgrulvyhswfvmnybfqrilitxocbzzatammmflrrkpxnxgomlubfkahytnfdfxrrxpwajlngjcufojzclnppeagvrotdbvkkjsouxittffbulzzysxqmtmzhfpvp...

output:

jwjtqymanyunbfiynutgkcyngyjxigiotokjnbmuurgrvjtgdfkanptftefacrafdxtlbfsftmuydlqvrrocqjgcywgdbazvmdtmoqslldxzppktbszxsioguzltbehstkdmrynhqedcvvvkurgityjihbnuaefmwgsmdbftpvxitaskxjmovbrvcnunjmpbsigsrusrdupdwvennwbcgixpfuhokvjlkklruytxakywisgfzaictgvkiykazxokvdkkofgppfpapdcmhxsxqzvwsgapuaqwueduajlpggnw...

result:

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

Test #191:

score: 10
Accepted
time: 38ms
memory: 14968kb

input:

1910
vimpbjgdrfjnlyyhnuzghiecsbgfxnkpxqklaqpmgglakjxxqommluewhnnfpihdytensaycmbrpepvlmnoowubzwvqzckwlqqjljcsoixsnlbnxnqcerzpjrmmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmuxmtmux...

output:

viwbhsbmuartjzpqdjcvlebxpjzqhmoagjzbardgsopvmfdnxerzdrcbiygvtifazjjtoqitckllqeitveyepvftjnmnshjtjgbtwtzrhfxhfaihhvvfuxdavyflvtuotyjizwbxeouvpftnvmyiawpklqnmeagosnrhhautbwnjtyspzkiemqbjpmuksjsggmjknlcdzkwdpjrykwnepuswglqtzcpqdxdifhlsnebltfcckzosaictucieuppkvpxuasjchxtfcfijgmqxkhvkdzqiqwwmhleqtqyfwqnn...

result:

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

Test #192:

score: 10
Accepted
time: 28ms
memory: 15416kb

input:

1989
diddssubvuygwujkmnbtymttqyhwilaaethubptfevoxprvngapilphvytpcsdphknmyxrvwjhnykdptnlgmjopuaevusyxhrifodrggvjgxzqzuztpwpotkwebitdpqzfhhkbhvgwneiljcikclowsozguygtwislgwckphzswkyswbjjdeaqyfejppzocwdvqkzabdsduxtohqzswzjrescppfhhnhqniczpixqqskruvdrjgdblxrjwcmcsigfkaxhiffgbdbkvfkacynvapnnuwmxgzmjecqdss...

output:

dbvlpczaejepexrepfpjzqhokaqblzyvalrgnenxjxidlclcirinzckjqhadoquuvyurqyaensjeqestwtnqtkrzsnblqxnfazxnfvgeurytjxcsabxwvkjwmwcqknmtoztppfkdxvofzhgrcpsbopsaahryqrnuumzpsclwbryywkexadjvghhavrlavkhyalmmkidaulpbysyxhjarcskqydizxyhwowvjetjcrcqqbnimkzidufqfpzphopfwhglyledzhyggtswhhdwtolxhigoahwhnuynplvpfcctp...

result:

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

Test #193:

score: 10
Accepted
time: 27ms
memory: 15132kb

input:

1934
uomnzfshftvzomqrisjphgafjzymsoalysejkdfpblyofzwcejbxabhderobokqkzclttvlxmfbwqpiqrqkieasxarxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwfccrxmqksdryvtiqhhwrgffjdwf...

output:

uvsbyexebheehiskosnzjafjzermnkywpfjzzzkudthyjazzhxpsqrqoepxcpfwpivuycazibxqcmvfftzfpuyfumnsvpcsubqymkdlcpsrogzthjkmgqhudacjxuftsabxugkievlncqgboxfjxactozlpigwhguivictqvwfkiieoxrvnqmmwgnqryvambkprgqmulcobwzcqiacttrunnqzsqepsipwnldtftkbutqwrqbzemrmoqpliwibgfwgnnrzbcnrfpqfkqmzliuhvbrxkyxrkhbfuujbwrxgrg...

result:

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

Test #194:

score: 10
Accepted
time: 27ms
memory: 14904kb

input:

1912
mxhviqfqagdyjghwxpentmntyhdgtycbyhhwewfunygnndrtepeibhafbbzkaxllqujkuoptosvnujukqwuckzhwyfisjwpumeoluzjdgchypyfioptfcuvmutlzewvrcvlqthysxydqvuiupqgbmthqxzclfmbwcxteeceucxjcwmxbcttpgxjolrmdfwwdpfjwrknqjspyyjojsdjonhokiiomwvuazuvskcncwvgflaztrmmgwlnirsepzijhejwmtedfssimgzdxgqyrdjoimrtgikxcgfynqfh...

output:

mlptbbpksnusfpgbzkxhfgwnbtgncfyhvtjsnmyhbnijetkecttslhehzopsnbtzfqtgjcjrdwbktajilncirxioxsfkxeygyihjwymkhtpwrnqicfbrkddavmsvvxncvfknaykuvzsxvlckcfsjivhupwjfwkwlkmuwfmhkhgdtfzyyuiomiuwtwgfmqqrqxtfaifpnkxkpzycptjjpxeapemapwvqjzcjpgqtpowrcghtytqdtpomsddtipkqwufymkinolexqffvjdjhxlqewxdszexrisznbbiwtxrpg...

result:

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

Test #195:

score: 10
Accepted
time: 31ms
memory: 14996kb

input:

1925
idwmgiozfsljjcwybumhncazlivzheqfwrpfpsgoupxwypxycrgocgzsipkhiqtfnmyrhefvutbzvwxyjzhwzyjxwcqfbxacbfyccjofmeifxpxlzwycwpjyegykjwysynxhccweqygbmczvudhicaefdfaeacybfgtfncqvasninfsciibhrpeoerjlycdbpoximsphtyevpbnvfpuibfzbwoxljwyhleoagvvjxmhmvfdexrdhzclaasdplnhrjnavvzfcmjmzknoxmkfamdhxnqdszvodzgpufxx...

output:

irjypbiqlzhmlouhhvilhnchplxnchtfdydpzxdvqvkneenrljecgdltgkmtaocykobxbpmnigfajjtszuogobxlrfvkxiuchrgpnlifohkrmamernmxvnaipndesumvvesxnroxzpniajxlsxljxznjkrpfnhismymwjzclfzfvdkeqjmzjedyaomfffhszosmvuzfifnsqtjtygbeyhtzwynclysizzxyuqfxlxkosukwxayqsrfbbbxasvevvvyizvhssypnhvrbistxhmmwvbflkalgvaiymogeantlz...

result:

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

Test #196:

score: 10
Accepted
time: 35ms
memory: 14836kb

input:

1903
berzrojvkpryxzrojtjfxwqkukvogxwatdnzxqkdyqwkisnjnxletnbjidagbokkxgwivrrhbulcnnillkobzbyqxkgkcpvhrdioyrhjlkfaywmqthcrmnordsrwnpberzrojvkpryxzrojtjfxwqkukvogxwatdnzxqkdyqwkisnjnxletnbjidagbokkxgwivrrhbulcnnillkobzbyqxkgkcpvhrdioyrhjlkfaywmqthcrmnordsrwnpberzrojvkpryxzrojtjfxwqkukvogxwatdnzxqkdyqw...

output:

bgdzkayxayqekkuezzjtcaazoyufhaobzxdvenkuhawpmcrwnzrhegomcagdlhbkodsuisvxlavmrbimeieavdwutlmbsiqgwcdmdntqxnsxmdmygoadroasbzuvxzxjtomgemlmvbmroqhopqlucxcgapsnqmcwgaelszazjghdcnhdtdukxeyxzbkitotdpwbpxqfhkwrauuzjybmhscgijzenvtjctfarxapoaynfmnggngbsrtszyvofahdhkimalftfkscorsuhoylmzlkcgvhhoyjxdskqcjowouzj...

result:

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

Test #197:

score: 10
Accepted
time: 38ms
memory: 15368kb

input:

1982
ngrbepedrqykbfylngypdzwtsmaeouerhyfzzieuirrtxzerjvyttrjfhitheodiczzdjvqrfyojjsaajdamrdwcpvthpalevkbhlctlyrmazjbyjldtvpozwkmyvwekinozashnutkiqaewtacpfuwedqlpzgytazbzoamqvwfhurluxeksnwwkwfefrdglvryngrbepedrqykbfylngypdzwtsmaeouerhyfzzieuirrtxzerjvyttrjfhitheodiczzdjvqrfyojjsaajdamrdwcpvthpalevkbh...

output:

nyyglqfhzmxzowebfnhvrmiomfvysaufrpscwryuwxmehmtjndjoowvfkdebvdaarzzewrwkjiialvbfeyrimkojykdritrfnybdnoslxndktjqefaxauqqacskdyrmhhqysevfwxgbpdlemrurgabdzatwvqxdozabesxmmdvxohcejfiydrapklerqwgjmtcdctecbhftugmduhuearenjadilgnhlvwkvcdsbbbmensqslrgqxsjttazbwuqfwnfphndnomjcofpkpxcocwfmkovtxyhyuzffoggdasop...

result:

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

Test #198:

score: 10
Accepted
time: 40ms
memory: 14988kb

input:

1927
dldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillidldcwubxnaillid...

output:

dvenkvuglqnmwvopgezwfqvrqxvdxikldxtpeewsvhxaxxndwydgdvorsmjyiktegkkzzzmfgkotwfihmcemolykaugrplnxvymsbosplhpxodainisarhrtjixyeysnqaijaqklpljoccpzkbcmivbxdzlrdeyxzilbbtsimxzxhqtxdxotngscitzcyhonfdytbpqhxenkgfknowbahtwtnxhsgfegvymhgasdenvhoyduypbfwchdqksbiurlgpggijcqjoqqgqecuvyfhbeeowgzernwcoysyyijgijt...

result:

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

Test #199:

score: 10
Accepted
time: 37ms
memory: 15476kb

input:

1973
wxxkuvibjhtzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzrylavxgrspeskpugkiaanpwucbowpfnuisrzitwrajibftzr...

output:

wtbwspjdstlcnjbndjzwxmfvudxniyfaddwkhicatdlykknvhbqjueqibtvepfgougxmhcepiusrqauxcpytqfefnticnqxrxbiymqxzahhysusrkwmkmkrwdkwyxcaoosmlbrjzazcpfzykfbcfjhraruxtttkhuakuhkuiemxsksmxxkvznjkxyaafnyditaspnmltanfrlimkgqektedonabyirhuzgjkiccvwofipucraseouvghafvlcqccjswewtppqubdzdkekoyxnslahpyzxgmgdweagssmutrn...

result:

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

Test #200:

score: 10
Accepted
time: 32ms
memory: 15112kb

input:

1950
xqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqvtcxqqajqv...

output:

xlrfwwmrlrmxfvbfwjguzqmgpaclksatvgyuyoqmjwxeinsjczbyzthwvfyjpwbryyxzkmrrbktixbrtbkkrfmgucvxvjrkhnofccpbibxnyggdowpxluvyhrjgbspnhwpwffwtbmagordlzxcsrgqngvpiwnhsqvnfuvjewrbwjrplhuxkvuawslblmfmddfojizrdnfcnueamkswkdsjyzjtjqitlukpdwzrgybjhlfrykkswrtyntujbarnwwfjkygilleuduqdbhzneoljzvyylwuhzeuancejhwpgcb...

result:

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

Test #201:

score: 10
Accepted
time: 35ms
memory: 15236kb

input:

1963
dklllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...

output:

dlqloulompqffzduykvwboyljtwpqlpvrntaqgpccdrroholkskrjbcdmckdgdpjqmcfuhrndomcczmmfsaoaoveebpdfggelsreiqpwnopsjdnwerdguumilgpmnlpctokzotpljlbqawhkfmzqhcbsmhmhyysffujjawbdezezxjspxtlybelzxvejcoueeiqqsaujygqpnjbpjcmwejmhvwphjdxfnfuskihsxrowypnqiqoocwjbijxawdowljxxegfjakbzyzgtqlxtvohcthhbnkurftjyqmqmbbrg...

result:

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

Test #202:

score: 10
Accepted
time: 32ms
memory: 15324kb

input:

1941
ammyoqvtkcdxzajfuyzwwodisdaafjlxaqsdfzomvshqvdpkckntkjvbdpzwwjuqswfpzaztmeeujavtkvdexlexzcsvttjxwevxmuymotwvkhnnhwrroybmjjmqzbnhnkqzsdcaqwhistlpoflooxjvatesjrywaosoygnvjjalubzbyypiekpmwgcgqshglonjqtdmqvrltdasmpajwmivhenvbgiqcxkuizdgszlmxwusxhoqssqyaeohihifjubmjmevnrfqanerbwbsitdrpltbnkeusetpqmi...

output:

aczeumtattqqjvpolkqmkrmybcqkzefsavnyseeuzytdbvbxjsjxciujcahjjhmalowpseyjdlsfgykoegbpzuhgnhddstvxgbmccqscrrjyoeucxgnyodphvlaityibxukawbvvbszstmasclbnqljpycxsoqalvmihsibejoyxhpojewvadvvfmyalilibnksjyahitsmboagoymapsfieznopmzmojwhgpzythfsqdoaodkiykellfczsxtzsjapezneihxuisxhikxvdhzrsnttjygttixwntrcyosoo...

result:

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

Test #203:

score: 10
Accepted
time: 38ms
memory: 15420kb

input:

1987
uplsxkegxjsfeocceclaatkesltdvcqisbbrxfklmgorptstbwzzyxxathckezamixcbolajnkbfjzmtlfynxwovogtkesltdvcqisbbrxfklmgorptstbwzzyxxathckezamixcbolajnkbfjzmtlfynxwovogtkesltdvcqisbbrxfklmgorptstbwzzyxxathckezamixcbolajnkbfjzmtlfynxwovogtkesltdvcqisbbrxfklmgorptstbwzzyxxathckezamixcbolajnkbfjzmtlfynxwov...

output:

uatxckptagnzamdlvvgkfvyamyyedhksiyxizahewbwlnaucnfbzwgtugkisthggjcfivrvzuwyttzuzardvkxgflzacdqaprenloqqwzskejtlttlqhtvgdyyslquqnpmvmscolkqqlbyouodzynhgmuybnzwramhsqaqsfmbflmfesbyzebgbgnmapgxtucfuoguwegqolrdosbweeermkzczemxdshiwtxgdfzadpilrcjdrxueeookirjnrarkfzyzhvldfytkzprckruqqswutrdwqfvixfzvxrdbjc...

result:

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

Test #204:

score: 10
Accepted
time: 36ms
memory: 15016kb

input:

1932
kpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawcdccduckfykbsvxxxhcyayulykpawc...

output:

kiqyvbprfcxxjxtnpxotqnrkqhkrjxbfuwixodkvxrzxvazpldbhhhvpffcuwafecxzrouofqzgneewaprxokmnglplvmpqlvhnxvukfqvxgkixvrawdqziydpkdkbxyldamtybselwiwrladwliojsgrblcurepwxivujynllccirburdikqwmsplbrezzabraekvesfijhgmwfojgmruavzjszrqhpvmiiutiqgqkvgmnddsbsckbhvktfqjecwyvgnerczzgveyjtupnfjnogijoygxifitlzqkyamyvt...

result:

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

Test #205:

score: 10
Accepted
time: 38ms
memory: 15584kb

input:

1978
ibrvksykxrmidzuvothktdxgcjjihwwvbtykvjggzturcfowhwdrthrxxrganbkkbvoamvjqnzptzbqljbyookdalsmhhgwkgyqytfprltuucgughawpnvgfgvfdlchxevizkdpcmnjzrtgeaypwgnbojvemvnchmbstepjoqenctxjhkscmfhkizxpulvllbvumvvjadcbhrmccvfcpbzlnsjrsbiazsqnpbujuximyonmfxllgxyjjwtzxmoeyrfktmdyxujynoabrrpvareqgwseidjqldwnprzi...

output:

ivvheaxlghipinknsixgxitotolvcwkipohkqzoqggvinqxxaaqqrhtusxypvpozbkztxnzskmdxmlcjvdagiekcbnuuwisborhuvnmrwufmkpxspgxjleuidelexmwczqllebldkurdpogkpqlvqfzbnvhrwcergpesaxoxabsdxztqhtsugeklzeojrpfywsullhicjllzxemvdybjexxutedwkkslgqoixxvylehxkagrlnqjinsdvtwetthbljjurylbwqlcxjnszrocbujhtfcafmvenszpqveylfav...

result:

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

Test #206:

score: 10
Accepted
time: 32ms
memory: 15240kb

input:

1956
qhpojaaxsrvjxgepzgnndfabchsyhizdaejjgssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

qblphkoysqocsipkcleisfsbfjgulptancnhwyfntrxzwgvyioxetoldyfjistbeibqojhmrkbtpouyphjwzsogwjkyyilkbefotxrrhrjpxeeefhcxipluglrfrkyzlrzkdbtywaunqvhgxlasxhpwodwbtijhvuvflisdgwyfglivzkdkxezqcvatkjcaklvzzwqjvobeaacptyzzkdleilevvptqpcqcciidwhronjksgfrobhwdkhagohhhehkfbinrsyzgevurkfltrvmjvvlqtkiubonjovlbhhopj...

result:

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

Test #207:

score: 10
Accepted
time: 32ms
memory: 15096kb

input:

1934
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...

output:

ycxdmstksvfpdqyewpagporlzpsssgdcdhhwffetsppxcfnnimcsessmsakmsrozyszzajektnzthrnyctuxwcsvrjuowgdlxzlvghpeuhwfklrbbiselqenrbqypkgnxqvigywkyhowyvpprwihcadllpevjmdiqcuflojvngvaujxfyneqhyxlukmdtwhcsiypgdomvtcfamlimvdeaqeodzxojzkhbypugigsfedxlzeyhjujyusegddubrocxeubtiinpquicfztnitqcdewabihuagqctxnqdquspmy...

result:

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

Test #208:

score: 10
Accepted
time: 36ms
memory: 15180kb

input:

1947
zfuzgoalmkpjiljzyyxleimlchowmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeakymwmwyeak...

output:

ztghcmvnysylofzyppnujxmvahcivnmllxpjhqwrnuyyuvxfvkkwjctdtzfrvhxaferveybpaeovfgwhwxwzihvpzyysrzumzyscsbxngfwvjigopvqeipmgskqahlgbmunbbhogpqylciwscgtslveqhjoiqilrfppwfzweyzdkhoojmsdhjlvojqwioclkxbqghahbzwifwyolchqzufmwwqjmwdjupvrrxaafyjvjbbhcntnhuersjmithhvzztlwafcxdejycidygogyicgmuyasnajgquxphlssaplh...

result:

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

Test #209:

score: 10
Accepted
time: 32ms
memory: 14980kb

input:

1925
kbcvwzkrmfqxqdxigjnctwgzibratvikfwzjvahiiuxicvjlpfgopmccvdcprifxjylzvcivawsveebrmyxorwizigduaijtdplanqbcwdnpnnwfynmnflgtngcktuyrjtcpgvrnrsiwxatdjaxdhonbdrppspsmxllkjwnwnlakvnsdyivegksoexlcvjxozsuzdmwrkymqocwncntvfkkinyrpeqikupqjqpaltyrrumagmgxfdekdyzpahqshyaehbbcpostrwjcijwjppwmrbghduxhqqvifyjq...

output:

kjiznqujbdmrndieonwkqkhnissykmhtiypsfezbyjnlbltlmyamcvrhtlbeaegzibljksbfvwahlhcwzncodwtvmopcfkapiwbqetlrfdsexxqisqbdmroilgckspvfexqboktjvkbgqjkxybhiphbyjlffvjeejlqlxcshhvxwavajjdzwwpdjyrwwdcbcvaeqzxcbhxkzcxnshwkztujryzuvkbhpakwzmngdwwqudnlyauqaucemkbjhqkdzlpaxtcjzxqlohrlpdxyvhwwndfrrltcevteixdowwuze...

result:

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

Test #210:

score: 10
Accepted
time: 37ms
memory: 15516kb

input:

1980
edbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbildxhlisqwpqiedbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbildxhlisqwpqiedbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbildxhlisqwpqiedbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbildxhlisqwpqiedbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbildxhlisqwpqiedbuixxfmwxjkkcptoxilrbdrlglisbsxmhzbbil...

output:

eunvchqtasbkkrmicjtbvajodreneednwkjcbuizjsxuasovdvkhkzxuasmwmawzbkxxyerqjkjpvxlvfuoibnoihiriqhhtlrandiwifdzdhxiexahdqwzqgbectuibdonjmsvmwlqdfxgamvujqdydgghbrwqclwsjmiikupfdlvhxsholathtogdsvzykegywvbehweahtlbxiuzcoqvzixjwoznhpdyxvvfhygguxxymrdqrxkesgtwpvtftqdnzuarjsiuoxegiklwctpegxdikdvliylzfcdarsczt...

result:

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

Test #211:

score: 10
Accepted
time: 39ms
memory: 14976kb

input:

1925
jzbafnxwqapuzspfouwaisjhslijynyvxvujaucydvouxgnhjokpvpderjepjrskkegozgysjdddmseeokhivucvodvcjoscooeodsfhgiugodurokwsnzjzbafnxwqapuzspfouwaisjhslijynyvxvujaucydvouxgnhjokpvpderjepjrskkegozgysjdddmseeokhivucvodvcjoscooeodsfhgiugodurokwsnzjzbafnxwqapuzspfouwaisjhslijynyvxvujaucydvouxgnhjokpvpderje...

output:

jqgkdlxhcbdjhaxsvfochugidymttfhxoydgjupxhpckainzgkermaioxopskdmfcgdwczmystsyunxynavmizbldclfwbxvmbslcykxgoriafmjmkgqpanlcajhxrglslxncjauzxbsrodwqtgnqnippksbqzxroyrmyswaolnpsejgwznhfgxvwkbjatozbeahiuqxykmdkhgkpsvrccnbflwhliqnjjdouhaoomhrlxiwyjnulfzvyikaulmnsffpybuodjuyiubmsnlbmkbjwfoheaixtbwxrctztmgz...

result:

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

Test #212:

score: 10
Accepted
time: 30ms
memory: 15140kb

input:

1903
bcbxtuagflljbltrrnlabsdtmobrsnckopotkawfjbtrzirnrmfnbmwqycpyutvtonhjpwnnsgwrzcguifdhgmlnayczaibucchwqlnadqdsisligzdsggnitswtdxjbaxstjjpliaenqgjfalorrtnvhufrfyzylrosfexmzeblknvhvkgaxdpxhxollftyfapoukhbyuqoqkkcsexqgjomyhdckjfpojblwbodtfkxagsosoxasafwglorzojwllqmruklvyzjwroxmrwqrfumaypqtdghjzpexgg...

output:

beodkedomissllxrdfrizwbznkipzsfdxszhgwwbntwwocficfieqyzkdrrayjqegypxiaoalpcjowbsjgmqgiolvkplqtcsmcoqhtgwetospcwwwizwvgfcoxjjbrpqbdalerhkqtgfcttbsrptvkanfgkhelcdumtrvjyugjcqytluxzxcofcaeoybmdaoyrrhagquwuqevphfvfhsrbttxltkgicznsspkmbgqpimxqnfjeoiygalbpujelwjdhdowhpqhuwoporuxhktqdjjelkbqtnsliyvdonrcowh...

result:

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

Test #213:

score: 10
Accepted
time: 29ms
memory: 15128kb

input:

1949
ildtfudxsrjagwxtgoswkpmwdefyysyrfjukmlhweqbyztjtpqscfmentqymtwiznxovmlnbslcvvvqeovjicijmhbtomxhlkyqgzdktjkiuildtfudxsrjagwxtgoswkpmwdefyysyrfjukmlhweqbyztjtpqscfmentqymtwiznxovmlnbslcvvvqeovjicijmhbtomxhlkyqgzdktjkiuildtfudxsrjagwxtgoswkpmwdefyysyrfjukmlhweqbyztjtpqscfmentqymtwiznxovmlnbslcvvvq...

output:

itstxdazjxcewggtcwjofndexqrmstufdubxqbznyrovaywpnsdffvsocsmbuobtrphkdsusyfjirvrkavjaatwabjaxxhobmccaivimhqnzsdjahmmdxtnxfvhimwpxkgbxegdsnasszmcgnqksqmuglpggbbrhpdnanqseljwneavtfoqezaqoktloqwkgvyuzrgfyuqbqsjihdhbwuelpgybsivefkelnbyvtyochxambycbsoueritrejhtugyygztfusuxahkhqzementukpvjpdaadhnispltwreer...

result:

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

Test #214:

score: 10
Accepted
time: 38ms
memory: 15468kb

input:

1995
zmetncscfwxjrpevcyssynhspcjtbhcmcnsdvcnhfsqotwluhlzctwgpbwyipufxbhilcczpstzebwqxezglzmrapxgwhdlbtzkgomqbnmtvcagddetpeldtfxcrktidubkknqwmlvkithbawstalsqxdganfnhjrmrrozirstrwwydxezhtihvuprlzufcbbeeeiwwhtyrxjtzmetncscfwxjrpevcyssynhspcjtbhcmcnsdvcnhfsqotwluhlzctwgpbwyipufxbhilcczpstzebwqxezglzmrap...

output:

zkwquizycmvnviykpikisohlseshhuzfgejxswccokthkbmldidfmjbxylrsvrzbnpksfxbtimnuhfvaebgqgvnjseazfvcvthzturorlhgkptozmbaaexunuhbztpnolehbrrfiurvehmwguwdrhuugntosasslmejexmmxaxyevrvduwcozsrgxkosbcjaigjlsddtgvdxirwenmzhrsiofugqyabonypcbhgpluwtjdoxmqamerwlewcqlzbougebgoelkymisnucyiezqsxnjdymkbjlszobtzgqiyeu...

result:

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

Test #215:

score: 10
Accepted
time: 36ms
memory: 15148kb

input:

1941
clyzzqwrgaoyjvwtpcwymecxdgnyonwxmqfotsqszoekqobospzzmzzybgudqqhgnrnrehbmylxbdwihopiftfkdhskvnwhqhrsxojwnkrzeabsprqslsrxeouonhzyhhntcihbltcqqgstyptiiowdeacprrvpwmgtjovjvmqxnyvhsqcxlurxclbbxyultrzxmcvxicapxqfzcgdldpypbcebetvcnyxkisbhqxlfgmzopsawoxvukgrcbqjltgqfajikzfmmimnjjurnzyyqnogjcibamxvlfiil...

output:

cwnmohrmmpvrbaubfxbclqzrwcqsjtsjrubjzodxjxqzyzkuvbbvyydggqllrclhrldqdddadbbslgqplkdfjpvzubctckfsnftfdqrsuhwsuxnnzudkhasembyocwaavwfcfdvgealtunhqmztxdfjkmvfsnuefzfahzwktjxytamxjtoqryebpkrrfmqytfscmcqfollurxhumfwatslnasctcbnohplprhmlnxznzinbafvzywyfmrviptuiyybzeibigrojetkeutlacxtvgfyqlzocdethtyxvctlxq...

result:

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

Test #216:

score: 10
Accepted
time: 41ms
memory: 15100kb

input:

1960
ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

output:

gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

result:

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

Test #217:

score: 10
Accepted
time: 39ms
memory: 14820kb

input:

1905
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...

output:

rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...

result:

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

Test #218:

score: 10
Accepted
time: 36ms
memory: 15056kb

input:

1951
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

output:

iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...

result:

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

Test #219:

score: 10
Accepted
time: 42ms
memory: 15476kb

input:

1997
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

output:

uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

result:

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

Test #220:

score: 10
Accepted
time: 29ms
memory: 15488kb

input:

1975
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

output:

wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

result:

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

Test #221:

score: 10
Accepted
time: 39ms
memory: 15708kb

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

input:

1954
cukfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfhfh...

output:

cfftxqimdoekzejotguftrmmeomptiamtglccxnbgplutudnymahrczptadsojverxshkbvavswejewxxqcoccusuyqsnvekyanybyxwwwovknsocuqxeqhqbztzslbdkjqiqkevtjydrnrepgqwmxxdyxdfimcgfeoaoihpjjbjyqkzlyxtcsloafyhkgwzffsgdkozegegqljtuwnzufbrvhxskqfgjdzyiqazkejoqbqrkolnibesgjnmyklwcxqtigvhsbtlmrdlvbssxpgcnbaefhackdnqlclswbfg...

result:

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

Test #223:

score: 12
Accepted
time: 42ms
memory: 15384kb

input:

2000
imryvligkijncctcobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobfkobf...

output:

ihdvvaplgtpoulhuzikvcaoyhifhpnnnuxfimiakyjymyjohncyqogdgqeuadatgjrcmgffqeafpxxcqzklacvqwjwezzpvzsduzqphglquvxqggymdhqreflyzymmlrwftczfqoiukqopetrcfnlzfkpygkamohylljvqczaccxolwclwrhppmpwllzpyztahjqnimqredggffexhxwpfdhvbxjbdighestbyvnuoalmxedehioobwjtkztyqklqyyoustjaoymbyvkbcyteffrnnhzqefecngqckjtkewm...

result:

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

Test #224:

score: 12
Accepted
time: 36ms
memory: 15008kb

input:

1945
yjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

yyciyyukcbahnxpgznhbehlntzvzwxejuzagvwufututynjnzexdosdlzifsaltoyickeaddmftoupurqrxjypxpxlavczubycbgcqqxvafoofoimtfsdzzctfgtleqbllgzvovxroprgqklxnqccwlrcxsokcryarrpydyttakthucnjnoxqaslmefcodjicwadzxeofgudtjksygowvldqcbyfjjryqmmhdgqqpyjfdpnryjvajjimxkrqaohercaaxowjruwnazjxvbpjtevkxoklfvnlzixzoayemgao...

result:

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

Test #225:

score: 12
Accepted
time: 27ms
memory: 15248kb

input:

1923
qwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorvmqwtiorv...

output:

qrsrxzctlusmkgwsjammcqmaldbjayryjizkothtpnqwnbjpqagnjijjfozyotyemyisdzkrcyyqwnskonphcueeqbztofpytzntqeybmeitfmxusdwxdfpfpottagocunwiwbupjhfiruxhzjtgpavovdsyzvysedupxoxxggoausacjogxammpnjjapqzakwzjzpudegrqvysmleypfgignthqqjigcwlmktwiptbjcgusmnzrlyctcxwqexfgowuvmnkjrasszwojtuzswuczvspxnvcqvmgwixrexrjc...

result:

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

Test #226:

score: 12
Accepted
time: 41ms
memory: 15308kb

input:

1969
xixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixixix...

output:

xfldqdoezslxbzhjcrfavyumxeguhqnqmpyilckdiaessnzjttqlhunoildytvpixckmrvnjfjcykukpheipfkewznowkoknbhtwahpxeskhqiethvvpfplsygwhcbguxicozskazmkbswjmgxnzrzyreturvfvkzupgjcygorylpkdengjpeqjuwhtpihyvlibvqxfynatoqatdwnsmiyljxkofccpheivxuwnhowpmighilltmtskxljczzybphhueutjnwfuxadmczeyrkgznqfpbzacnafzugmivisrx...

result:

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

Test #227:

score: 12
Accepted
time: 31ms
memory: 15012kb

input:

1914
qwnmufabtnomocccrrsqzxrwgfsxtqptchddzeokdzvibxlcmlaecoqxjesnxxzeeslaiuelclfuhiigxmyztrjzmcfjrkhportxxdtrxdbfbycgkjsiastbwcoygnmpsjinvocxvancjedctspgddhvdkkvvdyananwrbmahrzmdfrpupvygleixbsyweecqrtbvlfcjkhyughvteqwfnvokzcmcwzbqwfhqxytqwxbsbctapnjyqvrgcwqsfvdqwnmufabtnomocccrrsqzxrwgfsxtqptchddzeo...

output:

qrqnfxdoncmalkylbmpyrwzgjblrhavqhdsfhpwvxciukprudijkcuhnuefarudrcrhfdbxfezffdoyiqkpsoeveshfeytjotshngknxmovawjbpyssczzfykculvxnwnqfbxwykexonomohltlnvdfdkmmkiptqxbmosjsozkbsoyvzroknfqtvltountllkgvctbhmvqbhmvsphkcysyzgdtisntgwbibxfobqgrhysjvwjxmqeuldyqfjeavzkjfjmhimvxczejfjiknnlgrujwzpyeubvmganywuhumf...

result:

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

Test #228:

score: 12
Accepted
time: 30ms
memory: 15488kb

input:

1960
enofvgtupusktekabhqoybhvsvucmkudnhgklhpmlnqhimtffcloywttklkiiftuvtmepjcxwjhijlklyhoifuzkfjivoenofvgtupusktekabhqoybhvsvucmkudnhgklhpmlnqhimtffcloywttklkiiftuvtmepjcxwjhijlklyhoifuzkfjivoenofvgtupusktekabhqoybhvsvucmkudnhgklhpmlnqhimtffcloywttklkiiftuvtmepjcxwjhijlklyhoifuzkfjivoenofvgtupuskteka...

output:

ezkrvvtxvckaihhzbgmxphetlhpskrghmvdplapvyxwraaubsuphygztrzhmiuzflxiqnnbjcaqtdfuhrlsfnuyfhtgnqvquhphvasdvyhmxzqkpqzbqqkepqwcloeomzaaenbjcuuqmopiezwhcnlqtetuqezusuyxanchzlmnwlcbpeblvqfybvsgyaqxhwujbixcqavpenzmuvnryycwtpdabtihibwigswvwdkiyckcthnsgysxqigcslsjnabqqpfqhwtcdyishsucpwlbbdjavsiekbbjvmwbdmtjp...

result:

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

Test #229:

score: 12
Accepted
time: 24ms
memory: 15288kb

input:

1938
yustkcpaqvzaygkwglcrjheixlybbfcntnetvoxfonxdhavollgvlwksjrfxnmswfjzsuxlmviiaxnjfbwjfkpjcyqogyscfircbskbcvwwslgzbgchzorvzwrmrwdxowggjckagahdmbmqyzqmsdzmzskrizlwdlunyzamhjnewfnswdmiwvnsazhkvfjhpfwheyxtdvbyxlnbntinqhfpjcsudamprolvenqbmypezlibtfczxweukrwisphgptrcwocgplhqfvqnegoiyustkcpaqvzaygkwglcr...

output:

ysuvdbcrnwhjctuzvxkolnohabghiblqavmrxgawvdzmgnclclnblbyjqtglnobpzcwvskyyavpzsesdamsnaayhswhwdsyaylnasptcusvaaprmicpdscawfapvkoqbmypylnpjhhujosoflncrozcckuqmknvtvfhjdmmhfaiuomabsthrsrwjnqydxaytwannokdhvfgnsosvggtjzhxuleedzoqmftvqsovyyopughwtifjeliwihcygennziagfdyxapbrlgkupytjeeoavwyaumwqmyugoqfhgzbie...

result:

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

Test #230:

score: 12
Accepted
time: 27ms
memory: 14868kb

input:

1916
pnxabayqofozddmnnblepkeaqhxpuzknmowdbcefwmxsdohzsjiwlnhfsolfhubbxfpilgwkpjrusfyrxvdeckgkhlfeihbmmsnqxacznjebloxvaxdkfjqxlbpaovweufgkmymbwcfemvnjltzpercvsgouuzjtjksazhcciyycnrnboprxprjdmeiftqkkccoujlekuogybjxgrlqdwttydtggkaxqjfsgrguwnrmruowsttrwcmsqswxpayovahkdozhizdlqrtfafviyxuxgllxwpcirwqcsekv...

output:

pcbhciyvdcnevanosjzadkfbzxzarfpgbmnigotgkaznbouksqzezgqonbnmznfjjohiqppfsorsmudxcvnfdjemrposhdejgulpwgakfheykpelcfhcvahdwuqywaygfcdzafjrrlvkseeeezshhoprcgknmvkwyfyxmmjeocnlgdtlryoxurawmeyxaudwaejevipthhhoaubijhmdlzegpxzfbpfqwvlznyhnobdgysliblxkgeyigjzitkhdgnsvcmpkburhuuhzdrodyrjbkahzkloxldnbgatrjrao...

result:

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

Test #231:

score: 12
Accepted
time: 33ms
memory: 15516kb

input:

1964
llmrgjwoldyydwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwcwc...

output:

loukfkyqajqdukrlrzxakeceybmepbzemxiqbflpcmeudofqcqgzajvzkfoiqzqccjxvhtamdypwmkhfpebctqhacgovajivcrnhzwxmaoczfxrpmyfyqppsgbpjgmdbqokfjotblzlbzponnkwlhmlkzjeblkqjtprlholrmfhtcccmrgncqqhjkjepoviatepvckluynbxnmkklphykedpmkmyywhrraatvglgygemmwccvgnjarcxrcovkrarqprfsfdgooitrkddjwxdupxuvlkcnsvmukgbsfncbkcn...

result:

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

Test #232:

score: 12
Accepted
time: 36ms
memory: 15044kb

input:

1942
shxhcdgsglgnnbgypfiazskywnhnleykfigyifrawnrahbvhhppdbdljzshsettsephpgbhmifrrpppsuxmfudwxmoqfakiwfockzgdkodkhulpnsnpgijrsmlzqroyifweproqsamjqgclpbyeesazkrhrszletngzzuwtpbszqvnxpqqhujkepdkevtghvdsbozmpzgltobjcfryucruzibienwifoxrvhxvnvcocxhuvwbmymnngtltbaopdrnbexcwobodifniyrvpvxnnszhgmevhpjheplypf...

output:

smzbzbqgrjjszlvmvojfkkvalmtyolbtgiscarbbzsbhpzcmrxaokkihihgxqyxhacmuzetlzicmoxuzqedhatusbcetielsogpzlswvdlcjjqdoqdtrgzrwuaqyzhpwezcixeqxrdoyshtopxknortcorxnysluglmcjlhvrfetjlcbsbnvgbethouvvvoqupzkmwhogpkthrdbjppvkeplnrsccjighrlytaehrmrwisczqytigmwlkjfwmibbidziawpyucobyvrplxkngwyenuwybxzwirhvapwnwytu...

result:

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

Test #233:

score: 12
Accepted
time: 38ms
memory: 15380kb

input:

1988
ywzcrguxewlkmgfyyikjpixavfmjujlunujhfdlbfgymhavlkryjmpfglinpqghdacwkomknovihxdympbdbkznlzemypgjqywzcrguxewlkmgfyyikjpixavfmjujlunujhfdlbfgymhavlkryjmpfglinpqghdacwkomknovihxdympbdbkznlzemypgjqywzcrguxewlkmgfyyikjpixavfmjujlunujhfdlbfgymhavlkryjmpfglinpqghdacwkomknovihxdympbdbkznlzemypgjqywzcrgu...

output:

yvpozxodqgyjqtasbwlsautiestgqjvgstznpkiobdmatqwukmqtqqgenevlbjfdvslmzfegyaskcazcefxzsbtutbgmfwyfaoknpwjunpazlellpbuynhgzepxyzgnerhypeurpuupibezrzikzqwjzwaahwfxwvlpstkimrknhtuyqwpllkbpvabbxnqwsptxpvgiewtaqoljdwksmvzrhqduamtwrbgymhjegujlzryqhdhpwiazagwrsatuwiinddzsfhgcrmrtbdqeleiackareepoundneibcofmve...

result:

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

Test #234:

score: 12
Accepted
time: 36ms
memory: 15264kb

input:

1933
gkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbidmgkkzbid...

output:

glztfiikconeefsflpohwygvhvpgavdtuatxdtzikkvphuathehfnnkkiaiamjrzbgpmkxrpwrtaeqhzxlajucvrmvxzzwxjmhwxtyocfkzxgsvmehfvwlsefvtegbivdjlbgctsnexxcgkzrlklmznrnowrqhaxbtmakhcljwflyectamovggohjxvrakhayjqvimdtlagzwgtoetmczfgoopotumlizilzllmypwfkxifmtmncdxbjgzvnheejedpaeklgrnjbhwnbjmmnvpuqocymbnkokfabkugskhpk...

result:

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

Test #235:

score: 12
Accepted
time: 30ms
memory: 14980kb

input:

1911
blwfhzceqljpyhpmtencwhezdqnsfhreujxftnpabfbjutpkyqzkkqiffmdxkipockpxurltvqhmtkeikedolbanafnxacwljkzewlolqsmsgggrqlxmcjwprusrrsbagjoecfrmfmmcwdpcbmmeoqqjztxgrzcrwmndxbpzvczemztnkoxuxcmoourjgzkpjhiwkszdegjzumobytxjbwisdqlwqfrpscyfibuzrwdmeboefbeduncblzgyfgfvhmpjcxhmqehsahfsxjrjrravbvuknqmmojtelfz...

output:

bylqxfvhfnlutzoiimnizkjorcxqrpgkmttkcznactlvpwriorzbmdfhvnrjujuaaoyfgdjfztrzdnufcoxwxujeioccblspahkkvqsepnyytdfwskhgmdwjgstegnqijbxxhwxirepnienzbxoznkgpeuiemftgyunkadqvpjvccdaokurqqamuyzjmvlerozlcamxjisodrkansvzywlbysiovgvuhzxdqgeomzzcfmhgrouumpfgfhpcbbigcakjrudnwbjuffzucujufcopmhmtllkmrypstivbwfzgk...

result:

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

Test #236:

score: 12
Accepted
time: 32ms
memory: 15464kb

input:

1957
bhsffrulneechcqyqywazcmyrcjygglytnpmcseiacaovrfmvlthdgibbhxkibwamifjzzpptxxnoczhmotizewpdnmvynqanzaxnrrgcvdyqnbscyymvlainadeoggaqbaqbgkzlyunripuvwfmduqeohuwzpgceemetscxbzygfnzdluiglhhwlfpznbqliipyqhaxpfaoksbkwstvbhfjaqzmaoadhpjsxaakwgdamonyydwmjntfvjfpvdabttdwcpegbjgemynymhugnlpsgsjnkmakgtxdcxx...

output:

bunehfuqpyadhzqneqgnopmnnhthvkxsfkvakjbsufarvfkgllkpqfjhlvypctrnzzowpsdyhnqqunyvtjrfmbwdolaninxfvbjsuxrblywmmfevbhyrxorhmhuhcgtsmcxysbgcayiafrolzyynxzwghfamvatnqcrxkomwdotwvfmxesuxjaruwgkuefvaawmvsotbmddeusqqxkuivzkwggppkmjplitegfxvawwwjkmoitpmfsdntdxlqgtpntborvyeszgiunqlxflpquitkvbsrpeatsfxjfoiqxro...

result:

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

Test #237:

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

input:

1902
ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...

output:

tabgizpcmokqfoomwvxitgvzbvlxqafrtdvghhakglawovorvhtpukyninpmlfaancrvpjooeljezsvplnxzxqvrqoovwfndfrwnjubhhrytbxweoitdmpasbkhwdssqqylwvpenhbjddklfnkwbpnfddrkbtuanepdphzijiwqgtglkrzfkjieznlbskwfmbtbewfjshhyixryqcsjbaupisozvecfgbujboqapfqvpkbkezxphfburymwsqvvvbaumieaproigiznzqeuduogamrasdtzkfogbjopdxapr...

result:

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

Test #238:

score: 12
Accepted
time: 36ms
memory: 15148kb

input:

1948
ifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxouifxou...

output:

itgxfetuxxwocurnmlehhmfesyuqiviyftmgmckjzbvgzijkjndizhmdyacbezvlnzitxhhpkmehtgnhnbuhiwdhmiflmsizvwoufurcgnfzajrzfqnixrhrwrkwnsxvpgbadrmxqkmyftsmixdfbdzyjocsmvvpsbzlehxxsyflbessqjqxviwucztluxvozmskmkgknlclyqqysbyyjbztigxihupodrcsbtzswqpswfepftpdrrkqtybveemuaevijkwsnomcphelwyrlngiaemdjsnpdsatprblbdqqq...

result:

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

Test #239:

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

input:

1926
vccpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqvxcpsqv...

output:

vhihyayxyposwajnbjexuodwqmstqdxhjnpzvwyutjxauztfjyhlsepvoacevbenaznvwofydbcarntwyindqxfsbeblanwfgddozwfkwrewlzvcduojmldnrgpntpgvihwrqduvtaovkjlylwkccmtflibaqmdymmhwdcjlhpcbepjjxazgslkjxdbovztqvidpiiblfykofyeiegsdhypumvhngqgfflzqrcoiwuztpgqxfaffwgukmeikhxmhvqsrcmmdyvbgkrwtdmsqloswcavtutmahdrbitfonapz...

result:

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

Test #240:

score: 12
Accepted
time: 33ms
memory: 15348kb

input:

1972
xumxuigkuxbcnhgbdlmjhgxhwcayepkaxofooivjmuksrwrxsowfczdzwcottkeumswxjcrxvcdvqywdxrfurdtbmpuselliovlxskupzbfegmzuigygohrqnstklnjyolrzieapaznkioqqbhbhwfonpemfnayqkycffvuomohzhmicwsrwpqbtywhvguyfjiwslmjetccjxqsfmtspwmyjbvzvaafmqzdufeddrkjwbyxxjucsohdrhsknalxztdlyadhelhmfpfqswcgdatawmgnjkwebjcpodjo...

output:

xpzdfbckwapsqiiwhydtzhgsahcsfstworustjmmulundpvkhzjzqwjnavabbwrrfweesyqalgspygtfhckpozmijycrizmezgkvhlgbxdxnzhtdrjozkwmtmwiadajijcslnrojeusvxusavilhfjyymovaxvpbgtrcsirjhcficqgzzwjlaqrglqtqpkgubpmufrgvnfwsoaobfvypoecisoiknwltaohbfbijmplrjfprmndfrxlzndjpusbhyacgwkmashtepljyenobahobzjawjqfjbylmrxqwhynr...

result:

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

Test #241:

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

input:

1916
lsmgtjvhvpiixxggjecwyezelijayelgyxjeccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...

output:

lryruhasehcgvxtgzywehktoxtvdxpglypwfmcldeohcddnmudxytattjzvcluxtvbroopwjihdqaodaxvbtvivkvilajktfvjpbaetjdjksakfwllhqhzsvxwzadmwnggllmsxakiwoihnkfzgydxpcipdwaditlikxxsgesdcnixtebswgxtmzguwokmjhyioinkmnrybdwaguwfsaoxruwscthombzzyxsqnbemeqoxmwacnlubadrvvazucbfztfalfgaolwkwdwblrdlimktivzyvxuopevwnbwgypv...

result:

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

Test #242:

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

input:

1995
fgosjckhofdzeihoxwlknxvcfgfdgbbfwlyehsnecbralviqxvmnipwlinfrmnzfnpwmnzuczspaxvtkbaapqfyenhonhdqwpvrltebtnerkvvypgcqrgwirupfqfzknizjhbytcsavhrksmhofrqoqglslylebxgtymbsyhsnbvlwvgctqwypvemmgmqgkfczavvmwpxbzhkbvbqukbjatcnrstuzgodoqndhshtqjeilzkgqemhlusujjktckgjpvmjbgmhivaokgrdaxcflxpxvzjrqfufoyjpyo...

output:

ftgzkybattdjkpqntmcimghojnclqkrpnfulafbanfqxkheabnxmvvkxplqyvbplowcnruasuvycwlmmiphwbvbjveobalyeuedxqwsrsgprxyahdqslakqlnuorcyjwkhgibadzxybqnhuxopjrkntnkxfiqpvoawilhjsqrzmbrzhjrwrfthcnkqeougibshuavvxljxdxqlfwqihooxwwvdklxgrlfoabynushguhisumbpmsxytiihkbonomvwlhowljyxmtmcuvfkbjksdrtwteovyucvibtziveqwt...

result:

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

Test #243:

score: 12
Accepted
time: 31ms
memory: 14948kb

input:

1907
oxndkghoeywkpzflbbowuslvsblatfyntbrtsfsexermjtxlfkysealqnaducodhvuaqyyhugjhzwjhygobbwkhrngcopugbrnahkikryrsqykopjkmcwsthnanxvrjdsqzgnkgofsnkokrescfahgujdcnovihjysibfzftvrateypzytfwnhjfajvtynzupyxtvkqyadbijcuxwbnlouenuhbbyimtogagbfcmowxxjsxbfymwyjvwojphvgprmuurmwgjhhuoocbspbbthozewazyvcbfwflrpca...

output:

oxbiurxlwuiniddbdxpvvshbhuebqaukeiyqccslfntskkgiwgkgabqzfsaffxczhorbmgbqenhvbtwuurbodzmcjoqzbavcdozfryuiidxbxjlhhawpmxbbcafnkabieokwtktcovoqeedzflyadtvhtlhtkleuolgdwkwsxtfgeuimksbbmnynlirbcxqvlgjmilleykbgtfzjqwgezaukcsjxbpkhbandifahzhrlwkwnqpzlqqvoespidzkjghfhlwtqgnmpfouunhtutcvcomekkfnnlyybhzstlzzv...

result:

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

Test #244:

score: 12
Accepted
time: 38ms
memory: 15364kb

input:

1986
fnbtrumnltjxntbmazvbjbtjznnueykcsafjfvyteucvfdvqdjgxwnocoevlyxorjdxumcjcunpmwdxcvtisfaxcfaubzkntvllkcbtcvyqxnwpanylwhkevaeiahktkxbiwklfjhihrhhcydkngairtfhmkcvbinxqnffyphgbgdjbydfvyhlhngsoewoesncjjsfrstweutkerhbfusjarnnsdadavcquefxajesuhwcbymcwnbxwjuotdmcdpbnwlyupcvqutbqosepexhlcqmsdfqlpqeqfsfhp...

output:

fpuntwnzpnkzxufnhmjsbbgaewuquinncfknqhhjlruorgxbqwwfudokhcfhroowbumhdlmcfxakccfguhymfuhhvpxbqjsqqzenabszxbjcfnwnacgehqxwcwclelcfgrxyuxcfardnkecqqfcwodfgrjxzghfznzirpprvqipxgbpbzvrvqfwfzwefzuvlcrxkxrzfcjuptcrdmnctfwmfqftseywrnudjdaghuseiwcuglrzifevsjxozqmxdehkhzaczrbhhjpuuooyfhcigqbpvkeanxdoqiyiuxqkm...

result:

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

Test #245:

score: 12
Accepted
time: 37ms
memory: 15296kb

input:

1964
pbugtbawdjqcuzkucjrjwrbiyahvlmbhnjvosxfxfytsydkovbwihjbdjcbmxdsmeclmhtnbyanjtayydzqpqqzvanzfhxcntnpycwvfkohrmhyquuzbpzisnnpepzxsipxvaqyncbnyzlddhhzolgunnmgyxglpifcvsshloprdzjtiywzcaxphpwdhyzfzaynykojkzbosqipkzzrwbdrkfvaxzdqwyyqcokucfsrckxgfulowvjmlbiqulmkobkpuvtxpfzqxyiekuihwsngdtowsflcgdskbncd...

output:

pulldhewtkfzeijqfnapxesizyznzkatfkyligmweoxinfykjlnqprvdwhudurvgoatbvcwohzslqblrnyuaxpdjmphtfkdcpoivwkxznugverzebaanqxtqraanuagrmqgxymfvezcbkhyswubdbmgtaokwepqhmozfoxalficzdnbwmhzuccofbkrpfuqlldexgtqjzmwzwqhlxxlizbjvqabqvsahzzdrctnofognbrpcnknriclucwzziayambstxzhihqdclcgiasphykcsltlgkrurasxdtxqixaml...

result:

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

Test #246:

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

input:

1909
mwuranqgkeaewwjeybpoftevqmcrarjclgcnjxprghcjhpgapsrqivoxprclorcunaagcwurqmmmwuranqgkeaewwjeybpoftevqmcrarjclgcnjxprghcjhpgapsrqivoxprclorcunaagcwurqmmmwuranqgkeaewwjeybpoftevqmcrarjclgcnjxprghcjhpgapsrqivoxprclorcunaagcwurqmmmwuranqgkeaewwjeybpoftevqmcrarjclgcnjxprghcjhpgapsrqivoxprclorcunaagcw...

output:

mzbhhtxtwiscanwpqynqwnjypiueyhewgjcykvgwaadazeahpvaklphbgaorxurvuvecyvyppbhlifackehnxnwbswclyofbhsqvjtyaegbtvrdhavaebiwhjxlqcegprsvuqngvpvkgicxnxjbzsagerroqoxubchvdafvdwmsogxfdlcbzcrhpckjzkimeuxkyovqodywtsdwcgztiyexxsogddjojrnudtngcpthxfootcvpwuspikbewrgyhfertcoaoqvwgsragphorebdfilimkmqjkkcoemwfcwju...

result:

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

Test #247:

score: 12
Accepted
time: 39ms
memory: 14812kb

input:

1909
piafcywmcybkcctyhdsvkyljupcpuabsqednffhbomvremqffbcwfetzvvbdkyffqizldvdafooorphwbbufrgchmnksdqrkvzljussdskwrridexrwzgxymqjiryieashjoqdqyakkpfksgbzttkxseicogmkplqwvregdtelceqmjiifgzpeuzijskeasetcfglpwhlfbwosnrpmwvnmcmfvnunviiqxncbqrkhlklfbwqmdmtxaboexbcddfhffakxyjfienefsejznvwkcxftsrbkdjejfxcikf...

output:

pcdaehccdaaasbiyksdmaysbgamskikmazoxqfofauaafdevcaerkmcipajhglkxatnhnajzvgfrlwlqfatzzarllhwfsoaaftuaspavysqjuidjhzcbqgsthxbxcavxfhhizqzcjbfnszzorrokqrpktwpecrjetaseaapotfnidxanalkauacpamaaalarticuafferazaaaaqdzfkbagkljuhjkraqsraqlmhlaatfaatfeaqzubjamzelxuhrezfefibbignfaeswatftafaaayjarayajasvvnuwzzi...

result:

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

Test #248:

score: 12
Accepted
time: 37ms
memory: 15240kb

input:

1955
nubrnwjpijzmzjxgjgsuxvvaavzuryajifvrmmyweeiqelovetwajzdnxryahwbmerhvpqwqmplvncezohwyvciipzchulvwqpxqkcafrpdhyvasndryeekafpoojiblmewvflkyatpgcudlorlfzdpjxornxwadhglrgsiokfatfnqthnqwisomvmrmpegjjbybixdxiqgjextyuikpbskehbsngbwuykeixudyvsvweqkauqzmjpamdssvdoijfetsmggdvjvfbcavsuolqwinzqpofuwauumztfq...

output:

nwoveerskuzgmvwbgzuhtdcaahxixipjevramlnavgvgphmqglwodjylcmtlblyebvbbmlythoqzkuctngzfqlounlduowlaooztwdfpuzwehvgscrbssbgogsppspkagzinznvlssipmqilmppdniwcbwobrwnoiluneomovvpzvuqsuccolywvwwmywoiaglxmptawedakvwcoipkmtdqdxpvsusvaijkgsdfesdwiniqsqzankfisimojrugmviqzgwdhejojlvppxyuvgzcbxhjhjsevwjbdxdkqdpve...

result:

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

Test #249:

score: 12
Accepted
time: 34ms
memory: 15108kb

input:

1933
mwcfttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt...

output:

mzaluxdvwvmctlhtfqzzjayxaidpzzvekxolkqzccxycstvrbmrwtwyybkgzynacegakdvqiuklaehobmempcxzfuetyidwibbuqczfqufapfyatufafgaepivawflyoblaphuwfjutypsvwnbwerdxlpmlgvtitwayqhaipkywtjazrlzjsunitkcbqxelgqoxgwayelrgyefhmbrzklameqkpuywiajhrjuexxbsndbvnjoehymanzbkrzpewlgtedgrsdvpbvurcfgqjgphvgcuixwkaaefaxinnhcjep...

result:

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

Test #250:

score: 12
Accepted
time: 38ms
memory: 15112kb

input:

1946
pcratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwratqwrat...

output:

prohaplyziyjucbeddqvotzbguemndbkdabdnmmxhrdnqzllaexogxnxybdqisyiacsfxvtfszsogpiqnldlfenfhwzoaatuboblgkpzctpqymonjddertglwouqvtvzwlamkzcahmxcmylweyxhvhrfbbpdthhuxujtwcnallwcsysgubrudytdlegufbvjquckkmfoavzknovyymwpfpylvmaubhcndcahovfdpapsppvccuqrbunxsugqtqifoxzazcsbcugpqjzqqshudrcbkgrjjcezyvfthytqttky...

result:

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

Test #251:

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

input:

1924
losceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosceloscelosce...

output:

ldacidawateieeotabqlhusaijlexazrxtaammjmdedvppuphvblzamglfaeabukiyvrywmitxepsrclyaecgoaqjaagwhnxchjnaxzcxahokfpahicuxlfdjcjuyseiqyauhuhasiaaaayhhyurujbceiaaahabkolmnxnoavytsaespaopufasaatukhimzsiaurircxqzijtijgqxvpaessezaaabrcrowyyqavalobaaqkhbabkstzyjmaxtggtoqodqwcmlansvkmxhvaltrriagayuabljamtzpmzg...

result:

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

Test #252:

score: 12
Accepted
time: 34ms
memory: 14916kb

input:

1902
?
xftagkapqzpkrcycbrcmionwpwhqwbvxsiluzotauabfipfhdjzuwjwquvcbqzjayegbkqtcfsbhrclvfugkysunxurcyalgeoqtlxxnvpcjayhgfgclcfepixzwezguzuodvtbyjqpciagesyjssgvuzaycehthefuprevlmfwqeqewzzcolroeaohnwmkzybxsukswjvpoawogyhbmgdsfrseruuoveeticwmxczmpeoakjvhwbxcdehceodayasntqkjojdkkbjdhjjdzfgqofouwsuseufcwh...

output:

axkoggiqdwmvgulkiychkmkuojiiqxawganyvclenmxjukdlyujcydydwdzrpxnqumffkjjfqqypwmslqyqffckiakkjzmoifivihuufzjmtheatjrylgvobkifhjrsflwgfxgqcavbbjrsvldhngwqgccccemhltcrnzbxgwrqufrjgeiyongyblyszwzdgafrbjlpujaiqsovmomgnhobkxuwbyhlzfcuscmkpdstxkrhaxjxvakkvthxwztpeahrtepynqwamthkskxqmeyzxwombblbvudfkrxmhzwie...

result:

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

Test #253:

score: 12
Accepted
time: 36ms
memory: 15412kb

input:

1949
oojoifrmavlwlwfzggkytdupwexhwzqkwmezfmcheqlforgurfctgiboqbxizvuvvnhbaoadpcpqhakpbmrcepfrmavlwlwfzggkytdupwexhwzqkwmezfmcheqlforgurfctgiboqbxizvuvvnhbaoadpcpqhakpbmrcepfrmavlwlwfzggkytdupwexhwzqkwmezfmcheqlforgurfctgiboqbxizvuvvnhbaoadpcpqhakpbmrcepfrmavlwlwfzggkytdupwexhwzqkwmezfmcheqlforgurfct...

output:

ojivrxmypjcaztfzbjcsuzemngvxhfscmsqegrxpuedyumsksdzyckeravtvxlspmcccabszuoespugkqngdfgyyvyaesmeammpqeglroekukcqwopvjvbukoxrnekincqnxxrgkmlnuagveudptzocpnejteqkpxmgbwfrecnrymmxwcvdhykpnbrotawbxiqwswzqdnxlawzvlkxfvkueiuwqayazbnukxcmcolcninchhvfsutszpcdnyrhidazffeptfacmbacngsrljezhtdgaxhtcqxeaqfndohlan...

result:

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

Test #254:

score: 12
Accepted
time: 33ms
memory: 15416kb

input:

1995
vfixyzkcbspzkzrhkazjcapcdoawulpvikdbewxvftgejajufwyhterggkdjmydfbgkadrpzxhyyhjtcvaafngcysrefklcojmrpmscpkmgwvmatxpitaiowijkhdpxuzoyvwrnosfmrijhtgglqnwsmgpxlxteseenkjbosyqnbcmxyzmfhikduvepusltqvtudcwjzgnsrgvoledzvercmujlvjuvfixyzkcbspzkzrhkazjcapcdoawulpvikdbewxvftgejajufwyhterggkdjmydfbgkadrpzx...

output:

vfbdqawanmuraddhgghvlgtaslopbcxgvezrpyfmqhpyvihqtidpzzaiaryosnqatltvoczdmasypmnoxnbasveuvxakzzbxlhffauynvnizthpnhhgjxyccrhdbothcnhgkdvfgtpkcjtjgmpqkfnzzzwhalfufzievblclsqpcixkiosfpyetrhkcfleacxmgnjekratxhcldbfxsixrkkswpanbwgtohoaoxvxemewlufncqfaqmlqosxfuudxaljsgqrspremhrdqwrqywdclgovfbgftgnjlhravnke...

result:

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

Test #255:

score: 12
Accepted
time: 41ms
memory: 15284kb

input:

1940
zhkqmaphepaagdqnvgdridddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

output:

zkhkrbflmsenaaufajabklayvvpjwafarhkgsmzeusxfjopiarooysmzdabhfnrxhppkkjduxapvkwpqwhtxafqmzitzwguirjwamyuhsuajjpkaafaagxwyaweaudeanaaqjzamvzaxtmymjlkobcabktiktxwonducvajdbqgpviaukkqnagsdsazgiadzsapcrpqyfaavkczfoaelaubdezsxatbhabicxxrelyogjjzbvylkamabuqyzraqawsityodzqkrodzgqcbvndqjbqxmpqquqmteraefxrjew...

result:

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

Test #256:

score: 12
Accepted
time: 31ms
memory: 15188kb

input:

1956
dvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvdvd...

output:

dmwxtjsgoeaaxfctfjmyuemwvnerkgnjaziqbkbffllqgtyfanwxjnqikunkocbqzuymilpbfnwvogeuscumteiygsjlesgcwudieezqadnvnlnzzdfwjgjkelhdqexppyqegwwujjxrdmlikvswfxtcjihkixkkcsbfyznubdvjslesjvgbdnbvuaiyuizlikjrqlfyhadouqkpsxxccwlnwnxgjpjjrfxfrpufqkwheqltqtyaptehfjahzecqcwpxmdxfdqcveeiceecygbpxwuerqcfqurbmnkhxzfgv...

result:

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

Test #257:

score: 12
Accepted
time: 38ms
memory: 15208kb

input:

1957
dxpwkruxzbkxyssduwygymqvswcpsewocshohwowzylrcynyedcumtlwwddvzmltxxbzgfaetxursdqbfjgmcgubnsoltepgaujqolvnwtvvkchwsjvhayctbizxqjsxxdewomrvtdoctfhdgxuqhetdupazzztvjrkvbrkaovedonpftoteruzmlksgfjhqobsbgempfwwklqvxcthshkymduemiicmijeuzqzwrvxupspccuqdlcmpjekwivamjsyozwitiqjghvtsolaforgblwpdjtbfgbtrzre...

output:

dghjejeoekhnlczfzjcztnpxpiutedabbdeediefmwtroriztdzbveikhnqwccrijandyajgdbqhqicduiyexkoqexssqdxlexmeikgtochekwlgrblsrlaxfbtnjgrgsaiblffxddrfpgeywtkqivoyskjxlslvxibjikbtxlgopyaypcvadhyhlacdazpihbcatkjhofsykchlqxdmmlwqbahbkuulmozwtnxkuyatdyzbjhhupgmmvjqtgxuevxafwjxltuwelyhyovsgeykezjnffmkljiqhzdxbvfqw...

result:

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

Test #258:

score: 12
Accepted
time: 14ms
memory: 13348kb

input:

1902
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

byxjavanbvalaaaazqdamxaqafpaagtaggqaxaiedazzmjankcacvaantdalpoanbaacsaaazaajavhaknhiaaenavaouiauaatawawabhkaaaaagaaaaovadiaalyandacaqulaaaiaadxaacbafaaaqaaagaaaaavayftaalaarpoaaxaaagdfcaaaqvaoacaolxcsaaaatasdhaasqaaaaaltazeaaoavjaaapaajaiaaakyaiaazaabtakdvaooaaaagaaaaamhuaaeibyjauysfmaachraaziaaazic...

result:

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

Test #259:

score: 12
Accepted
time: 38ms
memory: 15120kb

input:

1948
ldnnhwsidapefkhuhmewbxjxqphviopwrcpfhenvlifpgnojwkvdtwoiqqywqzzooziujhbnkeiavgycmirvaoxjxqphviopwrcpfhenvlifpgnojwkvdtwoiqqywqzzooziujhbnkeiavgycmirvaoxjxqphviopwrcpfhenvlifpgnojwkvdtwoiqqywqzzooziujhbnkeiavgycmirvaoxjxqphviopwrcpfhenvlifpgnojwkvdtwoiqqywqzzooziujhbnkeiavgycmirvaoxjxqphviopwrcp...

output:

lpvaatajhyhchrtalztorqhpkapnaaiajtlhukbmqxnpeohnwfpczbzkrixqqftlqtzkedsofzegawvnvwihzqwmvjelldcqhobfkphbmubcpjidxdaepsyojrcmymjescxcjhvvsrlvipyltcimimrqcnkdpfqqkldvoyjqahnadedppappnccickykwrbqmbmwvggetswlerluaoindtrabxiokycqymwjkojdbryxosmpxnmgpiyjxanovmrzugbzsantdwvbfdsrbznrjxsqretolbvickhbypiiogun...

result:

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

Test #260:

score: 12
Accepted
time: 38ms
memory: 14984kb

input:

1926
vmmtcnzdxzoxibygxcgrtxqaxqrrnbfdydzyvadejxwbjqwwtokzhcedslcszmeghkegxpuchbzxfoxzpzuokbnywtjbrcetmeezuxxzccelwnvrjuathqpverlwzayogldcjvctvzmvmmtcnzdxzoxibygxcgrtxqaxqrrnbfdydzyvadejxwbjqwwtokzhcedslcszmeghkegxpuchbzxfoxzpzuokbnywtjbrcetmeezuxxzccelwnvrjuathqpverlwzayogldcjvctvzmvmmtcnzdxzoxibygx...

output:

vsaduaaalsjamuaayaeasagrahriueiktcsyzdukbqfgxllzpuvqsfzxpblexknktesnqrsqusbtkknetyoljlhkqvenlmryickehwpghrvsoecrchpuhmpfdxtvrpcexkkfcsmselgtaqspdklwanrymdhhqmeebvtpjbenkywjuecgaodidtnwamlfnhbvduepcfacdmcjamfpofyxlfckgcqjgnmmmzfanswkyiukexupsmkajupfgyxnohriknmekkcycygyxlyvrfkwrtryjtekirdjmhgedqkpiglq...

result:

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

Test #261:

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

input:

1904
olsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjecooepxojelbxhrhsqdbnjxlumuviolsoobfhvznmrmwvjec...

output:

ojcigzrzragaypwacuaozrfzmiyiwaoksbadwmxlupwkqutvjxtejuhbfdfqhtzovunfpktahgbljzdtlrbzquycdaxvnytmenitkkrhhojnyhjgjpgkcqjxxmbujqobssnwnxbcmlltxwehdojenmxqdnoybsgexxdklwfkihekawrjfoubqpbkpqsshbnjiizacbveqllbwexehtmadpqrtxsvkfstppirhfbbydvquszvlmgvfemzgpnwtqweycimthygjjsiiyqmziwlixhuirliiikrjqznoqtwkloo...

result:

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

Test #262:

score: 12
Accepted
time: 39ms
memory: 15412kb

input:

1996
imivjhycajlpahjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...

output:

itvxaaauaxhaafuvjpokcvqlvujogaanicjuiaaabrswcybmyxczaazdyaarqajvqxrawtolafhiqfcpyjktsympanmvtdaamwfaejapasangcfgrnfafqauprjcaagfcosknahafhpslwdabragwfaazvafayabgyesmaprhyxnagjfhhkycacrbfavsaaeaiaaakauljkvlyaynynqrgvcagnemarjiwjtdnraqwjhgpttkspjkrxmzkglsgjmpwjzjzhyszfyqommplkfugkcfjdhgxcbgahgfdtwbvsc...

result:

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

Test #263:

score: 12
Accepted
time: 39ms
memory: 15512kb

input:

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

output:

ajtcvasmaktvgfvnfvvuuchrmderwavspykzlngvcfvfljynpubkpldoaazrexsmoswhhthxejppvrxdokwwkdsmbancfddlwcwkrztvyywgpefczbvdcwjubkdwjkbxwhztfoxykvggwlwkhcayxozzfcojzmpaqelcwrffsrsidzrmezcyagsuagvtulvjletwykdvgjifjkrohjntyydmxqnizwvzdhoyylanhlpqtzioozmhsoddmgngvtehwxqrcolgpsyuprjapjfrydhueyhiczzuphswtxtkeggb...

result:

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

Test #264:

score: 12
Accepted
time: 38ms
memory: 14996kb

input:

1919
asiksvnxtyibdotbxhkzrfelgayzuiavzjybcxporzbwsjzizkuhyvenhiaggunvegtakuhirqtyuzgjkvbljjppbiqlthljzpknpaslkdjtpcptljzouihbgnprynvuxojtqverenjyvjphhzcwhqvdddhyddvohvfvolfazpojaxgwbqaxntnjhvqiavzjybcxporzbwsjzizkuhyvenhiaggunvegtakuhirqtyuzgjkvbljjppbiqlthljzpknpaslkdjtpcptljzouihbgnprynvuxojtqvere...

output:

afnafmadesaafaaaacaoapjaafaagazaeyakaawaajzcbwouskgdayvqwspgcyddkibvikwdmglxnjbjvjtvntlhmcrlxrdjgupqhraogzdmrxbplsqylsgonifunzhitgnbgtaxpbhdhjdgofbnvywnjwamvofectgqbpofwqecufqwvhepzkhmihyazdgyvwfxxhxmyhfdlfvunovapsbtjzsucghddmlhykggepnqgypzarlbuzhzphfynrugnpxrkukusjdhxcdcdvtnqqzfntkvsrxsgxmhfaieduci...

result:

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

Test #265:

score: 12
Accepted
time: 27ms
memory: 13800kb

input:

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

output:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaualawaaaaaaaaaaaawaaaaaaaaaaaaalaaaaaaawaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalaaaaaaaaaaaaaaaaaaaaaaaaaaacvaaaaaaaaaaaamaaaaqaaaaaaaaagaaaaaaaaaaaaadaahaaaeaaaaaaaaaaaabaaaaaaaaaaaaaaauaaaaaaaaaaaaaaaaaaaaaaaaaomaaaaaaaaaaaaaaaaataaaaaaaaiaaaaaaaaaaaaa...

result:

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

Test #266:

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

input:

1943
?
kxdkgbbhuaufcgohunnzflrrbseaweclhgycxpbtngyxqouoovtzvbprxgxgctgepfaeihffapxhptpovhyxrsebqdzuqdoezrsdirjnxiwszneflpgaqigzgthlaauuattftfpsubctrjhqmiixjzzuxiedjasyfelwdnopxrdnrxrnnadtngyxqouoovtzvbprxgxgctgepfaeihffapxhptpovhyxrsebqdzuqdoezrsdirjnxiwszneflpgaqigzgthlaauuattftfpsubctrjhqmiixjzzux...

output:

akeazaaaawrgmkaaagfoauaizaljxmmaaquaakagaaaatatipaaaaqfspafcaaasdaaaaxrmaqivaouaazaavaaaatamvlanhplaafpjafafaaauanaxnyavaagaiakkhgeibnaagchxawnlxhivhxvpkfpxjsvydtwstztxgpsrzajesibqrsalrfpruhwnzgwcamiebempnwtnyshsopauhwkfytrypedopqxbhbgejwtwvscroqkhkrxnrzobpmmbehnmzatceqwxnpnhkrjtzzokydkgbrxfhnppmyvr...

result:

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

Test #267:

score: 12
Accepted
time: 37ms
memory: 15244kb

input:

1950
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...

output:

yyyaayyyyayyyayyyyyyyyyyyyyyaayyyyyyyyyayyyayyyyyayyyyaayyyayayayyyyyyaaayyayyyyyyayyayyyayayyyyyyyyyyyyyyyayayyyyyyyyyyyyyyyyayyyyyyayyyyyaayyyyyyyyyyyaayayyyyyayyayyyyyyayayyyyayayyyyyyyyyyayyayayyyyyyayyyyyyayyyaayyyyayyyyyayyyayyyyyyyyyyyyayyyyayyyyyyyyyayyyyayyyyyyyyyyayayyyyyyayyyyyyyyyyyayaya...

result:

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

Test #268:

score: 12
Accepted
time: 32ms
memory: 14612kb

input:

1996
ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...

output:

oooaaoooooooooooooooooooooaooaooooooooooooaoaoooooooooooaooooooaoooooooaooooooooooooooooooooooooooaooooaoooaoaoaoaaoooooooooooooooooaaaoooaooooooaaooaoooooooooaaaoooooooooooooooooooooooaaoooooooooooaooooaaaoooooaoooaooooooaoaooooaoooooooooooaoooooooooooaaoaooaoaooaaoooaoaoaoooooooooooaooooooooooooaa...

result:

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

Test #269:

score: 12
Accepted
time: 30ms
memory: 14884kb

input:

1941
ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...

output:

oaooaoooooooooooooooooooooooooooooaooooooooooooooooooooooooooooooooooaoooooaoooooooooooooooooooooooooooooooaoooooooooooooooooooooooooooooooooooaooaooooooooooooaooooooooooooooooooooooooooooooooooooooooooooaooaaoooaooooaoooooooooaoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...

result:

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

Test #270:

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

input:

1987
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...

output:

haahaahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhahhhhhhhhhhhahhhhhahhhhqhhhahhahhhhhhhhhhhhaahahhhahhhhhhhhahhhhahhhhhahhahhhhhhhhhhhahhhhhhhhhahhhhhhhhhhahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhahhhhhhhhhhhhhhhhhhhhhhhahhhhhhhhahhhhhhhhhhhhhhhhhhaahhahhhhhhahhhhhhhhhhhhhhhhhhhhhhhhahhhhhhhhhhhhh...

result:

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

Test #271:

score: 12
Accepted
time: 29ms
memory: 14960kb

input:

1965
fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...

output:

fffffffffffffffffffffffffffaffffffffffffffffaafffffffafffffffffffffffffffffaafffffffffafaffffffffffffffafffffffffffffffffffffffffffafffffffffaffffffffffffffffffafffffffffffffaffffffffffffffffffffffffffffffffffafffffaffffffffffffffffaffffffffffffffffffffffffffffafffaffaaffffffffffffffffffffffffffffff...

result:

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

Test #272:

score: 12
Accepted
time: 39ms
memory: 15528kb

input:

2000
ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

output:

dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...

result:

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

Test #273:

score: 12
Accepted
time: 31ms
memory: 15736kb

input:

2000
lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...

output:

lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllltlllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...

result:

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

Test #274:

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

input:

2000
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

output:

wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

result:

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

Test #275:

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

input:

2000
ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

output:

gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg...

result:

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

Test #276:

score: 12
Accepted
time: 39ms
memory: 15448kb

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