【分块打表】bzoj1662 [Usaco2006 Nov]Round Numbers 圆环数

#include<cstdio>
using namespace std;
#define BN 380000
const int table[]={0,185815,378154,561654,744350,886427,1075474,1310828,1513089,1705514,1867434,1971454,2248548,2469454,2649024,2835571,2981002,3136779,3301075,3435869,3558911,3662068,3715857,4027252,4315315,4558029,4822875,5036538,5247810,5481476,5692719,5885978,6053925,6163622,6424020,6648946,6823222,7021810,7164906,7312162,7476620,7623205,7749307,7851039,7909056,8197086,8489801,8727308,9000707,9211872,9418915,9662522,9877983,10069840,10235204,10353288,10598716,10827822,10995236,11203069,11345708,11491183,11666059,11811983,11936173,12036220,12101690,12331487,12564182,12726892,12941509,13088520,13226545,13408038,13551676,13676013,13776926,13844694,14018727,14180536,14280973,14427210,14511882,14594843,14709482,14792289,14863125,14913011,14945296,15199898,15542234,15848231,16173057,16460456,16708066,17027936,17307303,17561498,17795768,18004329,18268984,18567614,18817319,19090263,19313310,19495132,19762368,19975534,20163271,20324799,20470988,20708278,21006377,21260895,21528440,21757538,21932314,22203814,22415836,22601292,22772734,22918743,23123064,23359260,23544968,23749996,23907445,24014684,24221012,24360677,24486910,24592520,24676033,24879166,25175802,25440804,25703768,25935340,26100016,26377704,26596092,26782575,26961685,27106192,27296745,27533355,27731790,27927818,28089115,28186073,28403584,28551528,28670794,28783754,28865615,29031861,29266892,29470780,29661895,29825982,29930041,30143061,30293059,30407716,30525222,30608592,30740534,30905346,31040591,31164953,31267735,31321848,31463488,31550477,31612099,31677365,31716746,31871975,32211500,32542235,32854088,33151336,33405140,33715157,34006396,34246799,34515768,34729139,34948091,35248939,35531689,35787880,36025194,36210306,36467845,36697280,36865752,37070684,37211371,37386271,37692107,37972679,38228944,38464164,38655823,38907936,39138280,39303831,39512466,39657016,39815597,40064556,40279426,40468785,40635540,40760005,40945822,41106521,41203324,41348437,41432979,41555213,41868223,42146648,42403653,42639015,42840414,43078986,43311903,43482258,43697847,43846402,43986631,44243748,44459856,44649504,44813855,44947674,45118994,45289037,45394333,45537697,45624427,45717782,45982960,46196662,46385298,46548522,46685949,46860882,47028856,47137465,47278398,47365521,47446033,47644025,47786498,47909053,48005263,48089795,48203079,48304392,48362259,48441282,48485942,48537502,48862988,49140449,49394449,49637256,49853824,50080650,50316368,50504302,50707435,50865457,50973059,51248283,51460893,51651186,51826299,51971720,52135107,52300345,52423363,52556265,52651157,52703714,52983698,53201939,53386968,53567850,53711629,53872206,54038479,54164846,54295311,54391071,54440115,54657181,54804200,54923420,55037172,55119534,55223836,55322125,55394727,55466445,55515853,55537891,55810376,56033024,56210229,56400953,56545499,56698869,56863093,56999665,57124777,57227559,57281767,57487779,57639044,57751010,57875255,57956895,58054177,58151141,58232658,58304541,58356151,58379923,58577503,58732914,58841799,58969810,59051280,59143906,59245655,59329867,59400927,59452482,59477481,59609598,59701408,59757409,59830107,59868158,59920562,59973839,60014029,60047955,60068901,60078155,60376394,60740478,61080104,61438088,61771061,62080827,62430520,62759567,63067922,63366427,63634419,63947381,64286827,64582813,64915456,65200299,65454900,65768685,66047153,66303915,66539251,66741671,67029774,67370182,67674070,68001108,68288036,68537854,68854288,69134843,69389505,69624580,69831505,70095461,70395128,70642312,70917803,71140620,71323374,71588259,71801913,71990791,72153552,72293303,72551379,72891914,73203960,73523756,73814131,74057417,74380310,74659252,74912144,75149174,75366800,75621147,75919548,76175639,76443918,76672759,76844589,77118116,77329295,77518169,77690182,77835034,78060056,78356735,78618355,78884114,79113310,79281610,79557375,79772021,79961368,80136661,80282408,80476474,80712909,80908862,81106021,81267047,81364860,81579774,81727052,81847295,81958693,82041330,82239164,82579173,82903203,83214020,83509665,83749882,84077386,84363027,84609414,84866761,85082050,85314124,85610519,85884275,86138892,86378367,86551437,86824664,87046983,87223130,87416147,87560012,87751005,88046992,88322987,88582563,88820606,88998184,89265217,89488182,89664434,89861493,90004333,90174431,90407222,90625603,90818064,90985099,91097101,91295317,91452672,91560403,91689898,91771253,91918078,92222117,92503897,92760550,92996681,93182890,93439606,93669328,93836785,94043551,94183358,94347278,94593970,94809472,94999986,95164144,95287012,95476602,95636541,95736106,95874824,95959296,96080810,96332779,96547154,96736105,96902337,97029015,97212634,97373966,97471282,97617801,97702829,97803447,97987128,98130175,98255485,98354814,98426166,98543891,98642007,98694939,98778403,98819716,98905733,99259595,99588672,99897111,100193721,100469324,100756821,101056378,101303349,101578645,101801714,101987196,102308765,102586606,102841322,103074782,103288985,103522160,103758762,103940360,104146672,104300754,104423498,104747069,105025504,105278390,105517562,105735123,105963099,106200142,106385365,106589553,106746892,106858485,107132042,107342971,107533274,107706164,107851044,108017150,108182223,108302484,108437962,108530570,108589834,108916931,109200014,109452976,109702258,109917286,110137304,110374787,110571363,110768235,110929045,111025468,111309231,111527663,111711835,111893833,112036609,112197583,112362801,112491864,112620130,112715774,112767988,113046043,113266672,113446725,113632180,113777979,113934405,114098720,114232726,114355263,114458759,114512241,114721679,114872230,114983545,115106443,115189175,115288228,115386312,115462859,115535027,115587251,115610106,115910652,116199820,116441845,116710285,116923352,117131125,117365986,117584024,117776122,117943367,118056166,118309002,118537364,118707796,118911357,119052702,119198020,119369358,119515246,119641087,119741416,119802016,120044118,120273739,120441169,120648309,120790037,120936228,121111296,121256772,121380995,121480775,121545989,121728278,121889283,121987629,122128779,122213179,122300989,122411988,122494826,122564764,122616274,122645541,122863933,123097000,123263280,123480338,123627399,123761304,123946095,124089865,124214859,124313352,124385899,124551545,124717984,124822567,124966140,125053014,125130190,125249570,125332903,125402125,125452347,125486642,125643267,125812054,125918953,126060861,126148361,126221461,126345734,126427453,126496509,126545173,126583559,126691465,126792658,126849691,126929941,126973480,127009737,127078364,127117543,127149500,127170492,127186303,127409949,127774302,128126134,128477500,128815846,129113232,129471041,129798286,130109054,130415711,130696765,130985418,131325019,131645623,131960075,132254709,132489375,132816571,133101205,133353092,133603896,133818588,134068147,134408688,134731443,135043533,135339032,135572816,135904956,136189838,136438213,136693720,136906438,137142925,137439548,137711845,137968342,138202873,138374318,138651309,138872837,139051763,139239242,139384120,139587524,139927388,140254163,140564485,140864053,141111356,141429345,141717382,141960136,142225466,142438716,142663561,142959250,143238781,143497578,143734822,143915347,144178676,144404453,144578348,144776860,144920102,145099648,145399416,145682372,145938501,146176339,146360688,146618867,146847908,147016376,147221483,147362366,147526666,147770807,147985727,148177918,148343010,148461726,148655400,148812857,148915698,149052081,149133447,149273388,149621804,149951430,150260438,150558200,150825115,151120297,151415412,151648893,151931074,152149852,152353229,152665661,152944709,153201234,153437053,153637256,153876661,154110018,154278745,154495092,154642939,154789701,155104630,155385756,155640768,155875517,156080896,156313684,156553551,156726671,156939142,157089417,157221237,157485686,157699444,157888270,158051621,158188664,158363136,158531260,158639368,158780702,158867734,158957176,159279740,159558352,159811817,160044540,160263427,160494399,160731664,160914350,161117893,161275196,161391777,161663653,161875504,162061683,162233171,162379134,162547076,162713308,162828826,162966256,163058561,163123213,163398307,163609500,163800548,163975199,164120405,164284837,164449301,164572049,164705718,164799931,164853676,165064893,165211534,165333752,165443419,165526531,165631645,165732575,165800144,165875520,165922594,165941889,166299475,166632492,166936513,167250646,167530564,167803377,168099514,168372913,168628430,168865098,169036865,169356768,169644658,169888743,170150004,170364902,170577198,170812530,171020363,171211202,171380124,171486330,171795707,172083958,172326832,172593228,172805560,173016166,173249618,173464225,173657335,173823902,173935289,174192672,174419394,174592544,174791969,174934770,175080804,175248481,175395005,175520375,175621788,175680852,175965741,176258809,176495885,176769386,176980422,177188418,177433473,177648901,177839482,178004465,178125113,178367507,178598165,178763588,178972154,179117560,179260760,179437918,179582669,179706218,179807520,179873514,180100759,180333286,180494825,180712798,180859877,180996721,181178934,181321364,181447346,181547434,181616712,181788041,181949188,182053053,182198540,182283898,182365140,182480056,182564097,182634447,182684551,182717300,182949958,183250633,183497136,183772636,183995495,184178490,184443482,184657139,184845625,185008965,185147191,185362637,185600507,185779591,185987883,186139582,186258914,186457324,186600269,186722281,186819224,186903596,187099007,187336524,187520144,187724122,187880613,187992452,188196309,188337472,188459132,188563191,188647129,188800108,188965315,189082790,189219276,189311649,189370562,189505787,189586461,189657343,189711462,189751710,189922253,190158493,190353657,190551037,190712334,190810933,191024597,191171523,191291709,191403242,191486019,191627568,191793675,191920151,192050577,192146458,192195928,192342149,192426759,192493746,192552548,192592075,192718668,192882506,193015364,193140396,193240385,193293601,193436698,193523465,193586578,193649246,193689342,193777285,193875750,193951756,194022512,194074946,194097460,194178951,194221167,194250038,194278527,194293911,194439572,194779042,195111453,195422523,195720594,195974634,196282838,196575559,196814639,197085860,197297937,197515646,197819056,198100982,198357831,198594147,198779719,199037004,199266498,199434481,199640535,199779751,199954536,200261325,200542343,200798037,201032193,201226738,201476273,201707729,201872165,202081278,202228481,202383962,202634904,202849651,203037922,203205260,203330990,203514985,203676563,203772757,203919776,204004509,204123073,204437084,204715989,204972144,205207413,205410601,205646999,205882040,206053358,206267980,206417432,206554588,206814291,207029197,207218465,207383072,207518108,207690293,207859339,207965792,208108727,208195582,208286954,208552499,208765388,208954505,209116914,209257726,209431329,209598370,209708995,209848641,209937283,210014986,210213393,210356751,210478291,210577098,210661420,210773277,210875386,210933811,211012998,211057608,211105168,211431113,211708324,211963872,212208119,212423327,212649384,212884739,213075437,213277588,213435180,213540714,213816638,214031916,214221163,214396921,214542224,214704254,214870588,214994833,215126460,215221525,215271315,215553951,215772609,215956721,216137998,216281696,216442388,216608043,216736029,216864668,216960987,217011962,217227630,217375640,217492823,217607876,217691086,217794104,217893140,217965837,218036079,218087633,218109738,218380363,218602684,218778122,218971897,219115736,219268675,219432081,219568942,219696336,219798616,219853602,220057720,220208216,220321022,220446279,220528219,220624224,220719829,220804426,220876101,220927823,220951753,221146522,221303558,221410967,221540889,221622289,221713368,221817371,221901407,221972488,222023990,222049086,222180037,222272342,222327626,222401550,222439097,222491712,222545620,222585810,222619680,222640372,222650001,222914968,223210142,223444063,223723135,223941199,224140347,224392973,224606951,224796357,224962792,225089215,225318840,225551585,225716606,225934010,226081515,226215904,226399921,226543471,226668663,226767426,226839322,227050596,227287569,227459566,227672403,227823151,227949756,228139736,228284348,228406863,228506713,228581639,228743611,228912432,229018862,229161620,229248790,229321990,229445863,229527460,229597415,229646023,229683456,229877459,230114247,230295760,230501604,230656259,230772528,230972319,231114759,231235973,231336842,231421118,231576209,231742596,231857670,231994928,232086867,232148678,232281442,232361807,232431710,232484971,232525114,232667771,232832320,232953478,233088422,233181458,233237138,233374145,233457424,233527381,233582314,233622435,233719594,233821101,233887283,233963201,234010015,234029291,234113240,234153794,234186300,234210177,234225603,234379966,234615339,234817395,235009985,235171415,235275462,235490128,235638893,235755080,235870436,235954390,236088540,236252714,236387273,236510176,236613482,236667143,236809316,236896368,236957582,237022717,237062504,237177668,237340722,237479414,237606795,237708829,237764486,237903362,237991017,238051998,238119599,238159005,238239558,238336848,238421163,238492819,238544610,238568752,238646833,238691391,238718026,238749412,238764594,238856453,239028107,239173564,239299617,239399551,239460784,239592705,239684895,239739778,239814408,239852628,239927023,240033326,240117173,240187628,240238126,240266370,240340128,240387365,240408789,240445735,240461552,240521192,240632662,240715409,240785473,240836872,240866272,240938049,240985522,241005525,241045988,241061816,241099682,241158593,241198142,241232067,241252693,241264117,241297192,241317609,241324884,241340594,241345576,241415657,241793599,242166455,242533098,242897304,243255291,243610791,243975484,244324586,244677617,245012959,245315042,245687144,246045561,246391359,246730818,247063392,247388584,247729349,248042501,248360588,248653457,248894688,249267231,249625395,249971030,250316213,250646732,250969618,251309769,251624617,251943552,252236817,252474305,252832144,253159605,253470337,253777255,254058244,254335440,254631906,254896959,255160133,255391563,255556544,255929783,256290707,256634798,256984648,257313722,257632934,257973261,258296106,258608248,258903707,259138537,259497628,259830934,260135033,260449018,260728224,261001430,261298095,261570935,261826897,262062326,262233648,262581296,262916379,263217795,263535063,263815408,264085099,264381709,264656945,264913268,265152612,265327670,265640740,265928745,266171757,266437468,266650110,266861185,267094755,267307964,267501239,267667909,267778882,268111411,268474817,268815549,269171739,269500229,269814502,270157776,270488996,270798867,271097120,271353798,271681746,272020014,272317408,272643312,272920530,273186835,273492557,273773058,274029660,274264938,274455963,274764699,275103447,275399912,275726981,276009327,276271164,276580193,276860504,277115270,277352382,277548727,277827853,278122775,278356256,278639275,278857968,279054088,279307806,279521208,279712479,279877882,280006203,280283113,280622573,280925699,281253690,281540021,281791085,282105970,282387395,282642282,282877246,283082958,283346802,283647702,283893523,284169683,284392224,284575237,284840257,285054130,285242760,285406091,285542935,285788434,286087002,286337790,286609803,286832900,287014203,287282400,287495250,287682826,287844814,287991894,288201520,288438597,288621953,288825716,288982669,289095281,289298062,289439885,289560536,289664539,289748468,289977569,290341866,290695048,291045120,291383617,291680785,292038690,292368139,292677034,292984672,293265912,293553048,293893353,294214240,294527759,294823074,295056928,295386796,295670729,295921131,296174038,296387751,296636320,296976472,297299372,297611373,297906892,298144315,298473899,298758329,299006611,299262928,299477122,299711215,300007167,300280947,300536189,300773514,300945661,301219864,301442824,301620156,301810482,301954993,302155240,302494953,302822010,303133762,303433225,303681054,303997360,304285751,304528528,304795468,305007956,305231193,305526869,305809024,306067424,306304338,306485760,306747102,306974661,307147053,307347256,307489293,307667226,307969613,308251956,308508439,308744866,308930654,309188134,309417331,309585502,309790896,309931100,310095884,310341085,310556748,310747457,310911696,311033279,311224678,311383767,311484503,311621540,311705219,311841016,312190609,312519686,312828059,313126566,313394398,313688330,313983717,314216446,314501141,314720034,314921159,315234774,315512905,315770105,316005454,316207705,316445053,316678652,316850155,317065264,317214064,317357466,317673510,317954392,318209118,318443983,318650883,318883115,319122980,319297615,319509379,319660212,319790117,320054963,320268636,320457518,320620377,320759558,320933268,321101272,321210919,321351262,321439120,321524902,321847817,322126728,322379689,322616068,322833756,323063084,323300832,323484558,323688902,323845608,323959418,324232816,324443960,324632593,324804359,324949573,325117163,325282536,325400579,325536903,325628859,325690989,325966683,326180887,326370545,326545389,326691314,326854000,327019830,327143448,327275144,327370751,327421524,327636105,327783094,327903399,328014785,328097505,328202679,328303562,328371309,328446115,328493573,328513748,328879684,329241429,329583847,329935690,330265555,330582776,330922586,331248445,331557508,331857718,332102783,332448448,332783343,333084242,333404060,333683479,333952261,334248323,334524328,334783593,335021826,335198953,335531566,335866864,336167842,336489975,336768808,337035380,337330836,337614862,337872483,338109859,338292052,338591095,338884112,339123089,339394565,339606611,339811522,340054578,340271272,340462617,340628804,340743694,341051048,341389468,341686546,342013109,342290399,342556797,342863974,343144836,343400541,343635351,343829714,344113732,344408491,344642869,344920532,345138930,345338945,345590525,345805167,345993845,346160540,346286710,346550681,346846113,347081481,347364225,347583824,347777741,348033447,348246823,348437475,348602342,348733673,348954677,349190403,349362021,349576102,349726050,349853499,350042347,350187086,350310565,350410039,350484243,350737608,351079031,351386542,351710379,351998614,352244771,352566195,352844131,353098887,353332383,353546021,353807152,354104391,354358204,354628023,354854440,355031924,355300831,355514263,355700992,355867677,356014099,356245406,356543361,356800242,357068208,357297618,357468705,357742303,357953270,358143062,358315922,358460726,358661332,358896574,359088176,359289931,359447960,359551485,359760113,359904607,360028672,360135803,360219137,360415354,360713536,360980724,361241342,361473714,361635803,361919216,362137818,362321765,362503580,362646634,362836062,363071425,363272767,363466057,363627558,363730277,363945444,364093993,364210840,364325812,364409292,364569929,364804796,365010845,365198688,365368668,365473970,365684395,365834876,365945944,366068889,366151635,366280229,366443458,366580823,366708583,366810752,366865937,367005319,367092435,367154378,367221197,367260474,367407748,367748575,368080633,368391465,368689620,368945150,369252196,369544649,369783106,370055653,370267245,370485181,370788903,371070684,371327634,371563383,371751261,372006126,372236059,372403458,372610564,372751810,372923188,373230710,373512156,373767028,374002997,374197724,374444914,374677521,374840630,375053407,375200225,375352475,375605641,375819514,376009373,376175641,376302018,376484852,376646401,376745193,376891640,376976188,377091437,377406049,377686183,377941842,378176090,378381173,378615473,378853079,379025382,379238068,379388796,379523036,379785189,379999951,380188119,380352368,380488915,380661900,380830848,380937576,381079856,381167156,381255975,381522935,381735529,381923524,382085900,382229880,382402599,382569371,382680629,382819318,382909441,382984166,383184671,383326698,383447787,383549479,383633692,383745286,383846303,383905827,383985150,384029832,384073539,384399849,384676572,384933655,385178990,385394837,385618813,385853232,386047001,386247446,386406585,386509141,386785095,387003566,387191021,387368899,387513537,387673191,387841220,387966457,388097645,388192953,388240001,388524437,388743441,388926719,389109599,389251895,389412669,389577811,389707723,389835391,389931477,389984398,390198382,390347305,390463420,390579216,390662925,390764791,390863972,390937881,391007250,391059869,391082185,391350191,391572998,391748538,391942671,392086308,392238443,392401205,392540900,392668003,392770041,392825983,393027678,393180377,393291116,393417534,393499818,393593999,393692276,393776599,393848051,393899948,393924134,394118025,394274759,394380052,394512413,394593096,394685399,394789596,394873142,394944639,394995635,395021544,395151420,395243184,395298213,395373124,395411555,395463716,395517781,395558171,395591832,395612796,395622460,395912142,396276262,396615786,396976148,397309250,397616765,397967420,398295866,398606175,398903246,399173225,399483154,399822673,400124587,400453562,400739181,400990959,401305961,401586897,401842079,402076818,402281734,402565470,402907888,403213934,403538683,403826365,404073638,404393745,404672927,404927319,405161476,405370003,405634702,405933247,406183309,406455992,406678962,406860724,407128342,407341363,407529094,407690381,407836988,408088015,408428648,408742149,409059815,409353056,409593329,409918328,410196055,410448569,410691713,410908302,411159191,411456324,411714223,411982465,412212171,412381362,412656375,412867140,413058641,413233051,413378010,413596868,413893589,414158611,414421437,414653362,414817670,415095826,415314014,415500433,415679832,415824135,416014682,416251015,416449767,416645660,416807002,416904266,417121711,417269576,417388787,417501812,417583763,417775246,418114957,418440748,418750078,419048379,419291776,419614370,419902223,420146280,420407188,420622046,420850196,421146807,421422398,421679259,421918457,422093374,422363759,422586818,422762568,422957964,423099891,423287209,423582895,423864023,424122518,424359075,424540693,424802938,425029534,425202644,425401715,425544770,425710800,425949950,426167486,426358369,426525525,426639955,426837150,426994489,427099114,427231961,427312178,427456156,427762037,428042779,428298704,428534022,428726048,428977782,429208280,429373658,429582350,429727257,429885385,430134626,430349644,430538639,430705651,430830131,431015837,431176657,431273083,431418657,431503150,431618624,431872844,432085562,432277245,432442473,432571501,432750872,432912219,433015434,433160990,433246318,433341651,433527117,433672860,433797176,433896188,433969354,434082177,434185674,434239155,434322027,434363640,434441584,434796616,435125104,435433883,435729824,436006966,436295334,436593844,436844865,437116834,437340619,437523277,437846121,438124854,438378141,438612939,438830998,439061175,439298647,439482076,439686059,439842561,439959310,440284910,440562301,440816527,441059401,441275902,441502627,441738236,441926536,442129699,442287455,442394891,442670126,442883197,443073390,443248448,443393934,443557031,443722549,443845687,443978253,444073325,444125581,444456056,444740150,444989804,445243228,445457156,445676644,445912951,446111275,446307150,446468734,446567873,446849206,447067852,447250579,447435330,447579090,447737462,447901305,448034233,448159517,448259121,448312216,448584658,448807144,448984165,449175159,449319796,449473015,449637031,449773731,449899204,450001934,450056194,450261794,450413245,450525292,450649559,450731277,450828108,450925182,451007084,451078958,451130569,451154334,451446820,451739368,451978627,452249399,452461616,452667248,452908955,453125660,453317104,453483462,453598465,453848193,454077391,454245666,454451358,454590970,454738980,454912566,455057772,455182975,455281465,455346177,455582060,455813350,455977986,456186449,456333721,456475812,456654027,456798568,456921219,457023258,457089867,457268050,457429283,457525211,457672290,457757033,457842520,457955198,458036822,458108275,458159113,458189726,458400750,458635226,458806671,459021237,459170599,459299416,459486839,459631752,459755877,459855084,459929057,460090778,460259734,460366234,460509183,460596153,460669954,460792796,460875374,460945142,460994083,461030102,461185168,461352506,461462785,461602482,461691031,461761506,461887974,461970259,462038420,462087310,462127786,462233513,462335268,462393623,462472837,462517420,462549701,462622076,462660679,462692770,462714798,462730522,462941167,463281051,463599655,463915604,464209067,464445345,464772402,465053946,465308029,465555833,465771760,466013223,466310934,466577894,466838709,467071112,467233719,467515843,467734641,467918784,468100216,468243684,468451693,468748586,469018904,469276731,469510082,469678752,469958790,470178611,470359322,470545100,470689730,470872871,471107596,471312964,471501981,471670688,471775584,471986433,472136719,472249028,472370591,472453312,472620495,472916430,473192427,473452183,473690421,473868110,474134901,474357656,474534060,474731329,474874054,475043905,475276650,475495495,475687854,475854914,475967026,476165190,476322508,476430032,476559739,476640969,476775612,477018640,477235264,477426463,477592660,477708157,477904466,478062141,478165656,478300440,478379722,478495185,478669815,478814980,478940024,479038835,479103923,479232354,479326546,479377961,479455493,479495972,479605685,479917471,480196927,480451989,480688446,480887069,481129421,481362202,481526572,481744040,481891669,482037018,482292784,482506814,482697482,482861625,482993736,483169504,483334460,483438565,483582729,483669242,483768774,484029994,484244902,484432774,484597796,484733650,484906415,485075358,485181542,485324465,485411575,485495006,485690607,485832713,485956650,486053699,486133854,486248285,486349330,486406429,486487139,486530028,486587035,486856672,487069405,487256035,487423655,487570186,487738998,487905839,488020410,488157678,488249673,488316041,488520827,488661590,488785927,488890718,488974152,489083864,489183730,489246849,489325247,489370333,489401975,489610551,489755900,489879482,489987105,490070484,490176630,490277907,490343921,490419887,490466664,490486572,490632679,490717161,490785099,490842315,490881804,490942611,490993626,491023859,491059715,491078511,491085609,491409086,491695635,491941127,492198423,492414940,492629595,492864404,493070758,493258947,493428988,493534552,493804434,494027283,494202561,494396909,494540547,494692622,494855993,494994182,495121733,495223803,495279245,495539078,495763235,495938007,496136371,496279306,496427245,496590618,496737276,496863721,496965244,497023147,497218423,497374888,497481564,497612870,497693751,497785447,497889505,497973465,498044765,498095844,498121441,498361430,498590912,498758265,498965527,499107621,499253555,499428653,499574174,499698530,499798322,499863576,500045375,500206630,500304815,500446327,500530762,500618087,500729563,500812340,500882347,500933822,500963092,501135061,501296735,501396239,501542493,501627104,501710917,501825165,501907620,501978514,502028287,502060642,502172837,502272769,502325985,502408934,502450616,502493049,502555660,502595763,502628774,502649591,502661990,502859066,503097741,503274124,503483684,503635386,503756776,503953301,504095819,504218409,504315092,504397455,504557030,504723897,504835448,504973453,505064284,505131643,505260447,505341958,505409222,505460939,505501339,505649178,505815436,505930408,506067901,506159956,506221024,506354783,506433780,506505101,506558546,506598726,506700458,506798640,506863792,506941635,506987231,507013013,507089253,507129806,507163311,507186123,507201837,507331903,507499256,507624965,507755682,507851406,507898771,508045797,508130524,508197908,508255768,508294969,508389701,508489361,508559811,508632875,508680612,508702626,508786256,508827326,508858429,508883710,508899434,508985087,509084279,509158428,509228021,509280513,509302957,509385387,509427088,509455795,509483974,509499566,509551114,509599722,509636206,509670495,509692263,509699864,509739038,509755595,509766744,509776803,509781602,509920064,510296208,510669679,511036411,511401049,511752803,512113689,512477432,512817521,513175096,513502605,513819162,514187221,514546257,514892945,515232831,515551583,515887861,516226547,516523092,516850159,517131917,517398974,517768090,518126980,518473044,518813727,519135735,519467894,519807140,520102828,520434729,520719139,520977893,521328504,521656994,521967543,522264382,522534915,522825426,523120973,523362134,523642660,523862622,524060947,524431308,524790671,525136746,525476608,525802919,526130032,526472611,526778849,527103689,527391364,527640021,527994989,528323590,528632419,528928368,529204323,529493511,529792161,530042596,530314920,530537513,530722699,531078823,531407092,531715375,532011266,532295737,532579351,532877346,533132405,533400030,533629068,533804548,534129615,534407438,534660697,534903685,535120198,535347004,535583204,535770087,535974005,536131716,536240701,536613425,536972766,537318499,537666225,537996324,538316436,538656722,538977154,539291138,539586317,539820331,540179890,540512297,540817881,541129915,541409166,541683858,541981256,542249833,542509622,542742367,542907325,543264548,543597501,543901495,544215845,544495818,544768446,545064487,545337931,545593456,545830407,546002369,546321743,546609912,546853761,547115329,547330136,547542321,547777554,547985472,548176617,548345448,548451846,548784701,549120133,549420911,549742752,550020999,550288510,550584189,550865783,551124453,551361221,551542744,551844382,552136143,552376179,552646133,552858555,553064837,553304967,553522288,553713371,553879794,553994817,554282937,554575988,554812982,555086656,555297524,555505629,555750800,555966258,556157001,556321601,556442697,556684603,556915567,557080774,557289306,557435108,557577887,557755481,557900177,558023460,558124957,558191107,558479708,558843879,559183326,559544568,559877650,560184439,560535710,560863485,561174420,561471093,561742819,562050773,562390520,562694559,563021976,563308594,563558798,563874419,564155646,564410449,564645204,564851888,565133891,565475878,565783152,566107116,566395316,566641741,566962264,567241264,567495740,567729532,567940139,568203121,568501633,568753542,569024722,569249225,569428564,569697374,569910581,570097674,570261504,570408054,570655715,570996508,571310639,571628998,571921678,572160893,572486683,572763904,573018717,573262099,573477956,573727541,574024255,574285133,574551294,574780663,574949201,575224776,575438604,575628447,575803389,575949060,576164728,576462339,576728542,576989276,577222349,577385289,577666411,577884842,578069059,578250693,578394367,578584080,578820266,579019321,579214361,579376170,579476074,579692720,579840070,579958381,580072821,580155324,580342974,580682759,581008640,581317697,581617627,581862546,582183291,582470609,582714072,582977405,583191760,583418511,583714484,583990543,584249411,584487951,584664662,584932331,585155633,585331786,585528367,585670949,585854983,586150460,586434165,586691693,586929167,587111130,587370874,587599651,587771080,587972618,588114561,588278430,588520874,588737693,588929108,589095376,589210233,589407298,589564696,589668778,589802744,589881495,590024316,590331184,590612228,590867830,591102400,591296853,591546147,591777588,591942014,592151540,592298629,592453742,592704769,592919686,593108119,593275205,593401120,593585095,593746563,593843028,593989912,594074652,594186999,594442530,594655759,594846466,595011575,595142531,595319503,595483096,595586995,595731905,595817849,595910126,596098426,596243162,596366982,596466375,596540509,596653958,596756784,596810881,596893564,596935165,597009607,597381578,597739798,598085861,598425395,598755844,599082761,599422960,599735457,600054996,600345944,600589135,600945325,601273814,601581877,601882347,602165177,602446441,602744734,603001392,603269485,603498497,603671429,604028994,604356504,604666490,604972161,605252692,605531784,605828414,606090787,606356207,606586158,606753598,607080667,607362971,607616582,607865089,608080369,608300989,608538076,608734396,608931378,609091778,609189268,609550183,609883081,610187621,610500340,610779129,611054102,611350833,611621579,611879299,612112329,612282085,612607375,612893665,613139704,613396862,613612824,613827966,614062960,614268627,614456935,614626400,614731567,615046171,615334052,615576207,615841195,616055078,616266700,616500712,616709149,616903737,617071766,617180180,617442811,617665846,617842001,618039722,618182401,618331058,618493004,618640085,618766620,618867868,618925595,619238150,619576113,619874169,620199457,620477106,620742555,621046398,621327984,621584943,621820871,622008264,622300356,622593873,622830372,623105558,623317640,623523906,623771224,623987134,624177054,624341910,624464746,624737379,625032678,625266470,625545912,625764103,625962784,626215641,626429411,626619227,626785560,626912008,627141298,627374240,627539546,627756842,627904203,628038397,628222745,628366320,628491538,628589918,628662262,628905002,629204023,629448109,629724633,629947608,630133333,630395204,630609896,630797948,630962578,631098895,631314449,631553516,631728985,631939870,632091090,632212399,632408718,632550996,632674304,632771197,632852217,633052205,633289084,633470506,633676230,633831241,633947059,634147246,634289323,634410674,634511869,634596120,634751101,634917393,635032562,635169827,635261764,635323304,635456451,635536483,635606727,635659989,635700134,635909542,636249209,636569467,636884101,637178608,637413553,637740633,638024688,638277040,638527258,638742151,638981445,639279930,639547752,639808024,640040727,640201872,640486535,640705438,640888968,641071599,641213648,641420403,641717062,641988917,642245691,642479280,642650783,642928583,643149489,643329044,643515514,643661002,643841826,644076671,644283551,644472169,644641782,644747703,644957286,645108124,645219598,645342382,645424968,645588955,645884713,646163305,646421946,646660018,646839739,647104076,647328936,647503187,647701835,647844886,648012398,648248714,648466402,648658140,648825686,648938726,649136804,649293505,649399263,649531348,649611834,649746199,649989744,650205267,650397155,650562508,650680516,650874892,651032018,651135428,651271272,651352158,651465751,651640563,651786515,651910776,652010758,652076202,652202359,652297972,652347789,652427918,652468418,652574298,652886776,653165870,653421780,653658108,653857493,654097957,654331145,654498733,654715549,654863006,655005511,655262513,655477631,655667828,655831892,655964614,656138379,656306105,656410890,656554420,656640865,656737101,657000736,657214961,657403406,657566998,657704086,657878045,658046326,658153923,658295456,658382845,658464773,658661355,658804294,658926849,659022879,659106226,659219948,659321430,659378645,659458188,659502379,659555477,659826973,660039014,660224484,660395806,660541815,660710249,660876436,660991284,661129193,661221258,661285132,661491480,661631025,661757322,661862870,661946389,662055513,662154066,662219174,662296847,662342457,662370737,662580796,662727824,662850219,662959265,663042571,663147570,663248935,663316055,663391523,663438624,663457699,663604358,663689310,663756729,663814631,663853896,663914277,663965136,663996232,664031555,664050807,664058068,664415468,664777834,665119619,665473269,665802456,666118560,666458435,666785282,667096369,667395907,667643054,667984738,668320124,668620946,668942344,669220307,669488582,669784279,670064958,670323568,670559932,670741597,671067472,671404854,671703903,672027108,672305913,672571282,672872067,673154767,673410972,673648385,673833444,674129154,674422361,674659465,674933083,675144051,675351501,675596395,675811582,676002858,676167798,676287635,676587108,676925979,677222318,677549432,677832146,678093607,678402881,678682920,678937730,679174970,679371495,679650285,679945463,680178663,680462034,680680636,680876636,681130626,681343661,681535192,681700368,681829142,682086758,682382214,682624335,682904278,683124872,683314588,683571715,683787778,683977456,684141812,684275561,684490738,684731448,684905179,685117391,685267882,685390368,685584914,685728633,685851955,685949974,686026183,686274660,686615520,686926319,687247245,687536038,687780893,688103687,688382192,688635712,688869933,689088282,689344544,689642694,689898214,690165926,690394605,690568220,690840772,691052370,691239589,691410952,691556785,691783313,692080179,692339815,692606454,692836407,693005172,693280409,693492951,693683229,693858377,694003742,694199438,694435365,694630071,694828439,694989231,695088258,695301004,695447816,695569033,695679598,695762355,695953157,696250425,696518962,696778684,697011721,697177440,697459251,697677766,697860750,698045264,698188908,698374245,698608448,698813561,699003763,699169779,699274195,699485665,699636418,699750297,699869258,699952516,700107177,700341773,700550086,700741530,700910505,701017207,701224696,701375951,701487837,701612071,701693711,701818461,701980821,702124754,702251681,702352869,702409906,702546254,702636356,702696189,702764521,702803658,702943444,703288123,703618732,703929033,704226522,704483697,704789772,705082727,705319777,705593962,705804228,706022621,706328839,706610043,706865798,707100248,707293985,707544309,707775529,707940319,708148790,708295501,708459809,708770265,709050314,709303811,709541882,709739331,709982937,710215669,710377141,710595931,710743242,710890527,711145561,711358103,711549871,711715008,711844895,712023091,712185286,712289297,712434504,712519988,712627505,712943826,713224467,713479157,713714213,713921128,714153640,714393138,714568070,714779815,714930558,715060281,715325068,715538806,715727718,715890480,716030119,716203830,716371562,716481454,716621572,716709647,716792856,717061413,717274851,717461595,717626521,717773097,717943025,718110572,718223771,718361009,718452624,718521008,718725596,718866659,718989235,719093420,719176988,719287973,719388035,719449495,719528338,719572943,719609335,719936338,720217645,720471767,720719205,720935505,721156510,721392965,721588806,721785986,721947037,722044992,722326586,722545433,722729641,722911144,723054677,723215107,723381230,723508475,723637810,723733873,723784307,724064342,724283961,724464861,724650606,724795032,724952688,725116798,725249505,725374170,725475354,725528623,725739058,725889228,726002028,726123093,726206049,726305727,726404078,726480175,726551456,726603682,726626425,726888395,727111366,727287618,727484565,727627446,727776726,727938034,728084578,728211175,728312577,728369923,728565793,728723049,728830845,728960254,729041660,729132379,729236427,729320476,729391654,729443087,729468076,729658588,729816207,729919831,730054324,730133453,730227683,730333427,730416862,730487821,730537656,730565825,730692470,730786401,730838188,730915294,730955826,731006353,731062008,731102067,731135135,731156749,731166754,731439179,731778635,732076992,732407808,732692849,732946900,733261025,733540456,733796482,734031269,734235441,734502864,734801123,735044515,735322230,735544602,735731099,735991957,736206809,736395135,736559953,736695567,736941988,737241520,737488522,737763807,737986846,738169183,738435366,738647363,738836815,738999252,739141248,739354606,739591122,739772771,739979108,740133135,740249956,740449005,740592123,740713507,740813381,740897667,741115101,741412835,741669801,741937895,742167318,742338215,742611777,742822709,743012954,743185829,743330688,743530812,743766131,743958101,744159560,744317801,744420970,744629678,744774554,744898452,745005764,745089108,745264344,745501796,745698367,745895184,746055994,746152510,746369959,746516967,746637120,746748741,746830960,746971856,747137069,747266076,747394363,747490072,747542193,747687616,747772939,747838680,747898064,747938246,748103211,748399656,748674326,748927915,749168785,749342672,749614916,749837538,750012690,750207153,750350802,750525922,750759946,750969446,751163609,751331562,751440317,751645240,751796577,751908381,752034276,752116126,752258172,752492907,752711008,752903061,753070295,753183145,753381293,753537820,753644741,753775681,753856742,753972278,754143562,754289479,754415292,754515664,754576228,754708352,754800920,754855999,754930118,754968062,755079565,755326672,755542814,755732206,755897765,756020868,756208672,756369656,756467987,756609060,756693453,756799301,756980427,757124273,757248364,757349302,757416659,757539959,757635729,757684923,757769212,757809713,757888961,758073682,758217437,758342449,758440939,758513491,758629954,758729508,758782596,758865555,758907264,758963917,759083198,759166532,759235776,759286069,759320299,759385537,759438017,759460484,759500301,759516619,759575982,759898025,760176472,760429995,760663455,760879916,761112092,761349132,761530604,761736042,761891703,762010437,762281152,762493394,762679555,762849279,762995373,763164101,763330459,763445487,763582970,763674740,763741948,764016242,764226351,764418067,764591597,764736814,764902204,765065827,765188292,765322884,765416264,765472317,765680724,765828007,765950978,766059382,766142675,766247533,766349614,766416182,766491825,766538751,766557595,766841624,767060798,767243849,767427134,767569479,767729975,767894997,768025158,768152713,768249061,768301981,768515574,768664880,768780662,768896809,768980383,769082218,769181420,769255372,769324843,769377333,769399779,769607932,769758710,769870330,769993140,770075730,770174572,770271877,770350216,770422164,770474214,770497475,770634923,770723415,770784305,770851802,770891323,770944846,770993724,771034200,771068301,771089972,771097936,771345306,771574292,771742824,771947847,772088755,772234982,772407098,772551745,772678221,772778101,772839872,773029118,773186469,773289422,773425719,773507059,773599536,773706101,773789974,773860318,773910953,773939391,774118004,774278920,774376329,774519727,774604325,774691413,774802787,774885316,774955747,775007135,775036723,775154915,775251335,775301933,775386110,775426733,775472735,775532331,775572072,775605899,775626597,775638003,775796018,775964669,776069559,776213020,776299623,776375084,776496606,776579326,776649014,776698670,776733422,776842358,776944575,776999517,777081408,777123297,777162531,777228895,777268249,777301218,777320015,777335691,777440615,777541998,777599405,777678374,777723141,777758361,777827981,777866996,777898215,777920231,777936033,777997705,778049138,778074180,778112703,778130371,778144193,778177300,778191749,778205158,778212459,778217326,778423216,778787679,779142667,779491107,779830469,780126321,780485740,780817822,781123861,781435625,781715101,781999452,782339680,782662616,782974659,783270070,783506354,783836618,784121426,784369799,784625560,784839539,785082570,785422230,785748067,786057387,786355933,786599462,786921652,787209549,787453632,787714832,787929720,788157469,788454125,788729806,788986849,789226001,789400807,789671173,789894262,790070032,790265623,790407697,790601055,790940579,791271651,791583419,791881104,792134611,792444291,792735685,792976045,793245646,793458409,793677171,793978555,794261391,794517653,794754470,794939783,795197534,795426822,795595238,795800024,795940752,796115642,796421613,796702401,796958176,797193434,797385826,797637192,797867822,798033245,798241826,798387125,798544781,798794347,799009402,799198071,799365263,799489788,799675524,799836369,799932459,800078504,800162985,800286938,800638127,800965985,801276795,801573539,801845029,802134554,802429954,802672927,802952634,803173389,803367367,803682426,803964107,804218879,804453720,804660067,804891941,805132500,805306643,805518488,805669164,805803598,806124099,806403161,806657328,806891403,807101431,807336450,807574341,807753306,807961676,808113298,808237770,808506336,808719498,808906723,809070059,809216748,809387602,809554872,809667761,809804704,809896163,809970739,810296420,810573745,810828097,811071354,811287522,811514292,811749701,811938462,812141525,812299109,812406329,812681640,812895117,813085125,813260213,813405724,813568846,813734390,813857628,813989817,814085099,814136985,814417633,814636053,814820260,815001899,815145648,815306130,815472247,815598660,815729169,815824995,815874436,816091090,816238398,816357098,816471296,816553756,816657855,816756364,816828866,816900303,816950119,816972213,817314118,817649065,817950120,818269434,818549176,818818065,819114046,819390108,819648625,819887325,820063676,820373304,820661861,820904944,821172111,821384851,821593987,821827201,822044141,822236802,822403638,822515188,822810327,823103046,823342135,823613292,823825389,824030764,824272859,824489481,824681018,824847261,824962233,825211753,825441234,825609253,825815251,825954528,826102848,826276569,826421704,826546894,826645064,826710223,826980833,827275515,827509979,827786517,828005253,828206008,828456924,828671616,828859866,829027230,829152969,829384096,829617134,829779447,829997782,830145280,830280660,830464079,830606531,830732291,830831930,830902380,831116347,831351289,831522642,831737234,831886675,832015123,832202915,832347561,832471743,832570945,832645084,832806831,832975851,833082315,833225239,833312145,833385915,833508914,833591251,833661139,833709809,833746230,833969697,834267389,834520517,834790729,835016607,835194813,835463355,835676842,835863711,836029430,836175978,836382357,836620372,836804876,837009121,837166062,837275677,837480805,837621577,837744655,837849046,837932406,838118724,838354078,838544686,838746867,838904414,839009033,839217330,839360853,839485371,839592057,839675851,839820878,839987106,840111355,840242993,840338103,840387737,840531644,840616200,840684183,840741220,840781026,840941111,841176839,841377304,841570885,841732823,841834447,842050248,842198241,842315461,842430524,842513668,842649287,842813659,842946946,843070695,843172810,843226073,843368960,843455585,843517554,843581755,843621621,843738617,843902008,844038920,844166195,844268482,844323460,844463225,844550041,844612368,844678807,844718163,844800226,844895757,844980356,845052030,845103759,845127681,845205818,845250560,845277915,845308377,845323704,845453200,845798474,846128782,846439224,846736377,846995018,847299365,847592763,847829337,848104452,848316036,848532178,848839741,849121001,849376248,849611706,849805802,850054177,850286412,850449948,850661575,850808267,850969201,851281213,851560479,851815712,852052234,852250712,852492981,852725727,852890621,853108043,853255558,853400571,853656569,853870728,854061281,854225193,854357529,854533182,854698430,854802614,854946502,855033246,855136825,855455240,855735259,855988790,856224058,856431996,856665879,856904896,857080060,857291361,857442465,857570416,857837006,858049454,858238133,858400523,858543400,858716523,858883106,858994504,859133389,859222908,859302666,859572574,859785036,859971655,860139780,860286228,860455046,860621524,860736492,860873754,860965704,861031771,861236612,861377320,861501909,861606820,861690262,861799980,861899551,861962975,862041229,862086424,862118641,862445721,862729487,862981810,863231871,863446814,863666139,863903827,864100744,864297592,864458518,864554246,864838458,865057320,865241027,865423511,865565598,865726940,865892133,866021542,866149497,866244923,866297853,866575259,866796095,866975688,867161796,867307527,867463591,867627775,867762248,867885128,867988442,868042096,868250906,868401863,868513263,868636116,868718738,868817670,868915624,868992724,869064828,869116942,869139972,869398800,869623313,869797669,869996363,870139343,870287021,870450801,870597344,870723784,870825315,870883295,871078335,871235056,871341279,871472999,871553638,871645630,871749698,871833562,871904907,871955810,871981635,872169912,872327366,872430678,872566267,872646998,872739979,872846333,872930122,873000584,873051074,873079318,873203334,873299082,873349081,873428829,873469328,873518335,873575478,873615327,873648660,873670165,873680235,873929504,874225114,874464216,874745885,874964972,875156929,875413894,875628504,875819018,875982852,876115729,876333647,876572266,876745141,876957717,877107899,877233090,877425030,877569327,877692352,877790521,877866848,878071121,878309661,878486342,878695910,878847376,878968740,879165311,879307868,879430550,879526866,879609724,879768940,879936104,880047710,880185463,880276504,880343675,880472667,880554106,880621096,880673207,880713611,880897373,881133714,881319195,881524179,881681602,881789223,881995411,882134505,882260982,882366383,882449950,882599050,882762795,882885705,883019946,883113538,883167622,883305306,883389851,883459524,883514814,883554908,883688176,883855287,883981172,884111902,884207608,884255109,884402004,884486732,884554209,884612081,884651307,884745712,884845557,884916133,884989042,885036949,885058954,885142548,885183653,885214651,885240048,885255772,885396860,885632034,885839160,886029157,886198217,886304605,886513614,886664095,886776187,886899275,886981442,887108272,887270827,887411885,887538978,887640349,887696958,887834720,887923461,887984172,888051539,888091275,888195493,888361624,888508156,888633363,888735510,888794004,888927883,889019653,889075809,889148356,889186903,889262118,889366642,889450031,889521520,889572410,889598644,889675427,889720257,889744591,889778821,889793746,889878932,890054926,890200018,890324048,890424654,890490522,890616420,890711244,890760473,890842293,890882837,890950635,891061939,891144615,891215209,891266427,891296229,891366962,891414627,891435494,891475924,891491785,891544787,891659795,891743108,891813460,891863683,891896131,891961832,892013713,892035836,892075856,892092049,892123188,892187821,892227715,892260881,892281451,892293958,892325918,892347762,892355209,892370825,892375800,892428506,892784673,893112908,893421210,893717569,894001685,894285217,894583170,894838598,895106244,895335130,895510355,895835611,896113291,896366796,896609753,896826161,897053147,897289091,897476427,897679957,897837884,897946376,898273142,898552135,898807319,899054662,899270582,899492825,899728455,899922889,900121749,900282316,900381980,900661365,900879550,901065114,901245583,901389328,901549924,901716282,901842720,901973255,902068733,902117610,902446887,902731372,902979599,903235936,903450130,903667521,903901634,904106631,904297094,904462708,904566986,904840080,905063076,905240434,905430754,905575275,905728660,905893325,906029592,906154508,906257186,906311339,906576362,906799631,906975193,907171470,907313733,907464558,907626878,907770245,907897321,907998381,908055480,908254226,908409216,908518473,908646112,908727758,908820730,908921883,909006141,909077200,909128711,909153732,909436437,909729463,909966421,910240436,910450972,910659314,910904485,911120113,911310837,911475131,911596623,911838072,912069282,912234262,912442809,912589026,912731723,912909401,913054052,913177034,913278706,913345069,913571414,913804157,913965304,914184076,914331344,914467612,914650253,914792260,914918701,915018607,915088221,915258697,915420559,915524590,915669923,915755371,915836137,915951621,916035486,916105818,916155731,916188838,916389622,916629563,916804143,917015872,917166720,917289225,917483507,917627010,917750507,917848209,917925704,918087111,918255104,918364675,918505074,918592869,918663671,918790265,918872353,918940843,918989100,919029577,919179937,919347458,919460508,919597593,919689201,919753105,919885150,919965621,920033843,920086784,920127096,920230744,920330800,920392105,920470986,920515826,920544970,920619714,920657979,920691882,920714273,920730075,920917569,921215248,921481607,921742517,921975308,922138127,922419501,922637985,922822301,923003798,923147502,923336988,923573311,923772646,923967319,924129134,924229409,924445956,924593396,924711365,924825936,924908694,925071642,925306348,925511134,925700857,925868542,925973320,926184484,926334426,926447715,926568312,926651419,926781127,926944694,927081792,927208022,927310472,927365068,927505171,927592566,927654466,927720491,927759834,927890619,928123549,928341397,928533765,928700971,928812684,929011618,929168289,929276376,929405560,929487005,929602222,929773480,929919506,930045204,930146063,930205366,930338914,930430973,930486559,930559876,930597197,930694988,930869115,931014207,931139264,931237811,931302918,931431961,931525553,931577659,931654405,931694947,931766045,931875050,931958367,932027660,932079525,932108559,932181337,932228480,932247513,932288027,932303883,932387575,932643236,932856607,933047203,933212161,933343395,933519999,933683989,933787989,933932717,934018833,934110628,934299359,934444109,934567633,934667107,934741247,934854948,934957753,935011856,935094499,935136158,935198615,935393728,935536133,935660043,935757273,935836632,935951250,936052259,936109261,936190176,936232830,936279544,936405926,936488608,936556685,936606120,936646587,936710982,936763118,936787567,936825918,936843495,936875599,937080541,937221253,937344712,937449475,937532871,937643302,937743032,937805560,937884193};
int T[2];
inline bool check(int x)
{
T[0]=T[1]=0;
while(x)
{
++T[x&1];
x>>=1;
}
return T[0]>=T[1];
}
inline int calc(const int &x)
{
int res=table[x/BN];
for(int i=x/BN*BN+1;i<=x;++i)
res+=check(i);
return res;
}
int main()
{
int x,y;
scanf("%d%d",&x,&y);
printf("%d\n",calc(y)-calc(x-1));
return 0;
}
上一篇:HBase中的压缩算法比较 GZIP、LZO、Zippy、Snappy [转]


下一篇:Spring Kafka和Spring Boot整合实现消息发送与消费简单案例