QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#865324#7723. Hash Serverucup-team4744#AC ✓63ms3712kbC++233.5kb2025-01-21 16:44:322025-01-21 16:44:33

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 21ms
memory: 3584kb

input:

1
wilyevxwyy
mhalfeorgs
cqughqgpqc
tltjmezsbc
krxuswtyns
cjhobrpjby
rfobsokzqk
rxivruvmug
yjwgcpdkkm
krcgyxisnc
ctaygtllcc
apsgadlodm
wpafrzgojg
xqxcblqhxy
zocnhhbdra
cgqnjlnbom
funchzabqi
kdsgcvodwo
pifyubdihe
iixhdvthna
psowgztpas
slmrohytoa
qnqszuivay
jzbapkxtnm
ytrojfrozq
ixoiheqhlk
okrijhtwwu
i...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
psowgztpas
wilyeyqvpy
qnqszuivay
wojgkkwvss
wkvwufxlyu
wilyhnsvks
yjwgcpdkkm
wilyexqtrg
iixhdvthna
wilyfaygsk
wilyezeuge
mlbxvatrlm
zocnhhbdra
xkqnrucjms
wilyreabhg
sghmltwocy
wilyeydmtq
cqughqgpqc
wjjeecxsvq
lzeuglazie
wilyfaimuk
wrfayabkji
xexjnlfxqk
wilygdzfsq
wilyfcfpwe
sueoggmbps
rfobsokzq...

output:

wilyevxwyy
gcfffvmuie
dhfvcyssbs
nxntwfpqfo
lzdblqdots
xlzrxeinse
wkdrewenay
itozirrmua
iohqiqvmxk
vuhqetqnlc
wloyxacojc
kodqlkfprk
mbzqvxzrka
bbdacpktmy
dlnsfkmwae
thftejfyxs
wofczlqcfo
nglvqrrfxs
rjzxebjkae
iyvhnosomy
nyyatfstka
gkicvajyrk
mgznsysejc
foyhnarklc
miekdghqxk
gmrvppoxua
wilyevxwyy
gcf...

result:

ok 100 lines

Test #2:

score: 100
Accepted
time: 14ms
memory: 3584kb

input:

1
mmqyaxqkrv
msojcnbwxb
nttviflhav
pqhisaspdd
sicxfyxvdz
vvgmyaazdj
skpcypdkkn
esmylkdkbt
xkkkniqjrn
wmhnekqjfv
byegkqdisr
nuaqfzdieb
kyravjawdf
jgrdxaudnd
hkrhfywgvp
fkrkwdhgcp
dgrotobbid
ayrsyfdsmf
ymrxkcpfov
fmeapxqins
qllzanfvct
tkotgskwky
ojmjinfmmh
bievfxprgu
ggscyxpkul
dfagnnetbg
sddfxsjqbf
z...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
zvfqevzagf
zuaqbsqlxl
pqhisaspdd
zmcukqxuct
afqjuekvsj
skpcypdkkn
xkkkniqjrn
qllzanfvct
hlbawymypb
uputqmakcv
tozfyfdwlt
njidtpjext
vvgmyaazdj
xfgukjfhcn
rqejbvjrhd
tkotgskwky
bievfxprgu
sddfxsjqbf
nljioizgsp
vkixijxnmj
nhphtfctvf
dmdzuyybod
mmqyaxqkrv
nuaqfzdieb
mxcbutuzsv
alcauktpnp
huzqkjpmk...

output:

jmbofxzrbe
nujgisbzwd
xtmlblrkrj
ltomppcyts
cfxbkoufrf
aoilrvwyei
yqedatllin
hjrimolkog
cjgczxjeat
tkysttetjy
zbusszevpq
cnnhdwnbat
tylgxmebld
rgtatequfy
uavxkvdwyt
yighoklain
asqggwlaed
olasnaaqlk
onzxebwutp
ordapmpoxl
ppxnjaclus
zcyepvbshv
dbvukzichf
zxbcahmtlq
itfekgedcw
xyzjkaiuiw
xyrqvmaiyo
ogk...

result:

ok 100 lines

Test #3:

score: 100
Accepted
time: 19ms
memory: 3584kb

input:

1
kgxyeekvyk
gaquqmvwie
exeyawmeem
gwoijhhtni
lyszptiqis
udsxugouqq
ptkveajlbk
psncnblpfg
keeufhrijy
zclwgtaqpm
iniirjnnvw
mkuflfeadc
swnrclptiw
qtjyxgrjdw
dxmvopprjk
giwhcmkrzm
ybmhmxclac
fbiwtvqwlg
bimaxicagy
dcvxxhkeeo
uegkorpuzg
jldkejbuim
wxmwshucgg
ipiwenssso
smripaxrtk
apmhxviziu
gxtuexapms
y...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
vkhmnrcrgc
vdewvicvck
wyuvvvyovm
yasdyooqos
crijfupoxc
giwhcmkrzm
ejiqwigpmi
mkuflfeadc
tehfcnhkny
swnrclptiw
ntbxrhznou
wmavirowfw
cjtghgyuew
rvahfuqcda
divwpcsifm
lihaelazli
ayqsfbpieq
bimaxicagy
ulwdhgejyc
xkrrewtptm
tjklhijwba
ssfhtqpxpw
znjmrrcmdy
apjglhuzog
xgayrhbkry
udsxugouqq
kgxyeekvy...

output:

gtrvtpfone
fibjanxlme
emzsrfjsok
fpqwhigztq
vymzmyygzm
cszseiwzje
awxofyfdkm
rlqipfazle
nhlmpzpudg
nacnkdfvsg
tqhnvfoidq
spzhlltzfm
mdpesxyxls
doqfwnptzi
vdjyswjbxg
qjaqevctws
fjqzjoasgw
avtmtzalby
sprypzcoug
wzucrwstqe
yeipcueeji
gbktsscnno
jzzjlokcdo
ilvgsnvvzu
qwjeiccblo
rtxmteiwma
ampmzvctbi
fyz...

result:

ok 100 lines

Test #4:

score: 100
Accepted
time: 35ms
memory: 3584kb

input:

1
rqahjffwjm
empolfwklg
uqlnuuvvyy
oboflyeeyo
ktxpkpvlkc
ktnrqvvpho
agvgktdebc
njxpnecwwq
ezhiqmfawc
baylurjpzm
bowyztqqgu
gpcwftabsa
aoiiwlciqw
hjekooljme
maomlpgyvk
oomonnpcso
oyyqujjvdq
nfytgcrccq
jjmvwtkxpo
rqaqwfcuyo
rqbalijdpo
rqbkcoywim
rqbtvyxzdi
rqcdrmgmac
rqcnpcyiyu
rqcxowzpzk
rqdhqukhby
b...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
ckzfdpvmxo
fikaxuadvw
rqcdrmgmac
pbwrgjbsdq
rqahjnocae
pbwjouhtwo
emsmyuaoma
mzfudivaus
dleecpuegq
rqahlqlcvy
agvgktdebc
rqdhqukhby
rqahmvcapw
rqahkxests
wtxekfyoac
iemcgoxbjw
slxqgawtou
qhwjseowje
ezhiqmfawc
kkoprsfmni
goksnorzxw
rqbtvyxzdi
rqbkcoywim
rqcxowzpzk
uzpqwnvles
oyoistcpew
hikuilgjf...

output:

dahgltboke
afyyfmxfje
zlafkmuqii
yszzfglozy
gwhrzxftqs
lehcgaxani
afezctvuny
nkvwaatjre
apefpoxqxg
jfqbmjrfjg
jmnufzylzg
kfjioyijas
bjrdutyqtc
kjujdzpzns
eqnbpdpwtw
cxagcxwudm
gfalhrbxsm
lagizznnxo
jkrngotvjq
fkbnhtddoi
emhiwzzxye
ywmniqsyvo
rypgczjohe
skribswvhc
qmjlhpjyly
metnrfanzu
iqwpsvehbu
kiw...

