#include
#include
#include
#include
#include
using namespace std;
int a,b,c;
int num[10000]={1,2,3,5,7,11,101,131,151,181,191,313,353,373,383,727,757,787,797,919,929,10301,10501,10601,11311,11411,12421,12721,12821,13331,13831,13931,14341,14741,15451,15551,16061,16361,16561,16661,17471,17971,18181,18481,19391,19891,19991,30103,30203,30403,30703,30803,31013,31513,32323,32423,33533,34543,34843,35053,35153,35353,35753,36263,36563,37273,37573,38083,38183,38783,39293,70207,70507,70607,71317,71917,72227,72727,73037,73237,73637,74047,74747,75557,76367,76667,77377,77477,77977,78487,78787,78887,79397,79697,79997,90709,91019,93139,93239,93739,94049,94349,94649,94849,94949,95959,96269,96469,96769,97379,97579,97879,98389,98689,1003001,1008001,1022201,1028201,1035301,1043401,1055501,1062601,1065601,1074701,1082801,1085801,1092901,1093901,1114111,1117111,1120211,1123211,1126211,1129211,1134311,1145411,1150511,1153511,1160611,1163611,1175711,1177711,1178711,1180811,1183811,1186811,1190911,1193911,1196911,1201021,1208021,1212121,1215121,1218121,1221221,1235321,1242421,1243421,1245421,1250521,1253521,1257521,1262621,1268621,1273721,1276721,1278721,1280821,1281821,1286821,1287821,1300031,1303031,1311131,1317131,1327231,1328231,1333331,1335331,1338331,1343431,1360631,1362631,1363631,1371731,1374731,1390931,1407041,1409041,1411141,1412141,1422241,1437341,1444441,1447441,1452541,1456541,1461641,1463641,1464641,1469641,1486841,1489841,1490941,1496941,1508051,1513151,1520251,1532351,1535351,1542451,1548451,1550551,1551551,1556551,1557551,1565651,1572751,1579751,1580851,1583851,1589851,1594951,1597951,1598951,1600061,1609061,1611161,1616161,1628261,1630361,1633361,1640461,1643461,1646461,1654561,1657561,1658561,1660661,1670761,1684861,1685861,1688861,1695961,1703071,1707071,1712171,1714171,1730371,1734371,1737371,1748471,1755571,1761671,1764671,1777771,1793971,1802081,1805081,1820281,1823281,1824281,1826281,1829281,1831381,1832381,1842481,1851581,1853581,1856581,1865681,1876781,1878781,1879781,1880881,1881881,1883881,1884881,1895981,1903091,1908091,1909091,1917191,1924291,1930391,1936391,1941491,1951591,1952591,1957591,1958591,1963691,1968691,1969691,1970791,1976791,1981891,1982891,1984891,1987891,1988891,1993991,1995991,1998991,3001003,3002003,3007003,3016103,3026203,3064603,3065603,3072703,3073703,3075703,3083803,3089803,3091903,3095903,3103013,3106013,3127213,3135313,3140413,3155513,3158513,3160613,3166613,3181813,3187813,3193913,3196913,3198913,3211123,3212123,3218123,3222223,3223223,3228223,3233323,3236323,3241423,3245423,3252523,3256523,3258523,3260623,3267623,3272723,3283823,3285823,3286823,3288823,3291923,3293923,3304033,3305033,3307033,3310133,3315133,3319133,3321233,3329233,3331333,3337333,3343433,3353533,3362633,3364633,3365633,3368633,3380833,3391933,3392933,3400043,3411143,3417143,3424243,3425243,3427243,3439343,3441443,3443443,3444443,3447443,3449443,3452543,3460643,3466643,3470743,3479743,3485843,3487843,3503053,3515153,3517153,3528253,3541453,3553553,3558553,3563653,3569653,3586853,3589853,3590953,3591953,3594953,3601063,3607063,3618163,3621263,3627263,3635363,3643463,3646463,3670763,3673763,3680863,3689863,3698963,3708073,3709073,3716173,3717173,3721273,3722273,3728273,3732373,3743473,3746473,3762673,3763673,3765673,3768673,3769673,3773773,3774773,3781873,3784873,3792973,3793973,3799973,3804083,3806083,3812183,3814183,3826283,3829283,3836383,3842483,3853583,3858583,3863683,3864683,3867683,3869683,3871783,3878783,3893983,3899983,3913193,3916193,3918193,3924293,3927293,3931393,3938393,3942493,3946493,3948493,3964693,3970793,3983893,3991993,3994993,3997993,3998993,7014107,7035307,7036307,7041407,7046407,7057507,7065607,7069607,7073707,7079707,7082807,7084807,7087807,7093907,7096907,7100017,7114117,7115117,7118117,7129217,7134317,7136317,7141417,7145417,7155517,7156517,7158517,7159517,7177717,7190917,7194917,7215127,7226227,7246427,7249427,7250527,7256527,7257527,7261627,7267627,7276727,7278727,7291927,7300037,7302037,7310137,7314137,7324237,7327237,7347437,7352537,7354537,7362637,7365637,7381837,7388837,7392937,7401047,7403047,7409047,7415147,7434347,7436347,7439347,7452547,7461647,7466647,7472747,7475747,7485847,7486847,7489847,7493947,7507057,7508057,7518157,7519157,7521257,7527257,7540457,7562657,7564657,7576757,7586857,7592957,7594957,7600067,7611167,7619167,7622267,7630367,7632367,7644467,7654567,7662667,7665667,7666667,7668667,7669667,7674767,7681867,7690967,7693967,7696967,7715177,7718177,7722277,7729277,7733377,7742477,7747477,7750577,7758577,7764677,7772777,7774777,7778777,7782877,7783877,7791977,7794977,7807087,7819187,7820287,7821287,7831387,7832387,7838387,7843487,7850587,7856587,7865687,7867687,7868687,7873787,7884887,7891987,7897987,7913197,7916197,7930397,7933397,7935397,7938397,7941497,7943497,7949497,7957597,7958597,7960697,7977797,7984897,7985897,7987897,7996997,9002009,9015109,9024209,9037309,9042409,9043409,9045409,9046409,9049409,9067609,9073709,9076709,9078709,9091909,9095909,9103019,9109019,9110119,9127219,9128219,9136319,9149419,9169619,9173719,9174719,9179719,9185819,9196919,9199919,9200029,9209029,9212129,9217129,9222229,9223229,9230329,9231329,9255529,9269629,9271729,9277729,9280829,9286829,9289829,9318139,9320239,9324239,9329239,9332339,9338339,9351539,9357539,9375739,9384839,9397939,9400049,9414149,9419149,9433349,9439349,9440449,9446449,9451549,9470749,9477749,9492949,9493949,9495949,9504059,9514159,9526259,9529259,9547459,9556559,9558559,9561659,9577759,9583859,9585859,9586859,9601069,9602069,9604069,9610169,9620269,9624269,9626269,9632369,9634369,9645469,9650569,9657569,9670769,9686869,9700079,9709079,9711179,9714179,9724279,9727279,9732379,9733379,9743479,9749479,9752579,9754579,9758579,9762679,9770779,9776779,9779779,9781879,9782879,9787879,9788879,9795979,9801089,9807089,9809089,9817189,9818189,9820289,9822289,9836389,9837389,9845489,9852589,9871789,9888889,9889889,9896989,9902099,9907099,9908099,9916199,9918199,9919199,9921299,9923299,9926299,9927299,9931399,9932399,9935399,9938399,9957599,9965699,9978799,9980899,9981899,9989899,100030001,100050001,100060001,100111001,100131001,100161001,100404001,100656001,100707001,100767001,100888001,100999001,101030101,101060101,101141101,101171101,101282101,101292101,101343101,101373101,101414101,101424101,101474101,101595101,101616101,101717101,101777101,101838101,101898101,101919101,101949101,101999101,102040201,102070201,102202201,102232201,102272201,102343201,102383201,102454201,102484201,102515201,102676201,102686201,102707201,102808201,102838201,103000301,103060301,103161301,103212301,103282301,103303301,103323301,103333301,103363301,103464301,103515301,103575301,103696301,103777301,103818301,103828301,103909301,103939301,104000401,104030401,104040401,104111401,104222401,104282401,104333401,104585401,104616401,104787401,104838401,104919401,104949401,105121501,105191501,105202501,105262501,105272501,105313501,105323501,105343501,105575501,105616501,105656501,105757501,105818501,105868501,105929501,106060601,106111601,106131601,106191601,106222601,106272601,106353601,106444601,106464601,106545601,106555601,106717601,106909601,106929601,107000701,107070701,107121701,107232701,107393701,107414701,107424701,107595701,107636701,107646701,107747701,107757701,107828701,107858701,107868701,107888701,107939701,107949701,108070801,108101801,108121801,108151801,108212801,108323801,108373801,108383801,108434801,108464801,108484801,108494801,108505801,108565801,108686801,108707801,108767801,108838801,108919801,108959801,109000901,109101901,109111901,109161901,109333901,109404901,109434901,109444901,109474901,109575901,109656901,109747901,109777901,109797901,109818901,109909901,109929901,110111011,110232011,110252011,110343011,110424011,110505011,110565011,110676011,110747011,110757011,110909011,110949011,110999011,111010111,111020111,111050111,111070111,111181111,111191111,111262111,111272111,111454111,111484111,111515111,111616111,111686111,111757111,111848111,112030211,112060211,112111211,112161211,112171211,112212211,112434211,112494211,112545211,112636211,112878211,112959211,112969211,112989211,113030311,113090311,113111311,113262311,113282311,113474311,113535311,113565311,113616311,113636311,113888311,113939311,114040411,114191411,114232411,114353411,114383411,114484411,114494411,114535411,114727411,114808411,114818411,114848411,114878411,114898411,115000511,115020511,115060511,115111511,115141511,115191511,115212511,115222511,115404511,115464511,115545511,115636511,115737511,115767511,115797511,115828511,115959511,116000611,116010611,116040611,116424611,116505611,116646611,116696611,116757611,116777611,116828611,116868611,116919611,117070711,117101711,117262711,117272711,117323711,117484711,117505711,117515711,117616711,117686711,117757711,117767711,117797711,117818711,117959711,118252811,118272811,118414811,118464811,118525811,118626811,118686811,118696811,118717811,118818811,118848811,118909811,118959811,119010911,119171911,119202911,119343911,119363911,119454911,119585911,119595911,119646911,119676911,119696911,119717911,119787911,119868911,119888911,119969911,120191021,120242021,120434021,120454021,120494021,120535021,120565021,120646021,120808021,120868021,120989021,121080121,121111121,121131121,121161121,121272121,121282121,121393121,121414121,121555121,121747121,121818121,121878121,121939121,121989121,122040221,122232221,122262221,122292221,122333221,122363221,122373221,122393221,122444221,122484221,122535221,122696221,122787221,122858221,122919221,123161321,123292321,123424321,123484321,123494321,123575321,123767321,123838321,123989321,124000421,124080421,124101421,124131421,124252421,124323421,124333421,124434421,124515421,124525421,124626421,124656421,124717421,124737421,124959421,124989421,125000521,125010521,125232521,125252521,125292521,125343521,125474521,125505521,125565521,125606521,125616521,125757521,125838521,125939521,125979521,125999521,126101621,126161621,126181621,126202621,126212621,126323621,126424621,126484621,126535621,126595621,126616621,126676621,126686621,126727621,126737621,126757621,126878621,127060721,127090721,127131721,127212721,127383721,127494721,127545721,127636721,127656721,127686721,127717721,127747721,127828721,127909721,127929721,128070821,128090821,128121821,128181821,128202821,128252821,128262821,128282821,128444821,128474821,128525821,128535821,128595821,128646821,128747821,128787821,128868821,128919821,128939821,129080921,129202921,129292921,129323921,129373921,129484921,129494921,129535921,129737921,129919921,129979921,130020031,130030031,130060031,130141031,130171031,130222031,130333031,130444031,130464031,130545031,130555031,130585031,130606031,130636031,130717031,130767031,130818031,130828031,130858031,130969031,131030131,131111131,131121131,131222131,131252131,131333131,131555131,131565131,131585131,131646131,131676131,131828131,132010231,132191231,132464231,132535231,132595231,132646231,132676231,132757231,133020331,133060331,133111331,133161331,133252331,133474331,133494331,133575331,133686331,133767331,133818331,133909331,134090431,134181431,134232431,134424431,134505431,134525431,134535431,134616431,134757431,134808431,134858431,134888431,134909431,134919431,134979431,135010531,135040531,135101531,135121531,135161531,135262531,135434531,135494531,135515531,135626531,135646531,135707531,135838531,135868531,135878531,135929531,135959531,135979531,136090631,136171631,136222631,136252631,136303631,136363631,136474631,136545631,136737631,136797631,136818631,136909631,136969631,137030731,137040731,137060731,137090731,137151731,137171731,137232731,137282731,137333731,137363731,137424731,137474731,137606731,137636731,137696731,137757731,137808731,137838731,137939731,137999731,138040831,138131831,138242831,138292831,138313831,138383831,138454831,138575831,138616831,138646831,138757831,138898831,138959831,138989831,139131931,139161931,139222931,139252931,139282931,139383931,139474931,139515931,139606931,139626931,139717931,139848931,139959931,139969931,139999931,140000041,140030041,140151041,140303041,140505041,140565041,140606041,140777041,140787041,140828041,140868041,140898041,141020141,141070141,141131141,141151141,141242141,141262141,141313141,141343141,141383141,141484141,141494141,141575141,141595141,141616141,141767141,141787141,141848141,142000241,142030241,142080241,142252241,142272241,142353241,142363241,142464241,142545241,142555241,142686241,142707241,142797241,142858241,142888241,143090341,143181341,143262341,143303341,143454341,143474341,143585341,143636341,143787341,143828341,143919341,143969341,144010441,144020441,144202441,144212441,144313441,144353441,144404441,144434441,144484441,144505441,144707441,144757441,144808441,144818441,144848441,144878441,144898441,144979441,144989441,145020541,145030541,145090541,145353541,145363541,145393541,145464541,145494541,145575541,145666541,145767541,146030641,146040641,146181641,146222641,146252641,146313641,146363641,146505641,146555641,146565641,146676641,146858641,146909641,147191741,147232741,147242741,147313741,147343741,147373741,147434741,147515741,147565741,147616741,147686741,147707741,147757741,147838741,147929741,148020841,148060841,148080841,148414841,148444841,148525841,148545841,148585841,148666841,148686841,148707841,148818841,148858841,148888841,148969841,149000941,149333941,149343941,149484941,149535941,149555941,149616941,149646941,149696941,149858941,149888941,149909941,149919941,149939941,150070051,150151051,150181051,150202051,150272051,150434051,150494051,150505051,150626051,150686051,150727051,150808051,150818051,150979051,151080151,151161151,151212151,151222151,151282151,151353151,151545151,151585151,151656151,151737151,151777151,151858151,151878151,151888151,151959151,151969151,151999151,152090251,152111251,152171251,152181251,152252251,152363251,152393251,152454251,152505251,152565251,152616251,152646251,152666251,152696251,152888251,152939251,153212351,153272351,153292351,153313351,153323351,153404351,153424351,153454351,153484351,153494351,153626351,153808351,153818351,153838351,153979351,154030451,154191451,154252451,154272451,154303451,154323451,154383451,154393451,154474451,154494451,154555451,154575451,154989451,155060551,155141551,155171551,155292551,155313551,155333551,155373551,155424551,155474551,155535551,155646551,155666551,155676551,155808551,155828551,155868551,156151651,156262651,156343651,156424651,156434651,156494651,156545651,156595651,156656651,156707651,156727651,156757651,156848651,156878651,156949651,157090751,157101751,157161751,157252751,157393751,157444751,157555751,157717751,157878751,157888751,157939751,157959751,157989751,158090851,158111851,158222851,158252851,158363851,158474851,158595851,158676851,158696851,158747851,158808851,158858851,158898851,158909851,159020951,159040951,159050951,159121951,159181951,159191951,159202951,159232951,159262951,159292951,159323951,159404951,159464951,159565951,159595951,159646951,159757951,159808951,159919951,159929951,159959951,160020061,160050061,160080061,160101061,160131061,160141061,160161061,160171061,160393061,160545061,160696061,160707061,160717061,160797061,160878061,161171161,161282161,161313161,161363161,161474161,161484161,161535161,161585161,161636161,161787161,161838161,161969161,162040261,162232261,162404261,162464261,162484261,162565261,162686261,162707261,162757261,162898261,162919261,162949261,162959261,162979261,162989261,163101361,163333361,163434361,163464361,163474361,163494361,163515361,163555361,163606361,163686361,163696361,163878361,163959361,164000461,164070461,164151461,164292461,164333461,164454461,164484461,164585461,164616461,164696461,164717461,164727461,164838461,165101561,165161561,165191561,165212561,165343561,165515561,165535561,165808561,165878561,165898561,165919561,165949561,166000661,166080661,166171661,166191661,166404661,166545661,166555661,166636661,166686661,166818661,166828661,166878661,166888661,166929661,167000761,167111761,167262761,167393761,167454761,167474761,167484761,167636761,167646761,167787761,167888761,167898761,167979761,168151861,168191861,168232861,168404861,168505861,168515861,168565861,168818861,168898861,168929861,168949861,169060961,169131961,169141961,169282961,169333961,169383961,169464961,169555961,169606961,169656961,169666961,169686961,169777961,169797961,169858961,169999961,170040071,170060071,170232071,170303071,170333071,170414071,170424071,170484071,170606071,170616071,170646071,170828071,170838071,170909071,170979071,171080171,171262171,171292171,171343171,171565171,171575171,171767171,171919171,171959171,172060271,172090271,172161271,172353271,172363271,172393271,172474271,172585271,172656271,172747271,172767271,172797271,172878271,172909271,172959271,173000371,173030371,173090371,173252371,173373371,173454371,173525371,173585371,173696371,173757371,173777371,173828371,173868371,173888371,173898371,173919371,174080471,174121471,174131471,174181471,174313471,174343471,174595471,174646471,174676471,174919471,174949471,174979471,174989471,175000571,175090571,175101571,175111571,175353571,175444571,175555571,175626571,175747571,175777571,175848571,175909571,176090671,176111671,176141671,176181671,176232671,176313671,176333671,176373671,176393671,176414671,176585671,176636671,176646671,176666671,176696671,176757671,176787671,176888671,176898671,176939671,177121771,177161771,177202771,177242771,177323771,177565771,177616771,177707771,177757771,177868771,178101871,178131871,178141871,178161871,178353871,178414871,178515871,178525871,178656871,178717871,178747871,178878871,178969871,178989871,178999871,179010971,179060971,179222971,179232971,179262971,179414971,179454971,179484971,179717971,179777971,179808971,179858971,179868971,179909971,179969971,179999971,180070081,180101081,180161081,180292081,180515081,180535081,180545081,180565081,180616081,180757081,180959081,181111181,181515181,181545181,181666181,181737181,181797181,181888181,182010281,182202281,182373281,182585281,182616281,182636281,182777281,182858281,182949281,183232381,183626381,183656381,183737381,183898381,183979381,183989381,184030481,184212481,184222481,184303481,184393481,184414481,184545481,184585481,184606481,184636481,184747481,184818481,184878481,185232581,185373581,185393581,185525581,185555581,185595581,185676581,185757581,185838581,185858581,185868581,185999581,186010681,186040681,186050681,186070681,186101681,186131681,186151681,186161681,186424681,186484681,186505681,186565681,186656681,186676681,186787681,186898681,187090781,187101781,187111781,187161781,187272781,187404781,187434781,187444781,187525781,187767781,187909781,187939781,187999781,188010881,188060881,188141881,188151881,188303881,188373881,188414881,188454881,188505881,188525881,188535881,188616881,188636881,188646881,188727881,188777881,188868881,188888881,188898881,188979881,189080981,189131981,189262981,189292981,189464981,189535981,189595981,189727981,189787981,189838981,189898981,189929981,190000091,190020091,190080091,190101091,190252091,190404091,190434091,190464091,190494091,190656091,190696091,190717091,190747091,190777091,190858091,190909091,191090191,191171191,191232191,191292191,191313191,191565191,191595191,191727191,191757191,191838191,191868191,191939191,191969191,192101291,192191291,192202291,192242291,192313291,192404291,192454291,192484291,192767291,192797291,192898291,193000391,193030391,193191391,193212391,193282391,193303391,193383391,193414391,193464391,193555391,193686391,193858391,193888391,194000491,194070491,194121491,194222491,194232491,194292491,194303491,194393491,194505491,194595491,194606491,194787491,194939491,194999491,195010591,195040591,195070591,195151591,195202591,195242591,195353591,195505591,195545591,195707591,195767591,195868591,195878591,195949591,195979591,196000691,196090691,196323691,196333691,196363691,196696691,196797691,196828691,196878691,197030791,197060791,197070791,197090791,197111791,197121791,197202791,197292791,197343791,197454791,197525791,197606791,197616791,197868791,197898791,197919791,198040891,198070891,198080891,198131891,198292891,198343891,198353891,198383891,198454891,198565891,198656891,198707891,198787891,198878891,198919891,199030991,199080991,199141991,199171991,199212991,199242991,199323991,199353991,199363991,199393991,199494991,199515991,199545991,199656991,199767991,199909991,199999991,300020003,300080003,300101003,300151003,300181003,300262003,300313003,300565003,300656003,300808003,300818003,300848003,300868003,300929003,300959003,301050103,301111103,301282103,301434103,301494103,301555103,301626103,301686103,301818103,301969103,302030203,302070203,302202203,302303203,302313203,302333203,302343203,302444203,302454203,302525203,302535203,302555203,302646203,302676203,302858203,302898203,302909203,303050303,303121303,303161303,303272303,303292303,303373303,303565303,303616303,303646303,303757303,303878303,303929303,303979303,304050403,304090403,304131403,304171403,304191403,304242403,304282403,304353403,304404403,304414403,304444403,304464403,304515403,304555403,304585403,304666403,304909403,304989403,305090503,305111503,305121503,305222503,305454503,305474503,305484503,305525503,305666503,305757503,305777503,305888503,305979503,306080603,306101603,306151603,306292603,306313603,306323603,306383603,306494603,306737603,306838603,306929603,306989603,307050703,307101703,307161703,307171703,307323703,307404703,307666703,307696703,307797703,307959703,307969703,308171803,308282803,308343803,308424803,308454803,308525803,308535803,308646803,308666803,308808803,308828803,308888803,308898803,308969803,309010903,309070903,309080903,309181903,309272903,309434903,309515903,309626903,309656903,309787903,309818903,309878903,309919903,309949903,309979903,310131013,310212013,310222013,310282013,310383013,310585013,310606013,310626013,310636013,310696013,310707013,310737013,310747013,310767013,310969013,310989013,311262113,311373113,311414113,311444113,311484113,311555113,311636113,311868113,312020213,312040213,312050213,312080213,312373213,312505213,312545213,312626213,312676213,312737213,312787213,312797213,312838213,312848213,312929213,312979213,312989213,313020313,313111313,313222313,313383313,313434313,313545313,313686313,313999313,314282413,314303413,314313413,314333413,314373413,314535413,314555413,314646413,314747413,314898413,315010513,315050513,315070513,315131513,315272513,315313513,315353513,315424513,315494513,315535513,315656513,315727513,315808513,315868513,315959513,316000613,316141613,316212613,316353613,316494613,316545613,316575613,316626613,316686613,316696613,316707613,316828613,316888613,317060713,317202713,317252713,317303713,317313713,317363713,317424713,317474713,317565713,317646713,317727713,317808713,317838713,317919713,317949713,317969713,318010813,318050813,318080813,318181813,318191813,318212813,318272813,318464813,318484813,318575813,318595813,318707813,318787813,318808813,319050913,319090913,319131913,319171913,319191913,319282913,319353913,319393913,319404913,319414913,319494913,319575913,319606913,319656913,319717913,319747913,319797913,319828913,319909913,319929913,319969913,319999913,320060023,320141023,320151023,320292023,320313023,320444023,320565023,320606023,320636023,320646023,320787023,320939023,321242123,321373123,321383123,321404123,321757123,321797123,321848123,321898123,321949123,321989123,322030223,322080223,322161223,322222223,322282223,322323223,322414223,322474223,322494223,322606223,322707223,322737223,322828223,322878223,322939223,322959223,322989223,323070323,323090323,323141323,323222323,323232323,323333323,323343323,323414323,323535323,323676323,323696323,323777323,323868323,323979323,323999323,324050423,324070423,324101423,324191423,324202423,324232423,324343423,324353423,324434423,324787423,324797423,324848423,324949423,325060523,325080523,325090523,325161523,325171523,325191523,325212523,325272523,325282523,325363523,325383523,325626523,325636523,325686523,325767523,325777523,325929523,325989523,325999523,326111623,326141623,326181623,326202623,326252623,326292623,326303623,326525623,326616623,326747623,327050723,327121723,327272723,327292723,327353723,327505723,327515723,327646723,327656723,327757723,327898723,327979723,328000823,328030823,328212823,328383823,328494823,328515823,328606823,328636823,328828823,328929823,328939823,329282923,329393923,329414923,329474923,329585923,329666923,329747923,329777923,329787923,329808923,329858923,330050033,330101033,330131033,330161033,330212033,330404033,330424033,330515033,330595033,330646033,330676033,330707033,330787033,330919033,331000133,331111133,331161133,331171133,331333133,331404133,331444133,331515133,331525133,331545133,331636133,331777133,331818133,331848133,331878133,331929133,331969133,331999133,332000233,332090233,332121233,332141233,332151233,332171233,332181233,332262233,332373233,332414233,332424233,332484233,332616233,332646233,332727233,332919233,333010333,333040333,333080333,333121333,333181333,333212333,333434333,333454333,333535333,333676333,333686333,333727333,333898333,333949333,333979333,334050433,334131433,334161433,334282433,334383433,334414433,334545433,334575433,334696433,334707433,334737433,334747433,334777433,334797433,334848433,334909433,334939433,335060533,335181533,335202533,335282533,335292533,335333533,335414533,335454533,335474533,335606533,335787533,335828533,335838533,336121633,336191633,336272633,336343633,336373633,336424633,336494633,336616633,336929633,336979633,337000733,337050733,337060733,337171733,337242733,337323733,337414733,337515733,337525733,337555733,337858733,337878733,337939733,337959733,338141833,338171833,338333833,338343833,338393833,338424833,338525833,338696833,338717833,338747833,338787833,338838833,338858833,338868833,338949833,339010933,339080933,339242933,339262933,339353933,339646933,339737933,339878933,339949933,340191043,340272043,340353043,340414043,340444043,340525043,340545043,340707043,340767043,340959043,341010143,341040143,341171143,341222143,341262143,341282143,341292143,341565143,341828143,341898143,342020243,342080243,342202243,342212243,342232243,342313243,342323243,342484243,342505243,342646243,342797243,342808243,342929243,343020343,343050343,343080343,343090343,343111343,343272343,343393343,343545343,343696343,343717343,343737343,343747343,343767343,343858343,343878343,343929343,343969343,343989343,344040443,344060443,344090443,344282443,344363443,344474443,344757443,344838443,344949443,345080543,345191543,345232543,345262543,345292543,345323543,345353543,345424543,345494543,345515543,345565543,345595543,345656543,345676543,345686543,345868543,345898543,345919543,346080643,346111643,346141643,346353643,346414643,346434643,346474643,346525643,346636643,346686643,346696643,346777643,346818643,346878643,347010743,347090743,347202743,347252743,347333743,347444743,347454743,347525743,347616743,347666743,347676743,347898743,347939743,348010843,348040843,348070843,348121843,348131843,348616843,348646843,348929843,348959843,348979843,348989843,349050943,349131943,349191943,349303943,349363943,349444943,349545943,349575943,349626943,349666943,349737943,349747943,349777943,349818943,349878943,350121053,350313053,350363053,350454053,350474053,350555053,350636053,350808053,350828053,350838053,350868053,350939053,350979053,351040153,351202153,351232153,351242153,351272153,351323153,351535153,351656153,351919153,351949153,352141253,352252253,352272253,352323253,352414253,352434253,352494253,352545253,352575253,352656253,352848253,352909253,353060353,353232353,353393353,353444353,353484353,353696353,353828353,353949353,353999353,354050453,354080453,354101453,354343453,354383453,354454453,354515453,354535453,354575453,354616453,354656453,354767453,354848453,354878453,355000553,355111553,355212553,355282553,355353553,355363553,355434553,355555553,355585553,355696553,355707553,355767553,355818553,355888553,355909553,355939553,355969553,355989553,356000653,356010653,356040653,356070653,356313653,356343653,356373653,356444653,356474653,356535653,356717653,356727653,356898653,356949653,356979653,357020753,357050753,357202753,357212753,357232753,357262753,357292753,357535753,357575753,357595753,357646753,357808753,357929753,358101853,358131853,358272853,358303853,358333853,358404853,358414853,358515853,358555853,358585853,358747853,358858853,358878853,359030953,359040953,359111953,359121953,359232953,359282953,359292953,359343953,359373953,359484953,359555953,359838953,359898953,359919953,360050063,360070063,360212063,360373063,360484063,
360494063,360575063,360595063,360616063,360656063,360757063,360818063,360868063,360949063,361000163,361101163,361171163,361353163,361383163,361464163,361555163,361686163,361737163,361959163,361989163,362060263,362181263,362363263,362474263,362595263,362717263,362727263,362808263,362858263,362979263,363010363,363161363,363191363,363262363,363272363,363434363,363464363,363595363,363646363,363676363,363686363,363757363,363818363,363848363,363868363,363878363,363959363,364131463,364272463,364353463,364404463,364474463,364494463,364545463,364636463,364656463,364686463,364696463,364737463,364767463,364777463,364969463,364989463,364999463,365282563,365292563,365505563,365727563,365757563,365808563,365868563,365898563,365979563,366040663,366121663,366151663,366191663,366212663,366242663,366323663,366454663,366575663,366797663,366818663,366848663,366989663,367020763,367060763,367141763,367333763,367515763,367575763,367828763,368000863,368040863,368171863,368333863,368414863,368535863,368565863,368606863,368696863,368777863,368939863,368949863,368969863,368999863,369040963,369070963,369080963,369101963,369181963,369343963,369454963,369515963,369686963,369757963,369767963,369868963,370050073,370090073,370111073,370161073,370252073,370363073,370434073,370444073,370585073,370606073,370686073,370717073,370777073,370797073,370848073,370858073,370939073,370959073,371121173,371151173,371202173,371252173,371424173,371484173,371595173,371606173,371636173,371646173,371787173,371858173,371919173,371939173,371949173,372070273,372131273,372353273,372383273,372434273,372545273,372878273,372929273,372989273,373171373,373353373,373626373,373666373,373717373,373818373,373828373,373888373,373929373,373959373,373969373,374040473,374090473,374151473,374313473,374333473,374474473,374636473,374646473,374666473,374757473,374939473,374999473,375070573,375151573,375232573,375292573,375383573,375434573,375484573,375616573,375656573,375676573,375686573,375737573,375757573,375868573,376080673,376242673,376404673,376414673,376494673,376575673,376626673,376747673,376989673,377000773,377070773,377111773,377232773,377252773,377262773,377313773,377333773,377525773,377696773,377717773,377999773,378121873,378191873,378232873,378373873,378464873,378505873,378515873,378535873,378595873,378686873,378727873,378797873,378878873,379111973,379171973,379282973,379363973,379404973,379525973,379777973,379828973,379878973,380070083,380171083,380181083,380202083,380222083,380252083,380282083,380303083,380444083,380636083,380696083,380808083,380828083,380838083,380919083,380979083,381121183,381202183,381232183,381373183,381383183,381464183,381565183,381757183,381797183,381818183,381838183,381878183,381979183,381989183,382131283,382242283,382474283,382656283,382696283,382737283,382878283,382888283,382909283,383070383,383121383,383252383,383343383,383393383,383424383,383484383,383565383,383666383,383747383,383828383,383838383,383888383,383939383,383949383,383979383,384010483,384292483,384434483,384484483,384494483,384656483,385020583,385050583,385101583,385222583,385252583,385393583,385606583,385626583,385636583,385686583,385696583,385878583,386010683,386030683,386111683,386151683,386181683,386252683,386303683,386454683,386787683,386888683,387434783,387464783,387535783,387797783,388111883,388131883,388222883,388252883,388474883,388555883,388575883,388696883,388797883,388828883,388878883,388909883,389090983,389222983,389292983,389363983,389373983,389444983,389565983,389636983,389757983,389828983,389858983,390050093,390191093,390272093,390292093,390313093,390454093,390484093,390515093,390797093,390898093,391000193,391050193,391060193,391212193,391222193,391242193,391252193,391323193,391333193,391383193,391464193,391666193,391747193,391888193,391959193,391989193,391999193,392030293,392060293,
392121293,392141293,392171293,392222293,392252293,392292293,392393293,392474293,392484293,392535293,392585293,392595293,392676293,392717293,392747293,392757293,392858293,392939293,393070393,393232393,393323393,393686393,393848393,394000493,394050493,394191493,394212493,394333493,394494493,394636493,394696493,394767493,395202593,395303593,395363593,395565593,395616593,395717593,395727593,395868593,395898593,396070693,396191693,396202693,396343693,396454693,396505693,396757693,396808693,396919693,396929693,397141793,397242793,397333793,397555793,397666793,397909793,398040893,398111893,398151893,398232893,398252893,398363893,398414893,398474893,398616893,398666893,398676893,398757893,398838893,398898893,399070993,399191993,399262993,399323993,399464993,399484993,399575993,399595993,399616993,399686993,399707993,399737993,399767993,399878993,700020007,700060007,700090007,700353007,700363007,700404007,700444007,700585007,700656007,700666007,700717007,700737007,700848007,700858007,700878007,700989007,701000107,701141107,701151107,701222107,701282107,701343107,701373107,701393107,701424107,701525107,701595107,701606107,701636107,701727107,701747107,701838107,701919107,701979107,701999107,702010207,702070207,702080207,702242207,702343207,702434207,702515207,702575207,702626207,702646207,702676207,702737207,702767207,702838207,702919207,702929207,702989207,703000307,703060307,703111307,703171307,703222307,703252307,703393307,703444307,703767307,703858307,704070407,704090407,704252407,704282407,704373407,704444407,704454407,704555407,704585407,704606407,704717407,704757407,704808407,704868407,704939407,705121507,705212507,705262507,705373507,705383507,705515507,705535507,705565507,705595507,705646507,705818507,705949507,705979507,705989507,706171607,706222607,706272607,706363607,706474607,706545607,706696607,706737607,706848607,706909607,706999607,707222707,707373707,707484707,707828707,707979707,708040807,708050807,708161807,708212807,708232807,708242807,708313807,708494807,708707807,708737807,708848807,708959807,709060907,709080907,709222907,709353907,709515907,709585907,709696907,709929907,710010017,710030017,710252017,710262017,710303017,710313017,710333017,710373017,710424017,710555017,710565017,710585017,710646017,710666017,710676017,710747017,710777017,710858017,710919017,711020117,711131117,711161117,711202117,711232117,711272117,711313117,711484117,711535117,711565117,711595117,711616117,711767117,711787117,711797117,711838117,711929117,711959117,711979117,712000217,712020217,712030217,712111217,712161217,712212217,712252217,712333217,712363217,712444217,712636217,712777217,712858217,713010317,713060317,713070317,713111317,713121317,713171317,713252317,713616317,713636317,713646317,713787317,713858317,713888317,714040417,714080417,714131417,714181417,714232417,714323417,714353417,714404417,714656417,714707417,714737417,714787417,714868417,715050517,715171517,715383517,715444517,715464517,715494517,715666517,715696517,715767517,715818517,715909517,715969517,716040617,716141617,716232617,716313617,716414617,716525617,716555617,716616617,716636617,716666617,716747617,716777617,716979617,717050717,717343717,717464717,717484717,717494717,717535717,717595717,717646717,717757717,717929717,717949717,717989717,718000817,718090817,718141817,718161817,718575817,718747817,718777817,718878817,718909817,718959817,719010917,719363917,719484917,719535917,719666917,719676917,719828917,720080027,720101027,720202027,720262027,720343027,720434027,720595027,720686027,720818027,720848027,720898027,721030127,721080127,721191127,721242127,721363127,721404127,721464127,721515127,721585127,721636127,721656127,721717127,721777127,721797127,721818127,721828127,721888127,721959127,721989127,722030227,722222227,722232227,722303227,722343227,722363227,722474227,722535227,722565227,722595227,722646227,722666227,722727227,722888227,722919227,723020327,723121327,723151327,723191327,723202327,723232327,723373327,723404327,723464327,723535327,723575327,723737327,723787327,723919327,723949327,723979327,723989327,724222427,724252427,724323427,724333427,724363427,724494427,724545427,724575427,724606427,724737427,724767427,724818427,724929427,724959427,725040527,725222527,725333527,725525527,725565527,725585527,725595527,725606527,725666527,725838527,725919527,726020627,726101627,726272627,726424627,726434627,726454627,726505627,726535627,726565627,726575627,726656627,726797627,726838627,726848627,727161727,727171727,727212727,727272727,727282727,727363727,727434727,727494727,727737727,727767727,727818727,727939727,728030827,728262827,728282827,728343827,728373827,728555827,728636827,728717827,728808827,728838827,728888827,728898827,728909827,729080927,729121927,729131927,729181927,729202927,729262927,729272927,729383927,729656927,729686927,729737927,729808927,729868927,729989927,730111037,730141037,730222037,730252037,730363037,730383037,730414037,730464037,730575037,730737037,730777037,730878037,730929037,730939037,731090137,731141137,731181137,731262137,731282137,731303137,731333137,731474137,731555137,731606137,731676137,731898137,731909137,731919137,731939137,732070237,732161237,732181237,732272237,732373237,732383237,732404237,732464237,732494237,732565237,732676237,732737237,732797237,733050337,733131337,733353337,733404337,733525337,733585337,733929337,734262437,734333437,734393437,734414437,734474437,734484437,734535437,734585437,734636437,734757437,734838437,734858437,734868437,734979437,735101537,735121537,735202537,735212537,735343537,735353537,735424537,735434537,735454537,735484537,735575537,735676537,735737537,735767537,735787537,735848537,736000637,736171637,736353637,736464637,736494637,736525637,736545637,736555637,736707637,736969637,737171737,737222737,737747737,737868737,738040837,738050837,738131837,738373837,738505837,738646837,738676837,738737837,738848837,738898837,738949837,739000937,739212937,739252937,739333937,739434937,739525937,739555937,739575937,739606937,739656937,739777937,739828937,739929937,739989937,740121047,740141047,740222047,740313047,740363047,740454047,740474047,740484047,740595047,740636047,740646047,740727047,740777047,740828047,740858047,740868047,740939047,740999047,741050147,741080147,741292147,741323147,741353147,741383147,741424147,741484147,741494147,741565147,741626147,741656147,741757147,741787147,742101247,742171247,742242247,742272247,742606247,742636247,742686247,742707247,742777247,742797247,742858247,742929247,742969247,743060347,743090347,743151347,743444347,743484347,743646347,743787347,743828347,743868347,743919347,744020447,744121447,744161447,744343447,744373447,744383447,744535447,744656447,744727447,744797447,744838447,745000547,745030547,745080547,745131547,745303547,745363547,745393547,745474547,745626547,745636547,745686547,745717547,745737547,745747547,745848547,745999547,746030647,746111647,746151647,746202647,746292647,746313647,746424647,746474647,746505647,746555647,746606647,746666647,746676647,746828647,746858647,746999647,747050747,747151747,747191747,747232747,747313747,747616747,747676747,747686747,747737747,747797747,747898747,747919747,747979747,748030847,748060847,748141847,748353847,748404847,748515847,748575847,748585847,748686847,748959847,749070947,749151947,749363947,749454947,749484947,749505947,749616947,749676947,749696947,749727947,749858947,749888947,749979947,750020057,750181057,750232057,750262057,750343057,750434057,750454057,750515057,750575057,750626057,750707057,750757057,750797057,750848057,750868057,751020157,751212157,751242157,751363157,751444157,751585157,751626157,751686157,751707157,751717157,751797157,751989157,752040257,752181257,752202257,752343257,752363257,752474257,752555257,752595257,752696257,752727257,752787257,752858257,752868257,752949257,752969257,753080357,753121357,753232357,753404357,753535357,753646357,753656357,753727357,753898357,753959357,754020457,754101457,754242457,754282457,754323457,754383457,754404457,754494457,754515457,754545457,754747457,754878457,755000557,755030557,755141557,755222557,755282557,755313557,755393557,755646557,755676557,755747557,755888557,755979557,756040657,756050657,756070657,756232657,756323657,756343657,756535657,756575657,756848657,756959657,757090757,757222757,757272757,757323757,757333757,757393757,757444757,757494757,757545757,757585757,757626757,757686757,757696757,757717757,757767757,757878757,757888757,757969757,758010857,758060857,758070857,758171857,758181857,758202857,758505857,758606857,758808857,758909857,758949857,758979857,759181957,759202957,759272957,759313957,759383957,759404957,759424957,759656957,759686957,759727957,759797957,759808957,759838957,759959957,760111067,760171067,760252067,760636067,760686067,760747067,760909067,761000167,761030167,761040167,761090167,761171167,761373167,761393167,761535167,761696167,761747167,761898167,761969167,761999167,762020267,762191267,762242267,762323267,762494267,762565267,762737267,762767267,762797267,762898267,762949267,762979267,763060367,763111367,763131367,763242367,763252367,763303367,763323367,763474367,763686367,763707367,763777367,763858367,763929367,764060467,764070467,764141467,764171467,764303467,764333467,764525467,764535467,764565467,764595467,764838467,764949467,764969467,764999467,765101567,765181567,765343567,765404567,765505567,765616567,765797567,765868567,765949567,765979567,766050667,766060667,766111667,766141667,766171667,766242667,766303667,766434667,766494667,766686667,766737667,766777667,766858667,766878667,767030767,767292767,767343767,767717767,768353867,768373867,768404867,768464867,768575867,768616867,768737867,768787867,768797867,768848867,768919867,768989867,769050967,769080967,769090967,769222967,769333967,769363967,769464967,769606967,769797967,769939967,770141077,770151077,770181077,770282077,770333077,770373077,770393077,770454077,770646077,770666077,770787077,770828077,770939077,770969077,771020177,771070177,771131177,771292177,771323177,771373177,771404177,771646177,771676177,771707177,771767177,771868177,771949177,772060277,772101277,772131277,772222277,772303277,772626277,772707277,772747277,772767277,772858277,773000377,773181377,773222377,773363377,773414377,773505377,773606377,773939377,773969377,774020477,774080477,774262477,774494477,774707477,774787477,774808477,774818477,774878477,774949477,775060577,775101577,775191577,775272577,775282577,775474577,775525577,775878577,775888577,776252677,776343677,776505677,776535677,776565677,776636677,776747677,776808677,776888677,776898677,776919677,776979677,776999677,777010777,777050777,777121777,777242777,777262777,777292777,777464777,777484777,777494777,777646777,777767777,777848777,778191877,778282877,778333877,778515877,778545877,778656877,778666877,778686877,778858877,778939877,778959877,779151977,779292977,779424977,779474977,779666977,779828977,779858977,779969977,779999977,780050087,780161087,780212087,780424087,780494087,780505087,780616087,780707087,780949087,780959087,780989087,781050187,781090187,781222187,781353187,781414187,781606187,781666187,781696187,781797187,781818187,781848187,781939187,782000287,782030287,782070287,782262287,782303287,782373287,782595287,782606287,782676287,782696287,782808287,782868287,783080387,783131387,783313387,783383387,783515387,783545387,783595387,783737387,783959387,783989387,784131487,784161487,784353487,784363487,784474487,784575487,784626487,784797487,784828487,784848487,784969487,784999487,785090587,785141587,785222587,785262587,785282587,785292587,785333587,785484587,785535587,785565587,785585587,785636587,785676587,785747587,785838587,785909587,785919587,785939587,785979587,786070687,786151687,786161687,786242687,786515687,786545687,786737687,786848687,786919687,787080787,787171787,787282787,787333787,787393787,787464787,787515787,787626787,787686787,787717787,787767787,788060887,788090887,788252887,788313887,788363887,788636887,788808887,788838887,788868887,789202987,789464987,789595987,789626987,789737987,789757987,789767987,789787987,789868987,790000097,790111097,790191097,790242097,790303097,790323097,790353097,790434097,790494097,790585097,790626097,790797097,790818097,790959097,791030197,791040197,791171197,791292197,791424197,791535197,791555197,791606197,791828197,791868197,791909197,791969197,792020297,792191297,792202297,792272297,792343297,792464297,792626297,792838297,792989297,793131397,793141397,793363397,793404397,793575397,793606397,793636397,793767397,793797397,793888397,793939397,794000497,794232497,794282497,794292497,794313497,794393497,794454497,794484497,794616497,794636497,794646497,794676497,794858497,794909497,794949497,794999497,795343597,795464597,795494597,795535597,795565597,795616597,795626597,795737597,795848597,795878597,796060697,796080697,796222697,796252697,796353697,796363697,796474697,796494697,796515697,796636697,796666697,796707697,796717697,796747697,796848697,796939697,797262797,797363797,797393797,797444797,797525797,797595797,797676797,797828797,797898797,797939797,797949797,798040897,798181897,798191897,798212897,798292897,798373897,798383897,798454897,798535897,798545897,798646897,798676897,798737897,798797897,798818897,798838897,798919897,798989897,799050997,799111997,799131997,799323997,799363997,799383997,799555997,799636997,799686997,799878997,799888997,799939997,799959997,900010009,900050009,900383009,900434009,900484009,900505009,900515009,900565009,900757009,900808009,900838009,900878009,900919009,900929009,901060109,901131109,901242109,901252109,901272109,901353109,901494109,901585109,901606109,901626109,901656109,901686109,901696109,901797109,901929109,901969109,902151209,902181209,902232209,902444209,902525209,902585209,902757209,902828209,902888209,903020309,903131309,903181309,903292309,903373309,903383309,903424309,903565309,903616309,903646309,903727309,903767309,903787309,903797309,903878309,903979309,904080409,904090409,904101409,904393409,904414409,904636409,904656409,904666409,904696409,904717409,904737409,904878409,904989409,904999409,905030509,905090509,905232509,905313509,905373509,905474509,905676509,905696509,905747509,905808509,905898509,905939509,906313609,906343609,906464609,906595609,906686609,906868609,906989609,907000709,907333709,907353709,907383709,907393709,907414709,907444709,907555709,907666709,907828709,907858709,907878709,907959709,907999709,908000809,908060809,908070809,908141809,908343809,908363809,908414809,908424809,908444809,908525809,908616809,908808809,908888809,909070909,909121909,909151909,909272909,909464909,909494909,909676909,909757909,909767909,909797909,909848909,909868909,909878909,909959909,910212019,910242019,910272019,910323019,910333019,910353019,910393019,910444019,910494019,910777019,910848019,910878019,910959019,910989019,911090119,911171119,911202119,911252119,911292119,911303119,911343119,911474119,911565119,911585119,911616119,911717119,911787119,911838119,911868119,911919119,912161219,912323219,912373219,912464219,912484219,912535219,912707219,912727219,912797219,912808219,912898219,913050319,913212319,913272319,913282319,913323319,913404319,913414319,913474319,913575319,913747319,913878319,913939319,913969319,914151419,914252419,914282419,914393419,914505419,914565419,914676419,914909419,914939419,914949419,915010519,915050519,915101519,915131519,915151519,915161519,915313519,915424519,915484519,915515519,915595519,915616519,915767519,915787519,915838519,915949519,916000619,916060619,916252619,916272619,916474619,916494619,916515619,916525619,916585619,916636619,916686619,916777619,916969619,916999619,917000719,917090719,917262719,917424719,917585719,917595719,917727719,917757719,917787719,917868719,917898719,917939719,917949719,918020819,918161819,918191819,918202819,918383819,918404819,918434819,918727819,918818819,918929819,918949819,919080919,919141919,919171919,919191919,919272919,919636919,919686919,919737919,919797919,919818919,919888919,919989919,920111029,920232029,920252029,920313029,920363029,920414029,920444029,920484029,920555029,920636029,920757029,920777029,920787029,920969029,920999029,921050129,921191129,921202129,921212129,921242129,921515129,921757129,921848129,921979129,922242229,922303229,922333229,922393229,922464229,922474229,922494229,922555229,922606229,922959229,922989229,923040329,923070329,923171329,923252329,923282329,923373329,923393329,923474329,923555329,923565329,923858329,923919329,924020429,924070429,924080429,924232429,924343429,924424429,924545429,925171529,925252529,925515529,925575529,925626529,925777529,925909529,925969529,926000629,926040629,926292629,926303629,926343629,926373629,926454629,926646629,926696629,926787629,926868629,926949629,927212729,927232729,927373729,927404729,927535729,927565729,927575729,927595729,927646729,927757729,927818729,927929729,928020829,928101829,928131829,928191829,928212829,928222829,928303829,928464829,928515829,928545829,928636829,928818829,928828829,928848829,928989829,928999829,929151929,929292929,929343929,929414929,929484929,929555929,929777929,929828929,930383039,930434039,930454039,930494039,930505039,930515039,930575039,930616039,930676039,930838039,931252139,931282139,931353139,931444139,931474139,931494139,931515139,931656139,931666139,931747139,931767139,931858139,932000239,932010239,932111239,932141239,932232239,932333239,932363239,932424239,932444239,932474239,932535239,932585239,932606239,932777239,932858239,932939239,932979239,933010339,933070339,933101339,933272339,933424339,933676339,933727339,933737339,933818339,933868339,933878339,933959339,934090439,934101439,934212439,934464439,934525439,934555439,934626439,934656439,934686439,934696439,934767439,934777439,934828439,934888439,935444539,935595539,935636539,935666539,935787539,935919539,935999539,936020639,936040639,936181639,936202639,936272639,936404639,936515639,936878639,936919639,936949639,937161739,937222739,937393739,937414739,937464739,937525739,937575739,937747739,937777739,937828739,937959739,938040839,938121839,938252839,938313839,938444839,938474839,938505839,938525839,938565839,938585839,938616839,938808839,938939839,938999839,939040939,939161939,939262939,939424939,939515939,939616939,939727939,939959939,940050049,940080049,940272049,940363049,940383049,940414049,940444049,940474049,940585049,940696049,940818049,941030149,941070149,941202149,941393149,941444149,941454149,941484149,941636149,941717149,941808149,941828149,941979149,942131249,942161249,942181249,942191249,942343249,942373249,942404249,942535249,942565249,942616249,942787249,942838249,942868249,943020349,943131349,943272349,943383349,943393349,943717349,943747349,943828349,943848349,943878349,943888349,943909349,944060449,944111449,944121449,944232449,944363449,944373449,944424449,944555449,944585449,944636449,944828449,944999449,945161549,945191549,945232549,945242549,945343549,945373549,945484549,945656549,945707549,945848549,945898549,945929549,945979549,946050649,946101649,946141649,946212649,946303649,946353649,946474649,946626649,946666649,946777649,946929649,946999649,947070749,947141749,947151749,947202749,947313749,947363749,947414749,947505749,947696749,947868749,947939749,947969749,948535849,948787849,948898849,948979849,949030949,949272949,949282949,949333949,949353949,949525949,949555949,949737949,949747949,950010059,950040059,950111059,950181059,950222059,950373059,950444059,950474059,950676059,950727059,950747059,950868059,950898059,951121159,951313159,951353159,951646159,951656159,951727159,951878159,951898159,951919159,952020259,952050259,952060259,952191259,952282259,952333259,952515259,952666259,952696259,952767259,952858259,952909259,952939259,953030359,953040359,953282359,953292359,953313359,953373359,953616359,953757359,953858359,953898359,953939359,954121459,954151459,954161459,954262459,954353459,954424459,954494459,954575459,954595459,954868459,955141559,955222559,955515559,955525559,955545559,955585559,955606559,955666559,955686559,955767559,955797559,956010659,956151659,956171659,956303659,956363659,956424659,956444659,956505659,956525659,956585659,956828659,956898659,956919659,957181759,957262759,957343759,957383759,957424759,957515759,957535759,957545759,957595759,957626759,957686759,957797759,957818759,957838759,957898759,957989759,958212859,958272859,958323859,958363859,958383859,958444859,958545859,958666859,958828859,958878859,958969859,958989859,959141959,959171959,959262959,959282959,959292959,959414959,959474959,959555959,959646959,959747959,959858959,959888959,959919959,959949959,960010069,960121069,960232069,960313069,960565069,960575069,960656069,960737069,960797069,960878069,960898069,961000169,961212169,961303169,961383169,961414169,961464169,961474169,961515169,961555169,961666169,961828169,962040269,962141269,962292269,962333269,962393269,962414269,962474269,962484269,962565269,962595269,962606269,962696269,962757269,962939269,962999269,963010369,963181369,963313369,963323369,963545369,963757369,963767369,963818369,963868369,963949369,964111469,964191469,964252469,964272469,964282469,964353469,964444469,964585469,964626469,964636469,964717469,964858469,964909469,964959469,964989469,965262569,965363569,965424569,965454569,965636569,965727569,965777569,965828569,965868569,965888569,965909569,965969569,966020669,966191669,966262669,966343669,966434669,966727669,966797669,966848669,966919669,967030769,967080769,967191769,967242769,967303769,967414769,967474769,967555769,967585769,967626769,967656769,967717769,967737769,967747769,967767769,967828769,967939769,968151869,968222869,968292869,968333869,968393869,968414869,968454869,968555869,968606869,968646869,968666869,968676869,968868869,968898869,968999869,969010969,969070969,969080969,969212969,969232969,969292969,969353969,969373969,969424969,969565969,969757969,969787969,970030079,970212079,970383079,970575079,970707079,970717079,970747079,970878079,970929079,970999079,971070179,971141179,971222179,971343179,971363179,971484179,971505179,971525179,971535179,971606179,971616179,971636179,971727179,971868179,971999179,972020279,972080279,972161279,972343279,972434279,972535279,972616279,972626279,972737279,972808279,972868279,972878279,972949279,973020379,973111379,973191379,973333379,973404379,973515379,973707379,974030479,974070479,974090479,974121479,974222479,974252479,974282479,974414479,974444479,974484479,974505479,974616479,974757479,974808479,974898479,975010579,975121579,975151579,975242579,975353579,975535579,975626579,975646579,975727579,975757579,975767579,975797579,975818579,975919579,975979579,976000679,976141679,976252679,976363679,976383679,976464679,976515679,976606679,976737679,976747679,976777679,976858679,976989679,977000779,977010779,977070779,977121779,977141779,977252779,977343779,977373779,977393779,977424779,977484779,977555779,977606779,
977676779,977696779,977787779,977808779,977939779,977999779,978070879,978343879,978353879,
978434879,978484879,978656879,978676879,978686879,978727879,978787879,979020979,979323979,979414979,979434979,979545979,979555979,979626979,979797979,979939979,979989979,980111089,980171089,980181089,980202089,980232089,980333089,980373089,980535089,980606089,980636089,980858089,980868089,980888089,980909089,980979089,981151189,981242189,981272189,981313189,981353189,981515189,981595189,981616189,981737189,981797189,981838189,981919189,981959189,982131289,982222289,982272289,982282289,982323289,982353289,982393289,982434289,982656289,982878289,982888289,982909289,982989289,982999289,983010389,983090389,983141389,983181389,983222389,983232389,983373389,983555389,983747389,983757389,983828389,983838389,983858389,983898389,983909389,983949389,983979389,984070489,984161489,984181489,984313489,984515489,984545489,984727489,985101589,985212589,985282589,985323589,985414589,985464589,985585589,985626589,985686589,985747589,985858589,985959589,986000689,986040689,986070689,986151689,986181689,986252689,986313689,986424689,986444689,986474689,986636689,986747689,986757689,986909689,986979689,987010789,987050789,987101789,987191789,987202789,987212789,987262789,987323789,987373789,987484789,987494789,987505789,987646789,987757789,987848789,987898789,988000889,988131889,988171889,988383889,988686889,988828889,988858889,988929889,988969889,988999889,989040989,989121989,989252989,989313989,989393989,989484989,989525989,989555989,989565989,989595989,989646989,989868989,989898989,989919989,989969989,990050099,990070099,990161099,990313099,990323099,990353099,990383099,990565099,990707099,990727099,990919099,991060199,991363199,991414199,991474199,991555199,991626199,991737199,991858199,991888199,991909199,991999199,992090299,992181299,992222299,992232299,992252299,992313299,992343299,992363299,992555299,992727299,992777299,992898299,993161399,993343399,993353399,993373399,993515399,993646399,993656399,993737399,993808399,993838399,993878399,993959399,994020499,994080499,994090499,994131499,994242499,994333499,994474499,994494499,994656499,994707499,994777499,994848499,994878499,994929499,994939499,994969499,995070599,995090599,995111599,995181599,995303599,995343599,995414599,995555599,995696599,995757599,995777599,996020699,996101699,996121699,996181699,996242699,996464699,996494699,996565699,996626699,996656699,996686699,996808699,996818699,996878699,996929699,996949699,996989699,997030799,997111799,997393799,997464799,997474799,997555799,997737799,997818799,997909799,997969799,998111899,998121899,998171899,998202899,998282899,998333899,998565899,998666899,998757899,998898899,998939899,998979899,999070999,999212999,999272999,999434999,999454999,999565999,999676999,999686999,999727999};
int z[11],gs=0;
int main()
{
scanf("%d%d",&a,&b);
int a1=lower_bound(num,num+5963,a)-num;
int b1=upper_bound(num,num+5963,b)-num;
for(int i=a1;i<=b1-1;i++) if(num[i]!=0)
printf("%d\n",num[i]);
return 0;
}
/*
bool zs(long long a)
{
int m=(int)(sqrt(a+0.5));
{
for(int i=2;i<=m;i++)
{
if(a%i==0) return 0;
}
}
return 1;
}
void ready(int n,int a)//n位数中的第a位数字
{
if(a>c)
{
long long nn=0;
for(int i=1;i<=n;i++)
{
nn+=z[i];
if(i!=n) nn*=10;
}
if(zs(nn))
{
gs++;
num[gs]=nn;
// cout<=0)
{
z[a]=j;
z[n-a+1]=j;
ready(n,a+1);
}
}
int main()
{
// freopen("in.txt","r",stdin);
freopen("out.txt","w",stdout);
// scanf("%d%d",&a,&b);
memset(z,0,sizeof(z));
for(int i=1;i<=9;i++)
{
if(i%2==1) c=i/2+1;
else c=i/2;
ready(i,1);
}
sort(num+1,num+1+gs);
for(int i=1;i<=gs;i++) if(num[i]!=num[i-1])
{
printf("%d,",num[i]);
}
printf("\n%d",gs);
return 0;
}*/