嵊州D3T2

福尔贝斯太太的快乐夏日 summer

宗教,或是无节制的自由主义,是致人腐化的毒剂。

现在,一个人要经历 n 个事件,编号为 1 ∼ n。

经历 x 号事件,他的危险值就会增加 x。

一开始他的危险值是 0。

当一个人的危险值大于 0 且是 3 的倍数的时候,他会丧失生存的意义,而沉溺于享乐之中,不会再 去经历后面的事件。

那么,有多少种安排经历这 n 个事件的顺序,使得这个人能经历全部 n 个事件?

即有多少种 n 的全排列 A,满足以下条件:

嵊州D3T2 福尔贝斯太太的快乐夏日 summer-LMLPHP

请给出答案 %10000000000037 的结果。

Input

第一行一个整数 T,表示数据组数。

对于每组数据,一行一个整数 n 表示事件数。

Output

一行一个整数表示答案。

Examples

summer.insummer.out

3

4

461350

946122

6

8077061242588

9686440545236

Notes

对于所有数据,满足 0 ≤ T ≤ 3 , 3 ≤ n ≤ 3 ∗ 10^9。

Subtask1[3pts]

T = 0

Subtask2[26pts]

n ≤ 8

Subtask3[24pts]

n ≤ 10^3

Subtask4[10pts]

n ≤ 3 ∗ 10^6

Subtask5[14pts]

n ≤ 3 ∗ 10^7

Subtask6[11pts]

n ≤ 3 ∗ 10^8

Subtask7[12pts]

无特殊限制


暴力法

假如n<10的话,我们就可以用这种方法(不想看就跳过吧)

#include<bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f;
int per[inf];
int main(){
freopen("summer.in","r",stdin);
freopen("summer.out","w",stdout);
int t;
cin>>t;
if(t==) return ;//3分!
//输入与输出并存
long long n;
for(int i=;i<t;i++){
cin>>n;
long long out=,dan=;
for(int j=;j<=n;j++)
per[j]=j;
while(next_permutation(per+,per+n+))
{
dan=;
for(int j=;j<=n;j++){
dan+=per[j];
dan%=;
if(dan==) break;
if(j==n) out++;
out%=;
}
}
cout<<out<<endl;
}
return ;
}
//请给出答案 %10000000000037 的结果
//思考:当t==0时,输出空白还是0?

这道题最大的敌人就是超时

要么,事先打表

要么,有公式

要么,3分。。。

而我呢

公式不会,

打表打错了

我是不是没救了?

解释一下代码:

其中有个

下一个排列函数。

请参考https://www.cnblogs.com/send-off-a-friend/p/11178134.html

我写的一篇博客,有关于next_permutation()的哟


std

就用公式就好了!

分类讨论三种(其实是两种)

 #include <cstdio>
