Submission details
Task:Broken backspace
Sender:aalto26iw_007
Submission time:2026-11-04 16:26:12 +0200
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.06 sdetails
#20.06 sdetails
#30.06 sdetails
#40.06 sdetails
#50.06 sdetails
#60.06 sdetails
#70.06 sdetails
#80.06 sdetails
#90.06 sdetails
#100.06 sdetails
#110.06 sdetails
#120.06 sdetails
#130.06 sdetails
#140.06 sdetails
#150.06 sdetails
#160.06 sdetails
#170.06 sdetails
#180.06 sdetails
#190.06 sdetails
#200.06 sdetails
#210.06 sdetails
#220.06 sdetails
#230.06 sdetails
#240.06 sdetails
#250.06 sdetails
#260.06 sdetails
#270.06 sdetails
#280.06 sdetails
#290.06 sdetails
#300.06 sdetails
#310.06 sdetails
#320.06 sdetails
#330.06 sdetails
#340.06 sdetails
#350.06 sdetails
#360.06 sdetails
#370.06 sdetails
#380.06 sdetails
#390.06 sdetails
#400.06 sdetails
#410.06 sdetails
#420.06 sdetails
#430.06 sdetails
#440.06 sdetails
#450.06 sdetails
#460.06 sdetails
#470.06 sdetails
#480.06 sdetails
#490.06 sdetails
#500.06 sdetails
#510.06 sdetails
#520.06 sdetails
#530.06 sdetails
#540.06 sdetails
#550.06 sdetails
#560.06 sdetails
#570.06 sdetails
#580.06 sdetails

Code

