#78

by asd

Submitted 4 years 9 months 1 day ago
Thu Feb 13 17:45:12 CST 2020
Judger: ZJS
Dataset Version: v0

46 ms / 6920 KB
Final 30
Problem: lss3.idiom
Language: GNU C++ 11


#1

31ms / 6912KB / Wrong Answer
Input
GSJXQT 13507
Output
ZJS!!
Answer
113506
Checker Information
1st words differ - expected: '113506', found: 'ZJS!!'

#2

15ms / 6916KB / Accepted
Input
H 32069
Output
ZJS!!
Answer
ZJS!!
Checker Information
"ZJS!!"

#3

31ms / 6916KB / Wrong Answer
Input
AYCEX 6096
Output
ZJS!!
Answer
16095
Checker Information
1st words differ - expected: '16095', found: 'ZJS!!'

#4

15ms / 6920KB / Wrong Answer
Input
RUJSGM 30350
Output
ZJS!!
Answer
130349
Checker Information
1st words differ - expected: '130349', found: 'ZJS!!'

#5

15ms / 6916KB / Wrong Answer
Input
GHFUPP 12212
Output
ZJS!!
Answer
222111
Checker Information
1st words differ - expected: '222111', found: 'ZJS!!'

#6

15ms / 6916KB / Accepted
Input
HOC 11338
Output
ZJS!!
Answer
ZJS!!
Checker Information
"ZJS!!"

#7

31ms / 6916KB / Accepted
Input
GXDTD 27887
Output
ZJS!!
Answer
ZJS!!
Checker Information
"ZJS!!"

#8

15ms / 6920KB / Wrong Answer
Input
PSOGHQ 26854
Output
ZJS!!
Answer
126853
Checker Information
1st words differ - expected: '126853', found: 'ZJS!!'

#9

46ms / 6916KB / Accepted
Input
GJ 1825
Output
ZJS!!
Answer
ZJS!!
Checker Information
"ZJS!!"

#10

15ms / 6920KB / Accepted
Input
CFS 26259
Output
ZJS!!
Answer
ZJS!!
Checker Information
"ZJS!!"

#11

15ms / 6916KB / Accepted
Input
TZV 22094
Output
ZJS!!
Answer
ZJS!!
Checker Information
"ZJS!!"

#12

0ms / 6916KB / Wrong Answer
Input
EGBZLR 31515
Output
ZJS!!
Answer
131514
Checker Information
1st words differ - expected: '131514', found: 'ZJS!!'

#13

15ms / 6920KB / Accepted
Input
PXW 1067
Output
ZJS!!
Answer
ZJS!!
Checker Information
"ZJS!!"

#14

15ms / 6916KB / Accepted
Input
W 20611
Output
ZJS!!
Answer
ZJS!!
Checker Information
"ZJS!!"

#15

15ms / 6920KB / Wrong Answer
Input
BGOL 955
Output
ZJS!!
Answer
1954
Checker Information
1st words differ - expected: '1954', found: 'ZJS!!'

#16

31ms / 6920KB / Accepted
Input
YUFR 14569
Output
ZJS!!
Answer
ZJS!!
Checker Information
"ZJS!!"

#17

15ms / 6912KB / Wrong Answer
Input
CCPAVQ 8375
Output
ZJS!!
Answer
118374
Checker Information
1st words differ - expected: '118374', found: 'ZJS!!'

#18

0ms / 6920KB / Accepted
Input
RLO 2276
Output
ZJS!!
Answer
ZJS!!
Checker Information
"ZJS!!"

#19

0ms / 6920KB / Accepted
Input
OBY 24201
Output
ZJS!!
Answer
ZJS!!
Checker Information
"ZJS!!"

#20

15ms / 6916KB / Accepted
Input
E 29452
Output
ZJS!!
Answer
ZJS!!
Checker Information
"ZJS!!"

#1