#define FOR(i, l, r) for(long long i = l; i <= r; ++i) using namespace std; const long long mod = 10000000000037ll;
const long long FAC[] = {1ll,2918501328647ll,3622730239740ll,3800995104593ll,1823948739078ll,452962020762ll,6034296218088ll,6111631140952ll,4273316079609ll,959666029470ll,5775040034383ll,212551717201ll,6529737877538ll,5026710443148ll,6893339770489ll,7867087797041ll,5302337320059ll,9533586847783ll,4823049882561ll,1400182630013ll,689833263859ll,3721615952553ll,8563549211816ll,3399584569960ll,8623491271197ll,4298900279874ll,8727858834802ll,2478956559590ll,3407681187921ll,4037804673341ll,1914727712131ll,1099676622149ll,8573746298808ll,6010710137510ll,8472399363806ll,8568423708097ll,1687242226563ll,6644583313619ll,4866333111235ll,4649691228526ll,3401609637704ll,8211941647231ll,6244901754687ll,2715059766090ll,6355398479005ll,7540996816669ll,73789540261ll,7684675903523ll,920910200011ll,3613495649063ll,7654695106073ll,5808189882872ll,6651837072702ll,4320952963541ll,5646948074078ll,4925697549507ll,2496279281906ll,2608323517202ll,81085181618ll,7284975732021ll,2901578556670ll,5012512713756ll,9143108565321ll,7379475413084ll,9180510217714ll,9725055821986ll,3052823614888ll,9306049795408ll,1881901399659ll,3718551966031ll,8717824560721ll,8274367245611ll,7890588311427ll,2008846739629ll,1125974597652ll,5476222454926ll,837272722429ll,5385982569838ll,2981839389761ll,3963159710587ll,7335604263195ll,9466087474179ll,702620274075ll,987296196410ll,8945531444029ll,801754184604ll,9695825764949ll,7835461248595ll,3775829876415ll,3628221906723ll,8437396482742ll,9482250191467ll,9837661393721ll,5020090053308ll,5397847465985ll,4395207067233ll,8761407245271ll,9450074178921ll,2780177886706ll,3559614749266ll,9237789054103ll,353387194851ll,7933471988725ll,4488366942772ll,6237699461063ll,3449493389911ll,1848303059754ll,8953257260839ll,7429143692967ll,2181825133843ll,6389198892715ll,9451892492391ll,4983602241322ll,1070344899383ll,7662244518421ll,8125184991303ll,6325427159252ll,2060004459249ll,2439498218276ll,9458511513959ll,8873989980607ll,3501235178663ll,6209599607023ll,4531733222812ll,9959127021931ll,9603080380449ll,1504638328563ll,5992864958710ll,7660479813229ll,8179112689482ll,7610786075517ll,8993771224280ll,9982306132065ll,8624646136364ll,9079064926557ll,8864164686236ll,2685074583124ll,8010027545153ll,5284815882890ll,3199053922310ll,2540117864815ll,6290406018237ll,7260515473176ll,6698802525242ll,2917208101816ll,8376126277553ll,4317862442565ll,8042512971898ll,734166111185ll,5425399309336ll,1493978570317ll,9628035949779ll,898384512324ll,7140015654658ll,5935638116364ll,2904538688611ll,7298447191161ll,2719604337825ll,8535320006182ll,375203471373ll,1085876479474ll,5229297425946ll,9663374334578ll,3279886949283ll,2231578043099ll,9473017529712ll,1692962580843ll,4920836321825ll,3002101951140ll,9022235927162ll,9251505007562ll,8295113951367ll,2319824990515ll,9022434731818ll,4749224852272ll,8046518989543ll,929200358556ll,857437619894ll,1238781721233ll,7214412162348ll,5357531596516ll,5412059178934ll,1804083360953ll,6283202278242ll,1741177063497ll,5502750267319ll,7967026153965ll,1416599814289ll,8677915046907ll,4571779304249ll,2050051615147ll,9214220242826ll,1340410375548ll,8348286876379ll,1176307678145ll,9668823318092ll,1184936785405ll,7811564218859ll,400075388112ll,3644453263279ll,3755314201947ll,6986874368414ll,9192885179944ll,5772800863400ll,5806903941613ll,6276769045517ll,7558563561906ll,8478960189376ll,644400930628ll,6130947750253ll,9063442593662ll,4776186814479ll,7339752711552ll,1026377757919ll,4666317448919ll,3969410152622ll,5879935757776ll,3625692314686ll,5255413478062ll,3965180925302ll,4239476130046ll,3760419704474ll,1764725568892ll,8426874661534ll,4888585886990ll,9948443401155ll,5681224373037ll,3244910083670ll,3284453651980ll,7343910174787ll,6485925661338ll,5716137642747ll,9336555876898ll,3351235845857ll,5682230626126ll,2364982713800ll,6146342900707ll,4511599104363ll,3830379769825ll,1864206665598ll,2825633208877ll,9807597285682ll,2361199162103ll,8519352381973ll,6006487998064ll,2614120707366ll,5664896911214ll,2223940448594ll,2394384878136ll,2309519231755ll,1399863318793ll,5820284858967ll,3990779853382ll,8095386879187ll,7586498895480ll,7912348350481ll,3616368283267ll,1695123100556ll,9268968627775ll,6980357150438ll,8791368779922ll,221561407131ll,4865424995067ll,8708476477348ll,9899318876181ll,2229364319099ll,8575479591440ll,7541851545255ll,277448393504ll,3343029953353ll,4974434997078ll,3480691078930ll,7392061377150ll,4644318910221ll,1520972036797ll,8567124218452ll,1307245153160ll,9116363126553ll,371198615907ll,6443884887688ll,4172100465825ll,529582640103ll,6537050414503ll,9505574250998ll,423831204869ll,1026730018687ll,7212877679729ll,4894442360263ll,5251666694751ll,2223880898614ll,9822269034253ll,5085484739054ll,7701602148296ll,8420912147163ll,8482043780100ll,4183574570872ll,7950604952117ll,225812610613ll,440827594135ll,6149551647770ll,6104688784715ll,8465200402290ll,8129111424899ll,4246487884095ll,1139002154071ll,9320470379042ll,6242296644903ll,9717615380039ll,2275548824550ll,4226338752919ll,6910952112016ll,4730408864997ll,6672770516051ll,6889735937629ll,2212291540019ll,5276004569764ll,1133732859849ll,3441786807746ll,7394681013943ll,6030186029097ll,9247233902084ll,3510173631301ll,212188860864ll,5022748704957ll,1482914837627ll,4653076770899ll,4554826811528ll,5833554782063ll,1435699789369ll,2383701525810ll,6975115622413ll,7868101402305ll,1311086995053ll,6944523388672ll,6892836047059ll,5784172730304ll,3686039722327ll,4716356253801ll,8008626171179ll,8619372633317ll,6444613240247ll,4639208033061ll,9037620504424ll,4308326675401ll,9036397285734ll,5126089236584ll,799330342762ll,219457534402ll,696893456213ll,1623315627083ll,1840005351242ll,3189530187043ll,897610908978ll,9735597790586ll,4845845202241ll,4731086377091ll,6242936584531ll,3553361833852ll,1658298226283ll,7930627270608ll,270676107611ll,5329756492607ll,2894603609475ll,7413418287473ll,3303291835802ll,6906791423271ll,5312745775441ll,5356744513171ll,671472335173ll,3385360063824ll,7743878817447ll,3691851811764ll,5161371272849ll,2077792224756ll,8824873080817ll,7053223892294ll,5977071564103ll,5750398432789ll,4622870253754ll,7074372554254ll,6565230022381ll,4704387529028ll,9506570145335ll,3295458395094ll,9199352269722ll,2047967983567ll,1553143027366ll,2178775843036ll,1506273556750ll,8730433464603ll,4488665223345ll,1998247000719ll,426308277664ll,5762619582804ll,7472600915422ll,996291449245ll,9150045482512ll,3393153676319ll,2427977512553ll,3384156934247ll,3013971122328ll,8884525892573ll,6685209879238ll,2665870703981ll,83152752361ll,1511621306460ll,8152989194718ll,4556104552491ll,9449142576025ll,3209187351780ll,7275669276822ll,4692439085804ll,6589503127025ll,4725414836412ll,542175105750ll,1037988586186ll,5927890104206ll,4612335562078ll,1122851086358ll,1851734328557ll,7085712765905ll,2949688894991ll,3676262219868ll,8103783925267ll,3929413170475ll,3111783791669ll,4210902749666ll,7776234671840ll,5019280790960ll,8435942791066ll,4466318973847ll,6695848645867ll,9279817875532ll,3477312795958ll,109715228567ll,5168381531292ll,7485804652010ll,7111699331451ll,9158619125605ll,8921368171388ll,2306162853819ll,1526508855685ll,6953507753516ll,6558663339124ll,6639149950050ll,7794246947554ll,9477493924331ll,5910740816067ll,2832409097694ll,3072543112847ll,5110860840049ll,2663969107511ll,6498772903617ll,3375722813738ll,6236833718406ll,4488068291559ll,6671989161930ll,372834140149ll,2416718566772ll,9625744476693ll,1294579865179ll,6723794774143ll,3154947691607ll,4874439746828ll,6546611789738ll,3761654544228ll,5572913712092ll,1965000454939ll,6965305145322ll,2480342880360ll,7155447613204ll,554143038346ll,7912447266310ll,7224211522417ll,229954060651ll,8278520587579ll,6043776149689ll,1538502528722ll,1748574929412ll,8041273399071ll,2762023260437ll,6796152497613ll,5294757027959ll,6195090973886ll,2923350561622ll,350577005079ll,5601299597549ll,4208791399818ll,9567619033878ll,2319983557117ll,2312925877331ll,7441202252595ll,1622117328635ll,6922228765293ll,9686553332612ll,9247190988838ll,248748414520ll,9500106049801ll,5686820692054ll,4417882819851ll,2162301919016ll,4764052009484ll,3789350549005ll,5145427811377ll,443155610318ll,6428036429492ll,7031315518510ll,9726947400292ll,4636742228775ll,2148303007456ll,2430051757819ll,5838519435712ll,6105185603431ll,4031766206322ll,2743956361696ll,6531465814153ll,898236937803ll,3863171458117ll,6334794199912ll,1925212048712ll,4988142675956ll,6784635120419ll,3534970787131ll,270514729364ll,4531861977815ll,7563874707551ll,3953578660889ll,2924717473997ll,2492193302495ll,7931492397193ll,78212160562ll,4970188993166ll,5431615357700ll,8800280588982ll,3320362042988ll,6012508243923ll,9185378125304ll,4531023464368ll,1879221910549ll,4258813619639ll,4761189128648ll,1632018432609ll,2566440349511ll,2926407339530ll,2821052156207ll,1589540923081ll,8129412360246ll,3741073220275ll,3831950304844ll,5710291879309ll,6438412685727ll,7645948415836ll,6940854342845ll,5767379725ll,2218700507971ll,5138507223769ll,1423413420331ll,3999449818974ll,2393806398419ll,7500028150993ll,8460748134764ll,4633798853150ll,3352223052220ll,5865638655743ll,2481940744991ll,4889569113083ll,3710322729621ll,315618277905ll,9644157416463ll,3251670328268ll,7260322899841ll,6316269628358ll,1545315110509ll,6016819549380ll,137685576641ll,1117552153149ll,6270057944111ll,891356059401ll,1057502849729ll,7557339629770ll,7456639146913ll,747379630795ll,4852268656402ll,2019059376143ll,2022544029804ll,2698929994092ll,9830822885711ll,4845593059262ll,4884931226058ll,7243933518015ll,1559214949560ll,2773155548716ll,7792138994710ll,6062995712877ll,1040558699012ll,7134658651317ll,142713612551ll,3623000614362ll,2809681234085ll,8472495009471ll,4528057759103ll,8143695740596ll,6240012734066ll,6096570582158ll,631186429272ll,6303049291826ll,4139322398635ll,9236527863473ll,2819357863173ll,9193991863740ll,8509558653229ll,4557404815932ll,8055418084779ll,8922022568757ll,7770999720621ll,8810040683488ll,8008160839081ll,765792507731ll,2842757634114ll,8008484927764ll,7437918767586ll,3343792808977ll,7265434178065ll,1471708631410ll,5400534083684ll,5222407547022ll,6891408615178ll,1086149422411ll,2933952081354ll,3186822070042ll,1681923640491ll,8623392596960ll,5929388207398ll,5975638500800ll,4014861046820ll,3195290961452ll,7309020660751ll,4337402558047ll,8857549734784ll,1481255742061ll,3378653296751ll,6700109306437ll,2039406565119ll,9504909011050ll,2811794754593ll,3266757443288ll,5507083226854ll,5595539135850ll,3991921663570ll,4869881420781ll,7809922546598ll,5137989597503ll,6880157274985ll,7094164209070ll,5975079022751ll,4336260847287ll,2862194544553ll,276137956785ll,3524118391317ll,3708033053582ll,8176148843303ll,2834023558908ll,3681383975500ll,7045069922357ll,7871743180214ll,7677971513945ll,4786222490024ll,6978997712697ll,4855048675073ll,1319969904460ll,7435612725297ll,1158346927529ll,6049396504683ll,4856926422661ll,7522502586534ll,8977547450232ll,1966051250818ll,4620714662796ll,1850905649144ll,7482595990865ll,3901984345249ll,2219807266574ll,6577251335947ll,5962667431459ll,2454289712225ll,6943223758871ll,9517591591191ll,8896507248761ll,4945762320536ll,1048720057977ll,4294260292060ll,9477165568643ll,6427843241358ll,4250400797221ll,305457399131ll,5150426072444ll,3879483247300ll,8183880845887ll,332456061514ll,9006833856210ll,5610898949548ll,8792732413390ll,1965231903017ll,9219990426179ll,8819421822995ll,4594351980028ll,7584109825123ll,1018173926443ll,1539084559776ll,6804187143790ll,9608905427506ll,1743181070656ll,3527748587704ll,8242612196377ll,1101601125961ll,2604726562251ll,5394046409528ll,7945363341297ll,5766845693504ll,4312124011928ll,8604340464231ll,7408485304485ll,7553385381801ll,602115795372ll,2417344832907ll,4749730513740ll,7038054228191ll,6916378947106ll,3532729859353ll,8552276239756ll,5155200312728ll,1030172017743ll,6540249855054ll,8910808980520ll,353557922020ll,177432619719ll,6213377724686ll,3261306498031ll,6802117464689ll,9295087644126ll,249209418522ll,2317014265933ll,3497930560397ll,3000922930299ll,7604392669363ll,3966471262220ll,8907445451605ll,6964413329693ll,1338426871914ll,9938366605244ll,1858452946283ll,2403344711000ll,5072864780645ll,9209243023084ll,8862616936661ll,1233636173524ll,8523097059094ll,9332373787372ll,980389436847ll,6759366896553ll,5905324968831ll,7025025992811ll,5899138023162ll,4599539780344ll,9376570709259ll,1842559958759ll,429319698859ll,9434512068807ll,6598929532595ll,9453299380022ll,8486543150612ll,2997306483666ll,4393176644293ll,6568198776085ll,5378182481024ll,5292161412522ll,6631835383497ll,6232926275853ll,3485377131049ll,8259046578536ll,7897275874854ll,556435153381ll,9897250480908ll,9872803396019ll,5305589956431ll,7428065123798ll,3217187659347ll,8776676464666ll,7998300811783ll,4040615227621ll,2040698974859ll,8754954576029ll,3940361705795ll,4596671736562ll,3195077265387ll,7844304729003ll,4895051801177ll,1815966712565ll,2604321911554ll,2921310850293ll,4451935229230ll,6123990404433ll,4624099985914ll,7557740752436ll,8660889994483ll,4169293068316ll,9178843138505ll,1466189111086ll,7580866458293ll,9655436864048ll,8375738032992ll,7611839834869ll,6556866081447ll,6881236659819ll,5058727308895ll,2746424922434ll,4051509336000ll,2327941867285ll,2625221755632ll,7105402787286ll,5605588565926ll,2007017092606ll,5034082457670ll,166131093503ll,6785475433937ll,508210336614ll,1151332889750ll,8953132517140ll,3251516438117ll,1905619185531ll,4012551905696ll,798642688099ll,3989722057641ll,8791986143003ll,4966449128216ll,5026856245403ll,2439809942171ll,5923021394892ll,6190688209247ll,5752820663392ll,318218200821ll,4219378811386ll,1462099007043ll,445945285632ll,2595174875048ll,5137349378299ll,896373928954ll,7482588597761ll,9835042266514ll,4208410345435ll,3998885965450ll,4359627846655ll,1101784178473ll,192046151152ll,3157921780724ll,2282763014839ll,8391462990830ll,3908693549098ll,436907104681ll,7156788240300ll,82000543599ll,9683783313296ll,966286089428ll,3041604028812ll,4658581245771ll,6275361602190ll,5740613520865ll,3393424802380ll,7852495916485ll,4651035447719ll,6365536319643ll,585697156868ll,4294887030029ll,382963929763ll,9358468967983ll,4301311684008ll,9600579916078ll,3525000483281ll,6056978234066ll,1783016819351ll,7597002675900ll,3059161492605ll,3507953911583ll,7755780297256ll,1650808127542ll,3208357344727ll,6645462610135ll,7148199709964ll,7817406425283ll,1661541932894ll,260887363297ll,233464397052ll,4009964526111ll,604068444425ll,6096638247119ll,6863668940776ll,8799065125364ll,2777221582671ll,9291174303914ll,858536545105ll,8352102790637ll,2793150428526ll,1207637116763ll,5050311440409ll,9668551805553ll,1437711260152ll,6514075842811ll,5426153900313ll,7948754841922ll,2255842745398ll,3317202243255ll,5189458979520ll,2525981588801ll,3123551374860ll,4951019494342ll,1403699556086ll,1592458064182ll,5396964787260ll,4092146668850ll,9940789171078ll,78412167663ll,3024763941179ll,9443580352648ll,3512105986329ll,2960204933186ll,8721046123491ll,2958953499675ll,9200626916988ll,5988678480197ll,1738558563081ll,9306141198001ll,7988953070579ll,5878033911483ll,7824292242527ll,5028971876962ll,8854563569073ll,4427073480126ll,5046094993473ll,2172273052226ll,2513287382022ll,2877136237082ll,7628862549861ll,9654738157080ll,379297926258ll,1106604784728ll,4531860556635ll,7202002976709ll,1289932449168ll,7256660406979ll,3754065170495ll,8961004789470ll,2900273801430ll,2157572032056ll,4029075915002ll,2035489381368ll,4106375108365ll,5240693456700ll,1147888748226ll,1619668558058ll,7090360197653ll,3125665503168ll,958444456404ll,3821556253421ll,8748807639346ll,4723565785145ll,1752949832815ll,4539444453970ll,7784271748237ll,2388022099926ll,7943997165916ll,3649074976692ll,9600280966531ll,4885551339057ll,2707606230901ll,2348530136698ll,5592587528520ll,8385709974809ll,1491429322521ll,9639393951947ll,7419996561856ll,9936486532589ll,794780989231ll,3090505473108ll,5424435069479ll,8432460797032ll,4632481950193ll,3514086582575ll,145979800433ll,4518214535824ll,9870998806191ll,9347733041642ll,5876864918970ll,7966292750206ll,9707672175156ll,8668209883962ll,5328544158049ll,4696061959729ll,838569690168ll,2135799521010ll,4203882172450ll,6340644630125ll,659568524959ll,4660476559671ll,7730281718099ll,208521904081ll,8647224342481ll,3093521260447ll,6466834020910ll,7725529731416ll,1940584751876ll,8718310155368ll,9382340079593ll,2781649933597ll,7520295043874ll,4159493453256ll,1757150228372ll,1917503714354ll,1859642901142ll,2386605620679ll,6265911968257ll,6720571510015ll,1777842354964ll,7010242411537ll,5179271599194ll,422855291255ll,1833082750612ll,251166146853ll,4903951167139ll,1728804187418ll,2312473529248ll,6038488438415ll,6622962868172ll,1935146393825ll,4500975932398ll,9595898213724ll,291731032730ll,5003596283564ll,2176805619598ll,4749386279696ll,595374038212ll,4495673055647ll,9636404755945ll,5185984362362ll,1164616230540ll,8578692787424ll,2150450863723ll,1004722300749ll,3075311334884ll,1566823107620ll,1933395568489ll,1677797601317ll,7364818764176ll,6994554092470ll,3628978670634ll,7615412537066ll,4391619229744ll,4051988825944ll,9370019506131ll,9479223534458ll,3135088814234ll,4981530290770ll,7333750066633ll,4562231346731ll,6159665213431ll,6229658825375ll,2721554543388ll,7388979124122ll,763038858970ll,7170035836684ll,3430243482139ll,8368244065754ll,9500140015009ll,9790696756839ll,2473071271056ll,2708191257433ll,258690425805ll,8762815359335ll,3072170270245ll,8842445459265ll,8294464407832ll,7757129441854ll,9838911093669ll,3006229102312ll,956805092026ll,311203083678ll,5294158451089ll,9016819659565ll,4247587667320ll,6350187643181ll,919135020637ll,4266735518748ll,7442386219067ll,5261088873982ll,2700442292707ll,3992705797959ll,4223259210008ll,8694550963012ll,3689894384311ll,2199470806177ll,7695314748624ll,7731134056753ll,3640709976153ll,6610517444725ll,4436901369106ll,7410388266480ll,957219675790ll,3985441680589ll,9555515058030ll,988369499730ll,6025808281186ll,2826432082808ll,3050721694588ll,9532710881562ll,1597279792570ll,3815129871065ll,1029769379296ll,4757374772139ll,3331628464656ll,8332477346670ll,3078594655241ll,6862180595763ll,3975962288206ll,2711886485224ll,6298330013855ll,6724818476007ll,7841429855318ll,6157212541515ll,1628994941586ll,835539963638ll,7800832159527ll,6223287083251ll,1214868261555ll,757806560755ll,3320480205006ll,6760911924492ll,5034759087656ll,3846610343930ll,423374748715ll,3021242605313ll,1228953582272ll,4399005057563ll,2748848114834ll,8243362607884ll,6059112125734ll,4900763155669ll,1050809635007ll,8716987869604ll,2276638269113ll,1806421927017ll,6802560454460ll,1841421202877ll,9471603670405ll,2959789968835ll,3205307342303ll,806528184251ll,8859492415679ll,275747478632ll,4931599626261ll,1871530833922ll,1120510003503ll,6929771196925ll,596836252008ll,5411117900573ll,8906269876352ll,4119035185716ll,9469910867035ll,2745783341634ll,3399925700986ll,2764850135525ll,952918703166ll,9086318928516ll,9923726129496ll,9231075693113ll,6769341465088ll,9796508542151ll,5727357060445ll,8546820591924ll,2977125152851ll,3984327246239ll,1685070133573ll,1101870056079ll,4106521552124ll,7154064731954ll,6716611718680ll,1406835364703ll,707792863459ll,7116752445002ll,7701713309292ll,5629392581482ll,1197110266456ll,5417246439323ll,8936652777171ll,1571603909605ll,2562079525271ll,321772442934ll,9755615333748ll,6742585543320ll,1486213301071ll,3012985267677ll,6905498731819ll,9121401148494ll,9154997925346ll,3788829158948ll,1258942873609ll,3286703206345ll,2849100863780ll,3943753338040ll,6727518842867ll,1879459903869ll,3445197947136ll,7021031914218ll,7854434527828ll,9374954675808ll,4462060173043ll,1612671991348ll,2808754819699ll,5506700100823ll,9236364159614ll,396313310994ll,6547748824340ll,1432321724872ll,8067556812681ll,8737508470952ll,9125393341294ll,9332243354752ll,6478528162876ll,946834799374ll,5440413582271ll,9792746401959ll,7722076687931ll,4118653987741ll,127990351015ll,3871677404918ll,1150272292813ll,4799133928123ll,8142521841222ll,3521519515248ll,8190934578091ll,8936970715836ll,8651470607233ll,8668549024014ll,4022013057956ll,6998716185003ll,8134558936479ll,2748025631831ll,2848154229953ll,8542994562592ll,2034601835776ll,1447430043371ll,9026747124593ll,4197879690317ll,6124368592786ll,5752576297482ll,4212074578337ll,426014201753ll,3036313359234ll,5834842973774ll,1665433823719ll,267352809709ll,2810451568573ll,9999266378147ll,5165171977152ll,4140937501550ll,2101394617018ll,4570273444031ll,9201541337881ll,6005190003567ll,6556552972394ll,1715590252449ll,2072410273950ll,627667868355ll,4656252142940ll,8201422181505ll,3301034892997ll,9826171306505ll,1588656570730ll,9208253915995ll,6529156640544ll,2790066986141ll,4473622318561ll,8728183969105ll,6760439403488ll,8144105417521ll,7158960702881ll,7255317976761ll,8503919476850ll,9337469620987ll,9740703034992ll,3001748181992ll,4220604121133ll,6516190903458ll,8150337512572ll,9859627404881ll,4683895489405ll,7322419920274ll,5787503037338ll,4451271659181ll,1146926447140ll,7679507551095ll,3934656535757ll,9781296450279ll,7800181419519ll,2357366425033ll,8257806617957ll,7565651029891ll,3584300348756ll,6603160380628ll,6293177462909ll,2103320731176ll,3956517778289ll,5865437689038ll,702098298993ll,2958060886523ll,660746269540ll,9943875331319ll,3127585450973ll,8888173111491ll,5161689833476ll,4742540410958ll,9029540655217ll,9635524480708ll,7411615329710ll,3952615575490ll,6505116261751ll,9222193073495ll,9611620726723ll,9378992214429ll,6872492135598ll,628244130092ll,2077264260677ll,1176458097549ll,6178916467319ll,5069246295178ll,1083754936801ll,5275676157786ll,1460580739533ll,6262556676411ll,5416464111480ll,5346992591567ll,8877632204868ll,7417667581642ll,758884683636ll,5783702605787ll,7832114607292ll,3738947980242ll,7013612957841ll,3512601843514ll,2769017099307ll,3027323747229ll,2688577436325ll,2395131002284ll,7355989646622ll,8578786851415ll,44652801241ll,748594093926ll,6529724541070ll,3235399732790ll,6257740936122ll,9032811661304ll,9211691079563ll,2313366630884ll,9757809007359ll,7606333712033ll,3319862955284ll,9187385806912ll,5193605695791ll,8951149592762ll,951385833748ll,3129334101861ll,5473259703561ll,5996713626018ll,9550784558151ll,2017738144490ll,3903664100029ll,4438314052479ll,8502689018825ll,9716763492489ll,4711961536303ll,720730797825ll,8675984679809ll,4944643814943ll,3195761943073ll,3824428721038ll,2504539932865ll,6646796451637ll,3809810548889ll,2435734516047ll,8091403592588ll,2589742567007ll,179375565874ll,6825006044298ll,1574579991963ll,4814570603011ll,254440135105ll,5900389379564ll,7608841037249ll,6913981646503ll,2695315378131ll,7842843582639ll,2152510073854ll,9226123125409ll,7485445979333ll,2947088855201ll,9912178142886ll,8792350282479ll,5967571544753ll,4690651741818ll,5058930978873ll,517920063183ll,2576260225266ll,2743049025344ll,8120403676678ll,8076343300409ll,9665075044052ll,5249473740487ll,8902514908375ll,9214287367476ll,6767114350768ll,8577878426615ll,2995188205617ll,7147839836661ll,4934663170771ll,7551297849555ll,8461199998743ll,9260847481423ll,2737888733415ll,8532351466372ll,8732311685232ll,1062918303794ll,6457081320815ll,9934553539737ll,9584349549531ll,2879924733801ll,3259646367637ll,6316101866966ll,21196247203ll,293423216948ll,9880104700924ll,6738714836331ll,1386835099270ll,7335722734610ll,7117442349666ll,8801660873120ll,3587115059475ll,8625233993178ll,6368579831086ll,856267350271ll,1401284008149ll,7141232047206ll,7508286719062ll,9697658083711ll,3958829388306ll,2839563352907ll,6883678023232ll,2556452609279ll,4675459919380ll,3703286818171ll,7296943229680ll,7661166980083ll,7428975317832ll,1446302914598ll,9315694466013ll,5719280677950ll,946505186431ll,1697143970756ll,3835863196341ll,5067203345862ll,2993771593889ll,9682880004530ll,6034240629136ll,561922458534ll,3719700592267ll,7603196808911ll,1423101203980ll,7660893615707ll,7253084298215ll,5650267672572ll,5380778987188ll,1045666631536ll,8176491355902ll,4664623066826ll,2946609751166ll,9832405267154ll,1561692965457ll,5690276362120ll,5611367113702ll,1781038810540ll,2100133404341ll,7021650896271ll,5643771040793ll,1151285405016ll,2150515148446ll,3857246334902ll,1762412723721ll,2887146164292ll,8372265332134ll,6053782029330ll,5304823967594ll,3782876706638ll,9178023307348ll,1394601103970ll,1945926601651ll,8362994785774ll,1195599405850ll,217982913245ll,5101425992865ll,2716283545936ll,2388504882900ll,5817239980919ll,6689755403794ll,4755041239848ll,9325205107833ll,9005890856915ll,9635383152222ll,7886071149038ll,622905492373ll,6141681893046ll,7172063969275ll,493421994787ll,6189350286916ll,7590757344836ll,6645405402898ll,506760837897ll,9183017216145ll,6384597689745ll,8565586967869ll,1836022379943ll,5515163909742ll,9864731944189ll,5807419000323ll,9457414147382ll,4121099500691ll,1537199826148ll,4271035078307ll,6277455383539ll,6536834428457ll,5607308511581ll,2815698134090ll,650841848001ll,9733086113291ll,4473368827212ll,5791231385125ll,894629506431ll,5776719115082ll,4360255523695ll,1894672447306ll,1307797177282ll,8430297084672ll,667549342765ll,8204336337788ll,760592828198ll,3215719573553ll,7845383735540ll,8822271009175ll,2807240123275ll,4649031590329ll,5465124152689ll,6993145111737ll,6416871205975ll,360083170673ll,3603270162633ll,4382295139792ll,6980737470327ll,1600577263550ll,9290650647253ll,8570159873032ll,2115622867084ll,2398086383978ll,4955534951949ll,6373807448500ll,6563951321989ll,9007372978698ll,7489701529124ll,4251020768538ll,952125582909ll,6722810934836ll,2281919879149ll,5976581920607ll,7003822912019ll,9740836956727ll,4655069252519ll,9803071418288ll,962828923199ll,5162853915037ll,4419361732239ll,9770779555960ll,6607622997213ll,2558017990295ll,5395361302742ll,4473068109395ll,2479766062648ll,8636359498138ll,3953445247366ll,792221276387ll,7486988005603ll,3094539050844ll,7096136297279ll,5816848685257ll,4751563746276ll,2587704435333ll,5207637981290ll,8408326862694ll,1068551005228ll,5518853064378ll,4804179529040ll,4305359626840ll,390950999998ll,1445056987976ll,4983264439968ll,6094647701353ll,6609936118056ll,8184983572524ll,1763909136201ll,763840788539ll,4848461277031ll,6612067136133ll,9260586308911ll,7515174625533ll,2928040414916ll,6134681289451ll,4978515325527ll,1345380619177ll,9276720748708ll,5023077193322ll,2224798420037ll,4248564385338ll,4383764369377ll,6069653817925ll,7979204062875ll,6182672785189ll,3665104501939ll,1868704166272ll,9110513158611ll,6576827712978ll,2339274995535ll,4782775087710ll,2539258107143ll,1495001445995ll,617911298552ll,4049805249681ll,281837111455ll,9936849330327ll,8593218904436ll,4827504711017ll,6937030101469ll,219110169201ll,9153396795533ll,1626380477074ll,4523557203907ll,7562093716097ll,3165173893596ll,3457775030773ll,8634486748950ll,3797995716502ll,9680166265155ll,4122387626581ll,1260570686591ll,1386623775051ll,9854434691977ll,5314874505646ll,7648318298338ll,2020282722015ll,795418490736ll,7014574966224ll,6519425379486ll,3750556816485ll,4290989894577ll,2036064787600ll,2560148468997ll,7165738819355ll,9378544218776ll,5725942671962ll,6779702775755ll,9546385921637ll,3339535760885ll,20934537918ll,6950532557390ll,3679720894979ll,5163039729892ll,8953117253065ll,4459091262889ll,3093944393291ll,6885318334763ll,899571970996ll,4609784032729ll,1610281175794ll,3705051224016ll,2075538178864ll,9182604338637ll,7734966730632ll,5968183324309ll,1708926540953ll,8929519481204ll,4769948811189ll,8378075890948ll,5020786229849ll,7645293349082ll,8126938067086ll,3031897528545ll,4722697059931ll,6944967719767ll,2104682394689ll,4855661234348ll,1772861313321ll,2989728916967ll,498977702823ll,1462104945047ll,9454652567403ll,6460724208206ll,8262382046399ll,2708929746935ll,8846453042549ll,1637891865674ll,9327842674353ll,6620318660904ll,702041850851ll,8375558902470ll,5443050006635ll,1920157171804ll,5762870900474ll,6853930437545ll,3875824112562ll,5416837611814ll,1066638171682ll,4549254190507ll,4732344169155ll,2575517324980ll,4281829360443ll,6638330067139ll,9729566712936ll,1215304714398ll,7660197239179ll,3982432592549ll,400741632405ll,1146069235649ll,3848108204558ll,1954592097366ll,597987639039ll,1384940455012ll,5619646758872ll,656492339434ll,1102658947612ll,1126957343546ll,1716457579427ll,8920025046421ll,1666901918007ll,18562147381ll,2796139954ll,7872788690363ll,2870083021201ll,2944970262679ll,7780355972233ll,5917308340041ll,7482452736344ll,1764023821608ll,6381110319676ll,7783423760777ll,7881875027535ll,9286657395397ll,1694482641511ll,8396619671446ll,5504951752062ll,6481938794990ll,4149929864021ll,1894065329774ll,3320104850100ll,5052724720697ll,2616668685372ll,4872188402257ll,2319817253552ll,5517044912520ll,3627158858651ll,3297988637633ll,2564643263814ll,3683392150110ll,7192120804771ll,8584788199116ll,2379878160648ll,3581156980390ll,7532938726922ll,8836112337047ll,8775799577778ll,2786363477043ll,7659667827861ll,2920269832017ll,6132144442748ll,9853461516604ll,4397334230745ll,8318656654897ll,2375808039408ll,910949122532ll,5927523180890ll,6273512105699ll,3587409702018ll,4156229676107ll,9471981221610ll,6965871030377ll,2204030511751ll,6902658106856ll,3879920555397ll,5725277700316ll,8163213047788ll,7087089774722ll,3724675226056ll,8445707513850ll,4272671682017ll,138296670003ll,1985562006829ll,6457763787082ll,3104499885122ll,7311495229249ll,5160829405780ll,7988400807555ll,3114283626174ll,2124943320275ll,6821925942395ll,4361864494335ll,2113034251894ll,4593874715146ll,1385242447488ll,6762836020758ll,8835586284209ll,5052191667428ll,1594488167275ll,1385088137972ll,9747972658659ll,1865831310078ll,2956235293633ll,4097613706494ll,812158124180ll,1681749096480ll,3569908858478ll,9976661346556ll,820198039966ll,3507417824768ll,5350892206092ll,4147059619234ll,5711089576563ll,6738006693380ll,9749399048023ll,5386624309642ll,1337986506971ll,1823718614737ll,7138731281731ll,9474052718046ll,108360159160ll,5570715549688ll,8200952641533ll,8449946991720ll,6340343494469ll,4116342610683ll,2019496092157ll,6495510226852ll,8871611106989ll,1004860128985ll,4176912297418ll,4512032534770ll,788564676868ll,3332845481596ll,8833097969973ll,539658586247ll,5593841521524ll,8080647491026ll,5078927926011ll,7203150003003ll,807556066695ll,7374506751551ll,6013536341774ll,9485808067445ll,7919285933426ll,294469651681ll,7293951233162ll,6362188012181ll,8368277371208ll,4231857481968ll,2156809913982ll,7387702746137ll,8123829924268ll,6603079294474ll,569266663424ll,4659945114499ll,3369321472339ll,3420351030766ll,8590992585063ll,20956887172ll,9265996546062ll,4374574988217ll,2710914064321ll,3651903196235ll,1695982063627ll,4114877095153ll,5050036297228ll,6718673445373ll,8546677797381ll,5725156653184ll,1451909304229ll,4484132809531ll,5677718165934ll,6695049929285ll,2658449015552ll,9690297676561ll,1983149753726ll,9879005773864ll,3510198752531ll,29914916906ll,2327451586879ll,1824052892578ll,9481878245598ll,2013150884346ll,6292524082872ll,8749792471527ll,4590321328519ll,1149273792443ll,9726503409898ll,3092384222029ll,209143482194ll,4233180178125ll,6085931425635ll,5206025221510ll,1963774553515ll,1688405577072ll,816793791458ll,6494596684045ll,3547177317229ll,6785172550867ll,8888366355950ll,337802716834ll,7253638913113ll,4697379370721ll,2315677585513ll,4573220458947ll,4068995549256ll,4070124350431ll,6721309032881ll,1497364458651ll,6393867683506ll,2861888831772ll,8836182902350ll,4052081809262ll,4197710362376ll,7504884694316ll,927075897139ll,8579070805492ll,432535411470ll,5303328453125ll,6227871074655ll,2590238186780ll,1505479415597ll,6951559166167ll,652744607071ll,4137382466269ll,918714750102ll,3271558575852ll,7266407862911ll,153251839766ll,5068191665967ll,4678382324584ll,1245976469219ll,8231630694350ll,7106560666302ll,8317535742871ll,8865566512791ll,1887156286065ll,6440627557221ll,9920687526719ll,6175556767860ll,7939563706594ll,437750016643ll,7221630886541ll,4162229259091ll,3830280335808ll,3772339794118ll,4212507613481ll,3176026065403ll,5998156412091ll,2905715680638ll,8197039635831ll,9705446951598ll,3138237120273ll,2205353495748ll,6090190920053ll,369180830789ll,6841152468134ll,8437831203770ll,8474456343226ll,8573236679578ll,5448395788640ll,3268483222152ll,9646957336322ll,308600281163ll,7787409103100ll,1912777714340ll,5571002669219ll,8355848791001ll,7267163426269ll,578654990988ll,1211070494494ll,7303253403944ll,4622330926795ll,4817256433597ll,8711742881149ll,2157925997145ll,4320364400891ll,4865017205470ll,7181674776531ll,240856542356ll,3901109578456ll,9490499484149ll,6334792110143ll,1859731555934ll,6848417128058ll,7922716622437ll,5729844698920ll,6375390843476ll,3197182795828ll,4499056308883ll,9358475714420ll,4359100229755ll,8252766311563ll,5946608524422ll,4266527295364ll,6404707065599ll,1950481654012ll,7409587074294ll,6197156311488ll,1254336710185ll,7369405180247ll,8696627105636ll,2086759867025ll,3789901983218ll,9674599967098ll,4246757739183ll,8158890792000ll,8457006870341ll,370980724542ll,2249102662343ll,551248651735ll,1863995899315ll,4515802488345ll,3842902040212ll,4972066240967ll,9240462317099ll,8672201821123ll,28755074848ll,9848231313262ll,4370933781100ll,2191326863687ll,2228918110720ll,7834428562137ll,7204165356354ll,8664790776083ll,2558517158603ll,783825320261ll,8903765334980ll,8164084356293ll,2948768189587ll,6137738755646ll,3570572729577ll,2618105090722ll,207692139926ll,4763829959934ll,5682909174709ll,8981468750768ll,9561280352117ll,6352051074058ll,8595242679892ll,964441509563ll,8663111666000ll,9077933036182ll,7684622138330ll,4736026517098ll,1578697798523ll,5616529129111ll,6648891775478ll,874130474781ll,8263061103146ll,1352563239232ll,1593815803649ll,8842181051859ll,7084497936902ll,3782843833254ll,4692977376881ll,6365757985057ll,2033656548805ll,4985327416007ll,6387782325526ll,9173948594782ll,4281853315569ll,2998575358997ll,9504307081482ll,5242890136372ll,7765726858275ll,805912727428ll,378946485683ll,6870629272952ll,3982161089381ll,8974330011383ll,4357229081349ll,1616391304430ll,4003521438433ll,8885040543574ll,1037153281354ll,8349812932100ll,7772726025038ll,6199432626795ll,1713931556266ll,7841825709657ll,3217970296099ll,3014626823658ll,9926359740932ll,37123690440ll,3457475703809ll,9693059789496ll,7463019798397ll,6517217764997ll,5949813973935ll,5809920743441ll,4750962421202ll,2221050425671ll,4687642463067ll,8444068437166ll,9977576021661ll,6123886889829ll,6492151228778ll,680135658546ll,3521671540899ll,7397776719398ll,2273816535215ll,6304664682691ll,1779163364827ll,3547483038105ll,6405248681636ll,9649112292347ll,4345543494487ll,8088414740984ll,8241741135980ll,4187580588298ll,6733480947298ll,5842694205122ll,7339317024449ll,2685383854527ll,4973366805396ll,6941431787475ll,6192756800804ll,5975039890652ll,3046383399488ll,2159666251268ll,3318883095443ll,5079741858727ll,6914800032081ll,3691627926589ll,461437155303ll,7603876361609ll,2299006443773ll,4309283069749ll,276241176670ll,9104404864841ll,7421057704695ll,3445627383135ll,4202838947339ll,3020563161109ll,6608083623091ll,682089711201ll,3206947672422ll,4202928732864ll,6094345419038ll,1507262989421ll,3200610304895ll,9774606509413ll,6505995760442ll,8398755375696ll,4207275464697ll,7211621372549ll,9123210818728ll,8024265534282ll,9944566228766ll,6957348051524ll,6513109838294ll,8673977618220ll,9881977147005ll,8700258081598ll,6449793800164ll,2685860193463ll,5826568414230ll,5867138018030ll,970325881414ll,8691700397986ll,6248305573672ll,9566616005292ll,1355968130981ll,5146396544123ll,5893257991800ll,791554818852ll,3416479857371ll,2953804495505ll,2193788504521ll,4957074080289ll,3449736933890ll,4379098496013ll,5347685088397ll,1137958489497ll,1697802072422ll,5636610147544ll,3727841452955ll,1348169039590ll,2468454030035ll,3482814172651ll,4251901068377ll,58988285823ll,3060200254501ll,2792666924686ll,334249076619ll,3847003011025ll,1470950338135ll,1653722350467ll,6842612623245ll,9997477304703ll,629022638086ll,6146582446297ll,8987518982983ll,4602047441593ll,4678328104128ll,8567008087718ll,4976104536752ll,7991798638018ll,9099312813867ll,3480159392611ll,7731179472513ll,1560083134120ll,2765555827662ll,9862205685931ll,3242632732630ll,9985166679042ll,9288359734549ll,2532529311004ll,866714388687ll,605372565959ll,5252482230402ll,8795013845723ll,7984961846149ll,4727849541747ll,592335208478ll,6224851735581ll,6304472821658ll,1823408844478ll,8143574395630ll,7825436599109ll,3430993901322ll,7830423333817ll,3781035860013ll,4094469661289ll,9568267525161ll,2748084711267ll,8873346013022ll,6739061641770ll,1137257752379ll,6266771413664ll,5930759744268ll,4885087597647ll,7612776690174ll,6157447670045ll,5148950696006ll,4306899736539ll,7271101592333ll,4269563377548ll,7656864193020ll,4589106636346ll,2240263252119ll,710792263410ll,4847527794334ll,8802362473135ll,9823871146614ll,6187267887565ll,9229784921249ll,1684247341139ll,3423735591824ll,3588611073532ll,4346227914805ll,1702474614898ll,4633643843429ll,7874679382635ll,6975130127398ll,1469573327524ll,6320334440274ll,3451237784142ll,6038874813500ll,5275112948950ll,2549202649680ll,8826075355712ll,6494959337281ll,3126918509843ll,3892745739212ll,1408506472644ll,8459640454651ll,5286359354184ll,1460912567137ll,1933460726274ll,3335865818618ll,5425036949584ll,9595439474218ll,7675676035363ll,524305473145ll,3060782338962ll,4939425739566ll,4658729766771ll,5167185509726ll,141737630540ll,81548599236ll,4974512422058ll,3900003455927ll,301101844963ll,6301139131826ll,3424176951705ll,7731013064228ll,3643793532895ll,1173667425974ll,9676050528038ll,5649795256588ll,35422295386ll,8626468982956ll,5579571421720ll,2396532661451ll,7701679243933ll,7344755587355ll,9273713758227ll,1280498532141ll,238167203444ll,8744844317968ll,5148750412640ll,5313696719897ll,9442245840731ll,3569260565780ll,5953604228572ll,1060107828258ll,915928584505ll,3307809435281ll,789267390338ll,8119809791429ll,9510263356959ll,3850330267109ll,8411578754447ll,3742564953863ll,1434023455234ll,1754809903394ll,9934500103768ll,6182495820669ll,8207485484503ll,6382534360664ll,9941828401316ll,4707715696267ll,8731611656435ll,4664350735374ll,9614833424449ll,4473692108459ll,9549997317767ll,9081892254ll,2242902353291ll,3808826035788ll,687501044746ll,1043806293085ll,6802632324156ll,4745174555597ll,206815263638ll,5286906320309ll,5350056090745ll,1013141382175ll,4230513920357ll,116368352513ll,5962598042345ll,152551215676ll,1041258957654ll,1802013883828ll,4725806564932ll,43624572199ll,1378330893627ll,5561322206334ll,4051998994701ll,5187072065584ll,406335749462ll,8807930856402ll,3142772014979ll,892009312221ll,4392917566708ll,1043226616157ll,1582230382128ll,5919497903542ll,6283092373520ll,2982263158398ll,6928504545891ll,4243029082865ll,3252485977215ll,782632722682ll,9009119691239ll,4521685539521ll,4983251511351ll,3248768735852ll,2360469950445ll,4622483610987ll,3587467121405ll,7452086463330ll,3036891905332ll,5102193565353ll,4941596007989ll,7232364275712ll,3362389165024ll,9497437521213ll,6736234358651ll,9533185936679ll,965956471993ll,4531823224923ll,3283530962503ll,9005824525597ll,9822062937406ll,2021557070056ll,4495308912816ll,5035833612867ll,7127776444528ll,7289133042096ll,7498739718717ll,9169267855212ll,2268328423727ll,9476135960118ll,5380464601783ll,7224172597378ll,6045100924009ll,3972497623612ll,5226321015166ll,6144389152016ll,547778406380ll,7842724261448ll,2959592218842ll,7569409677307ll,6210232419782ll,1240117261564ll,1381023893844ll,7846107445758ll,3668077709008ll,422426358881ll,1296169108117ll,6059315660646ll,6346041355916ll,3968962627960ll,6978530249202ll,5651685545186ll,2992231228927ll,174078417815ll,5051304826835ll,2047060285884ll,4692753893678ll,4148823445934ll,2879218699496ll,1925991770439ll,5933406494908ll,3401715580187ll,3496550978929ll,3558120134725ll,601872501386ll,3239059878372ll,3923307012116ll,8739978559301ll,4776010399794ll,1446681868275ll,5132790689199ll,4389537108370ll,1154091594974ll,7516262778051ll,7139527833676ll,8071633593876ll,3549229113270ll,5294911890192ll,1928207197756ll,7870302028ll,6296456643637ll,2673677846511ll,9392951103721ll,3229113799361ll,788916931359ll,5001037012061ll,1427861837552ll,8141195059958ll,1900337905562ll,9898795781037ll,7296973708668ll,5176201896899ll,2841769175991ll,118257263689ll,640632611015ll,8914807886328ll,1561157396516ll,2519362766130ll,884643060242ll,3637894724963ll,119667136556ll,5292427174717ll,7478218243290ll,1813802848140ll,7194109955590ll,8902426909811ll,1197181711298ll,456594209603ll,7543798293493ll,4336146279145ll,3218218164444ll,1115125025714ll,5339102336815ll,1225470890265ll,8721267626372ll,1051369309349ll,8611698000952ll,3628200935966ll,6883723070487ll,1564714292734ll,9539671634701ll,3495109509822ll,1137045913415ll,1976099133756ll,7103290572893ll,4575345686070ll,5590681626450ll,172239566377ll,5208065138216ll,3649153513648ll,986309244617ll,832550190484ll,5947419604939ll,4115914013285ll,5575387286346ll,3463477343784ll,5198751156978ll,3725922511188ll,7923514348087ll,8705636397709ll,8129351129676ll,6188848181726ll,5512810533677ll,3400845756011ll,7061526657351ll,3029249831000ll,8851716677402ll,8616618250789ll,1558940173890ll,3218699611340ll,3081493685763ll,5820462283822ll,723319090736ll,4193257457074ll,5901036527952ll,4292453044924ll,268166880781ll,3670873139131ll,9380137219479ll,2733005491599ll,7803001689617ll,8434820069492ll,888320841732ll,3905677478260ll,9507420323583ll,6174768990657ll,1219847484973ll,754525494796ll,9222758566689ll,5451362993729ll,3502704790356ll,2829641361740ll,2713923422646ll,3540456205614ll,1636651852690ll,3302629235240ll,6615619069350ll,1679271728334ll,3361315305092ll,9815258317106ll,2198538009119ll,3660122423871ll,2249754207017ll,3364839048214ll,1633219994438ll,465223313548ll,4496576864686ll,2594669922334ll,1994591603162ll,4426341262771ll,8546498231780ll,6775680649045ll,3393271289588ll,6614113555254ll,4311709828427ll,8244251456695ll,2634818313767ll,1666737036459ll,9549888643058ll,8759149429604ll,2459381691868ll,3167736709561ll,7995104807ll,212227263728ll,8344452166608ll,7502055859807ll,4810350571347ll,1237816912599ll,6758947283410ll,1123284784991ll,3695849369676ll,3966217152565ll,2817750909618ll,9040086403509ll,3229185637490ll,1868290868838ll,1144916486175ll,7597181057763ll,8469642706426ll,7589985085832ll,2262818073484ll,2226719506233ll,906779842414ll,4805371375174ll,8163187613450ll,5138834192930ll,6596083528302ll,169772947863ll,4269851429304ll,6855815758844ll,2698020499829ll,6393667813713ll,4037870882958ll,4862365864763ll,7429562136355ll,4566246554552ll,8879102038052ll,4208124104750ll,8209056678277ll,821214587409ll,8809381638046ll,8314795655663ll,644393980482ll,6419334947737ll,2779178147670ll,5807549782767ll,1947362234314ll,5792489167038ll,201497734038ll,1495592045203ll,9047064742966ll,2985081589204ll,5729417005650ll,9970875501742ll,7354139550873ll,1027289290288ll,1358961060355ll,2897234021078ll,2179588970137ll,9483061438946ll,5028731644912ll,3103387388569ll,659947469008ll,4990537672830ll,7013244125971ll,1993836032613ll,32984036093ll,6578565008178ll,965936354665ll,267338166871ll,6271135861656ll,1975321770272ll,7700904278103ll,8717857906043ll,3048213457922ll,6373539097410ll,1586667510952ll,8290617892372ll,7363458941320ll,8779753828951ll,1729725338456ll,3058535764095ll,1572670746505ll,5415514268271ll,203662841436ll,1023886479846ll,3653414778519ll,1108799553698ll,3737930331879ll,7806254899942ll,8882095237205ll,9790810215681ll,2669366571038ll,9752785727124ll,6946152944811ll,5986566103395ll,5811818840703ll,1624050255421ll,4848587117597ll,5374969474402ll,4896887814977ll,6436669661744ll,7124956470906ll,7524121928966ll,1245539001716ll,5465778334195ll,7475068035801ll,9179461789632ll,4671202453334ll,6883941791276ll,8493010038332ll,7438653897126ll,7397337948041ll,5436365427212ll,142044398974ll,7951228198006ll,2008431234733ll,7110257633551ll,9846632621296ll,4796174896478ll,4988429802180ll,567831070248ll,8607381591390ll,4458224431433ll,5588073992054ll,5614148511988ll,3052753674410ll,4398199263789ll,8957511470266ll,5995793661159ll,9392495743536ll,8836105396249ll,6420845140848ll,6526374679778ll,3634476485684ll,2045414996624ll,1020933582745ll,2351299030764ll,663851511391ll,4493019910693ll,6508245028397ll,7126102493441ll,4932403118118ll,2494196179373ll,5348671613696ll,9599036829531ll,4785356270009ll,9336656055786ll,1090638103216ll,624377129854ll,6317451257552ll,7940297773366ll,6712902446147ll,635195955930ll,4717084684107ll,7162594441747ll,3026682468022ll,3102432761412ll,1035662080908ll,6651288455981ll,6828420515755ll,1926565061258ll,9263240789664ll,8357422618075ll,7141829396679ll,3572744364619ll,2751332629062ll,4670035805993ll,4350646005317ll,4953056296297ll,9100452752373ll,1602234660841ll,6300339621335ll,7676664876147ll,4810525285281ll,8605142032164ll,1617253470469ll,9936971539398ll,313516617017ll,9727335029785ll,6316537176582ll,7056972149984ll,204599325172ll,9758520080757ll,4378322538866ll,7904625121100ll,2607906177245ll,9890553791171ll,2468553542492ll,8971953904292ll,8705854928991ll,1620950211071ll,8623795799877ll,1045568513762ll,2100073677239ll,9949547983570ll,7337823197235ll,5260633247893ll,2204802185742ll,1973989880387ll,6266976644783ll,3656383428526ll,4042184235998ll,7307693256196ll,4389564627012ll,2857677299022ll,5470820843085ll,1406382929598ll,1403896960269ll,2816638386796ll,3255867086446ll,928819089532ll,1031497077321ll,3350366055536ll,2106026472939ll,9639948450986ll,4266775030359ll,7919619768895ll,661645040904ll,4069759336141ll,4657878910787ll,8098927487437ll,7573382039155ll,1152371757580ll,9687036467533ll,5463778816836ll,9998848708755ll,628459845628ll,5367563355201ll,278899274648ll,4621315591290ll,1225954627703ll,3513990017374ll,4188977711883ll,428744250880ll,8654564857257ll,3392780746016ll,6964407897606ll,7657827645442ll,4447796354827ll,67324130306ll,7577934442476ll,2288395120ll,6522722012216ll,8021126682077ll,1437822413840ll,4758199431562ll,3327828393250ll,253559144224ll,7069597927877ll,855262468ll,4292457524532ll,5798690450676ll,9053193504556ll,101927831266ll,4999775385694ll,9921314157610ll,5316987361347ll,8241749832676ll,8820988256405ll,4674059771325ll,5868299803318ll,9802156084303ll,5824483081865ll,125551533910ll,8453335796306ll,4667121566176ll,8699462149578ll,6579458585230ll,2940150799401ll,6189837552944ll,5105559051001ll,6383539731120ll,5404535119510ll,3027643003742ll,4631609885752ll,3245085077668ll,5950716834647ll,1434003785528ll,2643751795992ll,7700447742045ll,1458308832537ll,3004738119311ll,7450352153678ll,5441029779203ll,2037976738024ll,9973154148307ll,9622740301706ll,7040932161525ll,85800540173ll,4995797529350ll,8851375384144ll,9913521008916ll,7818497708215ll,9733906538061ll,7778166765695ll,1946037286009ll,9560298547256ll,7051697959385ll,6925079858024ll,7134348342448ll,7967615130329ll,2245276195816ll,9316753618723ll,7446269740687ll,8455972082535ll,4603042569869ll,3409854840375ll,2797476127267ll,1581007412373ll,8414753443455ll,922412819181ll,8381969551708ll,2985007628925ll,2068384014933ll,6981924675648ll,9537320179563ll,6263908351775ll,2135834137158ll,8394847769283ll,7010776209885ll,7857046515546ll,7888372453270ll,120703508500ll,828982917622ll,2824383516981ll,3551190150235ll,1971605269638ll,2187928317382ll,9575153483297ll,4343410876173ll,322426174213ll,3527355517268ll,4955920938333ll,3732062281962ll,6650049317654ll,6185392384624ll,7254188566327ll,2756811985445ll,1987593238373ll,1599077271053ll,3266921125332ll,4535674893136ll,7000798934890ll,6451615431349ll,6360446784442ll,1199690094280ll,5948233998711ll,8213034845217ll,9182243469576ll,6890143351710ll,601489511705ll,746894156162ll,9515285246983ll,1161810295260ll,6735593113906ll,2037297355356ll,2600592215310ll,6377279693541ll,3805501323817ll,144736837500ll,2445556798729ll,1400496363158ll,9126171411637ll,7481209952685ll,9264123592779ll,8570658735443ll,1455683844817ll,1720821560729ll,5364352658755ll,7570047057885ll,425075945697ll,8325692033502ll,5463235812169ll,7934190656400ll,3400033145047ll,2226172649899ll,9680505958996ll,1490466295174ll,9847547526271ll,8769067476091ll,5908597068688ll,3917711770404ll,5434936456049ll,9647979808642ll,7753493328010ll,866884219547ll,465183428569ll,5453575121176ll,571793464720ll,4951080432943ll,6191628968237ll,6071956551618ll,7718553532676ll,256606011409ll,3290540419039ll,5738991760662ll,9655186997749ll,691749438773ll,2110024059023ll,3904828812438ll,5609516010966ll,9660318954777ll,7247440281081ll,9519952164542ll,9672383935886ll,6207011339446ll,9088949229108ll,8086818344208ll}; long long n, m;
int T; long long mul(long long a, long long b)
{
long long tmp = (a * b - (long long)((long double)a / mod * b + 1e-) * mod);
if (tmp < ) tmp += mod; return tmp;
}
long long sqr(long long x) {return mul(x, x);} long long pow(long long a, long long b)
{
a %= mod, b %= mod;
long long ans = ;
for(; b; b >>= )
{
if (b & ) ans = mul(ans, a);
a = mul(a, a);
}
return ans;
}
long long inv(long long x) {return pow(x, mod - );} long long fac(long long x)
{
long long ans = FAC[x / ];
FOR(i, x / * + , x) ans = mul(ans, i);
return ans;
} void work()
{
scanf("%long longd", &m); n = m / ;
if (m % == ) printf("%long longd\n", mul(mul(fac( * n - ), sqr(fac(n))), inv(fac( * n - ))) * 2ll % mod); else
if (m % == ) printf("%long longd\n", mul(mul(mul(fac( * n), sqr(fac(n))), inv(fac( * n))), n + )); else
printf("%long longd\n", mul(2ll * sqr(n + ), mul(mul(fac( * n), sqr(fac(n))), inv(fac( * n)))));
} int main()
{
// freopen("summer.in", "r", stdin);
// freopen("summer.out", "w", stdout); scanf("%d", &T);
while (T--) work(); return ;
}

OK!

05-14 09:17