result:

ok 100 lines

Test #5:

score: 100
Accepted
time: 4ms
memory: 3584kb

input:

1
qidjkbthsm
qedwmmkopu
qadmenfply
pwcemeekgy
przzjlgzau
pnwwwinhtm
tjkyrstkxw
ygvmiavjmk
faiygzzdkc
npzioqesqy
ybsrexmdgy
kjoydvvjgc
vbnwthzrgc
mlpuweiote
qmjdsquafs
hdtxithzrs
klwbslynde
akpqvurooc
daaqstndym
nasfdasoga
leeslutjuk
ksoxkjvujq
lrwtytztzs
occiczfiqq
rxfnwzmmik
xdglguvfba
dufaglfmum
i...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
hzipmewmno
ymvwdikqqi
pbytjzosfw
mnodvkpgis
sxzoclucbk
bqhydgzgvs
tjugbjpxyc
qidjkbthsm
nvebdgraho
npzioqesqy
mohljamqky
kcfbrbmwck
cpleghtvnm
oicldsmhxa
juwdigmuqo
qzctktqnfa
oroigfuwcw
mygspokbsk
eqfibetehu
xdglguvfba
xszxrqqojm
iykdbuxjpy
nctmemfwhs
wrgpyimeya
xzakmkvvla
duefsnssoa
bkfcifhex...

output:

gocztenybg
wvzoptyqhk
aididxdtvc
vmyjcqkchw
hlinlwonwy
byhvncfems
itwhxttnpm
dqdniepwze
iqubagevpo
keyjivuyxm
cqqjwzdgvs
tsjzondgtu
tscmzkgyog
hzokzrnrpm
qzrtmftlrc
nffrslkrdc
ttivddqdts
pcrzbotmoc
tfifvawnce
lzgallmadu
dchpptuabg
yuqqgqzafs
impgvuvbgk
nodrsfrnam
tuusuzfjue
zdqvawzvsw
bcklsezfyo
vnx...

result:

ok 100 lines

Test #6:

score: 100
Accepted
time: 57ms
memory: 3584kb

input:

1
zqowuaxdsa
guwmtijjua
iapjlkmshq
dhtmwhhdgw
sqiwzysqrs
cajnwkvgoe
loeslpylkg
dltasfjhgc
bjfvnvdrfo
fgrcylhpiq
peawybvbpi
fbjdmssbzq
qrczaepioo
tiajmljnos
hphcevfssm
hmxddidxzw
tawmhyedkw
qffdsrgizm
yzxdjnkors
ztndpocapu
gsoreelxve
untllyavie
pfbmmuutcu
qsmugutrfa
zcbitxxpow
ohteaegogi
kjofznunfk
d...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
eqwlocmxpu
kdwhbkuofi
plkxafblkm
dmqcatxavk
tawmhyedkw
kjofznunfk
mnbjnuugri
gnoyfwxesu
dawcknpspe
hmxddidxzw
loeslpylkg
zcbitxxpow
ohteaegogi
bjfvnvdrfo
sejyrcsbmy
ugtvscthek
ztndpocapu
ojkccovowu
cdpdvkdsme
gsoreelxve
jubrwbzamy
pylfdpcohq
bllsjvudky
guwmtijjua
wdvlsmlaki
zrpswteats
eakrkvxno...

output:

avgsvlkjys
msodtxtozw
ukulkodunw
xyjyssafek
ntfofpbciw
srryerkphy
rmwbpsewxi
oopvuwoqss
vhdtudmkoa
gpwhsujwak
rjtyafwfdq
mbdifpgwlg
ckzestqdkm
vofgefldlw
vukfdqzbrk
mdnhzabdby
utqpuohxki
yhomapifoe
egetcabblg
vracypmvxc
tficdxfgju
dirsrswxps
tvssaxpmok
fwktfnlkfq
wwozrfpbdm
xhoxcbdqmy
voqeaicjgy
urt...

result:

ok 100 lines

Test #7:

score: 100
Accepted
time: 52ms
memory: 3584kb

input:

1
hksjtoukww
gijdeuabfm
lypavftvym
yhkcqybvbw
riuirwxypq
rctsycignu
zxlwigznjm
yzrczlflfs
eridtbmelo
qykypdttba
juznnscdac
jgzwosliiu
dbiixhpzqk
fgfdbtzkno
nzisgzwroi
dgtcmzhuss
zckhtsguas
bmiibetpmi
kkndjkuhbo
evdfcwwlpc
nbazqflscy
gclthooemk
jzjmcydwrm
yrueciguse
yfrvfswyom
ipclneaigk
duaaypqxty
m...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
dgtcmzhuss
datpeyhhye
ctavvdgqga
smpsxrtnmc
bawosuyzwo
ncfetgorfy
yhkcqybvbw
zwyibydoqa
ubgkapktqe
eridtbmelo
prmcxtbazs
cntbyvnlxi
oxhgtoiyae
nbazqflscy
hdrwwmfqbq
oyvlamkyjw
ufztybgnlo
kgmnausyra
ndxmsdccdg
xfkmtucojq
bmiibetpmi
bujubxcvuw
nylxeqabea
gclthooemk
juznnscdac
nzisgzwroi
vvuajluss...

output:

hyryohwwuq
yehfkkieqo
lkhdxdpupy
lepcyozgfa
kbxtdwbiaw
scwosljueu
eltdfrbtjw
dzzuxttfwu
ykqarwgspw
xbxviikinq
bynfyvztfe
sdxhnldpcg
kojuydvgrs
ligdgcalme
fpdvczzpra
lwxirbycis
fjrhrbcvju
fvhtlwodve
vhgikfzmbi
kcjyvwueia
ulpkumkgnm
levfgirmkm
ohhcgirase
ragdsjudvu
nlpmtkqmho
oqwfqqkqbq
rhqjcskzdy
qzj...

result:

ok 100 lines

Test #8:

score: 100
Accepted
time: 36ms
memory: 3584kb

input:

1
rkcjcrfilo
mdsnrmhvua
oxwbyglbko
zsmzwzozje
snrhnrtppw
tjiywiyyeq
ksfoplfgsa
hvvbgjiwuo
iuwvblqete
npkwasbenw
wfleecpweq
iqxtlrifrm
fgjvkidakq
qrlpnakiru
zrhrkubhha
gfybdpbwei
kjisrlmbjs
mbnsajfwxe
limzeijiss
ehumzfiwcq
zeuhqswllu
cbbtdfucna
mwqvksbvgi
frnondtprs
glrykovlve
pfdzczhjqs
fxxqqjdjei
u...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
glrykovlve
stndzfriok
tpzxscqlma
etzqtuktla
zrhrkubhha
feflademvq
ssbyymqdkc
civkcietlw
mqqgsirsfq
qrlpnakiru
zeuhqswllu
htlptwbmbi
oxwbyglbko
iehqqkfgds
pkoyomxzak
bknfjrwszk
hdkexyihqs
iuwvblqete
kwmegkquhc
tjiywiyyeq
agunhyrvgu
pzsbtifrqi
limzeijiss
fgjvkidakq
wmypppvmpm
odibkjqmwk
pszrjpton...

output:

lukecwtkzy
pssgzmiwes
iezdfllena
jkpgupcnia
nnzjuutfks
lrkvbpdsoa
pglkqswmeq
uvcvmfezae
vilpenfxjy
xuimbyeiyk
qkrwsajpik
cscxlygdoy
gcnvrvdnck
gdxvbuqgga
ztgzrnawry
dfirtyssdg
ltzkgycguy
osnxztxvce
pjdqlyjvoy
kwxkewumfg
atsvhjflas
ywqgdpnfci
uzbxevxjje
bxqxtzwbtk
rqzmfdehvm
orhgwysinm
cvbknjrrrg
oxm...

result:

ok 100 lines

Test #9:

score: 100
Accepted
time: 51ms
memory: 3584kb

input:

1
wqubbiivzy
qyqkllygqo
wtruvfthoy
obygeptyvc
qxjsnqagja
fgafwgmees
dcunortuys
enpbxalqku
axdsaikike
sfmjyppwww
empdrwchww
lslzgbvpke
xeinxfwcta
abdleunfxw
fhesyaifom
mwmlcxhbqw
wvantljufa
jcvavqqjey
xtvyjnauqq
blujyelsjy
ocejbcqybg
inxykcymzw
kvbdzfilfu
uxnzujusta
mvklvqjjno
moqoczajpk
udggqjtsyo
f...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
dpwuoihldc
zqrplbxqus
gozlwggcni
mwmlcxhbqw
moqoczajpk
jcvavqqjey
zkahsdndwc
kuigscoozm
wvantljufa
divtwjypeq
pmbhfbgigi
svbpeqmmhi
iznuweebyu
empdrwchww
jxtlyqyhdm
qvkfjorwku
xtvyjnauqq
uxgyviuqls
kwwtovelhi
ocejbcqybg
xlxdddjjvi
mfuqzntkvw
mvklvqjjno
bdsgqrdvwy
mabimsijsy
dvlhhrxlse
byxnrylmr...

output:

tdvmlpdtjs
vjhpkjczia
upywmgpydq
ttzaybciqq
apbykrynws
ppzqipjhoc
sruqgfqgqc
jrgaildjpg
yxskarphpm
cskqrajxnm
ejlzdrqevc
xcdwtugdgi
myreqqtylo
ohfrdxioxu
uqjblbofdi
umiwhtyade
zklkagnmsc
khfzgxctmq
spsuhsavik
oqflwgfnzi
afazbrivle
rmucasodje
cjqgwlgrtc
vcbbaacntw
dtmbpyesuy
ciadgwewxg
penkjaoiba
fod...

result:

ok 100 lines

Test #10:

score: 100
Accepted
time: 44ms
memory: 3584kb

input:

1
vqsjowbzom
iceqchwwkg
gqizhijblm
rhfldxmose
oatzsbhkei
wxaqxttnvy
ztsvkwakrs
sfbqwogbzm
yysvxyszlu
uaskpbndcq
dlaivwomya
bdqqsjxcxy
kfckrwoonw
ketscrlxgc
vpsfvgtzre
slxzvqmvvc
atladuqlrw
umfgttevhm
zqgtrmdypy
eofhtmoeug
kflqfhbmuo
mqliyfpxpk
lvelyifleu
htqzfowbos
alwwtznute
pxwepogqse
cdowshapls
p...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
lzlgmhcxpw
pbrjkdxaem
alwwtznute
zqgtrmdypy
theijqhusc
wxaqxttnvy
yspbbppubo
wrudklslje
fsvameqoqu
mqliyfpxpk
btqroqomks
htqzfowbos
pxwepogqse
umfgttevhm
atladuqlrw
ajxklesjqo
ebshnuxops
eofhtmoeug
slubzlilfo
dlaivwomya
vpsfvgtzre
zrtxurrvuo
oatzsbhkei
bgsixaqfdw
lskpdytrrg
nrbehvfdvk
jnchyhoms...

output:

jaxqouilio
wogksgbabu
gzlyvwjctw
azwndzkuwy
ogsdmegicm
dbhymdubac
aesqtoessi
glnzlozddu
etsqkkzwjg
zlgjnsfuru
iigpzklqei
ukujumpfha
acyblfjshi
ppudlcasjs
waczfjdvwe
vwufrbqhha
btmmvlibyu
qevpklhnoe
dmxxecfnno
jfljdixrco
zhzhlawxuc
ihursafybo
mhunxkuncu
ngushtyeoa
cxhnhmkofm
pevendvgww
ycnyonejum
ivv...

result:

ok 100 lines

Test #11:

score: 100
Accepted
time: 39ms
memory: 3584kb

input:

1
emdcislbvo
ctlwuhcqps
gfdtkizwxm
oveseycusw
cpotealkbw
vohwhpzqym
dgzaskhftu
ebhkuegadq
gvcgoahkzc
lojnzylmge
shdhdysdyw
azjmabbmde
uusvntksuc
igsskvpvcg
swcszzaiua
aowxhdqhvk
flbfgjlsgk
hkpqxqmoba
gnoggysvfg
bpifxdnzdo
qepsnyagny
wfzohbvyas
ttltcpazpw
itahalplhk
perearnhbi
nckkdgumxq
cmfziflcwi
z...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
jpooyqrddi
tcxychbrca
xvzzugitmo
vohwhpzqym
rzeoexjtug
ongxgshfvq
ufyneyfqbo
ewbubuhvgw
tzrccjqpge
vbbfrrwfoo
xdrumbbyjq
qepsnyagny
wfzohbvyas
ntollyrvii
yuliugjozg
cpotealkbw
pmsriwmdfy
vmrqayrokg
itahalplhk
jrkmacoajo
unqqmpkrum
saevkwjryy
aezijvhjzi
ytigoldaei
perearnhbi
vvhojikteo
igsskvpvc...

output:

blohpsamtw
qncpslhlqa
oroycundii
rgnzizkfbu
ebktsufinu
krdhowsuim
iogzxdinro
vfounqkake
fwmfbytwvm
ngzuilpxju
gnhseavvvq
ohkvastjpw
pejqdfvyca
ewwqdxttkq
dwgssbqzgs
rghybymyeo
sbpmbdhqow
mhjssnldba
uizmiqnszs
tjmzggthtk
fsgdozagwe
hvvtxqgapg
qtdudkzswc
aplifinkzw
smigbqxvcy
nkilmwdaxe
yfcofsknwk
gcv...

result:

ok 100 lines

Test #12:

score: 100
Accepted
time: 51ms
memory: 3584kb

input:

1
bfkpieupwa
spuhwqricy
jexxxlwcoc
yyvlkqizdm
nxmwkedxxc
cayewbgyuy
cwrzqwrfea
wpcvdficws
iirbtetjac
mditmuyxoe
hzdwkbyumy
vwckkzszwk
jtwobfrcmo
dnrpdgwpxi
imvsoileci
yriyikitbo
abfglmpiva
mqkqxpezis
kkzdssdqqq
azipsuehjk
rqmytekavm
zexqjjlwgg
xqoqpjjtps
mzlzledsxw
tfpqwttues
qizqyefxkg
ejpzpjocom
z...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
fidwyebnne
azipsuehjk
yyvlkqizdm
mepmfxoiic
iwhftgshui
vlnkswmfhe
kkzdssdqqq
veomdkmnuw
yriyikitbo
bsklnhvaiq
cngnyupdge
gtpupkzaba
laaujhdlvg
sgcgrufqjo
spuhwqricy
hzdwkbyumy
ajbhsddlss
duytvauccu
zzcjjyvqnk
vafwbsdszi
dpiponngyg
ejpzpjocom
qrmdpmnmfg
mditmuyxoe
wpcvdficws
sftefdsdkg
xqoqpjjtp...

output:

pfwgophdbs
jikowwjihm
vubhgrltje
hnsrndvsac
hehldvdmoe
irfmucmhwo
gvzkcbloxc
qgabuhbulk
gfwcjgvqsg
gfuiunttaw
flitcuunwo
ttgwqplsok
xolamrlusk
uvbjmrxeko
oieaguihem
vuigxfihcu
qloinlbmhk
auqyzktzoc
yuwujmwkxg
njfoevnpus
bbxrhaaaga
mwleaejege
eprkmydlom
nosjglevzm
wfkepxcdoi
gxxdjkomla
ayvpgzimgw
miw...

result:

ok 100 lines

Test #13:

score: 100
Accepted
time: 41ms
memory: 3584kb

input:

1
pocsutunzm
xkkhszsmyg
failemznjk
mjxddhppgy
tncjpjosqw
ajyeoswxne
gxdjduwgsw
dxvrqnogqq
gqfsgxwnsu
pahlazvbzi
dcavytjxkg
wvlzaeozzo
ghestzcyks
qoiuqoyfto
ujoykpgkaa
rsxecablec
iqhlqvjjfu
tbtvdbeefc
xbigmrlwca
qpcdmigale
yhyuinsndg
mssrjkgabs
hvjuoxungo
jpydzckaru
scjtnyaojk
hgsphkschk
dcyrfokqlu
j...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
lbkxrbcztg
jpydzckaru
jkjzzkmlau
jgqvpzhlbq
xkkhszsmyg
tqhctnncqi
lurygnejlq
failemznjk
iqhlqvjjfu
axkmxldjco
wmanxrwvqg
wejrvkmbvu
gxdjduwgsw
ghlwzpyulm
xbigmrlwca
votswotjea
ggdutmzspw
lcgbjpfegs
pujypoagvc
udwisyxzja
ubmktdnedk
znimlvhhsw
wvlzaeozzo
qglhvhkbde
xqvprlmkca
xijdszgodm
wkosdazcz...

output:

tqmhdlhabw
lwbxenarhk
xjlxyrtkkk
yvbavnfpdi
ksxuyrdkdu
vyjklirekc
qitkldmiuo
sjdzsqlqca
usdlxtknts
jyweehlolc
aobsgnyoci
bdbptnktka
rkrpyjwkoa
yrsvpdrgte
esxgiylbry
zlylrzjsxs
dxxmotwfey
umprqtskdw
pizaygjnny
dhznumccbm
ttpkytcfwq
hawkfyjaow
htxdbovyba
jmueofzfku
jbkltgkqjg
uefkczhkco
enlawlfnyq
xpp...

result:

ok 100 lines

Test #14:

score: 100
Accepted
time: 52ms
memory: 3584kb

input:

1
pyjapiokkh
uransxlzad
awlfeufwvt
iopayywdxd
rtmbbliueh
clcfmfrtrf
dodopnpclt
vneuzmoyyz
rvmttfnzxz
snbkwsmfit
xnwujzjpfh
gxywhagdnp
mjckmvqpjo
cditedolyd
lhcapgiaca
nuigudxfvf
jrblswidds
yxhpljosbn
hnarxrqyoq
ssprcpyisp
ymxxdruqmf
hhhssodhrd
tbtdveyihj
hwgelqfsix
zquupvzlvt
ullahwfotx
sgcvnqybdj
w...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
cptjflwvyx
adrbszsybd
fhuohbsrhp
awawomhlhd
sgcvnqybdj
jvevzojdzj
knihlitwxb
pxafbulugl
lhcapgiaca
tmrlcnvivr
hvvixqbufh
kdudvhfgrj
gyuzcxhxzp
ewrvipyysh
ssprcpyisp
kwfsbqqmsf
ukiqurrwpx
rvmttfnzxz
rtmbbliueh
dodopnpclt
snbkwsmfit
ipwpfynkup
jlkrjbffzj
ftftsljepl
yjffyarnnp
rylsvgxrud
tbtdveyih...

output:

mvicojohql
hvytkxaqhi
qysiaearqo
dwvudvutgm
dkkewcfbos
etihltbtii
hmbdmqsmob
kadupbkqhx
yqdvcbjlkf
lkfuguogah
bbnrmrklcn
zvccsornut
fomeshcjwh
ypinlgqfcg
vmmtswampn
vswkezkxba
qzzrwtwjxi
jmpahyiias
tuhuqczocq
ewbbncmavd
bkmwgksfrf
ezehpekeff
wlbttvdkxw
rsqhezbdir
hsvfjaawov
lznxighbyc
uysrjmyedj
kyk...

result:

ok 100 lines

Test #15:

score: 100
Accepted
time: 59ms
memory: 3584kb

input:

1
bojjscjjge
xrtoeidska
xqcjrhopks
bjjwfaqaig
ixpztnhzcq
uguuitqltw
ugvjjarlvo
hthftbdcdu
pzsywdsgew
taeosikxyu
quqbhphdlo
jjbkpygwre
jygjiuhkrg
gvxocdfelu
shixydcqpu
sgomwtzvdg
gtogybwsae
juigcathgo
biwkiqpowk
nhwbpfufye
snrrmffrpi
rfwfjarsfq
jkjrfsehvc
vbgbcfrmjs
aeliypffxm
ytzouutokk
qvwsqwilwm
d...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
rfwfjarsfq
biwkiqpowk
xrtoeidska
lewemqqcly
qufzoskvrs
tkjftqdjig
ytzouutokk
fjsmufmnec
zmckuweapo
xqcjrhopks
taeosikxyu
qezodzlaqe
zswhrfefte
evatpefeng
aozjqhiltk
quqbhphdlo
hthftbdcdu
fvieetitxy
ieoimdcxgi
rvysbjlggi
wthkknjdee
clxfhuecnq
gvxocdfelu
mkixrdwmmy
nrdrxdyssm
mnimrnulgq
bzeyrpwto...

output:

fjtwpkampa
vgvvpashty
jurinqqtgw
jynfugbkns
jkcciyqlvu
vrvppwikiq
xlbnvbabgy
vwgvurwbty
zrxvugouyy
bkkbaajenc
dtkhzzheuc
wxrzrtvhew
qcbsemmviy
rqqlemakks
gphrkuorxk
dcmkjqpxfs
oigqmacfxy
yypzhkvjcw
ngqqsqgtje
vpphboswsc
swccvdgcoq
ksgpjmwsyk
gurrzrzktq
nycokqqpta
vxjvjawcdi
nnnxxlbeuy
mwfgaudixk
ppc...

result:

ok 100 lines

Test #16:

score: 100
Accepted
time: 54ms
memory: 3584kb

input:

1
axglcybafm
amiqzhatoy
myxstsimtg
mizqmfyfsk
yqokcvvymk
xvpzrobrbg
dubyqwralq
woicvamzxg
ffyxpjoyoi
dvaizxwwkw
shmlarktmw
wrjdrqepui
vaozhuyxsg
vlfxzjftlo
cdfhdovnlk
pcnaulufru
ijdeyabwes
hxbtofskye
nsisrcrxye
dhxqfazoqi
tvoghrjmoa
ymehkvetyo
rfttomlkvy
yciqsrdlge
tbwyxjgvdg
cekscovone
zjxwihvrjy
a...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
fuovyistey
hxbtofskye
uncrihqfsi
jtcgzouwui
cdquxcpqqq
wrjdrqepui
fixzwsywoa
oavguqqqim
jzvmwegvaa
pwhfbuicou
stvpbbbvgg
kraxkhyydq
shmlarktmw
ylsnirzalo
xutamiuvdu
jgzqjbfrbe
nlqcpcdcou
myhlugvowe
sstqurlghy
pnaeucollo
ncvntvpnxm
iidkxvkdpi
dhxqfazoqi
ylhttebvyy
esldobsaxq
mnztdjmhvw
mgtblyhku...