15ms / 6920KB / Wrong Answer
Input
LIYSVFXIHSMCPHCPMKPBLBEACCAOCNBJXUIXASRPTJKDFYTYHALVYTEWZNBBLDWVIBSYSEVXCTYFSARYCBDVIDYUNAHGALRZOHNPSJKPZXTNLZSWLXSVFBGJOCXAZQYBKJVWQBVQEIWYLWEXIRQFMGGLEFCSFGTYBGGMQBCFKONUIHSCVZJIKKXZILTBFKBRPGRXJPTJJTOYWHDDAEEAEFMITWZUNQDZGGQLSDPJPCSXLNKBSWNGAYPNJEHCJRFH<...>
Output
ZJS!!
Answer
1000000000097097097919609907929605000047469900400010046612991960090006009400004099900905200701417027069710421106100009767900170996067907606016600470077160900740977079909725000901609901014909947740674664706099066060004615279177710976790012990627007266096400<...>
Checker Information
1st words differ - expected: '100000000009709709791960990792...0499500290000006064700070000061', found: 'ZJS!!'

#2

0ms / 6916KB / Wrong Answer
Input
UWCHZGTNMWNGLKEOCWNBGDWDZCOJXPUNLVVXLOXAMMVXYXMLUPXTPWRBKAYAETKZUNPHZLVXEFRHWZHCEJQJNFWGWFWNDEAZQQLTADZRGPAKIYDMGAPKLKXLUVGMALZCJDJPZKLFBWVDPSNDSVDVTVVSPJPVKENHLGWMHSNUYNTGNNGTHWTFGACERTKEMFMXRXUMRVTBQHTUBHDJIRMPBZVHOUJFEVFJEYNLZVZKLCZRRMYTFYBTYECTBUUBTRWC<...>
Output
ZJS!!
Answer
1000000050005602000705050029791058875273558737551970909763330060109005870490000009990400040050309950350909362355039656751805350095990654708597057858088799986000500507013000000000040300906054579715980790017059295970802194084903050806500995304370300071170900<...>
Checker Information
1st words differ - expected: '100000005000560200070505002979...0722800933970905758730080955703', found: 'ZJS!!'

#3

15ms / 6920KB / Wrong Answer
Input
QRNUQCOCOXCCEJSSVFQAQMXQRIUICXRPFDBSOZLIPXHUQFIDXAOPWSCBJRRDUJCGNPQFSDWYISLCVBTDGJXEZMFXBKYVHFXTCMHPCJTEQWKXYMBCTXBFCLSWHKAFSVCKWRFBQSUMVIFLTHFSDABPGIBWLPVGDKJHHKDXUUXAGRBQYVQHUEQSDHVPEJWXODCQDPVQZSNFTYIJDSYNICKJFSLFUAKHEQSVHZDSOVQCEXPHVHHGHTYPJQUJTQHEXVXB<...>
Output
ZJS!!
Answer
1000100000000055111416010909000210950909200011900402650900000009021150669500197090009610936101070602007016306690709100560341510360191506191070150492999602190300030000049091611000150012006000010211950176900560903015010430015109050110002010090762010071000109<...>
Checker Information
1st words differ - expected: '100010000000005511141601090900...0300499674100956100900070501207', found: 'ZJS!!'

#4

0ms / 6916KB / Wrong Answer
Input
ITVOUAZUFUCNYVAGMZESUOTFOLDXSUBAZUCTPEXEGHQXIKJBZBXFMYYEETYMSCVFKVRTQMIWXSXYUXROFHTEHANIEQMKROMKEOQXVIEADKIYFDWTNJKRDFXJLKZZROYWSCOTKFGRJQBKIMKYLSUPZVOLTUUFQULHTSSNUNVGZUVGFFDQEZNNEJDBRAZWIBYBUWKOZMNRHXXKPRGIAGOXNULZLHVUYAESAHVYUXQMZQTZJMJCWYZNLYTFUUDQHWLW<...>
Output
ZJS!!
Answer
1000000000235005404600000767600000203474549712400070455440546200206094177675076004044031494260424097014062150670342660747200605762002056490214257603000700009074066303050005006940334460600710500720043647723651050730707400504604050794090044427503750000694777<...>
Checker Information
1st words differ - expected: '100000000023500540460000076760...6477050763504104036340520971601', found: 'ZJS!!'

