QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#619144#8635. 圆FAKUMARER100 ✓0ms3880kbC++2348.4kb2024-10-07 13:16:272024-10-07 13:16:33

Judging History

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

  • [2024-10-07 13:16:33]
  • 评测
  • 测评结果:100
  • 用时:0ms
  • 内存:3880kb
  • [2024-10-07 13:16:27]
  • 提交

answer

# include <bits/stdc++.h>

std::vector ans = {1,1,1,1,2,499122179,299473309,399297745,941201823,855638022,487238321,180634699,334908827,323673177,599761039,698737815,822928322,550280964,139925513,839486537,901439871,233535861,250626094,924382320,563748611,51805823,396624957,422084369,57660630,895142293,852541883,929717133,798040495,328827638,719638016,467741065,788355645,952213768,738363410,534412831,887515343,123696443,399593108,697287135,937619344,634609970,300180087,990417790,579844892,110213804,387857888,202623727,516145017,533110962,179192026,617200503,229282485,589887828,152526118,711448484,345525550,877045122,786296153,370142282,198727824,835897772,939634764,789610413,177019417,223432510,880789680,568159565,627552481,263302969,425372819,530909410,114940216,975469565,549574701,76339938,486481733,180001783,419992623,66731010,438374601,32710760,715736764,502236545,721491707,297721015,950022799,555484999,820393762,137581913,993517494,674576605,470195764,429346277,106638560,232663116,41620761,149957361,816057931,769442498,936094195,796527606,184862423,306980309,354383342,430179613,107186990,467596655,865260021,335023968,127929078,973013880,469296228,946725220,384404996,983250346,438538837,641877852,295955759,276121857,972519696,910485899,576566374,491436939,976562077,118197220,943798103,364037413,959835822,645513720,368989357,232732122,870898307,911256325,250269586,257416217,526888755,592656667,514615598,732341039,363031394,792428322,34064495,424900162,516374349,868254933,294728385,169699381,802777100,509893581,848819766,567320968,214430028,691261943,856852377,22447802,105034256,877064310,66767240,571465833,888642781,408273530,835563944,915878373,113939016,225514465,480765652,184028670,193447101,545862885,614121747,844389366,681660934,181630157,355652502,69062050,476576935,72711679,965061445,297470553,252453216,386325133,699338145,819607372,136744845,250655632,787284347,428940827,353793459,553430784,52336115,452966485,297021610,148770895,863479427,22986045,208771764,331426579,506145547,245629143,711016778,670447559,98635008,114920333,606867196,555961062,402105678,440543235,406199900,444411332,159635800,284729325,987296884,838299583,655446939,842628889,275331647,213144131,561228056,69438988,201499557,618150937,619862060,220200837,577305943,730958445,652235136,11866426,92354390,909510583,284790834,232737522,995017545,58983113,557844268,621096481,906790474,135611678,503255472,502427412,135840872,439509368,601740974,852533789,280752534,752878254,550646062,909739214,763840240,228136918,157654495,296043600,652346381,870402207,767726122,703349671,817810738,342507672,573308822,131001375,458049823,258561746,333389124,822038244,572495404,484374890,327259499,692434023,368800855,150099742,342892713,641689656,598031805,186428006,771963176,531765924,699776883,250879438,55829584,594607858,71359336,919251322,929908089,786371243,202820531,452693667,506267099,750277629,231603662,279847278,409624110,290826934,114832782,202760573,894283069,314265511,900800224,633253713,158431265,854740152,606677910,742426277,376146925,828000505,341226343,898285837,565314272,272118270,870566344,36225846,756605804,37613244,977158846,222390162,820119359,542902368,448018177,69479623,866167184,859731292,532815936,8591377,914569161,371846654,113506654,923562300,285444284,563971983,127969875,452867394,609672109,852406962,476673863,382271849,413581565,814999214,734338428,356396440,928681745,816014378,754237308,872416741,122812332,356889702,9914511,702048737,901190107,309474913,132743378,83699438,253454620,912627843,75213854,892163119,258621114,36078003,29888079,565060009,184743733,1630335,505003169,861284614,553158828,813932646,453950381,811844226,740339491,824902910,743444314,647625536,448808693,138223462,824237360,791390526,227394127,334964725,73825802,76642666,420560832,246333873,134986199,892543068,40258030,343804004,607394434,875488274,216642430,581173682,517496796,147201971,214821309,650431135,837554749,610546946,661737403,146659243,686385315,12472799,732562556,160290299,416859732,84737223,572709151,96144246,541713257,311762172,505229608,788555119,837606189,95737388,693593301,205206921,250255834,617824826,295603661,745567707,348609598,63379898,968929416,786247493,103525178,297507664,439613390,836169601,753656427,20346978,846625878,562178733,246792994,364535462,955026764,704365459,84722705,705518552,732754467,495785434,715460852,990356882,416790813,756446077,855315547,876537257,904617562,76231548,105104148,525424525,221797146,827385843,23735401,349897916,106355389,602989662,746623147,701954028,255175365,462726697,331785181,19708134,383313906,709590115,753786119,644102310,487363995,687550245,7554678,73839490,530932923,236157624,534859589,239189700,584736525,531849575,338071876,952150138,303894336,84227414,680278873,472984330,606291186,158049397,862017059,822802428,50325292,525233950,900101485,41644204,203737326,815051527,268356267,298195602,441836922,371274759,380605865,550685324,104738479,182114856,888621375,942665484,85516063,980168959,159625641,371703841,851749639,154876350,919382120,964877842,140149613,18262736,622271195,70096476,635118340,558571474,416614681,316094947,142099527,139258389,364106363,861337659,597191749,580647750,836829114,14113437,597100818,27756797,510284202,782963778,629697872,881325464,303014680,29699152,564716591,403239148,246751852,319650915,307073823,113100092,5591871,700371648,193395285,210214144,647432732,596534582,511997743,78853815,370239203,961678827,760588481,665406549,684626386,378262700,837386928,304417743,718390357,951931647,625408499,832439193,653472563,810833288,958593857,968646509,879954526,58683074,20291035,633049042,696181423,153835014,625258403,368656681,119480787,797612561,568543102,848164129,876854667,170099652,956463990,251172753,684659561,174505891,735019521,777901669,287219909,46980826,535970017,178107036,328288392,144652884,655353706,335937507,170920888,501823162,94932938,742116579,538915638,996775612,923057796,967154543,780994261,982417406,311063046,299863841,747396805,588126755,200604494,663774409,423985508,782934420,858175128,675602668,47305608,277809181,409516539,912725043,254219515,7002614,593969108,131336686,540664113,389174542,535613898,277550763,875775996,200719461,442174026,572998846,224774051,375590246,443300447,567350115,66634091,804123434,889707545,699186596,784461514,289959238,4691064,442308641,198462952,729295196,589784926,484366976,689228286,342549804,618883010,891927965,807168516,26168222,66928802,948628588,37496336,167152993,946889858,359630662,640716638,325037530,61550118,785984964,622861345,894246558,426310922,303529820,961075818,24605319,82566231,33723121,801303475,870218576,954454008,410389348,606967803,227938196,309137820,813470335,564548370,394282888,444814568,66092420,58783763,884612604,173313357,283830298,507680062,382417172,803125312,230149400,42325939,707141153,468771468,262534106,509228139,641154697,447704338,119904514,795156326,824492344,90170068,432950191,658446958,270011070,57512770,673685377,302923484,259058797,902996258,296328100,323592144,52251190,308002183,39125758,847256915,254643408,299990,185514916,798083338,475118535,142468966,774079844,457078910,926330044,791040436,331526035,162559645,599014312,388608490,250875341,967624485,780286688,836468931,81699272,45321537,480967536,342851057,639534419,370467662,684904138,518034399,880453642,278342106,229227234,57944823,651337952,206609989,689574558,690058883,334377704,473349671,984618577,174111517,564257446,214125891,119823580,946536832,46570282,201539363,221880064,396601910,23985668,401372783,798158783,837546764,217414206,256820944,282471052,880710674,174866984,857361180,583555494,626588896,178749591,522441533,105655712,668106094,326339671,807852456,169954292,579987874,173466833,102935595,582170789,632630939,131767150,249674872,588584807,296648194,927769499,434110492,580232404,936301584,147436512,808018615,691505888,962756069,349700639,920293640,903556630,723020466,939055776,775438839,385266149,428367865,847553566,512107025,89654411,944882419,554491475,589696896,621645060,10426842,524755538,562531986,515294351,223260266,827202591,315303490,978272396,169237172,646078653,854637615,341273331,828223763,473529806,420502727,184434417,841897446,303752251,34704221,965562337,933215532,489436238,877918737,883596143,886629419,97570899,242652913,496583154,64144325,519309500,528555943,543451381,471945048,540605663,827429873,100069624,973664593,454329792,98973902,506607742,153438193,285818376,713338308,263298322,740276950,890698311,442785640,277589763,7508172,905911856,38449705,250770853,79736646,188340051,464233583,944619811,129334452,238257901,393680381,146142770,348942544,294614529,411564764,865839649,853612163,688253987,492000144,759464075,766971823,387370674,996786797,423673627,557443396,848518760,472758149,323501549,406252206,23841239,674630590,576037334,242762876,784862996,555944869,994662915,805235099,173751018,990135758,387042027,589015190,210571654,333505332,945830968,578188113,258273665,585560539,88314024,54221555,388670847,674696917,749292307,136625052,469335348,57173377,511638508,564690313,193964653,920692078,611126869,825036133,343208130,358369236,900451132,689662656,486383017,842026359,425687956,843013355,556064078,50153047,36688079,617446248,247202983,528218295,421034447,605751711,213663001,61987008,458578404,373762922,984168787,63532614,461024556,811093726,269601633,961152061,124434466,550516589,499874967,8739636,719161304,757673712,804268546,83483895,210423268,118844270,276772414,65545479,124631240,805563216,52502323,880601569,376007073,34647138,924112839,563101667,449167613,401834951,929272249,94137119,849843083,249772106,619795374,275719414,808314122,202012991,859825830,664446340,634536851,624608709,972394747,300864632,208771117,330873453,418621814,973753322,215980481,522955823,888550054,606357916,15966773,806344807,911185759,641572151,932038234,169307343,62776515,144169585,85281195,958208679,725817473,825793153,908280419,652746659,973970336,824896315,606565056,670199721,564428517,422771081,517975041,443764770,831669754,873889863,417628202,374787685,949404395,567826433,901606747,519114587,393944597,764468474,585366550,194869248,355079037,139388122,84631259,665983099,269246874,416872552,475507386,433541316,818413325,978949916,121960684,853000739,699561806,643385488,220455729,558813765,923759531,295562634,509941907,185138524,992200460,427127076,259122105,746495446,143302242,501066511,83489857,289205091,549217424,990393205,317429636,937867870,929397932,807454502,353567366,197365137,298266473,863991426,708133852,554416728,40082141,823861909,796292199,489816579,270937404,86362441,200271838,36738003,580758433,687917063,72899352,549948679,609048592,274519909,191772904,322831708,635763811,229043646,298874660,876889703,114837617,870763481,29236643,33210957,309484501,391908958,831249754,104608103,827463579,463379710,288013044,140715105,477952391,13655784,933927350,696434801,272345313,12276626,669825737,181675169,48402292,167523188,857402519,969959576,700539256,852213405,105399580,776701981,676999115,939586539,824651119,140203657,237859251,937856141,51222728,625335582,833019614,780947013,757313806,894778730,837723816,532159557,716166113,80473114,385498533,176924618,162553722,406013756,880249757,958827271,898601531,372049970,882686179,976737713,589929808,977293051,193757803,203244566,5530547,180487883,138336266,281278324,784326460,14292399,745157392,15050313,720274792,674915254,790991182,318426706,3935013,498591436,605462487,125488449,303057419,258380076,537340642,264544280,204004086,914406294,736414816,952969569,853948202,847327731,396945328,716126886,545293660,629729465,2613906,177512688,625983977,814586857,550577484,44527404,980744669,519546562,566361252,182807014,265163239,402501565,505523498,948628579,204983686,484960123,815136174,280023012,775535899,900410811,134710073,990942933,678382423,93609961,222234741,515904292,38965849,347289495,795882479,588348516,668713210,743234401,794894864,11871523,503236949,393740001,138543339,932145639,139222361,849018181,295580051,762866999,836690691,441854546,128870994,73649099,815133775,568849204,936734319,598642115,912958678,706936370,597944314,48439410,905510820,889272428,741050120,724886093,392163304,26165438,385747114,67059132,969130570,646637642,491243706,40709048,386422941,982372397,927845796,592192913,662822428,324212108,652681941,425304119,685271506,714627952,47269237,540515013,641812177,832184414,993345231,133881906,566873538,900949467,743000647,45863576,956226155,743666982,219070608,660769020,658569602,831779995,104988193,989072877,786646707,602502265,919080433,235020613,607395973,107310922,975446126,640879755,587386806,780629473,412888379,982705942,845047567,924131950,475162328,73154324,707525548,275146608,300286277,771520009,700507631,658820052,167145745,411391585,290717757,989289042,92664388,645079918,702579511,922278805,181830812,244475841,801884070,338265469,816069038,704910799,633930657,620186217,78236407,105888301,878520602,746912502,593430109,674558101,453594721,461111974,557706877,169255724,595570167,139414053,119927761,33333316,796470867,95956682,436282105,292425533,964928783,319200262,224505354,344086882,943098559,423743859,502744122,842308983,257595406,84300080,201979960,73993117,103349735,954124482,275992740,248446839,742612818,758697485,950168185,708814647,29163377,202309566,786690481,201305035,625411747,932460806,17467039,728390674,684897495,798305647,779321853,265087733,718619733,930887702,673939536,996435439,769988065,870468528,499639228,562882115,470038580,1867185,193587613,133029933,457999107,806302330,440926718,554215446,768617103,655480508,706593429,293906142,911159210,926539870,665943461,343177177,539173302,646971188,132232745,107079600,610038909,96768267,448125662,600315331,447011650,447638928,884088850,220055705,166953653,689572973,691247039,693844346,389730376,779861577,957490530,237063056,204551486,984845575,476179685,716927923,410503040,303068208,331488585,963075450,542127437,598394775,18599359,706269380,662109397,253283765,959705144,863127786,526624861,319336763,671677485,436810377,564172641,544982214,331916768,357400976,296964885,825581042,527434528,332839622,627669188,696713785,191279402,75495288,457204011,388101305,578226050,946762393,583517102,60889205,607644152,252546392,663936521,159722475,375669732,934598580,315755850,810764360,84488961,624205246,410765310,732168539,803592193,49287182,826115080,862944374,887850344,261091301,517072323,886275653,542443003,390904034,553991075,290013306,426184704,147424236,890550710,606375126,463857667,725340436,983821567,502439178,881831303,113710240,286153869,327762900,886486766,826854712,809056455,847240110,805930725,109095518,367257602,969985258,557978079,827191390,83282340,339940547,681305640,976654739,368916678,988496948,983811369,252029431,476218903,721455124,809801923,443487207,876488412,444257369,34129093,939527163,18481974,922516593,304513737,477770190,362794747,824899014,114971307,455844993,77781821,455887871,624647697,22071910,934783523,302611668,486341713,681108398,366587576,782377370,298552440,609020646,951576183,985092827,264813882,321415406,469807381,384226749,376729777,948840518,12755718,809156347,163241032,437357659,702595439,58037789,691766443,419540465,720399524,527708746,291056099,489663187,678479009,590085759,445874189,59128378,45748116,974835173,245018015,320871712,700176082,173392477,476703007,358972926,414880545,827043054,501883122,647762622,304826779,378050432,302784460,288954540,419573033,110652629,669047023,90668295,159124927,64318543,205472139,561872405,236043997,63540554,634738640,957863977,767124442,561440443,471516810,55572717,808486539,417485691,403917310,206096472,809646337,510892363,911577393,328514939,822441637,668060812,741876741,441191977,969713793,817560347,635711369,363269734,424004844,944694514,658045700,362332662,481205473,43153738,613073608,839837840,554965659,449548624,625521556,809055638,218528158,677921754,161476694,487001324,665101439,723492312,269400844,778733951,461737032,996845827,214771384,602651198,897286923,183451563,113412090,191592864,489875414,901432190,900644374,508818824,827564066,489742248,470961304,194345944,689348621,534542373,326108436,133207361,258001586,163367381,41197575,350513874,850686998,25232406,98518073,990276668,805437516,489431651,78759501,638420938,282553859,927891156,59447273,479012163,471731835,185997887,5297763,451832988,350904526,821436942,471870669,423869226,14505620,64985744,148465979,764548237,779443726,363088785,498191810,82213175,797224394,803971132,113926025,654557665,566066399,185187859,162393007,757445929,231535899,862868095,620618559,777718860,72452116,105954221,904474846,99392341,326558844,70904665,782528226,570618548,186629173,814903688,356990719,277845628,679846670,981062433,460179283,447604072,155038003,60174470,123185718,118657044,770967736,234285328,468378743,992527629,235968631,666562306,432415698,612168023,215533579,121995681,842679367,757790738,961051679,230706836,331842515,158855925,832047499,439765682,930194277,963438776,667488826,704811963,925674141,927135770,598492584,202069352,165489326,934508410,668442840,653468846,814465111,10808080,939930737,867046033,428548010,571355583,810071383,660927200,836168695,499743381,38295723,154275860,842069254,149715937,439440362,633485920,135519185,146142943,836763696,550697529,72107396,912746993,104649899,796376344,707821101,737744826,868536289,10933431,766232897,434428247,262279295,937883488,635627916,294573774,801422635,978132443,610791108,67762165,111653279,121754984,965284655,221308294,475607113,87981656,514038692,85713413,85363116,789251257,309120985,885018426,561288023,243078073,788865254,15277398,461874323,910284477,714740223,419621277,360243527,305130863,938506564,653875444,272506492,876718242,395173437,306294127,317179839,294711207,234958318,263552142,468741553,291684777,794720921,487316738,56203193,312667374,333925767,739401785,210256377,276967896,195442027,96889350,154388688,136975942,808790723,535035039,604976960,306798431,605818460,926210533,778503035,634917932,968682887,671950144,839827898,436970521,449915779,644103555,936908172,628000021,377133802,305856987,157553337,137229122,231438041,886471070,575243465,922961766,343700685,49655962,428376346,530548834,238664823,399425565,946282627,942126983,710198793,189672275,478630595,58671999,903796108,101778618,647763600,556129478,63997705,862517959,887905718,995987170,491700242,899452653,929318736,683321864,747392791,948509061,274437227,826469735,924532520,245492079,594304510,366216866,450525206,373320892,982046294,207869354,976674247,26228258,860605,705435992,728738214,179026997,403042336,504847136,316167235,727326495,464303084,47931143,200591239,847031183,767245860,763927008,955956215,875157377,671559141,209530866,945614208,731229659,440931328,297577338,866264840,65779333,159054269,892308710,982171263,527072467,590079555,367893701,88168387,95602693,517413570,129087391,710905467,961956175,777891082,689096603,885897106,470452356,411914687,572377254,91978169,559877336,210787783,789225764,701872438,854590099,489567647,788696947,429465528,283118451,850289566,144979898,642225401,997228823,840652475,97988901,27012462,261435207,361107063,41687176,88464814,398046874,112756708,990538408,811639408,670890032,670200971,806534410,4774509,769983882,652345252,397442926,325736788,991998180,492328795,483654463,310747996,694685601,385636843,363501851,48017066,936943485,689904017,613194153,751769838,605315112,316909489,497425432,458970929,569246864,12456012,971997069,312759785,799035611,801167820,678466146,870686943,701008140,401468292,273096526,707561507,44256095,710935520,890742703,988471569,639071434,894783110,864592371,299116189,827206166,357836593,233814231,527636815,834719349,502368141,879310667,940779544,399533904,342090736,328578102,354400079,390246516,349870777,973540555,875067850,178999657,821094567,29548100,765136622,539772824,740112860,600524430,119428215,526594444,178531889,604954829,356333779,561347811,823196894,528731017,686017330,727097676,215496630,780532193,793022305,597603105,412191906,431521029,518962809,768869593,538884108,54745320,223081552,416316287,793618947,157477876,708827248,76956264,310699920,988694086,969335716,348926200,725612588,764088713,451103542,301789943,928777085,383190953,791981414,52854539,517600531,293758749,654346223,395790980,710506370,551728678,480153235,158981856,401812149,866798284,695188132,24713273,151950918,803439599,325700968,464369174,309037010,987409471,709624170,19051047,683280078,680409639,429505007,233444976,257524920,167776184,200826854,685206829,349125119,464893341,304549079,404888880,229777870,301342506,779501132,617837111,662095763,322780349,163975965,551735292,627406651,267857033,640926673,263011465,667925608,476371519,527216712,492066481,992448419,164159325,190064930,309993575,406014663,44538033,707484697,843147960,827104856,564949314,581018909,972373967,763916278,15028351,256985942,449526205,875442107,39346190,114848453,234519261,46127843,17778818,541184443,265634009,913013170,886100919,826328602,170920737,149541057,696581168,345616215,623927340,600193012,21439481,807019951,620925476,208798599,319213039,700021741,37901758,532689072,215591702,694596696,66865961,345872776,609023752,378034315,432329850,763457277,426325955,312932473,817489966,435386016,830688408,688075195,869685901,47129511,825129651,927106775,647796786,892398998,74600005,304660017,811969603,31392510,149006225,187144273,391647561,795574002,910563366,116817091,435008128,434160392,329433037,428138866,900723699,577095765,71482108,206316657,112387658,839650550,549260872,419937569,132570775,897960489,652985568,309110693,473141965,548304567,498124019,632677173,505387122,309954692,377153143,470538677,74767699,617339539,649913198,137871454,200891302,618454026,877047652,490012116,556496347,177943886,866606380,716451013,873185036,561488000,942120841,792582006,681582796,99977489,893983937,61943010,57804789,892788189,187048915,65720663,340375537,79404647,912802424,875974436,33114855,447348565,533128884,750369772,631104009,750525879,382060165,936800065,343046432,875921266,645881893,659560273,806638535,10297751,889591445,386570354,475484772,564167502,428754100,803724049,248965457,679326673,678257978,503262746,97682646,163535815,23127617,908178756,346349733,963875579,300826272,905775155,358127162,257664508,156563222,748057969,922094975,865764250,238443520,301488617,222607204,833636531,784031464,907433265,796054623,139117403,450401404,217812878,519528644,970566007,40484035,428819729,345227860,11323469,277131519,27248920,127440166,177170234,402805728,126365618,742052150,13897470,268698427,85384331,274063820,301742495,861174932,403470554,348254513,969995159,174288338,518687208,761451044,275570426,176873098,499237483,222819041,47592122,887184090,495662253,243139579,423731068,936821784,661848568,956612557,116704082,553529619,359619928,337213148,27865455,353547387,584709289,904977383,820378324,640608625,987667636,980193207,937168953,324388629,17196420,921591989,97573745,101201151,306973825,294687720,469892309,977410578,912985125,457589716,887559358,846975560,935444443,507505024,289926489,702830514,676111499,361698512,317086177,514818305,907761431,44709524,29322578,309935598,984691767,899276928,683202274,376340477,917641750,918408616,978176474,788855865,209057543,879433899,934299662,676908328,225052869,136865165,229547245,366395514,489689901,777684905,799329987,334135139,318888675,208590096,73778171,929798315,503642121,974784156,398267693,952132513,211614207,325973698,154360507,385260077,464153099,122312297,636535429,32058144,471492719,126281259,803426547,129599032,404678987,410976164,850848074,91228460,831659203,854095417,846653092,409836105,691200440,157782777,841695823,221017051,634211118,3097466,850744010,212506781,982355503,794392203,353525331,579634802,238114115,203513827,855026726,219565069,52515797,218418062,944958169,662424972,184961333,326491275,963916814,352682414,714082476,275986838,849014113,249674157,130007499,280057201,361774965,111013600,271204490,935723400,916814452,154016726,94378307,87959849,501526994,484977847,732471021,913161593,810359372,902143492,225224637,434852183,792110752,115816952,107657750,879173181,636561388,264141158,562194467,546974109,43405312,276084230,10605776,40488647,205962573,942314426,627737094,236468993,647191081,173269421,931466155,80881188,262185405,498653658,331264623,973056121,371388407,234685255,743672822,471642293,283957763,498338933,647069286,234413600,59124315,444814764,333997839,956212804,245891105,178024978,578374071,66431526,33803509,115625865,389792212,793105467,470508146,782769403,963135016,781223829,808091479,964997769,515360331,793212232,152742690,631098946,964051810,744415049,39965474,493134330,579696703,511200855,686178589,373037669,805422096,709229142,481179789,707987739,116736213,488338021,266214519,448442332,21627389,451724170,827139678,358838868,651266749,389361313,336757791,732503002,697751842,283411315,169672357,932032616,405645298,724515059,849530859,996867207,611671555,842999670,281774583,379595484,539439416,341099736,278081561,232629038,289208932,987615150,430081437,895474726,730358475,199890389,782019617,832070511,967221429,254730680,834820896,26602140,569533126,538513208,672744717,570888325,615107657,699478451,438063748,34259300,509837280,215083930,673857948,985190667,828770552,98940668,384327879,35940632,284450951,192663256,705981644,552446438,112287334,171256519,300976041,278872410,186913437,326439091,410006664,112894643,278013891,765927074,54464181,279799532,274057482,44053651,218959965,654195842,301446996,113493215,576633033,553815493,870214391,757536877,817881429,319634273,613525917,857823153,913632792,575721305,273248558,441803710,155545610,323622873,193771864,871284914,135865326,164588246,145940010,422831174,487486283,298473471,928995768,502451074,451243703,926461323,652755160,656572444,359478797,883177312,684548575,783134892,704322263,178337611,652118590,922893384,505521615,759980894,817416865,764364590,612833378,216855397,866570735,789855453,261177051,575256280,926797344,209796014,791140190,932009882,79892150,690879679,323656738,794229797,13100162,496982509,24210407,590790331,367717744,895507764,994498430,571393385,601906105,16765713,620095995,128825731,128589445,348773204,953586997,171299679,311846975,282064462,330550396,900062418,963056551,139339991,174400522,199394004,889309548,225071946,392556592,409000777,541103696,676176652,819972114,34189337,886104705,806127329,337094415,688279716,582817157,380051978,94913317,403126467,2742786,608606770,386439363,271586042,965547529,424344188,468869897,138310840,771505955,123431986,453887239,135038402,918794025,900401052,508353929,588752535,380293173,147042220,213934258,231597111,716218572,64816752,204731276,184738177,208688242,955805548,359391623,104706403,491708792,229085292,647778578,555322785,52284895,286505318,979261785,183462556,124558330,517532055,750020204,675278492,903363275,192745600,339288997,418227259,420684668,144768272,428203482,88686664,537886086,640581915,262294912,597368038,327881416,326967631,893853193,230701471,806910762,212165054,654853422,488038936,831919843,123818781,832381075,858991387,115858535,469011372,884404257,235641047,142796339,520671740,563903188,601317633,473850989,739660736,143886168,450045101,338328461,686468179,281782467,132306212,327650920,361575205,792495078,43011047,205206042,105545440,157493557,644641135,578122754,918844685,41587020,136961927,396371243,252690195,329489152,263769911,364647185,505740995,398693300,420993572,52050453,134772963,876136847,912968238,216946124,188412523,979918580,284857771,201445577,920887911,899412029,825961270,810743014,949748740,175573127,540145615,497935515,366782969,736859510,492828010,363040970,139820637,772849090,704566116,180997879,285715884,184090971,740546077,730516354,610803867,669848397,642905558,886209970,436933739,747466634,268547670,320267488,719993339,109216621,547960477,445104623,134321739,979395540,995996601,774376269,590411988,933882475,880658905,505088017,771564953,727653577,428267247,17067251,574377373,751660965,670094383,155722934,224862146,599295569,475642123,703125802,54618041,989554963,978794928,167298024,931483642,240711071,759607779,531266112,707510816,720523669,498577498,965525094,638062672,98089065,555836091,469995719,620586527,20885116,608328943,129584401,295754633,719859158,126216311,654697780,70001555,972095925,797622838,288768215,553814352,299892475,645143451,634872875,294649134,798132054,599801347,350515047,939696868,888249625,603048031,101138843,974346174,246488473,386435366,912866142,358099883,95872322,991858159,335846490,490303930,656185403,489821916,501431373,11318010,918606807,96737302,427350158,91829274,355464671,658038035,273982995,939261621,321464919,637209717,329199950,669700259,961755299,895939680,697557728,105315402,640783643,320768588,3093634,798525080,427013823,490600002,909011010,888437274,938759849,403540957,900904850,544487079,774182517,112261699,857222777,760461463,89981144,71893346,979719224,951062131,887918058,399432703,51243403,87522986,353930653,91592051,361202492,883901474,259796714,7545567,710498236,652585596,969146613,573020262,653510207,82116818,883609665,760215513,817648391,656343988,265134584,335081419,845634064,245202895,176138310,652241404,977718416,514747157,402514617,62145668,299117085,750106075,958215018,760315143,57470177,507023430,730797456,206529250,594893386,628311154,666785650,288306194,880546771,809200277,338046793,115397657,195341829,267241219,115607244,86242592,759932199,113140160,312402143,63585124,186055086,705129306,794993705,715730308,636482762,600537753,762033819,3814026,349572930,688830359,284768700,730463892,184022490,157702215,863810488,159342218,482495437,925168900,881077229,936581040,682352810,122119359,564595269,455622043,663944746,658242182,396929251,817051435,376990292,243697227,642811136,935056340,391672608,574237971,60389168,538970998,211338702,278057477,59015733,700794982,485358923,343989370,619401716,476581713,256320155,662898386,569169365,776711639,440702099,502871796,391675541,604264994,515914716,897241649,52505628,53681986,541333154,722514540,184988818,448527356,146704306,920915918,747440718,219571216,988586093,896137671,96698982,324280068,895408030,577658080,854998688,76158395,605574467,320074062,505581861,915871222,317067316,950936250,386544270,620789431,883861146,933597307,496314087,752997691,449858272,915037800,18987362,56659420,929894098,335916836,414703836,601827384,40491999,783721521,273720624,285536740,628727577,35218114,704807909,947184484,712731037,66869289,304475765,223143998,747459978,415640031,764638814,93789202,274105006,848690676,126782678,200723760,700021239,244762347,693897461,585955272,24356108,820534998,962861452,943281093,382487453,200728864,967359277,547360762,675234047,176130292,310023195,540097144,716462509,677886803,343622622,286175188,129327046,132986109,918423906,177424093,476184255,910547278,458087580,748680255,271759896,959576920,873680574,116475413,455281138,624656674,288886426,290903516,786452705,269872469,221158784,641898403,10855443,512530253,481688,860910756,238770674,959622248,352145443,301051518,116396874,897492617,345342128,89490609,727614774,124407427,269348336,854716473,376895093,506977752,872633829,960056389,753431965,485920361,539558494,264106016,750877306,445226601,272007889,316444220,687457057,901291586,631764932,223956208,936704595,755679857,738041747,196545257,726039427,480867673,912868521,346487394,485736877,421383902,541683391,356687483,549342404,334125540,671295239,308418811,648937926,656170198,410019321,390178131,129487293,262143120,329089951,928268306,573945176,166683902,384303912,825974255,388989350,146613246,70849130,719256938,522605580,975877937,645840867,63075353,443363895,744147202,859471528,455616346,484552216,582979288,611187901,489073212,997654177,121461486,788506592,914401680,223301782,475738460,149069349,731820402,277177933,447259257,310663980,898488795,829866338,64048454,255057536,852755218,758843765,296634588,71174837,173208983,71405945,79209262,59893945,622901068,934210161,289129218,689726323,561863456,996786819,924251568,841705951,775185514,138091005,171499430,235625500,286928109,932045931,141167740,592665159,157490703,126343924,27153089,105745138,390773027,95805090,856348404,521542950,104488401,861113337,697065650,354311716,182032659,426210813,196314723,684950711,649842735,876921852,621310842,555969019,958717916,539725032,155972673,752203640,75970549,685252083,71729921,31575809,79029945,443130199,480813856,173941024,736376204,518797439,189791217,175118549,345379614,660792938,665203373,297878192,798099674,649036443,957030128,957317490,536126517,746578896,138405544,322970600,734430413,578832402,356568992,584334590,147385411,912659659,505086592,179306026,144018249,305351283,414286677,598842356,243313244,608186208,754549968,300490362,125726432,252646821,34600065,500710573,500517283,803211642,318255147,420165314,884497127,17992660,891234478,954215153,755248648,754787232,746355305,991032838,694285818,667937986,266432382,229101587,971810369,189373685,541478418,87869495,994005325,920441889,719705936,475822138,69257967,823977393,979524648,645164397,790500453,499039099,858153493,794811110,225058370,781068431,480911918,922473470,682057901,857226564,734025545,950134763,640271478,777220483,46902833,313509333,353650837,936399484,782290975,555050092,746132579,913020830,203762897,122727138,654489345,89608127,202184892,565092063,324586320,978067509,862449569,802083007,174150830,934853337,543271445,122779126,857168828,594622100,372261569,523391698,45450508,509073603,614717175,398134324,917184068,695000671,672411900,790205463,795014268,580025779,159673606,541078681,96582715,478640565,324039960,18100544,283740392,469810653,341221517,131675418,291553370,956878408,830407487,56064265,869800224,913685624,434809357,575946028,983321843,72286220,35974774,9053719,831033593,617485241,53953520,758612676,97008390,896035779,81807127,687071453,361226845,803837375,795019620,855073122,387596556,394782820,557297422,914144814,179151551,438649207,619057337,107142879,2217760,389120444,248529810,446626389,739511912,79758634,95686319,709184376,568409180,248169109,595524329,129046963,558931205,193562001,415433031,359285465,62676207,418113293,64911606,207863052,465103088,740121300,169269930,799945686,703895362,103416775,663429136,275211603,848080278,762925915,212277301,576117593,139431300,377625151,56169775,184336005,138634962,835734159,251793548,712964094,651650681,353396694,738300978,44209567,890401369,216203607,44046550,210080737,111482975,801686322,241690010,346410020,500617098,803814845,272201274,761146530,858351724,391139742,625398987,313107222,927455077,99446421,56928035,723801291,164658282,677474219,350750923,917970576,718018820,485256287,445708866,535960594,689948168,915863837,949050941,158607169,395443523,927277003,221862390,622577333,610905612,970004140,755738742,630501704,420960695,522699342,184009169,673132973,872443193,878938357,819434499,733722681,8653875,979610096,804968811,941714995,223131527,476127080,272203160,410071222,269057623,256136584,48284599,787749851,316213421,892168830,257793036,903433385,758755823,839283482,875836873,518015437,948080307,66528328,677195287,698842086,671130822,521612573,926428368,532012138,415176787,877794869,163514999,356438434,936513679,218122111,116806856,471215584,815724574,766742342,462193466,229763821,373289215,180375884,63644663,223651490,260974899,770378991,830172241,687788356,944027117,402699338,755407026,609302718,658651347,416248545,774303210,742488552,680791356,154221123,85137687,388962887,984143566,9052846,519595292,403330413,666654422,7684301,132908947,446216543,38033245,470040343,991558515,593870105,502106140,398611716,306130435,996830809,938516411,437115055,654494021,98525003,70400233,14306304,141810125,410945339,113476385,550969573,350591293,905610322,561818589,307073197,415236866,971857738,174787829,931716941,518296807,62469345,603673996,324662666,283431137,58092701,719925309,642915532,558615159,179233468,888536706,457305163,126777396,756196060,446763038,651199942,794698387,436642190,781434140,659442861,836057290,65338001,234382809,601709345,973719456,374374662,748387979,661767103,933796204,148056588,204832024,734515704,362521696,660808143,396687271,491763001,334758508,763795693,745890803,539061755,966967193,537750131,350745207,963781106,193022721,36945922,536861915,324477001,918765634,785028954,99176900,581952923,548692862,296418299,412252534,126841353,567587504,671629981,568260551,753542333,210036561,682317690,273309792,825064991,116973206,963034473,538055072,319829944,467496748,565358994,504995129,336107484,465661196,461447009,369657894,184479371,216702005,545961168,636120876,191922846,823602302,736414137,488886002,100740622,298753223,947995183,596628989,58870817,645631675,423294976,127750730,951633226,758872384,634103202,154388399,37033910,967861996,519014712,396609538,387278255,634872529,215354270,580766532,675895719,899025627,721366691,521839138,542651289,681001211,705544541,101663705,68061820,566465526,637407919,552738091,323824214,268418014,786019411,246439184,878576067,329698616,190076708,514043974,565276331,204831509,568378993,33862570,7319140,56525861,461493458,397862071,237628175,354587091,706984312,203411445,199258421,396845592,640879970,3987855,171519866,669119236,915814227,247126638,815449981,60399165,535832880,845232756,120682329,346733204,343428306,954011251,428632825,980026724,121837700,791482283,441292453,264997550,309033551,578815487,198533183,766639312,396745186,860157952,235718581,263944297,782258167,6806254,29496850,959120007,330735368,562174210,574341913,380185485,13699193,521371920,556510849,820199065,199301529,616359805,251537444,104463117,94174135,26846116,253446320,122187681,442894587,186810297,139984496,497899630,185471255,583698645,755087933,231284666,657204210,907932315,953327831,525586571,416217568,839830691,958291472,540629958,976946716,784390424,601467629,512761718,171549194,43298272,572319619,762437541,71619945,180653802,626411677,555000438,492851418,730669590,5791479,150615613,47594377,538352636,537418303,555018320,656338754,897855622,130943926,370041851,244949182,896205257,530729834,310312585,389012552,311515873,687635830,455054357,198491227,551137595,856968164,659189113,569054542,879914330,229211088,847043244,546748237,642960830,860928521,29715186,796924176,13397331,164372642,453800520,194052518,267826682,966781570,137402714,249494211,479013569,847739063,244933664,923325888,457409088,320744313,845192804,869733150,148001192,641332936,32813351,167855810,50537152,534746127,183605486,557817364,280748420,31859448,355948494,897932078,947537861,877078255,841770801,269987794,751707202,434927449,709310011,414993260,833525643,737510322,213457784,786964927,924833293,814204214,109376025,719216975,542181270,62148982,23843805,141187790,593012900,397505162,543076038,345863907,940829421,267136172,102175459,993851830,328745362,961124583,336570764,538531835,28958408,954874263,418008872,655094967,894725887,173198859,530584123,4762583,763991067,960884227,269273967,452924636,568517971,668734129,487635289,530849996,643810935,849935381,449011941,588906091,30046282,894248098,43160340,819142119,771465329,458406911,673326248,79650527,626805645,619807456,896285616,919765249,984453986,584148125,68978273,730355403,343327918,946289748,688969283,201153743,128110785,674029485,61603350,185609992,759781517,257792275,225778012,503757370,970925453,84000002,716044785,28129420,191308289,394505014,129560682,940491875,337512937,55931909,174521337,157440554,801783548,308804022,261343388,34733266,259846541,308761102,830742865,327992923,870204174,589951737,910111669,979583549,312542199,333793341,494205462,336289930,448301810,261669494,438086655,758136591,658507722,421382035,384879334,666994332,591607649,641734293,239232954,834583043,529773402,327537736,672506777,568420969,916162360,48255589,199382689,481828819,938629075,737225837,168164979,991890216,493570196,889427846,433341098,54032352,455015246,873880150,830828322,204654575,592869889,362788866,164725074,228979101,245105277,958820744,928818485,925025306,306293910,249190678,224475631,812040118,675921560,274297171,466825772,44403873,107807219,100594318,961210751,603421969,180284759,470600182,305608015,991642067,207186076,293386258,771603838,641157641,442211921,828374084,111629768,387878062,326214026,826082202,368358440,306532059,382981694,194533407,93782381,794655419,420771999,676981287,35755935,438860265,955318801,545034322,58343505,272461061,252086742,189366499,37143154,858537900,297965738,18062054,313806818,435880984,838599926,957362643,611747970,54359720,961768697,349967130,74919133,524000442,533796221,669117138,966244849,406092392,641921200,396559718,118590426,30010259,952305769,570640852,473273914,292860250,671607408,762309387,635652922,416767196,334322947,776649571,464630963,108660101,412688346,116564810,455575740,851694933,954235989,848164950,839797031,468483517,440658621,238135646,59429262,214021125,124778848,232420714,364578951,869731104,810553208,279228987,209953575,502819458,404477560,458501141,150961897,928942955,633755111,250630952,653782825,452780990,575507385,45243768,598233801,601951645,511311559,751846064,693995104,518365975,498132599,327652169,172987466,139379906,870395156,254927910,420340499,324252217,257706277,46481378,528824054,274976218,752421792,668219023,859500938,57368572,887770334,757479252,452703430,485051476,706713356,226442780,680268746,278540839,745467801,143724861,254902049,177208845,536780410,769970731,413816636,512110231,178102432,897729801,354143570,331732751,524565078,451938596,634749242,122495491,372092049,913215993,761012610,614208328,616691131,734795009,468722621,968213039,291652015,67575551,928632432,387858678,743089207,124817704,718815246,26533045,852095822,842209950,78967218,371474516,443353171,677664798,516184623,129137325,273080733,362578296,686503015,8222823,540109866,438597022,905750007,401650379,359594991,869031425,856174475,258305513,472875398,247839047,862183768,736303643,43423654,776033479,766345224,612172246,74932021,876879293,165032329,648276642,31271415,181138315,399405287,811875610,899143185,521931479,885883736,230918347,28271225,918560864,831351194,105230033,458696118,524888030,461442801,471680523,492216436,287432883,844135256,228860099,499156678,981926730,361722220,570511967,801455268,366969001,757051581,351087171,504317352,279016284,640888954,554039755,133432431,660617648,52500640,970625889,887422222,7316486,20534394,244884895,157842597,961033725,435118688,583377826,374544426,82350885,896134404,798341748,158922719,484142942,578131150,161046143,751431247,900566171,108375906,956551143,73430464,388003209,756588528,904498641,293340651,941191116,145982711,763756413,133875040,766465222,848035235,583777464,231890302,123713973,164309459,864958080,129490812,617170971,430333185,769845877,971692602,34616709,663526002,298184566,185335348,344782443,452494881,859258456,6144216,115836201,208776524,115182649,166620816,971876558,575047016,848648781,968409387,650211190,222648707,52752795,527584226,694783325,514009002,340066841,700494816,799774914,325116378,804558297,389544024,625868066,564993719,556912192,85653473,87991864,838614249,557224545,379419202,952519308,448273019,348279807,66688048,727632833,97934688,851178632,192980137,695771980,876695217,977456319,327595926,892160298,9529464,505715770,927356747,25258861,133505893,124601631,612420946,751568348,894809106,222518817,238410475,386317565,986929609,21813048,690927051,781028680,39679774,716950966,763387155,947877927,793772149,862997869,378234588,101545222,332528625,983357969,92761111,910633228,899733411,497985133,146704423,261954963,574858950,720629511,1126440,324302279,637095099,420124724,237792722,807987536,983605061,356482359,947549725,585740350,233114998,945519055,509401266,161746770,867101522,142880794,391100274,846632960,5492687,266227713,393950798,909292962,685680366,966728552,437314139,76339338,617803034,636365203,108762990,650515314,186361159,910772298,391825749,68941697,156068537,332707645,44991762,226601661,30371681,695287074,851252762,936537745,691046327,867230981,519227854,57162828,9950129,733791711,237799561,661260839,349637358,72635177,827153413,151494210,654231091,704822658,369533585,309479273,711677394,55554117,900546580,313456658,919087324,711040945,274535337,545007184,745693817,981550837,594412839,797131963,929527482,425612326,132050575,136943963,697901143,909129817,385421276,599342538,389559872,40263261,536826686,143175169,726153447,605608952,303127470,937269522,148228855,460214366,761797032,46224576,702100213,347491052,76066408,118883283,697604103,946401050,701535343,397208959,257276317,840972701,356735947,395407148,211994226,871326421,877937187,304355110,792716060,907796264,668771755,731928491,31629460,719504095,677004925,417528057,75555485,451477222,579050027,227081021,956144406,406504550,902649410,649666042,391474726,677122878,778399795,441905356,50468394,177679456,411686532,872259338,128922046,353227020,264983138,279059023,290132893,734199676,20568738,740786533,789241817,421588324,533940835,155418312,42026362,352606003,376539522,227101780,815180680,567945680,28307540,860012233,775730087,562324199,110642506,605019761,365246105,164940262,168794021,705472405,661991830,826285547,231478150,880662878,901187421,784069457,513568527,486382026,444327121,938609474,536914133,627775175,571443448,833927934,54957929,313524443,180358323,490409137,948211884,866614428,776603788,708674345,469988130,322723695,450240737,576451966,976561120,48447359,210388678,167678339,226847138,179015759,144024462,594710639,516352322,749920960,194429681,464937898,754197168,205467408,270342495,596328522,691197876,564924497,670138573,933420561,163822904,292676453,190245071,429908354,300810443,195150966,928905492,499987026,135620922,7456689,349683168,704752888,984233038,408615754,451091421,490690147,775223692,493974686,119986777,53670290,73067876,859091483,693119840,427304340,710982224,481792127,938391634,703993612,981546650,652449550,786457781,194422514,521955010,450885511,711892972,928472232,378242271,352095990,303045569,903116940,899617242,888982227,832075740,153897372,16437668,566276539,480625301,564668328,617604299,100963577,503009082,301310306,686026324,157940136,46180622,796749613,590076777,216013715,185033162,402878992,998155718,547001158,670904852,732201199,993988581,157972372,44000035,636097566,521450248,829047520,172976589,151928736,745801877,12302841,137109529,790303160,92278817,740487178,93706265,138846549,138068744,729863570,469914272,300250002,101570002,573199602,209056720,16468723,754456798,613877074,947544137,168841478,72096051,382408661,716189894,413143588,607209733,400081910,119958484,753124483,553218372,783823427,79075973,985414752,67860403,182818518,258635942,518861194,842673229,553294083,13136621,627103528,417703259,562181454,500274182,903051453,390565866,680021986,475875546,189086439,914708031,217944253,970548892,460505095,980040607,443995202,463261129,501618781,103912266,530624674,821675487,719250985,319754424,741183115,74321778,28515184,699431580,264809646,88203326,96315510,971105661,344320349,832029671,268616123,310854486,534257643,108210951,392402167,199877538,343103664,794123719,573802593,436040955,224652820,686911866,992191324,680275225,458499782,497971315,564867155,977867625,122714836,314688817,310414976,153781958,40172600,101908897,182956549,614106622,641098575,80320951,705621163,36791327,273279983,41307905,487627141,300201442,338967092,207654514,75998984,501479543,372677255,884216377,576320131,114940377,482139486,769057290,908179017,651363345,884271968,743112740,481393043,902841440,763295141,120727995,181158265,557100777,52136385,749979494,704828014,319137015,637571345,994664214,629815051,45170692,841207146,255793233,945195539,157101258,661018590,940745612,752816164,156023764,30060300,521293229,10140934,588214777,375942073,992029232,238564401,576749476,200270875,316562182,836883171,402372341,415719027,877168629,445166557,863502689,218485105,63978682,225603422,558935327,481215443,500497777,899305890,246446777,920356784,317365708,772779844,38843019,347341977,611802621,649279091,52385396,177161858,284042453,329805679,425455594,879236573,571204221,663674244,540703210,523779824,200671532,770765506,752011444,335034367,22508306,534441287,32354534,854249369,376138072,871425585,551337390,462812399,115062358,691221161,815584906,796872785,449477028,189949672,256844096,268198883,688131656,795071469,979926202,989063396,659881229,552400283,470284479,862283294,598819980,561535817,89746394,554320313,689757732,672803784,657835416,398742080,89541915,539263135,623039695,774875346,996595210,482415588,982609358,960385581,463039419,95910372,232153151,287812509,832398185,768304415,336484115,528536469,570922077,773952919,156159490,833495404,949347096,378205407,401805734,871582063,675808556,453871946,267914761,10411907,137830205,367164548,994782012,825387576,459362671,161118245,673234556,405023616,123119285,259947581,803544634,346956206,515158139,3564443,53656713,700257009,942284741,554269732,636503952,386252713,661731057,88241047,472336199,692698919,73603050,589596092,857180635,618298470,720434278,988029487,75942421,572906228,289252423,146699473,760614993,217237502,464008953,688747879,979126934,319545564,843736619,743495717,997225166,606181908,649853407,323680561,256092321,822699912,869913988,215282695,497504635,757028975,753022307,174778656,337325732,836218642,869644574,975293395,501358614,253387238,604106481,72888162,419190518,311421167,828187903,588583341,142348242,540766086,786543001,883614192,491298186,294282847,197179366,257946921,239320704,98682606,594807346,125533961,366837070,790619328,589634259,908156491,996150907,818467659,142907477};

int32_t n;

int main () {
	
	std::cin >> n;
	
	std::cout << ans[n] << '\n';
	
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Pretests


Final Tests

Test #1:

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

input:

3

output:

1

result:

ok 1 number(s): "1"

Test #2:

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

input:

4

output:

2

result:

ok 1 number(s): "2"

Test #3:

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

input:

6

output:

299473309

result:

ok 1 number(s): "299473309"

Test #4:

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

input:

10

output:

487238321

result:

ok 1 number(s): "487238321"

Test #5:

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

input:

100

output:

41620761

result:

ok 1 number(s): "41620761"

Test #6:

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

input:

200

output:

208771764

result:

ok 1 number(s): "208771764"

Test #7:

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

input:

500

output:

888621375

result:

ok 1 number(s): "888621375"

Test #8:

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

input:

4798

output:

319137015

result:

ok 1 number(s): "319137015"

Test #9:

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

input:

4999

output:

818467659

result:

ok 1 number(s): "818467659"

Test #10:

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

input:

5000

output:

142907477

result:

ok 1 number(s): "142907477"