output:

yrfkerjvie
ahvoxabfuy
urjntvolkw
mtzbrevkem
btrbyavdgw
brgpuqufee
fhqfyvmvdy
ttpinnxrse
rmskrkmsku
aztpswxyio
efdvvhgyyi
dddzkxnqmi
epnderrizy
vrbybuybpc
grsfscvjyo
vrzcxbufxg
bjvkrvalew
rfdjfqmwuq
tkqigwjtis
widhpwcvnq
lxirfsfugc
lkoqisfskg
oxmuprcdqm
arfwjnqbyy
kxfrozowzy
hjstdrjoek
hngwtoxwos
fpa...

result:

ok 100 lines

Test #17:

score: 100
Accepted
time: 63ms
memory: 3584kb

input:

1
cldnxrzntv
ctxgqosodh
fbhrqksmur
jhiuxfzjtz
pmaqlanfbf
xpjefuhyqj
spvpzmujut
scgntgxolp
awkhfajbsj
sygwitcxpb
uhwhelfcbr
ezenscppef
bcxbhmbowd
wfrlchhgcj
ntmridqnmn
bsitzbdlap
mcftaztysp
sxdonzocon
wdcgmalwoj
ywywcubgpr
owlxpfferl
yjqsizlhzd
bkngkctqmt
xzbnspeegh
obhoikqxft
xrfifpfvld
auuvkcwywl
k...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
hephvecdxp
owlxpfferl
auuvkcwywl
pxevvgkrta
uufcvxtbjn
jbwnfjvwkb
yhtfpcwuwf
ammqaxjpod
kdwhwkibwr
lcmunjqacj
ccamdlccyf
jhiuxfzjtz
fbhrqksmur
osjeumehdx
xztckycbnl
crslsjmlij
pjfdlnvvol
jilsnuedsp
bcxbhmbowd
izhffrilsf
wfrlchhgcj
scgntgxolp
ywywcubgpr
bkngkctqmt
uhwhelfcbr
shsluhbjjd
lmodhwpxh...

output:

eombtumazs
ioxunwbnli
egbxgujrvp
pjdoyjlorh
chmvhpchrj
zvucrepwmx
enzogxotxu
eakniqniew
rgprnimzhf
zeginzjdmg
vetgvxawpf
lazclpwkri
leushgrqnx
omaeaenvez
iqmivskefl
lijucepphm
grlpisevoi
arjgvxvqvm
jqfqvzkcau
spancwaaqk
ubpbkquvvu
pospexcrly
ychjnlmwzq
fvykfqqhbj
eevgvjxbah
hvauiuxlyq
tphwrxleta
eoc...

result:

ok 100 lines

Test #18:

score: 100
Accepted
time: 35ms
memory: 3584kb

input:

1
tuilecsjvx
ztaeptxmcx
oacanpjxbv
kpnyxpdqsr
pnjzttetbl
ctqdcbnecd
txlddmmgcl
hiswlgomcx
icfrbkzbxh
wdxmzzsblp
xnukgytktv
mfwiwiddvz
kpgeklyopp
clrtslfpdf
vjrfcanlkt
pjemnfwdmf
kkfqabfrhp
gmupomqawx
dqxleobggd
xgnfqsydur
jqhyvkitvj
exsqscyfxz
jcthgwsocn
wfjwnrrsiz
sfqkmnvsrj
xdmxdlepbr
kyzimjshnx
r...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
oacanpjxbv
ymqdfuudhp
skblqjmmfd
npzzzrhjfj
dqxleobggd
mstcttqmol
kpgeklyopp
pjemnfwdmf
jmbpxdzzfh
drpuymdzgd
sqescrlaid
dvwecvsgut
ztaeptxmcx
dydlexnxtf
qwjdhlvwsx
hiswlgomcx
heekkyntpf
cblghowsmj
schzjarbrr
pzdwanifyf
dnxtjibuox
otcnqkmwsx
hurnfopsjp
nndldymxmh
dlnxxtsjnd
pnjzttetbl
syhtxbcpu...

output:

erjjnmprgn
qtaxkchgjp
ztapctjtcr
qofpocsmve
qnpakahvbw
xgyuiwjigh
bjuvioezlq
mbskhbpotb
szfwqjusle
lyqxfaoksx
qipzafrvox
npmvzzrbtt
afaafqnmjf
lcqzncqcol
xvtuogydyh
yfkmyeelir
cyjtscpync
zohnarwjpj
vqnkfogchn
fpzyygubco
xshxxlhkiy
ymvijyvxxm
lrflgwzltl
vykdutlgso
jymhgpirfq
rukirweokt
uinpfpnkou
wkn...

result:

ok 100 lines

Test #19:

score: 100
Accepted
time: 32ms
memory: 3584kb

input:

1
vbpeyklgnv
nzimmmazxp
edwdlpgwxh
rpedvucxmx
chgnrapbsl
kgdgxirjnx
cirbslycgp
muzurmysjh
ampjvnncvx
rjlvenphsl
llpcsnfgyx
iszglmjaph
iicpkyutwj
gfcolvmdkv
ospcbaljff
hwoeenslfn
lqzuwjhjlt
abyacnedxx
zditwziupz
svdtvefdep
neoahnsgrh
edtyjmyqzx
rsvobbyiel
bxsvigrgex
islufbdlbh
mdakrliwtp
mdkstlhphv
i...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
joptazkfiz
jrzyeboffn
nzimmmazxp
chgnrapbsl
wdtrqocuhv
eequymzsbv
muzurmysjh
pbzelzgdgq
yjghcbelop
mgvqmvrlrt
wcdtuaondl
kymboiehwd
flhixjeysz
wizfmnmwcj
goksrcxrsp
vmtbnzwcml
dixgvjbyit
llpcsnfgyx
whsiztyyrj
ipyokwysdh
sigtbqlvyd
wuhsimmacn
abyacnedxx
nqlyaczgjv
neoahnsgrh
zazkgytfdj
uzbwvqcam...

output:

bljzpslsaw
rdawlrrxfg
tmtleuzicr
ghvrogqsly
etdwhbpcth
tnttfyxsjo
vehovdshhl
qdsklsfgnv
izchixytdo
alyjhfcapf
vspbskfvsf
siukpxmpwo
gqtwxrzqkt
xlgetzchfj
lttjlmuyqt
thzyjdukff
wutzztypkt
fwgrtqdwwj
rhuzypcide
uddqxyvsrg
hehkrfszah
odnqbpytdm
isdzaupblk
enabunvdmd
dsrbrusllm
xoopwjzohx
dtcjkdlarj
xim...

result:

ok 100 lines

Test #20:

score: 100
Accepted
time: 58ms
memory: 3584kb

input:

1
oophoqfppy
wknpidkmza
cfcsuflkxs
fyirywijma
hqfmwcbipy
hgtdlwqijm
bprfteldks
wzhndruslc
armdueiirc
msfdqqaacs
hbmmtavsty
jtifbkvmqu
vtwwmgfqam
ugyafpguoq
kbssurjdgk
rehafmmqbu
poowmarhau
fgqhohxcdk
mglhmiebjq
hbgxtzzdvy
pzrbxntdlo
pjttzfnoku
ffozzbiktq
lnctxbdsmc
igjbtezloe
vlhxnmvpzw
zbzhfysfve
t...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
hqfmwcbipy
wzttnevipi
fwsalvmtag
osquywraxy
nycjyrqcku
maprcvvovi
rrxkedmdse
rnmhpyexeu
ruswcqmiom
lnyokzeyro
kbssurjdgk
csikhiwaoo
duozsxeqfc
ifbghpkqoe
hbgxtzzdvy
igjbtezloe
hdnpiptifs
bokoupvzxy
odytypqpgi
ugyafpguoq
vlhxnmvpzw
yhlxphhnbi
teiwaxlqam
qrxnltdcyk
qetdguxtro
apfnumeryw
irktiicnm...