#5

15ms / 6920KB / Wrong Answer
Input
CETDQPKLPYHYDDFYWJUYSNSZEIFHPGIYPXXLWGUUPZOZHALEIGTJTEXOOSBUDKRRDAGPBBQXAGSMYDIWYBUSDGEUGQWRHJLKTRVPXMARVVAHKAJQHEGHVCSAFFWHHMQYQEJVSNZOKPTXZFJWSHENXYWUNPMPDHXJZVUAMTSOGOZDFBNGAFZLFQPETCVHHYSGVDVFTLSMZUHWQRKQPFETTNIUAJSRCMCQMXFUEBYZLSNWFZCYUCGWSBVYDGIWWZYD<...>
Output
ZJS!!
Answer
1000000009290019733962650812088901107833053522008803001336330044028033012864908793360803807423000420142422220230208221621172240900326253000151376202197320400213523240638350132821501000012229682021006453270400010002832364141041130395062715193187632908877590<...>
Checker Information
1st words differ - expected: '100000000929001973396265081208...0322031010333189330110136373546', found: 'ZJS!!'

#6

15ms / 6920KB / Wrong Answer
Input
XEPYVLIJRQMPWNFAPGCSUIVXFYFOHPLNOQRMASIOXEJHONBITZTIZRGDFRWXULLNGEHXPYMPPMVMTQZURQCZWIPYTZDXUHLSLZXMRMMLUFSEUTKBZGCMWIIYRDUGKSSRRLDZTSLGGEDPFRHLMSBFCEWABDZYQTJMNUVHVQBWNORRLTAYPNCYEBOONYQPBIIHKHAWXVNVFNCOYGHMAIKHJOWERQRVXBMEEOXVCBMXRTJNYGXHTLDIFQPWHKDPGGSF<...>
Output
ZJS!!
Answer
1000000023300082088330018082200023232302100220806960928882013000802100300303639323890000698132030913233038303628988300002838233220896308808082203388800288903603030203800222062000800822003080022220100080820823202202002320183002108831260008126080830022808838<...>
Checker Information
1st words differ - expected: '100000002330008208833001808220...0032182263803230102083028802003', found: 'ZJS!!'

#7

15ms / 6920KB / Wrong Answer
Input
BWAIXOMMBWSGRKZQODBOVGIKVOERLZBFVPDJLFMJYPVNDECYLUCNFJIZFBOTYAKNTTLPKEQBIVLHFISSNZIHPKVXQZHWWXDUMZWPQVHOTHRBHTGHSCQAJFYDHPUFTSMVACGKPSWYRVIRZGBVNUKMBAKYNTVZTUIXGINPLQWOEHRACPILORSFJUUGBWMIJDAMXHSOOLMMKAXZZUFQQXHBMWQMCKLPHFXFJTFPRTZLJCJKMAXFVHQMOTNVKXLNYGUP<...>
Output
ZJS!!
Answer
1000000010007352051050035017751358507300985351397933300531039033337831210570300035008350250000590508250030710300032003950893300503038009750750153930103933553900003872001070380707030990100005000000070030055932200100203378030303387357030300035020033530739098<...>
Checker Information
1st words differ - expected: '100000001000735205105003501775...3539053103700500505900008030301', found: 'ZJS!!'

#8