def solve():
	n, m = list(map(int, input().split()))
	if n % 2 == 1 and m % 2 == 1:
		return ["-1"]
	if n == 1 or m == 1:
		return ["-1"]
	seq = ["D"]
	switched = n % 2 == 1
	if switched:
		n, m = m, n
	for i in range(n // 2 - 1):
		for j in range(m-2):
			seq.append("R")
		seq.append("D")
		for j in range(m-2):
			seq.append("L")
		seq += "D"
	for j in range(m-1):
		seq.append("R")
	for j in range(n-1):
		seq.append("U")
	for j in range(m-1):
		seq.append("L")
	d = {"D": "R", "R":"D", "L":"U", "U":"L"}
	if switched:
		seq = list(map(lambda x: d[x], seq))
	return seq

	


print("".join(solve()))

Test details

Test 1

Verdict:

input
y
a

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'y'

Test 2

Verdict:

input
y
o

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'y'

Test 3

Verdict:

input
bs
bs

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'bs'

Test 4

Verdict:

input
vfj
xz

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'vfj'

Test 5

Verdict:

input
yif
yi

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'yif'

Test 6

Verdict:

input
ilzsl
zio

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'ilzsl'

Test 7

Verdict:

input
azg
a

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'azg'

Test 8

Verdict:

input
mmad
ida

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'mmad'

Test 9

Verdict:

input
rmfs
ykcm

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'rmfs'

Test 10

Verdict:

input
skqwu
ewix

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'skqwu'

Test 11

Verdict:

input
rkxgc
wtep

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'rkxgc'

Test 12

Verdict:

input
lcat
lce

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'lcat'

Test 13

Verdict:

input
zmggznshn
wibfc

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'zmggznshn'

Test 14

Verdict:

input
hjgri
fxgxt

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'hjgri'

Test 15

Verdict:

input
aqjtb
ci

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'aqjtb'

Test 16

Verdict:

input
pnxnq
pnxnq

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'pnxnq'

Test 17

Verdict:

input
smvvt
s

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'smvvt'

Test 18

Verdict:

input
dehlwu
de

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'dehlwu'

Test 19

Verdict:

input
frovxqt
f

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'frovxqt'

Test 20

Verdict:

input
isnaiipj
isnai

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'isnaiipj'

Test 21

Verdict:

input
tvfqorxbf
hsiaf

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'tvfqorxbf'

Test 22

Verdict:

input
hbeyzrmpxd
hbeyzrm

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'hbeyzrmpxd'

Test 23

Verdict:

input
cvfrdstyia
cvf

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'cvfrdstyia'

Test 24

Verdict:

input
fbqlgvoypsttw
gkqjckcnpk

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'fbqlgvoypsttw'

Test 25

Verdict:

input
qetmuxclwb
grkdwns

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'qetmuxclwb'

Test 26

Verdict:

input
dnzdfqccei
toeqt

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'dnzdfqccei'

Test 27

Verdict:

input
gigitadgqgktnmlucdrpjmfgzlugaj...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'gigitadgqgktnmlucdrpjmfgzlugajlvjrndeqaqypwybvnuichriszxkgigvuyjaugwzuzxwhxthqwcqdzhjioegisnzqrtebwwxjoufbmejdtlwqlalhigfyyxkzpongadkqrxgqkuyzkjamgaqoxmckmaobfmonojmfutwpusmeyyqyweslmbzhfjsezg'

Test 28

Verdict:

input
xhhwpsrfrqywdwqzzgdamkmrgutkys...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'xhhwpsrfrqywdwqzzgdamkmrgutkysoalmvyfxfjwvahcoapzlfrszlertjsivsspujysnsnxsadjluaftvkuirlkszjcdicwsml'

Test 29

Verdict:

input
kczmpmbrcgapydtsdjmnhgdqjlmfiw...

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'kczmpmbrcgapydtsdjmnhgdqjlmfiwgytzbdmpuhfhpvopbptwsjeftmcfydxrbsqlpjkhhgvsvazupbzfzmydhoxljlxrsdnxqd'

Test 30

Verdict:

input
kdolwqxnrxoguefenlghfehedsiypn...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'kdolwqxnrxoguefenlghfehedsiypnopmoqcnsngfodhhpiyvsjalqwkkzbucvjxupfdygznoaukulfcyurzaozeiiwvakqkgaly'

Test 31

Verdict:

input
eonoxjbddvetnyzwrscrakqugzyzut...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'eonoxjbddvetnyzwrscrakqugzyzutesmehmxhlwswhjgllwjustkoqpjtssrtfohubjfyuytwficzuuibrbcxkvfbxloquttuwg'

Test 32

Verdict:

input
noytqcblxxegczpwfbcfazouiidlvi...

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'noytqcblxxegczpwfbcfazouiidlvibgovclrbcgkrxafjumkoewhvcqssunpohkhevicylnrspqczdbaikfnjvjtwcdzhqhsjqt'

Test 33

Verdict:

input
fsnlwzwzhhnnxopbmalxpghzqqhdsg...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'fsnlwzwzhhnnxopbmalxpghzqqhdsguhdwejekvewchjhmvtoxmqtacgumgeeormwtbpxxejstguapadmlihdnokifvpsfkcgvvz'

Test 34

Verdict:

input
vsylfagbpuzphnpddomopbxpjvhzyc...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'vsylfagbpuzphnpddomopbxpjvhzycwqvtznmgvsutsovdxswhqatvlknsnvycsajpnkllqexshpsbrgjwmtxehgdjdxdjbvvnru'

Test 35

Verdict:

input
uftadotelejkwprmhqvxquphskiibj...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'uftadotelejkwprmhqvxquphskiibjriypfcjigwmecmsospzlemiwlnemdinpprmoxxnuksecgyefbbvbimzacqpqrtyghepxqj'

Test 36

Verdict:

input
wmykhkomvlbaxmocfcdvkcnaqsuyeu...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'wmykhkomvlbaxmocfcdvkcnaqsuyeuskrkquubxlnexjfrjjtahtazjrasaejnjvojjzcnkaefhwqfggvwcwnbmnavhdbhsiunhrvbmuffeoqmlpresbqysabkydeqxsccuuawjpislbrwzgzxunacnkyszndingufzyfwrimwxjrozymzlncabijrufstgmvgtlfvvqjsktdfmuefpnhtgrmnpscujsdddwzqrgagelqggidnydlinyqmjuoahhcxexheksgbottwwqfktpskseoijzgrojebizaskzyrczoadrkuxlhopqgxuejgpxvhyqhefyxymrlznkqugfdyccruupkdsceemrgezwfkvwyioucgozemfjwqnbgtexczcvolatlahwlejkbqjnmmzkohcleebraoqsbcmxkgtijlkwkbntsozeeawccbtiaixeduqaqgolwtsairhnkqwbkaxsvznqtlokjbvpgkijtppbhqrsobewpsrqozjnuvrmdsoaqhketiqbeirctdzxeftjomsktymzvpeivdvhfrrhhzmoiqmvremlgyhtmllulykhrqcascgzlahyixbrcleobhffhlnuvcjbgogldzckorbhwndakrtptxhilyteavlbuxorshxhekeixamoyxqjgofwduqvysrttvppucnlzpzbfzdffkpqrdsgjqoiinfbbaijvaynlgdsnnremoilruthuswnwhwct...

Test 37

Verdict:

input
bfvdgidzpdbtkomnsdssudrgesexai...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'bfvdgidzpdbtkomnsdssudrgesexaiczwqhunixyyhmhsbketrpahszabfemkzdrgtpypusksnrzdjozfqcprkvkpqyocgocwgyvxumkogusfumcaskevamboqowrdstzchgshuvzygpzuwslmzepcvlpjbkriqvehizctcbznfzrulhxtcysrygykovirtdbegojtnwsldvrgtsoqwqwzskyswltwlvofghsxnlzxnjedaxzwpakfrcrsxqqdtiyxssgwciwmhqowvovczspjftczdvbsykftuxwnijwxykgytwlzennpmkagpbgxsrbzgshsycjynxsgydwxrdqwbcajnojmexpjnkndtxwidfjldtbdutbbaossdsfhippdollhrcrqrzbyumgrqjrgqxevzcwkppknxwdrkztbxlqszzncwwhnhadehjpkrymrsleejvwdrocdmpcqaclcvhzyzswjkcmogdrwsufvlllivqiamoijfzczkcobtwshfeywnhgqrteyotlpmlqkkhraghdwdrkkqcoaguqttonoayyxmdllfjuxmufjjddknrioiduuthquavtfqzidjrzovawgnuntrcwkqqcntaqfmzbbytprlzdhfrrzmiaknynzbrbanmywsaqyerkxpkrzphtzwaczpwsifdtjoxjqlpskcluhmnspuwjiyrrqjxxqwubgmafyylazrxgjkjeshfebtgaovqparum...

Test 38

Verdict:

input
epehugfuqusovmdehqiyoefztwalqj...

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'epehugfuqusovmdehqiyoefztwalqjyrlygudsnbcgizakvqtepvamdblhmcyiphafmuxmesybmthytnxdkiukztpsbynvtconhxilnqnrhpbgnfwbjoeiwyadxdqvniyjwqhwpvkwaoqktyrvebmwafcmrgojgxpiucylvryhlfocwplftinldsfzxcrxbtqoglwxizixzkwhirbyegvkkkuawfeoiwyccapyouigfneekyxuuqzgckbtqabavfmbgmbcbrtnivhuekhkerpvjrxuitnjfickqrwqufvuhyantkxqmoxhhjfhwjoogrwjyebwreovcxiltkzekgolxozhjlkvmepekxrtgtutdvulnetwvbuaxiumpttpfohwestwwhivfpdvddcgvxuwlbiafwofawnspsyvivvkdpmvmtpjemogdbyhqgvbzntspmzkqjkxmgtawmyomcdekbqjscmprwivdxrzcuegcxngohxgdkgqadiwaflcyyzejrjpnubltzevtuynbewavuatstvunzwzjryidexuzngugzmnkioejanymqjkvlwaionogznmstiajerjqaceduhqinkwdxrcfmiztmynhvtbbkidofukzhptuvykjmnxxmdvuozzwbkwngniffozmbatzfopfixdygamnalczulbbjjslwmqeqdosnabbemcvzskbfjbsjoukwpohdzmugzmjeigtxemkjejofl...

Test 39

Verdict:

input
xtsdkcvujwifgijwhrxjyiepwhbmpd...

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'xtsdkcvujwifgijwhrxjyiepwhbmpdumrarguzjhddbyiazvplzswmhotehctonytleyzfijzkkswfcyyrkkhehbesxvnlyrxzxumxkxvgeolgyhxllpypmjbdrkkykvsqiicxidseypjipgeiylomnnseybydyykpusttvxuutzqkqfxiibgntgrbqqkgcbdmfqwrqxndajulrbrnyebnyvyagmtiufvbqemnxtziakiunxqvwgqtjufrqpjoapqlwoicyzkqgcmpqyvrrodpoelzuoewukmwdwypkcxvqgpuppnwqiamqifhlaklruobttouyvojdsjozidjswfzowuhcrzmloqmhsrklhzffytyngwdlpadymxwtcjrnzebolpvnffuwbhdwkeewowwhgwbwihywymlqbeinrymkydxcdvhtelfzjjkfpkscfeyzszgunzvtcjidabrkvwizhftsymzxvwwkexosyaxsirigexnwgwqszldmwhedeqpfuyhwshrzljolhcocdcjvislofupxrvfpwmkiftkwhxatxyficiyuyemdjcwjarabewfqeijzmzlrkqtluaybxcwatpknjjvxpyljxmvksnkuzzxxqqwwlrgvhhypoinrtxaokbiqyjjilaenncpeirsjiouohhedywnmhcvupvbbvzulzjzufugwxeufqtzvoakcksgpzwnxxkeiipopzhpvcfxkcwlahvhvgd...

Test 40

Verdict:

input
suawolvogvzwqdpxqxjttthrtbhnqg...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'suawolvogvzwqdpxqxjttthrtbhnqgwdbjickgiplmetsvigazpzwfkutvyfzizrleiuymndckcjzbcvuqxneubogadgktubbebdimagqiloszmwcsprfqilyqxvkohxanvsprpwpeguzssowmugzeeknzjeqkynghktjcplefdieuhmkwciykqatiggteoxoivdoibbnpqlaruxnhythqrolnwhnfntkwluuabyvgilifenqaxagacmgxhsrsuuxgdrczqjwrliefkxuhafnmpzyfcqsaydhpqjvmjvxbzjnywrhdsccezgyyvitpmgdpgukntqnqkwiuvlmtkgbqkruiilymujxwxolovbqikmujjusfwcfnkgsvnazvybwxqhpydsbkblaleilgimrchlopvpodfcnypxszahilpuddwovnfzsfiacgpubcypbiklhzqbyeiwsrwnwxumghdwhdihpxxrvpzcaggkwjonaqaxioysaljhybiwoqseaosanjusfwuxcbrisvouuzgpzwpjmgvunijzvztizwridmgndijswyptlefosuaxntjwycbtndrqljvoywkspfmkgqtxvlzyfhxclsluiajkdtrbzqtzountqullcdzuiukepmlaecqbtqljkykioaypcizpsaikdvzjyopjlaludixwpiojabvgrwekawkaqjubfclymrocsslftjjvjlbkgwwhtptuevpqmohir...

Test 41

Verdict:

input
vupolhhxbovznwfxdpftypuarxylzk...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'vupolhhxbovznwfxdpftypuarxylzklcqaeaggoljnkseornbymadzsrcbsihduarrzmjbtjnpitivimormzdqukjktrzvxwsjzbbcrwlggskmnqzliwxkskmvvgtgweyflqpnjoijfpuctztrvrjrvtmmdtqzonvlidefzobkeukknzsqfhotarsnlcmfefkgnxodaclgprvdtwzxssvhzclmjulxgpvhwsqwivzxqvuyqhmdscrjectunjoxkzxyxuxoxtcexuepxziyfmozyrzgmuyjrnqacudmpybhqxxdchylyquefqjwiuyastbpqelceljftyrczvjfugprsiyxgzodfuqrabbwpykifrdrvbtuqegldmbzjovloxnjvlfycoeoisfnjcirrerzsxjyjrrnhqokgrlhgpzeogvlyiemsmnsqcwcebeiwqbntpnkurbxggyphdfircwtpbyfmalcmbsdlydyavwswanswjbplyfbhzqorfrmodavkkbzlfvppwucdkjgcudwrtsjfbydqhwyfjcnaehkswqbmimidagbvzoqeeydbervwijhvvrhrcayfqdyhwhfnlmkyftuldbvsnscvwtqclsomsotjbzqiplkskdmexyznsmjcufbwmldozaylcemypxsjjnrevamhcudqjctddtdpfjmnkcohncpabwfqilpshhkziwwfuiyupvqwotjyrzsxsormaoycomitzy...

Test 42

Verdict:

input
pnrxvijvmrczriritjrreqdtlmvtsj...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'pnrxvijvmrczriritjrreqdtlmvtsjmlkcncdhsrhjapfgibaopldbhbnhvabhmnezvvbxxkvhvcjrczhzzmmxhqfefrgefwyrihisdsgzxsppwvwfyrtwzbijlehkftsxtfwzlhpawfjedtpwmgodpqgnkcnnpyliroclneezfupfyweexgfvumrmmuoefwvhebvfijfeebjsosgxetsyflumbiukqxbkayffqvrptrfaakzaftttqvsiwgkkmhcwnftlqwqahvlgwpoarkczilrknouglqczxxzzmwaqyaacpqvtdluausizmapuardafkiydcbxmfxksrybwkbkamdxnukuroggsdvewnoinxmvjaldbpgvbgplozdaoffocqkinckilsddfcrxollnckcmpfsovwubcoycyqhfnervlcmybjvwalwmewexajibawpcgmdzttxgsdpakjbwmjiahhgbbvsqdbvipjlrehmfguvkxbsbhlkrfzgbkmzslgqaahgecfljfrwvymkwvwmrmifdwmnmfqikytqntjqdhkbvargfhvumzrvzobdgonfwujsvdhbxcyfsqfhzztwrvpjfkhghlalwwkkbkfagqxlalsmrnbemdbxzumkjnvbjdlqcpanfspepeznbcfjopaxplcygiegvgcuvjlxcyydueciuzoyjmofodqtdybhckqtjdfgwcaqktwiouorrcwqgablcxyzecuk...

Test 43

Verdict:

input
nquhecwwloskilrbxfiqlzxyhggmim...

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'nquhecwwloskilrbxfiqlzxyhggmimkvovvtxklgluuhbaqnrgiptnvhoyolroulqzmdxplghvdwugfpletgtdcysskbqbvegboppzfwldlmxrwwjtoeqaxxyfubmcaxsizaaurgbnnezftywokhcygrxlucdngdjytmoinnelrfpxzewyengbtavgxhbueiyezknogpaixenrkhnablnkmzazvtxetjgsrdqyifjywayachrvjggtbmcuttxjhmfgfimhfvauxplcxzhgaosfejeqezbvjjuyvkzufuiyrigvbvbypdxetyeroyqibnsgmcikrgbgcoxqszitoizuvgzerwumxzjaaodzsqmwvhashmdsqqwbiyhlvitsydkytedmqacjcuhuiiqsguzxmwnajifwpsffxypqqsummhbohotktrthuqgqpuevwqgjoikplgrzzqutiwwxliczcxifujupvswrkhmpbumrrzrvlkohuxfwvnpeldpwggqqypsybesnhmtflrsuhdimeoykgehfhufopkbpvjexwozvwzxnpzxvskdkgwfjaihcdavdhbgihjqzjkffafexeozzhjsptkasnwsxaajocvsailgbyyeihdupitxzmugstriwiyjpxcowpdakezmpfjfsyvfrkirunxqfcpaaemaggexvdylcgvigknwiajoocfbghzpueldjyignitujukyxyoblifarwxuukra...

Test 44

Verdict:

input
yvzchujqnoihsrlbogoecilotaepru...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: invalid literal for int() with base 10: 'yvzchujqnoihsrlbogoecilotaeprukmrxfomfqjpmwjcjtzuqszgorjxirbxhmxovkzglkqqrytsionfsiuhsyoefgawwulshrhjpmwagrllaxwgbypanzqxojiuycsktiufiomknsahjrvgneakulyjadpobgaekeuktnpdzrclyvykqduykgmjyznsgxtxpppsnyywnqyvmdrqeycltzorhrqftgvjwgoikyhwosdavtpjpyzztdfeavtyabqtfaargttafulomurqrgnkqmxtdctnvuycfgqosthggtxivqsoibkwsyyppgpczbwlyjnzqwmjmtodmxrheoylfsluqupxcfmrcmhuljyqsvhyyzzlwjqbceibdklftsvyaolufkpkdohwlylwrsntqvfrerirrwktawgljkcjeqyqhlyhhmgxsieisfhwdkppgvfsocecctngblmxbtsuyrnutjyjsfthklxgdfrxljuspdexbvgnwujhsttnwxqfgflpislptfmcgcynetysisadroiecktidxizsdbtgghtksmwcqjycpydginvhqtnrdovpgmoyhunofnlumktombfichfnxbgrodjfsbdjrdcgecuzjobshgvxswwasyofpqmfdxpjfyotshqcnfsbfhllbonejbxecsexykwghlvzahooiqbtengklkjacsxlmfxhgoucauhspdmmdtnuvhbpysusnoptysdbeev...

Test 45

Verdict:

input
bkbntccvyxeaqspsxlnqgybjhvkyno...

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: Exceeds the limit (4300) for integer string conversion: value has 10000 digits

Test 46

Verdict:

input
pycbqedrafcfqifliujkykggxrusll...

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: Exceeds the limit (4300) for integer string conversion: value has 10000 digits

Test 47

Verdict:

input
ntuyzptgfhnqgsicdshcwhcravwemj...

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: Exceeds the limit (4300) for integer string conversion: value has 10000 digits

Test 48

Verdict:

input
mwdrtpocarqfmmrhlnrmaqlqkmwcwb...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: Exceeds the limit (4300) for integer string conversion: value has 10000 digits

Test 49

Verdict:

input
ylqvocuyflcqydkppyrmygbopzaciy...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: Exceeds the limit (4300) for integer string conversion: value has 10000 digits

Test 50

Verdict:

input
bcfrdxcxwypdknwsnsheysairkjruu...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: Exceeds the limit (4300) for integer string conversion: value has 170108 digits

Test 51

Verdict:

input
luqybuerbcnshnudgittqrpncjmhjk...

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: Exceeds the limit (4300) for integer string conversion: value has 100000 digits

Test 52

Verdict:

input
izamctfueldbjhauzhxhdvbaiedkxc...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: Exceeds the limit (4300) for integer string conversion: value has 169136 digits

Test 53

Verdict:

input
xxuxrrtdpvefxgxikyxvzvjjlnrnzv...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: Exceeds the limit (4300) for integer string conversion: value has 122594 digits

Test 54

Verdict:

input
vzckilqzoxmcrupzvrkqtjjokjcyeo...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: Exceeds the limit (4300) for integer string conversion: value has 101499 digits

Test 55

Verdict:

input
elesagcjlrhfflaqxsmukgbjiiyyyd...

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: Exceeds the limit (4300) for integer string conversion: value has 200000 digits

Test 56

Verdict:

input
ydbfkccnflhkevsfnhrsgfisocskfs...

correct output
Yes

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: Exceeds the limit (4300) for integer string conversion: value has 200000 digits

Test 57

Verdict:

input
implxialwixramglvesaxoulttxcij...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: Exceeds the limit (4300) for integer string conversion: value has 200000 digits

Test 58

Verdict:

input
uarjxljelkshogcskndxmcouwesvrt...

correct output
No

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 32, in <module>
    print("".join(solve()))
  File "/box/input/code.py", line 2, in solve
    n, m = list(map(int, input().split()))
ValueError: Exceeds the limit (4300) for integer string conversion: value has 200000 digits