output:

twcbsejywo
ohdotbbuzg
jnnsmaqpeu
fbazjeynyg
bzvlaprefc
ywvsjlphau
fjjijeffqe
ydftuinmty
bzzjjctali
csjulppoug
fqedphzpwo
cgormybnpy
xodfiwwezs
atttcdirwk
ldukiixhem
dcflkljjuy
igvsmonogw
tgaamugkrg
svuvkcxxiy
rqxfgvqwjg
wmllzmvovk
edidrhruws
dhyquhuivs
bieixwiffu
gxnasnxeii
hvoslzrosy
pvniumsyty
ujq...

result:

ok 100 lines

Test #21:

score: 100
Accepted
time: 27ms
memory: 3584kb

input:

1
mqlnnlhmoy
bmgdfixxsi
wqfdimjnxa
ycinwvqjda
fwqiwksjki
tzcohfposy
boksbsnreo
mivopulinm
szsddramps
vnajrihdlg
twuieufhac
oczysauxig
vedtcafkxw
iilulqnpmo
adjrqigaha
woxkqbirhg
xrazkvvong
djukarsrza
ntdqlpabqo
bypupxwkcw
nmpqemugio
vglafebbga
zgbyrxquvg
zlolqtpncg
vwwnbrxeba
ooacysntro
dkzhhvnhzw
n...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
nsmacjnnxa
jsykojttey
tufiickepe
tcokzarulk
fvaqjtffym
vwwnbrxeba
adjrqigaha
zgbyrxquvg
huptlzugra
prqzsffrsq
oeuukttncw
fxxyjujhie
djukarsrza
ngxsdxmzry
jgvrpaeoco
zepisiygvk
vsmkpkjtgc
sdvizxoius
tzcohfposy
jwhoosnlha
rxdazgayqo
zaekkpsmkq
wymhiymbgu
irhhiydldw
udqpaopjli
bayznkyoua
fmvcbzhhn...

output:

tpcacnbkpq
gleoyyrgec
cqbjgftvga
xisxnadfhk
nedwtueaqk
jyijubwjbq
gudlokwlyy
fxtyuqpcie
cnyopmrgyo
izjjosuyfi
zfsvugrtsg
zqgrjtjmbo
fzdalorynu
fuewmgwsca
lmureeilrs
hqttgitohm
imlgzgxqlu
fnifsfaxso
jufyjbzkfy
zcxkcjggzo
idajaigkns
klbtczthqa
tqsoxlmsxw
ydilwzwmmi
amwtqbbshk
dsergbdhty
ckpjwxlymc
ibr...

result:

ok 100 lines

Test #22:

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

input:

1
pktzmuyuts
uzxsnhkkve
qggbalriak
bdszahtmjk
bskmmvqxwe
rygpmbjqms
eiuteakycu
xjmcefvspq
umuanlfegg
vssofqnhaq
bbhrgvuayu
kmnjrazmas
irnlngupso
zvxidxmmys
oxxpktamme
bxohhtkogy
muvjuyqsja
vpswyisysk
cigurxrhjc
cnqkjjhcem
wsmhoqfrko
xzhrcpuoly
gicmzhztiq
vswvesvgaq
sfqpswhany
vujwpsjcwo
glcpvhbnam
q...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
bhmuellbdo
vssofqnhaq
irnlngupso
cnqkjjhcem
vkrnbvebli
ympaomtrmw
bbhrgvuayu
eiuteakycu
ebxartbbig
inxxrkyyow
xetvhmtmis
vmpvzziokc
xvcycalkwc
sxrkfhyuac
bwuaoaaukg
kmnjrazmas
rgbkewfwds
pktzmuyuts
oxxpktamme
gwtkwwltzo
utkjiccbvc
tccconjelw
zvxidxmmys
rygpmbjqms
vpswyisysk
mdvomkqzig
buuuflqsr...

output:

belfdsozaw
pvojybmppq
ltawvqvhok
gdveqmoupg
hydrqsrgca
lddubphvpu
lppmsczdmu
inffvylple
ysrozquqpm
ktqanmivxs
gjvgryofnk
ghumepiape
inczgjryyk
efqqxwyocg
dcjcixiixm
buwxxleyzi
xfkwvqiigc
iwejlorivi
errwjmomwa
jksenotqcw
qqmoegfsui
fcgrablrzc
dnervfrhte
dwnmpugbwe
ewcxebwntm
nnkbbajjyu
sbaguybhty
ldb...

result:

ok 100 lines

Test #23:

score: 100
Accepted
time: 15ms
memory: 3584kb

input:

1
vqyilnsvma
stcasiqvbc
xjrkhspvxu
joslfrpycc
difdmfrboa
eqdnbitgho
gaawuesfou
akfiljvgze
evlrldbzre
thtxtkmjqu
rvebkgakya
ajqcjpsdmw
beelgfzizu
augtpfzefy
unfhmnshem
ijaaydervk
qhqzyakkes
sjeemfjkgk
onnoosbsam
oeyhtimjaq
qjfkqpoghq
cdtrdiynha
xopbfordyu
cproxgseiy
rhbgelbolm
posbbbtigk
xmpznetlts
b...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
snvcztwvek
stcasiqvbc
beelgfzizu
bfvyegspes
qphgfjsrss
upaaxmcyiq
elemslposc
ijaaydervk
ehpdgmzpnq
knnwjukmug
oeyhtimjaq
lyvbswozti
cnfrqlfzvw
gulvwkdzcy
qjfkqpoghq
djkjrtajju
tjuwmshnfa
posbbbtigk
ipbffnhgvc
xjrkhspvxu
xvblpksffs
leapebvnpq
ufjuduplza
vqyilnsvma
yxvpgzciju
pdfmhsylma
fiwatjmmm...

output:

jeehlwuedg
zgykencdte
hqhjglyxls
zahyuxplba
wpariihnic
gzfssivpmo
hpipkwdovc
iwpwvfirnu
mwmauermay
rkkzpcxtiy
rmengudqea
fhzaygayfy
piqyjmydbc
wfbkbkwxus
kayrkjzkre
obcpojxcpc
zhovuczotg
xezwoyzrji
jldohfevuq
aijlovbuek
nxhkoovgck
vtbwasjaqi
kctgnzigzq
wyyhkckzcq
myetaooams
mwsbagpruq
dmneatxfeo
und...

result:

ok 100 lines

Test #24:

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

input:

1
nbyapwdhnq
xwcvnktqfa
offpkyfdou
kdgiiklvqy
lqfafvnslm
ssbrdfktyk
pzgdoslaui
lswdmcaqiq
aiuahyyceo
huzucjdkic
idnkvgqotg
biiymrlpma
klxvwiwfua
oxgpetfiia
ajygpbepdq
sxywbguagw
snijpjzprs
zeavfkvjke
mwcexjhhkg
kkwytapzxo
vpdmzidkzw
uorrisrouo
hjnlvgglhq
hzqwkwwanc
wlbxdqmiky
yrunzndjbe
otuuymvcju
d...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
hzqwkwwanc
rrimronymu
cbtwtjsyqq
rrqznbwqzq
lqfafvnslm
vrvyzraqgi
mdtrawkyte
edlqtirswq
rdueldczmo
cybaotxvxm
jhsfonhzyq
nyfpawrbku
gufbkyiezk
bauxerpvrs
mtokutjdya
nbyapwdhnq
hysbicorki
offpkyfdou
orjxjwrpri
xwcvnktqfa
gzurscykvs
mnpdbeeyzc
oxgpetfiia
ebxyualfai
lcbhumxqjg
pseymfyibc
rawcrnzzk...