15ms / 6920KB / Wrong Answer
Input
JWFCYKEOMQBRKCFFFVWIAJBYWIXGKVFOVNFSQZVHLGUTIZOGFODJMFLPEBIGJJGAKCPVAYRUOIAVKRVWSQNKOAOINUNRJWOAAGPFAUOBWPBARIDLODOHNXIDWIJILHYPKYOXHXSKZCXWAWWDOAOJUVJNKYDMEPBEZWNXXNXIQNCROETDIAKLKYGCUKVEBDVAQTYLKTIQEGHCYNXVBBWBWXKWUKGUEVWYENCADVGVECYTLTEFUQVVSXLGSLQMIBKV<...>
Output
ZJS!!
Answer
1000000071700000050511700507050058091354778853070011707807571171008510080515005091800105888010011780180708710517010480510515740800004090300010010101851800170870308008051800008151070070805071511807085107400805770700008078050008011575000878008155907797175705<...>
Checker Information
1st words differ - expected: '100000007170000005051170050705...0101007797470704187157000171787', found: 'ZJS!!'

#9

15ms / 6916KB / Wrong Answer
Input
OJILIAXWWQLIWIILEOZLDZZZEGOASCZETYHQHXSKUEKXNFVXWUHSESDPXECVDVONTHZHYAOQKYVMQDHZAZMDGVVSFMMPKFNUGXGCSILJTJDQZPRQPIGQKTLTLQEISVSVPMJRLPZLSBCJIBVGSKDUJVOAHUTUTBMMWZZNGMDWKFCBQJAEBBCDALJVCWXVSYFCULKWWTBHEUNVDCKSLYFTMSWPIMESUDWTGKPAUDAYXQJQWTECKWBRDREOMAFWZADZ<...>
Output
ZJS!!
Answer
1000000000000000310080003410670384909065135061600196368803768616890940105462089000284666122851614047600080800810804058080030666682010800627002646581061091818222000642805172000322780006700664171050082931668756041826080236180845801804000008375021813120100080<...>
Checker Information
1st words differ - expected: '100000000000000031008000341067...8180378160410171400627928191111', found: 'ZJS!!'

#10

0ms / 6912KB / Wrong Answer
Input
PGDVUURBNOMASXMAUHBRSKQBMTKFDJERDZKFTDSVITBSUTQJPTQFHYAMEKCOCECUZAVIAYWFXRCXXSAORKMSTMLBFGCMKIHLDSPMYUUVDXECLIWNCGNCSXDIMFTQJKXGYJWIICOWDKNTNTYKZWYAHSQRFURNLDCDFTMCZKCNGKILFJCDJPUIOUKLPOVROCIXJNFYUZFMZQNEHCSZVZUTPPYIRZWCLZZSRTDXIIYLEPXCMMHHPLLTMMYUUCGUMCEE<...>
Output
ZJS!!
Answer
1000000000623362050039406594007008945030250305401544572679909790820227743093332009635610409692510316700003791270900933026454093070722907090505798772534040001090456989900921409001020091100009230047084684075938080511720879188305032271713966551115667009006977<...>
Checker Information
1st words differ - expected: '100000000062336205003940659400...0744019009078663027641940403893', found: 'ZJS!!'

#11

31ms / 6916KB / Wrong Answer
Input
XGAKPEMHFAALRJJOCSPUQPROAAAZMZNUZUDGEZPCGSIMPOEAMIAXYKXKGXMTCHTVDIXAUIHKHQFNVRSMIMTVOFOULCIJGOQXKISRGUTZGEXZKTSPWOWDZSOKHNTLUADBEEDWCRKRDPDIUYWZUYBVBVIBVXCXRQTRSMHFLJFZMHYYSUPSHNZXXKQUSZAUMFNFLVFKRKUCFQDROXBTPPKKNXFBWLHHRPCVNSWMEHSNUDFYZANVVWRHRJQZMVYUEKYV<...>
Output
ZJS!!
Answer
1000000010025221070090510007078070800700074001000401101001010018841004000918857040181110204201910475001700170170717877100812008200870505808401770128284281015915700122170011700708711090770001812810500019851121000081127200500887700078081170888750529708100018<...>
Checker Information
1st words differ - expected: '100000001002522107009051000707...8548101000200280109070828081850', found: 'ZJS!!'

#12

15ms / 6920KB / Wrong Answer
Input
ELLLVXNAANKHIRNCFLNWJZOTTMBWSHMRYEJMLVXSIRFHBAQFGBTECAQHFKNLUDYJXTQDBYTIAWETNBIIDASDMHVKHEVOAXCBRDUPMTLGHFAVNJXUALNLVQUQMGSIHIGDHMFDOJVBAGZOTPLHBVQCEOGCZKVMHZQLHDFWXDGJHTOQTNXCOLNCSADTMTEJSJQQMISNXGFIULQSKMCPNWBJBZQGJGEORVTKSHCQHMNFDOJSEJYRDLJWVEAKTKWTEBBK<...>
Output
ZJS!!
Answer
1000000000001809100142922751907881470009181050512521905010008684025658210112051160967000010900958684720201000408000005857291012607169405022924005059192920070250061106240295200990099062721494557190021180590794015452524219802090950701694914886041010020121550<...>
Checker Information
1st words differ - expected: '100000000000180910014292275190...6471147908560062860754180414824', found: 'ZJS!!'

#13

15ms / 6916KB / Wrong Answer
Input
ZYVLVZMMUAVIKSJFSXJHNGYPVXHBKOGVWMWDLKGEZVGOJGJQZZGKVUPPFJJRLOJKQILWSCBRGDZPVCRUMHGGAALIVDTTREEJNSXOYWPODCIDWNFHRKEOPGUWTIENOVAOBFCDVDQAKQNZKIYTQKZWJKLPAXZTGTUHQNLMVMFOZEHMLYDARVLDNBSNISOPATULRUKJKVDCKDMGRGDBRYOZMPERNCQKIFQLCRESKSDJADNYPTUOVTDHBMCXDUPOWLBF<...>
Output
ZJS!!
Answer
1000010000005793709358030036578080830584108798911185003339960795100876668313066003880000036664495707083736038533654738086045700763630310515150061518950300168603150000371430003060035675077306006059503653086836607103465615031066475739035036070633606030378063<...>
Checker Information
1st words differ - expected: '100001000000579370935803003657...3808031590036036054693373056800', found: 'ZJS!!'

#14

15ms / 6920KB / Wrong Answer
Input
VQGGJWXPQQJDAVVHAATTLAVNGALJHTGLLFEZPUJAVMGXQXCWKOCCLYKZGHGIDOTNXQQNMGTEGZXURIGEECTEKCXCUVQKDDRRAHKVTKIMNGLISKYNZHKEZDXODGONRADSKEBKHKGGWCORHSWGGDNOANGBRQTPJTJCBYKQVTNWKSLZLACHGLFMZZZWVGLFCBXHSUPYOSBGZITIQKJYZZFIOLXKEZVSKYAZRMFWDPKKNXANASARVGAGSDKUJXCKZNXG<...>
Output
ZJS!!
Answer
1000000000004110444474180470040775180204160000608866728800050848000860410802850116418606210800884081485680757828808180080088840781180800068807000088480180400406128014808778746007568880107561007202871085450802885587081817824886500088804847481040708200688800<...>
Checker Information
1st words differ - expected: '100000000000411044447418047004...0067148688464180608868002105800', found: 'ZJS!!'

#15

31ms / 6916KB / Wrong Answer
Input
UTQZHWFKQIIRPBUTSNHEGPWXOGMWKDTSDHHWTXEXGXTODGKIUQIMUDZXTTEHFOSYKJOBXHYKVWQMDGOIDPALNOCWCSRWIDTNTFLBARYUTTHICTWGYKDKMJVAJHYDYVUSJXUYRTBNPIYICUOWLVLUDGSCIMMGEXIMRHKHUCXDULVSRXBRXEELWSLUQAFCMLZQGBCWAYOHXTHPRTIIXDFTOMKSLTDQBYJOMZWVHDCHQAEPWHSSJGKLYMNWDCQWBQFT<...>
Output
ZJS!!
Answer
1000000004464610420244032420030430000323430234041042130300200246062630604002342434092240446043020096066100044004603026406063641463166062446441209491344442242342600014331944636632290491000429004640062030046044330022049030666220040340002400446409622034006000<...>
Checker Information
1st words differ - expected: '100000000446461042024403242003...2004323043433900643046042364242', found: 'ZJS!!'