output:

qydsfskftk
bjsmbhdkda
vaoihhihuc
vujkylocgq
hptaiieeia
yngvxjhcxa
xkmniiqope
jimfkymagq
xsfzektxus
kgpnxecdyu
zsoyxaywwe
blfhqmqmsm
qlnzwxueug
rphtsdfhns
sipnntchti
lhazlrhybo
jvijjixiom
cwhhgwqxzy
uayztpjuvy
prejnmxbzi
buaoeetuxs
edgemviajo
jdpelbnoys
grupnxlzqw
qshnhyyzme
xxsujldfne
cnkknrqate
ecp...

result:

ok 100 lines

Test #25:

score: 100
Accepted
time: 26ms
memory: 3584kb

input:

1
zugnlrnrhs
jhycbymnra
ucxuzwjzjq
gffsflgalo
tovtsraqwu
iftznntwri
zpceedsyqy
lxlgdxwvrm
kthtkzziji
wcrrzkaksm
tzpbvcacsy
ejzwybykks
nmtakhukdc
qgolpcsesg
ibsvachbbe
oygcrgmzdw
kwciopjzai
vvhmscyaqo
vvvpbvdeao
jouvpvmuns
wdbgpftyja
lkzujwjctq
dmqkztghto
yhzekwlniu
vxaarfytni
wfszsvuahe
ziebprxhqi
h...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
mvtehvanbc
tovtsraqwu
tzpbvcacsy
zbvhyqwzvq
lkzujwjctq
hukzxndmww
uvpxbsmhca
tcertddsoc
lufgwnklzc
rzwwrkexfo
tadlpwnjug
yhzekwlniu
dsjotsiogo
eicguanfim
vvhmscyaqo
jwwwghhrqe
ibsvachbbe
dmqkztghto
dzyucbwzjy
gcnniidips
jhycbymnra
shljjwahne
kwciopjzai
yiffzvwkng
gpnfusknrg
juxlhmkfvg
gcegfvlco...

output:

zxmbfauvji
ftzyssogww
glhoktdlhs
ahyetespve
sngaidlqhu
jwchpcyoic
fdkzmvhbxm
khtwhnwlhq
swadavnqoy
glhimqmtva
pqioblhocg
jxgjarmewe
xfnkgmnrju
bwhnbppoda
pfhhhjtymi
oexpskwltu
ygoshvgtoe
snunlxsere
xgfqtdpecs
fbldjzkjss
pkkcauxxiq
ochnljvziw
wivwdlpsmk
pxohykjtnq
giopuyffbc
nykkonoztm
vnfzgubtci
ukc...

result:

ok 100 lines

Test #26:

score: 100
Accepted
time: 27ms
memory: 3584kb

input:

1
fxtntwofuc
xmgmfbxdro
vmimukarxg
zxzpnuywle
kvfulirrhi
cebbmzfcls
jeeflzinfu
vzagcnqfke
sihprnlihg
ygaieytvxa
nsejqvpufm
mstubdzdgq
uyaswfbgzk
lrpjeojzgy
eelksyoiqs
ykoxnjojcs
ujzvnvkaqy
scseuibjhk
rorzgvojac
osckphlgbe
kobbtdkvcm
tlpnfkmyya
pkttacrrnu
ylntdfyyxu
unxnouivca
drxcitvgam
zxmllekfte
d...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
tsgshbykpo
uognwfskrk
pkttacrrnu
jyobkigfwy
jdyiobumum
vafbkigybm
noukfsbagy
lleuyjduxk
xfdoyfqtli
eagslcmwao
djkyokcdro
zxmllekfte
xrekbhwcow
foahvbfjcu
ggcuznpepe
rorzgvojac
mmvdpplcxe
lxonhbedvu
yljykpcgbs
hfnavdlfrk
miauwzbwac
sihprnlihg
xnvkgqxbxc
upkhkuhxum
yaynvhkyhg
fujuodgige
tnqwxhhih...

output:

okmkfbajsc
ztjxervana
zdyuqlcpjg
tnbkmwdbku
pdvmdkinzq
akwwcokmgi
secvqxyydo
lfyjzlgdco
pdyvbmgbxg
fbgsmymbnk
qsqyhxreoo
gfmqvqjmoo
yknlnruztg
mwczbgiwta
zsftecmjrw
qcackpeqsu
hnrrhvfjyi
uifdqihqgy
jiehpokwza
ndduqujhxs
ebomotkncm
lthcfgeflc
xlqvwccimw
jvewaqzrqc
ypzwllybms
emkrbrkbnu
gzpjrzzckw
ibl...

result:

ok 100 lines

Test #27:

score: 100
Accepted
time: 55ms
memory: 3584kb

input:

1
fktzkzgnxg
dycswxggag
qhtjvxyofi
qnryibjmmm
epykhhnavs
gomttqjfha
igboawocec
yktmfxllpa
byvuabyqea
swiljkbpxc
xdfmhvukug
otmwvldavm
zvmibxhqku
ridtjgvrak
fwuhhbwpsc
rnjxvikmlw
afyraalhhs
gammvdzafq
iwzlgszrfq
xgsbtrhghu
gxcbmuqsek
ihxyqjixnc
bnftejjwhw
mmzlcutoos
phfalrmahq
jvwneznfmq
wezxisxeds
x...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
iuzayerfwe
gxcbmuqsek
qyfesntnxc
pioahggnhk
ridtjgvrak
yymdgxctnq
ysuqkqcwem
jvonciosve
dlyoodsxvq
evybmpkvby
dpaxaurfuu
nawajvwcpo
fwuhhbwpsc
iviymfbryo
scmhjoasso
lkbvxqbrlw
cjsxzmxdho
xgsbtrhghu
gbschigodg
vxopzgfuwk
otmwvldavm
jnauihsamy
wqqxvkiwmo
zvmibxhqku
hbfsqlrsfy
frhnbadpze
bhujrpolw...

output:

qcaseiobym
pglkdrenus
xaabawfxuy
coucnkfbvk
jkkakdvddq
zzybawpbeu
lopcltyigs
fvywccvfqe
wlkhqptjem
utxxmvvzba
jkijjuepme
esofqsdgjq
pkdjqakkbm
okiczepncm
ucfgejilys
apzxazmqjy
gycfjmahtc
tpzoxvgjcw
jomtqfmlgq
hbcxnculvs
xqxkezlldc
fvbeooftdq
nqhvtjboss
meugttxhtw
odbwbbwbzc
aoiqscmbkq
tejyhktyhi
nym...

result:

ok 100 lines

Test #28:

score: 100
Accepted
time: 41ms
memory: 3584kb

input:

1
shhntcarwk
ndanjimomq
pmktyxlyxs
zjmhnuyxdq
qufccazjek
pspdppnjaa
obyleufkck
iejkdjcjjo
aookourprw
rgnmnczdbi
gggpyhyxly
tntuwjqyxs
yplwghdlkm
fxxlsokklc
ogqidxvoyg
xpqlojkyxy
hyxvxxeoke
timngncjiy
fsilofejug
hyaojtpmdw
ttmvgeawsm
btsiihixog
fyrbqdnore
gijbdsowbg
cwugxamtsm
vpyswbhhqw
knwlauylwk
z...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
ggzhtvkowc
yplwghdlkm
fpstdimoim
gelrxxqzeg
zjmhnuyxdq
obyleufkck
spkhmcxhnu
czewyyvosi
owvwjxqwjs
hbsctarpum
pmktyxlyxs
qnoyzhrowm
dsikycfkma
qiykpytvko
djmygjvpvq
tntuwjqyxs
fsilofejug
luahwtmvmu
dwezdqbpkm
kmeqpyxjse
wjmcxcodmu
xxvqejzncc
bdyuzlmkgw
ogqidxvoyg
gijbdsowbg
hhdqmlcita
ttmvgeaws...

output:

vufqbhvmxi
znszcufvii
snvztzcrqy
xtnkxbbuqc
cljkaqemng
qnzjyldecm
ftaxmfobxy
oaezvzgqhq
tmqziwdtma
wdaoqshkkq
eoscmjrwmw
ryosqpprue
npwxefukea
pwmcukysbc
ynkralvbws
svbwdwfhgq
djnkfexceu
enaccpvxym
rxvrctfims
gfffqqlvvw
zwfqlbfadc
quxmiindzo
mepepnxfay
hrrdrvlguy
dzrsqeicso
moezmlqupm
zjiakvispc
tpz...

result:

ok 100 lines

Test #29:

score: 100
Accepted
time: 39ms
memory: 3584kb

input:

1
cumlwxulty
sowdyqbyfa
sodbajflgy
cshdcdeyzs
xbikdyanji
bpgwftscju
dwtgrsyvwk
dwttnvaomi
cunyldzpps
aqbvjtvzgo
xjjkjqprkw
takrkugscq
nibosntlyy
arpyirhuzk
qxdotilmvi
jyqlynenms
fwcpyfmwzo
epoaslkphw
geyshexqlq
zisronefui
wylzvhftvw
vpskrfzbyo
vilycjkeck
wcsocrnahk
xymgsehqno
avtbwvuauw
eumzqryfdi
d...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
vywxuxrpvs
nciedacqxc
ulzbukqeho
dcyzsrtlie
vrjraoeguc
mgcxnewbxs
aqbvjtvzgo
fqgjetuzhe
eumzqryfdi
jbdrxycevu
wcsocrnahk
avtbwvuauw
gumdixbojo
dwttnvaomi
vpskrfzbyo
oealcjupdy
ucuukfgnmw
ycnnhfixmw
gmncjjqbce
swsqhsijxm
mycezcgqmk
tcxeybgkta
aqmcctmjjg
cunyldzpps
veevpwlane
iuiwhqukpq
fglvxugjj...

output:

egxgnxuuki
zgrnfnlery
icdcuodzas
wbrzphbtjc
nxplyatdww
zbhcntllwc
udmewnakdg
rgmjmsfzyy
orphvmycgu
pjuyzrnyim
awkodlvvam
uuvpmqtivu
gbegpdvxxi
ghehiaasri
svbjbopanm
cdktrqsllw
qquzfdtrzu
ypcwdvfaze
mjjsfvjoey
hycevymwmc
pqgyladewo
oolwrmzrqa
cbxxghexea
qbavwepjzm
kmertlajxw
ptsfphjnay
wxedmdnwbs
yso...

result:

ok 100 lines

Test #30:

score: 100
Accepted
time: 54ms
memory: 3584kb

input:

1
fonugixevk
tgjkcauyhs
tsnorzgcrm
gzaiceerys
gzvqgpqsdk
tuznfhqdfo
kcxotbxyby
usflhfdwfq
liljwsozgm
hzpknqfhem
krrnfyatzq
tkrrzqblry
qkvijbqqlg
hzgzdjchbq
gfwspfgcso
leqosqcdka
wvonnpqjca
peqpadwtuo
ofwtegvjnq
mwynzxuyyk
rvtfhqyqog
ukxudoifqy
uqmgnpxsgm
smkqlvtciw
nysxyfujyc
hblcyubpae
xunfnmorpc
u...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
namraugavo
dmqtsguyro
xgydjltimo
rzvhuhpytc
apfocqthrc
krrnfyatzq
welecjmxey
xunfnmorpc
fzkrxurvcs
rzxfonatkw
vndigotnms
iahgzjalzk
bdvzyzhpnw
vgukxdqrdm
hzpknqfhem
oqbfdrrgww
qvmjuauaoi
kcxotbxyby
umeuznskku
rvtfhqyqog
hzgzdjchbq
rvaimzapje
owcbkkbhwk
hcnwaejisw
ukxudoifqy
wjcerfmqjk
gwpmhuybk...

output:

cygmkqowpa
mleavvpkso
yxgsduhncy
qbribvhvxw
artcncswfy
gsjkhbgfjo
oiuodrfdpq
thenrsblbc
zpntmiqvlu
gncjpfqhto
cfwecyotzy
rujicscsbc
hoscevjegk
bjahistfne
fczavqxwqm
msjkafldqm
vztvleqmos
kvocdmfyoc
paxxkxjwns
mnkujgoima
dqtnwvknoi
ekriwqxafo
xvkaaljxko
rzjbuovmuk
kupinqnrem
kgjitqeofm
kfelriuwsu
qxe...

result:

ok 100 lines

Test #31:

score: 100
Accepted
time: 50ms
memory: 3712kb

input:

1
wrwlxxcaga
ijczeodywu
qimphtyxrq
upzihomwqo
vfpedxtvto
sdicwvtvaq
fzeamoxpxm
qfhnpbdqza
bkgzfhudkq
nocjjivbgi
aqtsbegkmc
osgzgucfby
frmdgpgdqo
lrylxkhmte
othlwigbnw
ovnddjbwaq
lyplsmuwfm
gcolptlcck
xhkcvcynrk
bfxrshhlzu
qdfwllwuzq
pjvadkwbfo
yzrcuefero
syuejryfjq
xheeyabdhu
lyvelcnyma
kztcwzkqwi
z...

output:

aaaaaaaaaa
baaaaaaaaa
caaaaaaaaa
daaaaaaaaa
eaaaaaaaaa
faaaaaaaaa
abaaaaaaaa
acaaaaaaaa
adaaaaaaaa
aeaaaaaaaa
afaaaaaaaa
agaaaaaaaa
aabaaaaaaa
aacaaaaaaa
aadaaaaaaa
aaeaaaaaaa
aafaaaaaaa
aagaaaaaaa
aahaaaaaaa
aaabaaaaaa
aaacaaaaaa
aaadaaaaaa
aaaeaaaaaa
aaafaaaaaa
aaagaaaaaa
aaahaaaaaa
aaaiaaaaaa
aaa...

input:

2
96
lybkguajsm
hgerbgecva
ltwlhdopxs
sogoknjqvm
upzihomwqo
lhjajgbnio
ohtskcvfwi
tcnvkdnfke
yvfxvecwxq
pqeenduoow
mzdhvjpate
qfhnpbdqza
zstksvuare
xhkcvcynrk
tboogoizki
qusifxcdfc
jnmdkjhzuk
fzeamoxpxm
qltepeboxi
osgzgucfby
komtlzhare
qimphtyxrq
btfiihqolw
gnfjfmmyrm
lvtaejtptw
fnfvkwzxls
sdicwvtva...

output:

yuwzktjdrc
yfihtbkrey
wbithmkurg
ewtotbhhaq
jtenxqxtma
zkjmlwrrqy
mpywkevsts
ztefkvfbqa
cgkpwdvefq
eznppnixle
cuqxrozrju
tiuocdhkum
ohvjovncai
uonhzyvysk
euzyrfhamw
bskwtuxsew
ybvuoxuyng
czbnrrpeui
wzloieejvi
scslcbvzcs
hzqfkiwwts
mvjeokyqnm
vlwucapqua
yownhgmhcm
wonxbbzsiw
mvkghagscc
karutbwkjw
ilh...

result:

ok 100 lines