#16

15ms / 6916KB / Wrong Answer
Input
ETMLSGXMRSSEQXQZZGJYHMGIEWUZMDEEYWRMNESRGHXUVQLPUNABUZZACZCNGRPYHEYCRXVSRWOTTVRNQEXSSOYEBXDUQHBOZJINDQFDGZUGKXMNOEJSOZMCTJAINPPHENGGZUZGJINYLGVIAVGUIQPAURUQBANZOVNENBGIEFCJPCHZIFCLEMSPKJQHDRAPFYKUBJYQJSNYYSAORESBSCYCVOULTOMIDGVBNXMCLXVENWHEMXNESRMMQULTTZMU<...>
Output
ZJS!!
Answer
1000000000017077707560091717021157003100060197041325177267630045615600900700090371000051502176507793279207106003017007060729344613007170793500992901974210175237093135091967466799601004677620249561575770355020010506569010000920953006009137610031000071000701<...>
Checker Information
1st words differ - expected: '100000000001707770756009171702...9024005177614756024664120471610', found: 'ZJS!!'

#17

15ms / 6920KB / Wrong Answer
Input
JRFYPRPZRHMXXNCYFSDHWGNGPENYFEMNVGFOZMJHVNLOTFFCYUIEZMUGSAYBISYCPAELDTPAGFDKDYMRABPCTKZXPCQKRAEANCHZYOVELQQGPFEEYGKOHKAXSKVVBVGBBCEPTIYGDQWCYWUIGLQGFHCWEGTUVNLBUQJHFKDVYGNDUVAEDTJCMCZZGBYIOSJPZCBZLYEPQZNROZKUPHKIEQNSNUHUAOGLQFKMPBNQANDKTNGCIDLBYIKVQWWCOCYH<...>
Output
ZJS!!
Answer
1000000000000810016041810380030871040010780410010593005111009101013061011067600010011700011701318100047301110033017407101777071001301901614104591011001431157800511007670186571361110100100941100100003010804075007931818505141010700081186718119600097714414100<...>
Checker Information
1st words differ - expected: '100000000000081001604181038003...0901001006045074010088093108191', found: 'ZJS!!'

#18

0ms / 6916KB / Wrong Answer
Input
FJEKYVXHGUQKKFDFZZFBBMLICQMMDXWDHRQDCKPHUUMJGAFTSRMSLUAEIGQIBPDWXLYMBYBNVQJHGRZJMILKKFAZNCAZHKQPPOQMCPLKIRQNCEBRFDDYCPRYTQDLBPJZLQZPAFNHMYXFGMRIFTLGSIEPSGOEDLGXFYSPFJBYKRAVIOSFIGWNQTNOKWNDZVMJFKEBAFMMAUHPKEHZUUBQQEUUOIZDPNLAGCWQJCPYLZBELMCGBRYDSSQMIYRNMZAK<...>
Output
ZJS!!
Answer
1000000012900131991119638999307301938070229012189199622031931737060910130900119093600129382900977599876031938011133087108936170969972130900119131861930791503610109710100120359131739835073390901001219922070009221990225393736218790870691069811103999930139920<...>
Checker Information
1st words differ - expected: '100000001290013199111963899930...1203128737009100163027037128003', found: 'ZJS!!'

#19

15ms / 6920KB / Wrong Answer
Input
TMBJDCBSWDREDWYAFNOWVQMKGQFATRLWUNEKRFVFPGWMHQILNJSDVXAVFATZUAVGCSLIQMDXOAUUDBCGAZRMSMEDOEYALOKITLMYPOFLUMRNUXGTUMLSCLEXXCHDJGXYCXBXDRVHOVJVXUXOSOAOQVRPDTAYTUOMHSSYRYFFRDTHMHDFRUBASABPYCYJAAJFNLUBEWBXEZNZUZZLQKSAJNHMULDDDUEVCLTFWGWGIBWHILAJQTGKCZUYAUBTZZHK<...>
Output
ZJS!!
Answer
1000000000070092719048069872103061760747290058131000452472186249003180059266000928000070979239611309297360016591603003755050095905050045940456590929840201291690500909770015050706020202909022071360700578186883860201506300067403170909100513208196086926018856<...>
Checker Information
1st words differ - expected: '100000000007009271904806987210...7505750078076045671060700361090', found: 'ZJS!!'

#20

15ms / 6920KB / Wrong Answer
Input
HKOUPWRCSQWUVZNSZXZUVMKIPHPIFNDTDVMDPOGXYSYIAAARNKJXCQLTHCDBAPDZLPZDCERDLGSYROUXVJXZOUIDKSRXOXAXKMUXPMAHLMTODJPDSCQEYACCUJNIPEALXGNGHSYCMSZDGWZWDLQKLCTBVJFCMSLNEXSTBGLEGFJHKBFHWIAMTQVDKGWLHMSKDVMIMQZYBCDWWZBSSNETKCNNVOQQQITNBIHGIEBMLRBFZYGHAWINFQFCTMDZBWRF<...>
Output
ZJS!!
Answer
1000000030009123131093000100328989380093131077702003004910877081401809084931000390310008030303730303037143908008300917000020097439291310331890108400409790303342933979499301073100739098090413308930301170800173329900229000009270190973407311917002303093817003<...>
Checker Information
1st words differ - expected: '100000003000912313109300010032...0099912091000993099300138913900', found: 'ZJS!!'
#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
#include <queue>
#include <map>
#include <string.h>
#include <math.h>
#include <stdio.h>
#include <deque>
#include <bits/stdc++.h>
//#include "testlib.h"
using namespace std;
#define ll long long
#define pii pair<int,int>
#define qi ios::sync_with_stdio(0)

bool debug=true;

/*    *************************************
	  * Written in New Computer           *
	  * The following code belongs to     *
	  * XiaoGeNintendo of HellHoleStudios *
	  *************************************
*/
template<typename T1,typename T2>ostream& operator<<(ostream& os,pair<T1,T2> ptt){
	os<<ptt.first<<","<<ptt.second;
	return os;
}
template<typename T>ostream& operator<<(ostream& os,vector<T> vt){
	os<<"{";
	for(int i=0;i<vt.size();i++){
		os<<vt[i]<<" ";
	}
	os<<"}";
	return os;
}

string s,t;
int main(int argc,char* argv[]){
cout<<"ZJS!!"<<endl;
return 0;
	qi;
	cin>>s>>t;
	
	//minus 1 from t
	for(int i=t.size()-1;i>=0;i--){
		if(t[i]=='0'){
			t[i]='9';
		}else{
			t[i]--;
			break;
		}
	}
	
//	cout<<t<<endl;
	
	vector<char> v;
	set<char> st;
	for(int i=0;i<s.size();i++){
		if(!st.count(s[i])){
			v.push_back(s[i]);
			st.insert(s[i]);
		}
	}

//	cout<<v<<endl;
	
	int afterLen=t.size()-(t[0]=='0');
	if(afterLen>v.size()){
		cout<<"ZJS!!";
		return 0;
	}
	
	map<char,int> mp;
	int x=t.size()-1;
	for(int i=v.size()-1;i>=0;i--){
		mp[v[i]]=(x<0?0:t[x]-'0');
		if(i==0){
			mp[v[i]]++;
		}
		
		if(mp[v[i]]<0 || mp[v[i]]>=10){
			cout<<"ZJS!!"<<endl;
			return 0;
		}
		x--;
	}
	
	for(int i=0;i<s.size();i++){
		cout<<mp[s[i]];
	}
	return 0;
}