fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4. #include <cstdint>
  5.  
  6. typedef std::vector<std::uint64_t> DType;
  7.  
  8. DType SepDigit(std::uint64_t N,std::uint64_t Radix){
  9. DType R;
  10.  
  11. if (N == 0) {
  12. return DType(1);
  13. }
  14.  
  15. while (N) {
  16. R.push_back(N % Radix);
  17. N /= Radix;
  18. }
  19.  
  20. return R;
  21. }
  22.  
  23. std::uint64_t MakeDigit(const DType& D, const std::uint64_t& Radix) {
  24. std::uint64_t R = 0;
  25.  
  26. for (std::size_t i = 0; i < D.size(); i++) {
  27. R += D[i];
  28. if(i<D.size()-1)R *= Radix;
  29. }
  30. return R;
  31. }
  32.  
  33. DType MakeHoge(const std::uint64_t& N,const std::uint64_t Radix=10) {
  34. DType Sep = SepDigit(N, Radix);
  35. DType R;
  36. std::sort(Sep.begin(), Sep.end());
  37.  
  38. do {
  39. std::uint64_t V= MakeDigit(Sep, Radix);
  40. if (V > N) { R.push_back(V); }
  41.  
  42. } while (std::next_permutation(Sep.begin(), Sep.end()));
  43.  
  44. return R;
  45. }
  46.  
  47. bool Show(const std::uint64_t& V, const DType& R) {
  48.  
  49. std::cout << "Input:" << V <<' '<<'['<< R.size()<<']'<<" -> ";
  50.  
  51. if (R.size() == 0) { std::cout << V; }
  52.  
  53. for (auto& o : R) {
  54. std::cout << o << ',';
  55. }
  56. std::cout << std::endl;
  57.  
  58. return true;
  59.  
  60. }
  61.  
  62. int main() {
  63.  
  64. std::uint64_t N = 123;
  65. DType R;
  66.  
  67. R = MakeHoge(N);
  68. Show(N, R);
  69. N = 921;
  70. R = MakeHoge(N);
  71. Show(N, R);
  72. N = 56723915;
  73. R = MakeHoge(N);
  74. Show(N, R);
  75. return 0;
  76. }
Runtime error #stdin #stdout 0s 4484KB
stdin
Standard input is empty
stdout
Input:123 [5] -> 132,213,231,312,321,
Input:921 [0] -> 921
Input:56723915 [9205] -> 56723951,56725139,56725193,56725319,56725391,56725913,56725931,56729135,56729153,56729315,56729351,56729513,56729531,56731259,56731295,56731529,56731592,56731925,56731952,56732159,56732195,56732519,56732591,56732915,56732951,56735129,56735192,56735219,56735291,56735912,56735921,56739125,56739152,56739215,56739251,56739512,56739521,56751239,56751293,56751329,56751392,56751923,56751932,56752139,56752193,56752319,56752391,56752913,56752931,56753129,56753192,56753219,56753291,56753912,56753921,56759123,56759132,56759213,56759231,56759312,56759321,56791235,56791253,56791325,56791352,56791523,56791532,56792135,56792153,56792315,56792351,56792513,56792531,56793125,56793152,56793215,56793251,56793512,56793521,56795123,56795132,56795213,56795231,56795312,56795321,56912357,56912375,56912537,56912573,56912735,56912753,56913257,56913275,56913527,56913572,56913725,56913752,56915237,56915273,56915327,56915372,56915723,56915732,56917235,56917253,56917325,56917352,56917523,56917532,56921357,56921375,56921537,56921573,56921735,56921753,56923157,56923175,56923517,56923571,56923715,56923751,56925137,56925173,56925317,56925371,56925713,56925731,56927135,56927153,56927315,56927351,56927513,56927531,56931257,56931275,56931527,56931572,56931725,56931752,56932157,56932175,56932517,56932571,56932715,56932751,56935127,56935172,56935217,56935271,56935712,56935721,56937125,56937152,56937215,56937251,56937512,56937521,56951237,56951273,56951327,56951372,56951723,56951732,56952137,56952173,56952317,56952371,56952713,56952731,56953127,56953172,56953217,56953271,56953712,56953721,56957123,56957132,56957213,56957231,56957312,56957321,56971235,56971253,56971325,56971352,56971523,56971532,56972135,56972153,56972315,56972351,56972513,56972531,56973125,56973152,56973215,56973251,56973512,56973521,56975123,56975132,56975213,56975231,56975312,56975321,57123569,57123596,57123659,57123695,57123956,57123965,57125369,57125396,57125639,57125693,57125936,57125963,57126359,57126395,57126539,57126593,57126935,57126953,57129356,57129365,57129536,57129563,57129635,57129653,57132569,57132596,57132659,57132695,57132956,57132965,57135269,57135296,57135629,57135692,57135926,57135962,57136259,57136295,57136529,57136592,57136925,57136952,57139256,57139265,57139526,57139562,57139625,57139652,57152369,57152396,57152639,57152693,57152936,57152963,57153269,57153296,57153629,57153692,57153926,57153962,57156239,57156293,57156329,57156392,57156923,57156932,57159236,57159263,57159326,57159362,57159623,57159632,57162359,57162395,57162539,57162593,57162935,57162953,57163259,57163295,57163529,57163592,57163925,57163952,57165239,57165293,57165329,57165392,57165923,57165932,57169235,57169253,57169325,57169352,57169523,57169532,57192356,57192365,57192536,57192563,57192635,57192653,57193256,57193265,57193526,57193562,57193625,57193652,57195236,57195263,57195326,57195362,57195623,57195632,57196235,57196253,57196325,57196352,57196523,57196532,57213569,57213596,57213659,57213695,57213956,57213965,57215369,57215396,57215639,57215693,57215936,57215963,57216359,57216395,57216539,57216593,57216935,57216953,57219356,57219365,57219536,57219563,57219635,57219653,57231569,57231596,57231659,57231695,57231956,57231965,57235169,57235196,57235619,57235691,57235916,57235961,57236159,57236195,57236519,57236591,57236915,57236951,57239156,57239165,57239516,57239561,57239615,57239651,57251369,57251396,57251639,57251693,57251936,57251963,57253169,57253196,57253619,57253691,57253916,57253961,57256139,57256193,57256319,57256391,57256913,57256931,57259136,57259163,57259316,57259361,57259613,57259631,57261359,57261395,57261539,57261593,57261935,57261953,57263159,57263195,57263519,57263591,57263915,57263951,57265139,57265193,57265319,57265391,57265913,57265931,57269135,57269153,57269315,57269351,57269513,57269531,57291356,57291365,57291536,57291563,57291635,57291653,57293156,57293165,57293516,57293561,57293615,57293651,57295136,57295163,57295316,57295361,57295613,57295631,57296135,57296153,57296315,57296351,57296513,57296531,57312569,57312596,57312659,57312695,57312956,57312965,57315269,57315296,57315629,57315692,57315926,57315962,57316259,57316295,57316529,57316592,57316925,57316952,57319256,57319265,57319526,57319562,57319625,57319652,57321569,57321596,57321659,57321695,57321956,57321965,57325169,57325196,57325619,57325691,57325916,57325961,57326159,57326195,57326519,57326591,57326915,57326951,57329156,57329165,57329516,57329561,57329615,57329651,57351269,57351296,57351629,57351692,57351926,57351962,57352169,57352196,57352619,57352691,57352916,57352961,57356129,57356192,57356219,57356291,57356912,57356921,57359126,57359162,57359216,57359261,57359612,57359621,57361259,57361295,57361529,57361592,57361925,57361952,57362159,57362195,57362519,57362591,57362915,57362951,57365129,57365192,57365219,57365291,57365912,57365921,57369125,57369152,57369215,57369251,57369512,57369521,57391256,57391265,57391526,57391562,57391625,57391652,57392156,57392165,57392516,57392561,57392615,57392651,57395126,57395162,57395216,57395261,57395612,57395621,57396125,57396152,57396215,57396251,57396512,57396521,57512369,57512396,57512639,57512693,57512936,57512963,57513269,57513296,57513629,57513692,57513926,57513962,57516239,57516293,57516329,57516392,57516923,57516932,57519236,57519263,57519326,57519362,57519623,57519632,57521369,57521396,57521639,57521693,57521936,57521963,57523169,57523196,57523619,57523691,57523916,57523961,57526139,57526193,57526319,57526391,57526913,57526931,57529136,57529163,57529316,57529361,57529613,57529631,57531269,57531296,57531629,57531692,57531926,57531962,57532169,57532196,57532619,57532691,57532916,57532961,57536129,57536192,57536219,57536291,57536912,57536921,57539126,57539162,57539216,57539261,57539612,57539621,57561239,57561293,57561329,57561392,57561923,57561932,57562139,57562193,57562319,57562391,57562913,57562931,57563129,57563192,57563219,57563291,57563912,57563921,57569123,57569132,57569213,57569231,57569312,57569321,57591236,57591263,57591326,57591362,57591623,57591632,57592136,57592163,57592316,57592361,57592613,57592631,57593126,57593162,57593216,57593261,57593612,57593621,57596123,57596132,57596213,57596231,57596312,57596321,57612359,57612395,57612539,57612593,57612935,57612953,57613259,57613295,57613529,57613592,57613925,57613952,57615239,57615293,57615329,57615392,57615923,57615932,57619235,57619253,57619325,57619352,57619523,57619532,57621359,57621395,57621539,57621593,57621935,57621953,57623159,57623195,57623519,57623591,57623915,57623951,57625139,57625193,57625319,57625391,57625913,57625931,57629135,57629153,57629315,57629351,57629513,57629531,57631259,57631295,57631529,57631592,57631925,57631952,57632159,57632195,57632519,57632591,57632915,57632951,57635129,57635192,57635219,57635291,57635912,57635921,57639125,57639152,57639215,57639251,57639512,57639521,57651239,57651293,57651329,57651392,57651923,57651932,57652139,57652193,57652319,57652391,57652913,57652931,57653129,57653192,57653219,57653291,57653912,57653921,57659123,57659132,57659213,57659231,57659312,57659321,57691235,57691253,57691325,57691352,57691523,57691532,57692135,57692153,57692315,57692351,57692513,57692531,57693125,57693152,57693215,57693251,57693512,57693521,57695123,57695132,57695213,57695231,57695312,57695321,57912356,57912365,57912536,57912563,57912635,57912653,57913256,57913265,57913526,57913562,57913625,57913652,57915236,57915263,57915326,57915362,57915623,57915632,57916235,57916253,57916325,57916352,57916523,57916532,57921356,57921365,57921536,57921563,57921635,57921653,57923156,57923165,57923516,57923561,57923615,57923651,57925136,57925163,57925316,57925361,57925613,57925631,57926135,57926153,57926315,57926351,57926513,57926531,57931256,57931265,57931526,57931562,57931625,57931652,57932156,57932165,57932516,57932561,57932615,57932651,57935126,57935162,57935216,57935261,57935612,57935621,57936125,57936152,57936215,57936251,57936512,57936521,57951236,57951263,57951326,57951362,57951623,57951632,57952136,57952163,57952316,57952361,57952613,57952631,57953126,57953162,57953216,57953261,57953612,57953621,57956123,57956132,57956213,57956231,57956312,57956321,57961235,57961253,57961325,57961352,57961523,57961532,57962135,57962153,57962315,57962351,57962513,57962531,57963125,57963152,57963215,57963251,57963512,57963521,57965123,57965132,57965213,57965231,57965312,57965321,59123567,59123576,59123657,59123675,59123756,59123765,59125367,59125376,59125637,59125673,59125736,59125763,59126357,59126375,59126537,59126573,59126735,59126753,59127356,59127365,59127536,59127563,59127635,59127653,59132567,59132576,59132657,59132675,59132756,59132765,59135267,59135276,59135627,59135672,59135726,59135762,59136257,59136275,59136527,59136572,59136725,59136752,59137256,59137265,59137526,59137562,59137625,59137652,59152367,59152376,59152637,59152673,59152736,59152763,59153267,59153276,59153627,59153672,59153726,59153762,59156237,59156273,59156327,59156372,59156723,59156732,59157236,59157263,59157326,59157362,59157623,59157632,59162357,59162375,59162537,59162573,59162735,59162753,59163257,59163275,59163527,59163572,59163725,59163752,59165237,59165273,59165327,59165372,59165723,59165732,59167235,59167253,59167325,59167352,59167523,59167532,59172356,59172365,59172536,59172563,59172635,59172653,59173256,59173265,59173526,59173562,59173625,59173652,59175236,59175263,59175326,59175362,59175623,59175632,59176235,59176253,59176325,59176352,59176523,59176532,59213567,59213576,59213657,59213675,59213756,59213765,59215367,59215376,59215637,59215673,59215736,59215763,59216357,59216375,59216537,59216573,59216735,59216753,59217356,59217365,59217536,59217563,59217635,59217653,59231567,59231576,59231657,59231675,59231756,59231765,59235167,59235176,59235617,59235671,59235716,59235761,59236157,59236175,59236517,59236571,59236715,59236751,59237156,59237165,59237516,59237561,59237615,59237651,59251367,59251376,59251637,59251673,59251736,59251763,59253167,59253176,59253617,59253671,59253716,59253761,59256137,59256173,59256317,59256371,59256713,59256731,59257136,59257163,59257316,59257361,59257613,59257631,59261357,59261375,59261537,59261573,59261735,59261753,59263157,59263175,59263517,59263571,59263715,59263751,59265137,59265173,59265317,59265371,59265713,59265731,59267135,59267153,59267315,59267351,59267513,59267531,59271356,59271365,59271536,59271563,59271635,59271653,59273156,59273165,59273516,59273561,59273615,59273651,59275136,59275163,59275316,59275361,59275613,59275631,59276135,59276153,59276315,59276351,59276513,59276531,59312567,59312576,59312657,59312675,59312756,59312765,59315267,59315276,59315627,59315672,59315726,59315762,59316257,59316275,59316527,59316572,59316725,59316752,59317256,59317265,59317526,59317562,59317625,59317652,59321567,59321576,59321657,59321675,59321756,59321765,59325167,59325176,59325617,59325671,59325716,59325761,59326157,59326175,59326517,59326571,59326715,59326751,59327156,59327165,59327516,59327561,59327615,59327651,59351267,59351276,59351627,59351672,59351726,59351762,59352167,59352176,59352617,59352671,59352716,59352761,59356127,59356172,59356217,59356271,59356712,59356721,59357126,59357162,59357216,59357261,59357612,59357621,59361257,59361275,59361527,59361572,59361725,59361752,59362157,59362175,59362517,59362571,59362715,59362751,59365127,59365172,59365217,59365271,59365712,59365721,59367125,59367152,59367215,59367251,59367512,59367521,59371256,59371265,59371526,59371562,59371625,59371652,59372156,59372165,59372516,59372561,59372615,59372651,59375126,59375162,59375216,59375261,59375612,59375621,59376125,59376152,59376215,59376251,59376512,59376521,59512367,59512376,59512637,59512673,59512736,59512763,59513267,59513276,59513627,59513672,59513726,59513762,59516237,59516273,59516327,59516372,59516723,59516732,59517236,59517263,59517326,59517362,59517623,59517632,59521367,59521376,59521637,59521673,59521736,59521763,59523167,59523176,59523617,59523671,59523716,59523761,59526137,59526173,59526317,59526371,59526713,59526731,59527136,59527163,59527316,59527361,59527613,59527631,59531267,59531276,59531627,59531672,59531726,59531762,59532167,59532176,59532617,59532671,59532716,59532761,59536127,59536172,59536217,59536271,59536712,59536721,59537126,59537162,59537216,59537261,59537612,59537621,59561237,59561273,59561327,59561372,59561723,59561732,59562137,59562173,59562317,59562371,59562713,59562731,59563127,59563172,59563217,59563271,59563712,59563721,59567123,59567132,59567213,59567231,59567312,59567321,59571236,59571263,59571326,59571362,59571623,59571632,59572136,59572163,59572316,59572361,59572613,59572631,59573126,59573162,59573216,59573261,59573612,59573621,59576123,59576132,59576213,59576231,59576312,59576321,59612357,59612375,59612537,59612573,59612735,59612753,59613257,59613275,59613527,59613572,59613725,59613752,59615237,59615273,59615327,59615372,59615723,59615732,59617235,59617253,59617325,59617352,59617523,59617532,59621357,59621375,59621537,59621573,59621735,59621753,59623157,59623175,59623517,59623571,59623715,59623751,59625137,59625173,59625317,59625371,59625713,59625731,59627135,59627153,59627315,59627351,59627513,59627531,59631257,59631275,59631527,59631572,59631725,59631752,59632157,59632175,59632517,59632571,59632715,59632751,59635127,59635172,59635217,59635271,59635712,59635721,59637125,59637152,59637215,59637251,59637512,59637521,59651237,59651273,59651327,59651372,59651723,59651732,59652137,59652173,59652317,59652371,59652713,59652731,59653127,59653172,59653217,59653271,59653712,59653721,59657123,59657132,59657213,59657231,59657312,59657321,59671235,59671253,59671325,59671352,59671523,59671532,59672135,59672153,59672315,59672351,59672513,59672531,59673125,59673152,59673215,59673251,59673512,59673521,59675123,59675132,59675213,59675231,59675312,59675321,59712356,59712365,59712536,59712563,59712635,59712653,59713256,59713265,59713526,59713562,59713625,59713652,59715236,59715263,59715326,59715362,59715623,59715632,59716235,59716253,59716325,59716352,59716523,59716532,59721356,59721365,59721536,59721563,59721635,59721653,59723156,59723165,59723516,59723561,59723615,59723651,59725136,59725163,59725316,59725361,59725613,59725631,59726135,59726153,59726315,59726351,59726513,59726531,59731256,59731265,59731526,59731562,59731625,59731652,59732156,59732165,59732516,59732561,59732615,59732651,59735126,59735162,59735216,59735261,59735612,59735621,59736125,59736152,59736215,59736251,59736512,59736521,59751236,59751263,59751326,59751362,59751623,59751632,59752136,59752163,59752316,59752361,59752613,59752631,59753126,59753162,59753216,59753261,59753612,59753621,59756123,59756132,59756213,59756231,59756312,59756321,59761235,59761253,59761325,59761352,59761523,59761532,59762135,59762153,59762315,59762351,59762513,59762531,59763125,59763152,59763215,59763251,59763512,59763521,59765123,59765132,59765213,59765231,59765312,59765321,61235579,61235597,61235759,61235795,61235957,61235975,61237559,61237595,61237955,61239557,61239575,61239755,61253579,61253597,61253759,61253795,61253957,61253975,61255379,61255397,61255739,61255793,61255937,61255973,61257359,61257395,61257539,61257593,61257935,61257953,61259357,61259375,61259537,61259573,61259735,61259753,61273559,61273595,61273955,61275359,61275395,61275539,61275593,61275935,61275953,61279355,61279535,61279553,61293557,61293575,61293755,61295357,61295375,61295537,61295573,61295735,61295753,61297355,61297535,61297553,61325579,61325597,61325759,61325795,61325957,61325975,61327559,61327595,61327955,61329557,61329575,61329755,61352579,61352597,61352759,61352795,61352957,61352975,61355279,61355297,61355729,61355792,61355927,61355972,61357259,61357295,61357529,61357592,61357925,61357952,61359257,61359275,61359527,61359572,61359725,61359752,61372559,61372595,61372955,61375259,61375295,61375529,61375592,61375925,61375952,61379255,61379525,61379552,61392557,61392575,61392755,61395257,61395275,61395527,61395572,61395725,61395752,61397255,61397525,61397552,61523579,61523597,61523759,61523795,61523957,61523975,61525379,61525397,61525739,61525793,61525937,61525973,61527359,61527395,61527539,61527593,61527935,61527953,61529357,61529375,61529537,61529573,61529735,61529753,61532579,61532597,61532759,61532795,61532957,61532975,61535279,61535297,61535729,61535792,61535927,61535972,61537259,61537295,61537529,61537592,61537925,61537952,61539257,61539275,61539527,61539572,61539725,61539752,61552379,61552397,61552739,61552793,61552937,61552973,61553279,61553297,61553729,61553792,61553927,61553972,61557239,61557293,61557329,61557392,61557923,61557932,61559237,61559273,61559327,61559372,61559723,61559732,61572359,61572395,61572539,61572593,61572935,61572953,61573259,61573295,61573529,61573592,61573925,61573952,61575239,61575293,61575329,61575392,61575923,61575932,61579235,61579253,61579325,61579352,61579523,61579532,61592357,61592375,61592537,61592573,61592735,61592753,61593257,61593275,61593527,61593572,61593725,61593752,61595237,61595273,61595327,61595372,61595723,61595732,61597235,61597253,61597325,61597352,61597523,61597532,61723559,61723595,61723955,61725359,61725395,61725539,61725593,61725935,61725953,61729355,61729535,61729553,61732559,61732595,61732955,61735259,61735295,61735529,61735592,61735925,61735952,61739255,61739525,61739552,61752359,61752395,61752539,61752593,61752935,61752953,61753259,61753295,61753529,61753592,61753925,61753952,61755239,61755293,61755329,61755392,61755923,61755932,61759235,61759253,61759325,61759352,61759523,61759532,61792355,61792535,61792553,61793255,61793525,61793552,61795235,61795253,61795325,61795352,61795523,61795532,61923557,61923575,61923755,61925357,61925375,61925537,61925573,61925735,61925753,61927355,61927535,61927553,61932557,61932575,61932755,61935257,61935275,61935527,61935572,61935725,61935752,61937255,61937525,61937552,61952357,61952375,61952537,61952573,61952735,61952753,61953257,61953275,61953527,61953572,61953725,61953752,61955237,61955273,61955327,61955372,61955723,61955732,61957235,61957253,61957325,61957352,61957523,61957532,61972355,61972535,61972553,61973255,61973525,61973552,61975235,61975253,61975325,61975352,61975523,61975532,62135579,62135597,62135759,62135795,62135957,62135975,62137559,62137595,62137955,62139557,62139575,62139755,62153579,62153597,62153759,62153795,62153957,62153975,62155379,62155397,62155739,62155793,62155937,62155973,62157359,62157395,62157539,62157593,62157935,62157953,62159357,62159375,62159537,62159573,62159735,62159753,62173559,62173595,62173955,62175359,62175395,62175539,62175593,62175935,62175953,62179355,62179535,62179553,62193557,62193575,62193755,62195357,62195375,62195537,62195573,62195735,62195753,62197355,62197535,62197553,62315579,62315597,62315759,62315795,62315957,62315975,62317559,62317595,62317955,62319557,62319575,62319755,62351579,62351597,62351759,62351795,62351957,62351975,62355179,62355197,62355719,62355791,62355917,62355971,62357159,62357195,62357519,62357591,62357915,62357951,62359157,62359175,62359517,62359571,62359715,62359751,62371559,62371595,62371955,62375159,62375195,62375519,62375591,62375915,62375951,62379155,62379515,62379551,62391557,62391575,62391755,62395157,62395175,62395517,62395571,62395715,62395751,62397155,62397515,62397551,62513579,62513597,62513759,62513795,62513957,62513975,62515379,62515397,62515739,62515793,62515937,62515973,62517359,62517395,62517539,62517593,62517935,62517953,62519357,62519375,62519537,62519573,62519735,62519753,62531579,62531597,62531759,62531795,62531957,62531975,62535179,62535197,62535719,62535791,62535917,62535971,62537159,62537195,62537519,62537591,62537915,62537951,62539157,62539175,62539517,62539571,62539715,62539751,62551379,62551397,62551739,62551793,62551937,62551973,62553179,62553197,62553719,62553791,62553917,62553971,62557139,62557193,62557319,62557391,62557913,62557931,62559137,62559173,62559317,62559371,62559713,62559731,62571359,62571395,62571539,62571593,62571935,62571953,62573159,62573195,62573519,62573591,62573915,62573951,62575139,62575193,62575319,62575391,62575913,62575931,62579135,62579153,62579315,62579351,62579513,62579531,62591357,62591375,62591537,62591573,62591735,62591753,62593157,62593175,62593517,62593571,62593715,62593751,62595137,62595173,62595317,62595371,62595713,62595731,62597135,62597153,62597315,62597351,62597513,62597531,62713559,62713595,62713955,62715359,62715395,62715539,62715593,62715935,62715953,62719355,62719535,62719553,62731559,62731595,62731955,62735159,62735195,62735519,62735591,62735915,62735951,62739155,62739515,62739551,62751359,62751395,62751539,62751593,62751935,62751953,62753159,62753195,62753519,62753591,62753915,62753951,62755139,62755193,62755319,62755391,62755913,62755931,62759135,62759153,62759315,62759351,62759513,62759531,62791355,62791535,62791553,62793155,62793515,62793551,62795135,62795153,62795315,62795351,62795513,62795531,62913557,62913575,62913755,62915357,62915375,62915537,62915573,62915735,62915753,62917355,62917535,62917553,62931557,62931575,62931755,62935157,62935175,62935517,62935571,62935715,62935751,62937155,62937515,62937551,62951357,62951375,62951537,62951573,62951735,62951753,62953157,62953175,62953517,62953571,62953715,62953751,62955137,62955173,62955317,62955371,62955713,62955731,62957135,62957153,62957315,62957351,62957513,62957531,62971355,62971535,62971553,62973155,62973515,62973551,62975135,62975153,62975315,62975351,62975513,62975531,63125579,63125597,63125759,63125795,63125957,63125975,63127559,63127595,63127955,63129557,63129575,63129755,63152579,63152597,63152759,63152795,63152957,63152975,63155279,63155297,63155729,63155792,63155927,63155972,63157259,63157295,63157529,63157592,63157925,63157952,63159257,63159275,63159527,63159572,63159725,63159752,63172559,63172595,63172955,63175259,63175295,63175529,63175592,63175925,63175952,63179255,63179525,63179552,63192557,63192575,63192755,63195257,63195275,63195527,63195572,63195725,63195752,63197255,63197525,63197552,63215579,63215597,63215759,63215795,63215957,63215975,63217559,63217595,63217955,63219557,63219575,63219755,63251579,63251597,63251759,63251795,63251957,63251975,63255179,63255197,63255719,63255791,63255917,63255971,63257159,63257195,63257519,63257591,63257915,63257951,63259157,63259175,63259517,63259571,63259715,63259751,63271559,63271595,63271955,63275159,63275195,63275519,63275591,63275915,63275951,63279155,63279515,63279551,63291557,63291575,63291755,63295157,63295175,63295517,63295571,63295715,63295751,63297155,63297515,63297551,63512579,63512597,63512759,63512795,63512957,63512975,63515279,63515297,63515729,63515792,63515927,63515972,63517259,63517295,63517529,63517592,63517925,63517952,63519257,63519275,63519527,63519572,63519725,63519752,63521579,63521597,63521759,63521795,63521957,63521975,63525179,63525197,63525719,63525791,63525917,63525971,63527159,63527195,63527519,63527591,63527915,63527951,63529157,63529175,63529517,63529571,63529715,63529751,63551279,63551297,63551729,63551792,63551927,63551972,63552179,63552197,63552719,63552791,63552917,63552971,63557129,63557192,63557219,63557291,63557912,63557921,63559127,63559172,63559217,63559271,63559712,63559721,63571259,63571295,63571529,63571592,63571925,63571952,63572159,63572195,63572519,63572591,63572915,63572951,63575129,63575192,63575219,63575291,63575912,63575921,63579125,63579152,63579215,63579251,63579512,63579521,63591257,63591275,63591527,63591572,63591725,63591752,63592157,63592175,63592517,63592571,63592715,63592751,63595127,63595172,63595217,63595271,63595712,63595721,63597125,63597152,63597215,63597251,63597512,63597521,63712559,63712595,63712955,63715259,63715295,63715529,63715592,63715925,63715952,63719255,63719525,63719552,63721559,63721595,63721955,63725159,63725195,63725519,63725591,63725915,63725951,63729155,63729515,63729551,63751259,63751295,63751529,63751592,63751925,63751952,63752159,63752195,63752519,63752591,63752915,63752951,63755129,63755192,63755219,63755291,63755912,63755921,63759125,63759152,63759215,63759251,63759512,63759521,63791255,63791525,63791552,63792155,63792515,63792551,63795125,63795152,63795215,63795251,63795512,63795521,63912557,63912575,63912755,63915257,63915275,63915527,63915572,63915725,63915752,63917255,63917525,63917552,63921557,63921575,63921755,63925157,63925175,63925517,63925571,63925715,63925751,63927155,63927515,63927551,63951257,63951275,63951527,63951572,63951725,63951752,63952157,63952175,63952517,63952571,63952715,63952751,63955127,63955172,63955217,63955271,63955712,63955721,63957125,63957152,63957215,63957251,63957512,63957521,63971255,63971525,63971552,63972155,63972515,63972551,63975125,63975152,63975215,63975251,63975512,63975521,65123579,65123597,65123759,65123795,65123957,65123975,65125379,65125397,65125739,65125793,65125937,65125973,65127359,65127395,65127539,65127593,65127935,65127953,65129357,65129375,65129537,65129573,65129735,65129753,65132579,65132597,65132759,65132795,65132957,65132975,65135279,65135297,65135729,65135792,65135927,65135972,65137259,65137295,65137529,65137592,65137925,65137952,65139257,65139275,65139527,65139572,65139725,65139752,65152379,65152397,65152739,65152793,65152937,65152973,65153279,65153297,65153729,65153792,65153927,65153972,65157239,65157293,65157329,65157392,65157923,65157932,65159237,65159273,65159327,65159372,65159723,65159732,65172359,65172395,65172539,65172593,65172935,65172953,65173259,65173295,65173529,65173592,65173925,65173952,65175239,65175293,65175329,65175392,65175923,65175932,65179235,65179253,65179325,65179352,65179523,65179532,65192357,65192375,65192537,65192573,65192735,65192753,65193257,65193275,65193527,65193572,65193725,65193752,65195237,65195273,65195327,65195372,65195723,65195732,65197235,65197253,65197325,65197352,65197523,65197532,65213579,65213597,65213759,65213795,65213957,65213975,65215379,65215397,65215739,65215793,65215937,65215973,65217359,65217395,65217539,65217593,65217935,65217953,65219357,65219375,65219537,65219573,65219735,65219753,65231579,65231597,65231759,65231795,65231957,65231975,65235179,65235197,65235719,65235791,65235917,65235971,65237159,65237195,65237519,65237591,65237915,65237951,65239157,65239175,65239517,65239571,65239715,65239751,65251379,65251397,65251739,65251793,65251937,65251973,65253179,65253197,65253719,65253791,65253917,65253971,65257139,65257193,65257319,65257391,65257913,65257931,65259137,65259173,65259317,65259371,65259713,65259731,65271359,65271395,65271539,65271593,65271935,65271953,65273159,65273195,65273519,65273591,65273915,65273951,65275139,65275193,65275319,65275391,65275913,65275931,65279135,65279153,65279315,65279351,65279513,65279531,65291357,65291375,65291537,65291573,65291735,65291753,65293157,65293175,65293517,65293571,65293715,65293751,65295137,65295173,65295317,65295371,65295713,65295731,65297135,65297153,65297315,65297351,65297513,65297531,65312579,65312597,65312759,65312795,65312957,65312975,65315279,65315297,65315729,65315792,65315927,65315972,65317259,65317295,65317529,65317592,65317925,65317952,65319257,65319275,65319527,65319572,65319725,65319752,65321579,65321597,65321759,65321795,65321957,65321975,65325179,65325197,65325719,65325791,65325917,65325971,65327159,65327195,65327519,65327591,65327915,65327951,65329157,65329175,65329517,65329571,65329715,65329751,65351279,65351297,65351729,65351792,65351927,65351972,65352179,65352197,65352719,65352791,65352917,65352971,65357129,65357192,65357219,65357291,65357912,65357921,65359127,65359172,65359217,65359271,65359712,65359721,65371259,65371295,65371529,65371592,65371925,65371952,65372159,65372195,65372519,65372591,65372915,65372951,65375129,65375192,65375219,65375291,65375912,65375921,65379125,65379152,65379215,65379251,65379512,65379521,65391257,65391275,65391527,65391572,65391725,65391752,65392157,65392175,65392517,65392571,65392715,65392751,65395127,65395172,65395217,65395271,65395712,65395721,65397125,65397152,65397215,65397251,65397512,65397521,65512379,65512397,65512739,65512793,65512937,65512973,65513279,65513297,65513729,65513792,65513927,65513972,65517239,65517293,65517329,65517392,65517923,65517932,65519237,65519273,65519327,65519372,65519723,65519732,65521379,65521397,65521739,65521793,65521937,65521973,65523179,65523197,65523719,65523791,65523917,65523971,65527139,65527193,65527319,65527391,65527913,65527931,65529137,65529173,65529317,65529371,65529713,65529731,65531279,65531297,65531729,65531792,65531927,65531972,65532179,65532197,65532719,65532791,65532917,65532971,65537129,65537192,65537219,65537291,65537912,65537921,65539127,65539172,65539217,65539271,65539712,65539721,65571239,65571293,65571329,65571392,65571923,65571932,65572139,65572193,65572319,65572391,65572913,65572931,65573129,65573192,65573219,65573291,65573912,65573921,65579123,65579132,65579213,65579231,65579312,65579321,65591237,65591273,65591327,65591372,65591723,65591732,65592137,65592173,65592317,65592371,65592713,65592731,65593127,65593172,65593217,65593271,65593712,65593721,65597123,65597132,65597213,65597231,65597312,65597321,65712359,65712395,65712539,65712593,65712935,65712953,65713259,65713295,65713529,65713592,65713925,65713952,65715239,65715293,65715329,65715392,65715923,65715932,65719235,65719253,65719325,65719352,65719523,65719532,65721359,65721395,65721539,65721593,65721935,65721953,65723159,65723195,65723519,65723591,65723915,65723951,65725139,65725193,65725319,65725391,65725913,65725931,65729135,65729153,65729315,65729351,65729513,65729531,65731259,65731295,65731529,65731592,65731925,65731952,65732159,65732195,65732519,65732591,65732915,65732951,65735129,65735192,65735219,65735291,65735912,65735921,65739125,65739152,65739215,65739251,65739512,65739521,65751239,65751293,65751329,65751392,65751923,65751932,65752139,65752193,65752319,65752391,65752913,65752931,65753129,65753192,65753219,65753291,65753912,65753921,65759123,65759132,65759213,65759231,65759312,65759321,65791235,65791253,65791325,65791352,65791523,65791532,65792135,65792153,65792315,65792351,65792513,65792531,65793125,65793152,65793215,65793251,65793512,65793521,65795123,65795132,65795213,65795231,65795312,65795321,65912357,65912375,65912537,65912573,65912735,65912753,65913257,65913275,65913527,65913572,65913725,65913752,65915237,65915273,65915327,65915372,65915723,65915732,65917235,65917253,65917325,65917352,65917523,65917532,65921357,65921375,65921537,65921573,65921735,65921753,65923157,65923175,65923517,65923571,65923715,65923751,65925137,65925173,65925317,65925371,65925713,65925731,65927135,65927153,65927315,65927351,65927513,65927531,65931257,65931275,65931527,65931572,65931725,65931752,65932157,65932175,65932517,65932571,65932715,65932751,65935127,65935172,65935217,65935271,65935712,65935721,65937125,65937152,65937215,65937251,65937512,65937521,65951237,65951273,65951327,65951372,65951723,65951732,65952137,65952173,65952317,65952371,65952713,65952731,65953127,65953172,65953217,65953271,65953712,65953721,65957123,65957132,65957213,65957231,65957312,65957321,65971235,65971253,65971325,65971352,65971523,65971532,65972135,65972153,65972315,65972351,65972513,65972531,65973125,65973152,65973215,65973251,65973512,65973521,65975123,65975132,65975213,65975231,65975312,65975321,67123559,67123595,67123955,67125359,67125395,67125539,67125593,67125935,67125953,67129355,67129535,67129553,67132559,67132595,67132955,67135259,67135295,67135529,67135592,67135925,67135952,67139255,67139525,67139552,67152359,67152395,67152539,67152593,67152935,67152953,67153259,67153295,67153529,67153592,67153925,67153952,67155239,67155293,67155329,67155392,67155923,67155932,67159235,67159253,67159325,67159352,67159523,67159532,67192355,67192535,67192553,67193255,67193525,67193552,67195235,67195253,67195325,67195352,67195523,67195532,67213559,67213595,67213955,67215359,67215395,67215539,67215593,67215935,67215953,67219355,67219535,67219553,67231559,67231595,67231955,67235159,67235195,67235519,67235591,67235915,67235951,67239155,67239515,67239551,67251359,67251395,67251539,67251593,67251935,67251953,67253159,67253195,67253519,67253591,67253915,67253951,67255139,67255193,67255319,67255391,67255913,67255931,67259135,67259153,67259315,67259351,67259513,67259531,67291355,67291535,67291553,67293155,67293515,67293551,67295135,67295153,67295315,67295351,67295513,67295531,67312559,67312595,67312955,67315259,67315295,67315529,67315592,67315925,67315952,67319255,67319525,67319552,67321559,67321595,67321955,67325159,67325195,67325519,67325591,67325915,67325951,67329155,67329515,67329551,67351259,67351295,67351529,67351592,67351925,67351952,67352159,67352195,67352519,67352591,67352915,67352951,67355129,67355192,67355219,67355291,67355912,67355921,67359125,67359152,67359215,67359251,67359512,67359521,67391255,67391525,67391552,67392155,67392515,67392551,67395125,67395152,67395215,67395251,67395512,67395521,67512359,67512395,67512539,67512593,67512935,67512953,67513259,67513295,67513529,67513592,67513925,67513952,67515239,67515293,67515329,67515392,67515923,67515932,67519235,67519253,67519325,67519352,67519523,67519532,67521359,67521395,67521539,67521593,67521935,67521953,67523159,67523195,67523519,67523591,67523915,67523951,67525139,67525193,67525319,67525391,67525913,67525931,67529135,67529153,67529315,67529351,67529513,67529531,67531259,67531295,67531529,67531592,67531925,67531952,67532159,67532195,67532519,67532591,67532915,67532951,67535129,67535192,67535219,67535291,67535912,67535921,67539125,67539152,67539215,67539251,67539512,67539521,67551239,67551293,67551329,67551392,67551923,67551932,67552139,67552193,67552319,67552391,67552913,67552931,67553129,67553192,67553219,67553291,67553912,67553921,67559123,67559132,67559213,67559231,67559312,67559321,67591235,67591253,67591325,67591352,67591523,67591532,67592135,67592153,67592315,67592351,67592513,67592531,67593125,67593152,67593215,67593251,67593512,67593521,67595123,67595132,67595213,67595231,67595312,67595321,67912355,67912535,67912553,67913255,67913525,67913552,67915235,67915253,67915325,67915352,67915523,67915532,67921355,67921535,67921553,67923155,67923515,67923551,67925135,67925153,67925315,67925351,67925513,67925531,67931255,67931525,67931552,67932155,67932515,67932551,67935125,67935152,67935215,67935251,67935512,67935521,67951235,67951253,67951325,67951352,67951523,67951532,67952135,67952153,67952315,67952351,67952513,67952531,67953125,67953152,67953215,67953251,67953512,67953521,67955123,67955132,67955213,67955231,67955312,67955321,69123557,69123575,69123755,69125357,69125375,69125537,69125573,69125735,69125753,69127355,69127535,69127553,69132557,69132575,69132755,69135257,69135275,69135527,69135572,69135725,69135752,69137255,69137525,69137552,69152357,69152375,69152537,69152573,69152735,69152753,69153257,69153275,69153527,69153572,69153725,69153752,69155237,69155273,69155327,69155372,69155723,69155732,69157235,69157253,69157325,69157352,69157523,69157532,69172355,69172535,69172553,69173255,69173525,69173552,69175235,69175253,69175325,69175352,69175523,69175532,69213557,69213575,69213755,69215357,69215375,69215537,69215573,69215735,69215753,69217355,69217535,69217553,69231557,69231575,69231755,69235157,69235175,69235517,69235571,69235715,69235751,69237155,69237515,69237551,69251357,69251375,69251537,69251573,69251735,69251753,69253157,69253175,69253517,69253571,69253715,69253751,69255137,69255173,69255317,69255371,69255713,69255731,69257135,69257153,69257315,69257351,69257513,69257531,69271355,69271535,69271553,69273155,69273515,69273551,69275135,69275153,69275315,69275351,69275513,69275531,69312557,69312575,69312755,69315257,69315275,69315527,69315572,69315725,69315752,69317255,69317525,69317552,69321557,69321575,69321755,69325157,69325175,69325517,69325571,69325715,69325751,69327155,69327515,69327551,69351257,69351275,69351527,69351572,69351725,69351752,69352157,69352175,69352517,69352571,69352715,69352751,69355127,69355172,69355217,69355271,69355712,69355721,69357125,69357152,69357215,69357251,69357512,69357521,69371255,69371525,69371552,69372155,69372515,69372551,69375125,69375152,69375215,69375251,69375512,69375521,69512357,69512375,69512537,69512573,69512735,69512753,69513257,69513275,69513527,69513572,69513725,69513752,69515237,69515273,69515327,69515372,69515723,69515732,69517235,69517253,69517325,69517352,69517523,69517532,69521357,69521375,69521537,69521573,69521735,69521753,69523157,69523175,69523517,69523571,69523715,69523751,69525137,69525173,69525317,69525371,69525713,69525731,69527135,69527153,69527315,69527351,69527513,69527531,69531257,69531275,69531527,69531572,69531725,69531752,69532157,69532175,69532517,69532571,69532715,69532751,69535127,69535172,69535217,69535271,69535712,69535721,69537125,69537152,69537215,69537251,69537512,69537521,69551237,69551273,69551327,69551372,69551723,69551732,69552137,69552173,69552317,69552371,69552713,69552731,69553127,69553172,69553217,69553271,69553712,69553721,69557123,69557132,69557213,69557231,69557312,69557321,69571235,69571253,69571325,69571352,69571523,69571532,69572135,69572153,69572315,69572351,69572513,69572531,69573125,69573152,69573215,69573251,69573512,69573521,69575123,69575132,69575213,69575231,69575312,69575321,69712355,69712535,69712553,69713255,69713525,69713552,69715235,69715253,69715325,69715352,69715523,69715532,69721355,69721535,69721553,69723155,69723515,69723551,69725135,69725153,69725315,69725351,69725513,69725531,69731255,69731525,69731552,69732155,69732515,69732551,69735125,69735152,69735215,69735251,69735512,69735521,69751235,69751253,69751325,69751352,69751523,69751532,69752135,69752153,69752315,69752351,69752513,69752531,69753125,69753152,69753215,69753251,69753512,69753521,69755123,69755132,69755213,69755231,69755312,69755321,71235569,71235596,71235659,71235695,71235956,71235965,71236559,71236595,71236955,71239556,71239565,71239655,71253569,71253596,71253659,71253695,71253956,71253965,71255369,71255396,71255639,71255693,71255936,71255963,71256359,71256395,71256539,71256593,71256935,71256953,71259356,71259365,71259536,71259563,71259635,71259653,71263559,71263595,71263955,71265359,71265395,71265539,71265593,71265935,71265953,71269355,71269535,71269553,71293556,71293565,71293655,71295356,71295365,71295536,71295563,71295635,71295653,71296355,71296535,71296553,71325569,71325596,71325659,71325695,71325956,71325965,71326559,71326595,71326955,71329556,71329565,71329655,71352569,71352596,71352659,71352695,71352956,71352965,71355269,71355296,71355629,71355692,71355926,71355962,71356259,71356295,71356529,71356592,71356925,71356952,71359256,71359265,71359526,71359562,71359625,71359652,71362559,71362595,71362955,71365259,71365295,71365529,71365592,71365925,71365952,71369255,71369525,71369552,71392556,71392565,71392655,71395256,71395265,71395526,71395562,71395625,71395652,71396255,71396525,71396552,71523569,71523596,71523659,71523695,71523956,71523965,71525369,71525396,71525639,71525693,71525936,71525963,71526359,71526395,71526539,71526593,71526935,71526953,71529356,71529365,71529536,71529563,71529635,71529653,71532569,71532596,71532659,71532695,71532956,71532965,71535269,71535296,71535629,71535692,71535926,71535962,71536259,71536295,71536529,71536592,71536925,71536952,71539256,71539265,71539526,71539562,71539625,71539652,71552369,71552396,71552639,71552693,71552936,71552963,71553269,71553296,71553629,71553692,71553926,71553962,71556239,71556293,71556329,71556392,71556923,71556932,71559236,71559263,71559326,71559362,71559623,71559632,71562359,71562395,71562539,71562593,71562935,71562953,71563259,71563295,71563529,71563592,71563925,71563952,71565239,71565293,71565329,71565392,71565923,71565932,71569235,71569253,71569325,71569352,71569523,71569532,71592356,71592365,71592536,71592563,71592635,71592653,71593256,71593265,71593526,71593562,71593625,71593652,71595236,71595263,71595326,71595362,71595623,71595632,71596235,71596253,71596325,71596352,71596523,71596532,71623559,71623595,71623955,71625359,71625395,71625539,71625593,71625935,71625953,71629355,71629535,71629553,71632559,71632595,71632955,71635259,71635295,71635529,71635592,71635925,71635952,71639255,71639525,71639552,71652359,71652395,71652539,71652593,71652935,71652953,71653259,71653295,71653529,71653592,71653925,71653952,71655239,71655293,71655329,71655392,71655923,71655932,71659235,71659253,71659325,71659352,71659523,71659532,71692355,71692535,71692553,71693255,71693525,71693552,71695235,71695253,71695325,71695352,71695523,71695532,71923556,71923565,71923655,71925356,71925365,71925536,71925563,71925635,71925653,71926355,71926535,71926553,71932556,71932565,71932655,71935256,71935265,71935526,71935562,71935625,71935652,71936255,71936525,71936552,71952356,71952365,71952536,71952563,71952635,71952653,71953256,71953265,71953526,71953562,71953625,71953652,71955236,71955263,71955326,71955362,71955623,71955632,71956235,71956253,71956325,71956352,71956523,71956532,71962355,71962535,71962553,71963255,71963525,71963552,71965235,71965253,71965325,71965352,71965523,71965532,72135569,72135596,72135659,72135695,72135956,72135965,72136559,72136595,72136955,72139556,72139565,72139655,72153569,72153596,72153659,72153695,72153956,72153965,72155369,72155396,72155639,72155693,72155936,72155963,72156359,72156395,72156539,72156593,72156935,72156953,72159356,72159365,72159536,72159563,72159635,72159653,72163559,72163595,72163955,72165359,72165395,72165539,72165593,72165935,72165953,72169355,72169535,72169553,72193556,72193565,72193655,72195356,72195365,72195536,72195563,72195635,72195653,72196355,72196535,72196553,72315569,72315596,72315659,72315695,72315956,72315965,72316559,72316595,72316955,72319556,72319565,72319655,72351569,72351596,72351659,72351695,72351956,72351965,72355169,72355196,72355619,72355691,72355916,72355961,72356159,72356195,72356519,72356591,72356915,72356951,72359156,72359165,72359516,72359561,72359615,72359651,72361559,72361595,72361955,72365159,72365195,72365519,72365591,72365915,72365951,72369155,72369515,72369551,72391556,72391565,72391655,72395156,72395165,72395516,72395561,72395615,72395651,72396155,72396515,72396551,72513569,72513596,72513659,72513695,72513956,72513965,72515369,72515396,72515639,72515693,72515936,72515963,72516359,72516395,72516539,72516593,72516935,72516953,72519356,72519365,72519536,72519563,72519635,72519653,72531569,72531596,72531659,72531695,72531956,72531965,72535169,72535196,72535619,72535691,72535916,72535961,72536159,72536195,72536519,72536591,72536915,72536951,72539156,72539165,72539516,72539561,72539615,72539651,72551369,72551396,72551639,72551693,72551936,72551963,72553169,72553196,72553619,72553691,72553916,72553961,72556139,72556193,72556319,72556391,72556913,72556931,72559136,72559163,72559316,72559361,72559613,72559631,72561359,72561395,72561539,72561593,72561935,72561953,72563159,72563195,72563519,72563591,72563915,72563951,72565139,72565193,72565319,72565391,72565913,72565931,72569135,72569153,72569315,72569351,72569513,72569531,72591356,72591365,72591536,72591563,72591635,72591653,72593156,72593165,72593516,72593561,72593615,72593651,72595136,72595163,72595316,72595361,72595613,72595631,72596135,72596153,72596315,72596351,72596513,72596531,72613559,72613595,72613955,72615359,72615395,72615539,72615593,72615935,72615953,72619355,72619535,72619553,72631559,72631595,72631955,72635159,72635195,72635519,72635591,72635915,72635951,72639155,72639515,72639551,72651359,72651395,72651539,72651593,72651935,72651953,72653159,72653195,72653519,72653591,72653915,72653951,72655139,72655193,72655319,72655391,72655913,72655931,72659135,72659153,72659315,72659351,72659513,72659531,72691355,72691535,72691553,72693155,72693515,72693551,72695135,72695153,72695315,72695351,72695513,72695531,72913556,72913565,72913655,72915356,72915365,72915536,72915563,72915635,72915653,72916355,72916535,72916553,72931556,72931565,72931655,72935156,72935165,72935516,72935561,72935615,72935651,72936155,72936515,72936551,72951356,72951365,72951536,72951563,72951635,72951653,72953156,72953165,72953516,72953561,72953615,72953651,72955136,72955163,72955316,72955361,72955613,72955631,72956135,72956153,72956315,72956351,72956513,72956531,72961355,72961535,72961553,72963155,72963515,72963551,72965135,72965153,72965315,72965351,72965513,72965531,73125569,73125596,73125659,73125695,73125956,73125965,73126559,73126595,73126955,73129556,73129565,73129655,73152569,73152596,73152659,73152695,73152956,73152965,73155269,73155296,73155629,73155692,73155926,73155962,73156259,73156295,73156529,73156592,73156925,73156952,73159256,73159265,73159526,73159562,73159625,73159652,73162559,73162595,73162955,73165259,73165295,73165529,73165592,73165925,73165952,73169255,73169525,73169552,73192556,73192565,73192655,73195256,73195265,73195526,73195562,73195625,73195652,73196255,73196525,73196552,73215569,73215596,73215659,73215695,73215956,73215965,73216559,73216595,73216955,73219556,73219565,73219655,73251569,73251596,73251659,73251695,73251956,73251965,73255169,73255196,73255619,73255691,73255916,73255961,73256159,73256195,73256519,73256591,73256915,73256951,73259156,73259165,73259516,73259561,73259615,73259651,73261559,73261595,73261955,73265159,73265195,73265519,73265591,73265915,73265951,73269155,73269515,73269551,73291556,73291565,73291655,73295156,73295165,73295516,73295561,73295615,73295651,73296155,73296515,73296551,73512569,73512596,73512659,73512695,73512956,73512965,73515269,73515296,73515629,73515692,73515926,73515962,73516259,73516295,73516529,73516592,73516925,73516952,73519256,73519265,73519526,73519562,73519625,73519652,73521569,73521596,73521659,73521695,73521956,73521965,73525169,73525196,73525619,73525691,73525916,73525961,73526159,73526195,73526519,73526591,73526915,73526951,73529156,73529165,73529516,73529561,73529615,73529651,73551269,73551296,73551629,73551692,73551926,73551962,73552169,73552196,73552619,73552691,73552916,73552961,73556129,73556192,73556219,73556291,73556912,73556921,73559126,73559162,73559216,73559261,73559612,73559621,73561259,73561295,73561529,73561592,73561925,73561952,73562159,73562195,73562519,73562591,73562915,73562951,73565129,73565192,73565219,73565291,73565912,73565921,73569125,73569152,73569215,73569251,73569512,73569521,73591256,73591265,73591526,73591562,73591625,73591652,73592156,73592165,73592516,73592561,73592615,73592651,73595126,73595162,73595216,73595261,73595612,73595621,73596125,73596152,73596215,73596251,73596512,73596521,73612559,73612595,73612955,73615259,73615295,73615529,73615592,73615925,73615952,73619255,73619525,73619552,73621559,73621595,73621955,73625159,73625195,73625519,73625591,73625915,73625951,73629155,73629515,73629551,73651259,73651295,73651529,73651592,73651925,73651952,73652159,73652195,73652519,73652591,73652915,73652951,73655129,73655192,73655219,73655291,73655912,73655921,73659125,73659152,73659215,73659251,73659512,73659521,73691255,73691525,73691552,73692155,73692515,73692551,73695125,73695152,73695215,73695251,73695512,73695521,73912556,73912565,73912655,73915256,73915265,73915526,73915562,73915625,73915652,73916255,73916525,73916552,73921556,73921565,73921655,73925156,73925165,73925516,73925561,73925615,73925651,73926155,73926515,73926551,73951256,73951265,73951526,73951562,73951625,73951652,73952156,73952165,73952516,73952561,73952615,73952651,73955126,73955162,73955216,73955261,73955612,73955621,73956125,73956152,73956215,73956251,73956512,73956521,73961255,73961525,73961552,73962155,73962515,73962551,73965125,73965152,73965215,73965251,73965512,73965521,75123569,75123596,75123659,75123695,75123956,75123965,75125369,75125396,75125639,75125693,75125936,75125963,75126359,75126395,75126539,75126593,75126935,75126953,75129356,75129365,75129536,75129563,75129635,75129653,75132569,75132596,75132659,75132695,75132956,75132965,75135269,75135296,75135629,75135692,75135926,75135962,75136259,75136295,75136529,75136592,75136925,75136952,75139256,75139265,75139526,75139562,75139625,75139652,75152369,75152396,75152639,75152693,75152936,75152963,75153269,75153296,75153629,75153692,75153926,75153962,75156239,75156293,75156329,75156392,75156923,75156932,75159236,75159263,75159326,75159362,75159623,75159632,75162359,75162395,75162539,75162593,75162935,75162953,75163259,75163295,75163529,75163592,75163925,75163952,75165239,75165293,75165329,75165392,75165923,75165932,75169235,75169253,75169325,75169352,75169523,75169532,75192356,75192365,75192536,75192563,75192635,75192653,75193256,75193265,75193526,75193562,75193625,75193652,75195236,75195263,75195326,75195362,75195623,75195632,75196235,75196253,75196325,75196352,75196523,75196532,75213569,75213596,75213659,75213695,75213956,75213965,75215369,75215396,75215639,75215693,75215936,75215963,75216359,75216395,75216539,75216593,75216935,75216953,75219356,75219365,75219536,75219563,75219635,75219653,75231569,75231596,75231659,75231695,75231956,75231965,75235169,75235196,75235619,75235691,75235916,75235961,75236159,75236195,75236519,75236591,75236915,75236951,75239156,75239165,75239516,75239561,75239615,75239651,75251369,75251396,75251639,75251693,75251936,75251963,75253169,75253196,75253619,75253691,75253916,75253961,75256139,75256193,75256319,75256391,75256913,75256931,75259136,75259163,75259316,75259361,75259613,75259631,75261359,75261395,75261539,75261593,75261935,75261953,75263159,75263195,75263519,75263591,75263915,75263951,75265139,75265193,75265319,75265391,75265913,75265931,75269135,75269153,75269315,75269351,75269513,75269531,75291356,75291365,75291536,75291563,75291635,75291653,75293156,75293165,75293516,75293561,75293615,75293651,75295136,75295163,75295316,75295361,75295613,75295631,75296135,75296153,75296315,75296351,75296513,75296531,75312569,75312596,75312659,75312695,75312956,75312965,75315269,75315296,75315629,75315692,75315926,75315962,75316259,75316295,75316529,75316592,75316925,75316952,75319256,75319265,75319526,75319562,75319625,75319652,75321569,75321596,75321659,75321695,75321956,75321965,75325169,75325196,75325619,75325691,75325916,75325961,75326159,75326195,75326519,75326591,75326915,75326951,75329156,75329165,75329516,75329561,75329615,75329651,75351269,75351296,75351629,75351692,75351926,75351962,75352169,75352196,75352619,75352691,75352916,75352961,75356129,75356192,75356219,75356291,75356912,75356921,75359126,75359162,75359216,75359261,75359612,75359621,75361259,75361295,75361529,75361592,75361925,75361952,75362159,75362195,75362519,75362591,75362915,75362951,75365129,75365192,75365219,75365291,75365912,75365921,75369125,75369152,75369215,75369251,75369512,75369521,75391256,75391265,75391526,75391562,75391625,75391652,75392156,75392165,75392516,75392561,75392615,75392651,75395126,75395162,75395216,75395261,75395612,75395621,75396125,75396152,75396215,75396251,75396512,75396521,75512369,75512396,75512639,75512693,75512936,75512963,75513269,75513296,75513629,75513692,75513926,75513962,75516239,75516293,75516329,75516392,75516923,75516932,75519236,75519263,75519326,75519362,75519623,75519632,75521369,75521396,75521639,75521693,75521936,75521963,75523169,75523196,75523619,75523691,75523916,75523961,75526139,75526193,75526319,75526391,75526913,75526931,75529136,75529163,75529316,75529361,75529613,75529631,75531269,75531296,75531629,75531692,75531926,75531962,75532169,75532196,75532619,75532691,75532916,75532961,75536129,75536192,75536219,75536291,75536912,75536921,75539126,75539162,75539216,75539261,75539612,75539621,75561239,75561293,75561329,75561392,75561923,75561932,75562139,75562193,75562319,75562391,75562913,75562931,75563129,75563192,75563219,75563291,75563912,75563921,75569123,75569132,75569213,75569231,75569312,75569321,75591236,75591263,75591326,75591362,75591623,75591632,75592136,75592163,75592316,75592361,75592613,75592631,75593126,75593162,75593216,75593261,75593612,75593621,75596123,75596132,75596213,75596231,75596312,75596321,75612359,75612395,75612539,75612593,75612935,75612953,75613259,75613295,75613529,75613592,75613925,75613952,75615239,75615293,75615329,75615392,75615923,75615932,75619235,75619253,75619325,75619352,75619523,75619532,75621359,75621395,75621539,75621593,75621935,75621953,75623159,75623195,75623519,75623591,75623915,75623951,75625139,75625193,75625319,75625391,75625913,75625931,75629135,75629153,75629315,75629351,75629513,75629531,75631259,75631295,75631529,75631592,75631925,75631952,75632159,75632195,75632519,75632591,75632915,75632951,75635129,75635192,75635219,75635291,75635912,75635921,75639125,75639152,75639215,75639251,75639512,75639521,75651239,75651293,75651329,75651392,75651923,75651932,75652139,75652193,75652319,75652391,75652913,75652931,75653129,75653192,75653219,75653291,75653912,75653921,75659123,75659132,75659213,75659231,75659312,75659321,75691235,75691253,75691325,75691352,75691523,75691532,75692135,75692153,75692315,75692351,75692513,75692531,75693125,75693152,75693215,75693251,75693512,75693521,75695123,75695132,75695213,75695231,75695312,75695321,75912356,75912365,75912536,75912563,75912635,75912653,75913256,75913265,75913526,75913562,75913625,75913652,75915236,75915263,75915326,75915362,75915623,75915632,75916235,75916253,75916325,75916352,75916523,75916532,75921356,75921365,75921536,75921563,75921635,75921653,75923156,75923165,75923516,75923561,75923615,75923651,75925136,75925163,75925316,75925361,75925613,75925631,75926135,75926153,75926315,75926351,75926513,75926531,75931256,75931265,75931526,75931562,75931625,75931652,75932156,75932165,75932516,75932561,75932615,75932651,75935126,75935162,75935216,75935261,75935612,75935621,75936125,75936152,75936215,75936251,75936512,75936521,75951236,75951263,75951326,75951362,75951623,75951632,75952136,75952163,75952316,75952361,75952613,75952631,75953126,75953162,75953216,75953261,75953612,75953621,75956123,75956132,75956213,75956231,75956312,75956321,75961235,75961253,75961325,75961352,75961523,75961532,75962135,75962153,75962315,75962351,75962513,75962531,75963125,75963152,75963215,75963251,75963512,75963521,75965123,75965132,75965213,75965231,75965312,75965321,76123559,76123595,76123955,76125359,76125395,76125539,76125593,76125935,76125953,76129355,76129535,76129553,76132559,76132595,76132955,76135259,76135295,76135529,76135592,76135925,76135952,76139255,76139525,76139552,76152359,76152395,76152539,76152593,76152935,76152953,76153259,76153295,76153529,76153592,76153925,76153952,76155239,76155293,76155329,76155392,76155923,76155932,76159235,76159253,76159325,76159352,76159523,76159532,76192355,76192535,76192553,76193255,76193525,76193552,76195235,76195253,76195325,76195352,76195523,76195532,76213559,76213595,76213955,76215359,76215395,76215539,76215593,76215935,76215953,76219355,76219535,76219553,76231559,76231595,76231955,76235159,76235195,76235519,76235591,76235915,76235951,76239155,76239515,76239551,76251359,76251395,76251539,76251593,76251935,76251953,76253159,76253195,76253519,76253591,76253915,76253951,76255139,76255193,76255319,76255391,76255913,76255931,76259135,76259153,76259315,76259351,76259513,76259531,76291355,76291535,76291553,76293155,76293515,76293551,76295135,76295153,76295315,76295351,76295513,76295531,76312559,76312595,76312955,76315259,76315295,76315529,76315592,76315925,76315952,76319255,76319525,76319552,76321559,76321595,76321955,76325159,76325195,76325519,76325591,76325915,76325951,76329155,76329515,76329551,76351259,76351295,76351529,76351592,76351925,76351952,76352159,76352195,76352519,76352591,76352915,76352951,76355129,76355192,76355219,76355291,76355912,76355921,76359125,76359152,76359215,76359251,76359512,76359521,76391255,76391525,76391552,76392155,76392515,76392551,76395125,76395152,76395215,76395251,76395512,76395521,76512359,76512395,76512539,76512593,76512935,76512953,76513259,76513295,76513529,76513592,76513925,76513952,76515239,76515293,76515329,76515392,76515923,76515932,76519235,76519253,76519325,76519352,76519523,76519532,76521359,76521395,76521539,76521593,76521935,76521953,76523159,76523195,76523519,76523591,76523915,76523951,76525139,76525193,76525319,76525391,76525913,76525931,76529135,76529153,76529315,76529351,76529513,76529531,76531259,76531295,76531529,76531592,76531925,76531952,76532159,76532195,76532519,76532591,76532915,76532951,76535129,76535192,76535219,76535291,76535912,76535921,76539125,76539152,76539215,76539251,76539512,76539521,76551239,76551293,76551329,76551392,76551923,76551932,76552139,76552193,76552319,76552391,76552913,76552931,76553129,76553192,76553219,76553291,76553912,76553921,76559123,76559132,76559213,76559231,76559312,76559321,76591235,76591253,76591325,76591352,76591523,76591532,76592135,76592153,76592315,76592351,76592513,76592531,76593125,76593152,76593215,76593251,76593512,76593521,76595123,76595132,76595213,76595231,76595312,76595321,76912355,76912535,76912553,76913255,76913525,76913552,76915235,76915253,76915325,76915352,76915523,76915532,76921355,76921535,76921553,76923155,76923515,76923551,76925135,76925153,76925315,76925351,76925513,76925531,76931255,76931525,76931552,76932155,76932515,76932551,76935125,76935152,76935215,76935251,76935512,76935521,76951235,76951253,76951325,76951352,76951523,76951532,76952135,76952153,76952315,76952351,76952513,76952531,76953125,76953152,76953215,76953251,76953512,76953521,76955123,76955132,76955213,76955231,76955312,76955321,79123556,79123565,79123655,79125356,79125365,79125536,79125563,79125635,79125653,79126355,79126535,79126553,79132556,79132565,79132655,79135256,79135265,79135526,79135562,79135625,79135652,79136255,79136525,79136552,79152356,79152365,79152536,79152563,79152635,79152653,79153256,79153265,79153526,79153562,79153625,79153652,79155236,79155263,79155326,79155362,79155623,79155632,79156235,79156253,79156325,79156352,79156523,79156532,79162355,79162535,79162553,79163255,79163525,79163552,79165235,79165253,79165325,79165352,79165523,79165532,79213556,79213565,79213655,79215356,79215365,79215536,79215563,79215635,79215653,79216355,79216535,79216553,79231556,79231565,79231655,79235156,79235165,79235516,79235561,79235615,79235651,79236155,79236515,79236551,79251356,79251365,79251536,79251563,79251635,79251653,79253156,79253165,79253516,79253561,79253615,79253651,79255136,79255163,79255316,79255361,79255613,79255631,79256135,79256153,79256315,79256351,79256513,79256531,79261355,79261535,79261553,79263155,79263515,79263551,79265135,79265153,79265315,79265351,79265513,79265531,79312556,79312565,79312655,79315256,79315265,79315526,79315562,79315625,79315652,79316255,79316525,79316552,79321556,79321565,79321655,79325156,79325165,79325516,79325561,79325615,79325651,79326155,79326515,79326551,79351256,79351265,79351526,79351562,79351625,79351652,79352156,79352165,79352516,79352561,79352615,79352651,79355126,79355162,79355216,79355261,79355612,79355621,79356125,79356152,79356215,79356251,79356512,79356521,79361255,79361525,79361552,79362155,79362515,79362551,79365125,79365152,79365215,79365251,79365512,79365521,79512356,79512365,79512536,79512563,79512635,79512653,79513256,79513265,79513526,79513562,79513625,79513652,79515236,79515263,79515326,79515362,79515623,79515632,79516235,79516253,79516325,79516352,79516523,79516532,79521356,79521365,79521536,79521563,79521635,79521653,79523156,79523165,79523516,79523561,79523615,79523651,79525136,79525163,79525316,79525361,79525613,79525631,79526135,79526153,79526315,79526351,79526513,79526531,79531256,79531265,79531526,79531562,79531625,79531652,79532156,79532165,79532516,79532561,79532615,79532651,79535126,79535162,79535216,79535261,79535612,79535621,79536125,79536152,79536215,79536251,79536512,79536521,79551236,79551263,79551326,79551362,79551623,79551632,79552136,79552163,79552316,79552361,79552613,79552631,79553126,79553162,79553216,79553261,79553612,79553621,79556123,79556132,79556213,79556231,79556312,79556321,79561235,79561253,79561325,79561352,79561523,79561532,79562135,79562153,79562315,79562351,79562513,79562531,79563125,79563152,79563215,79563251,79563512,79563521,79565123,79565132,79565213,79565231,79565312,79565321,79612355,79612535,79612553,79613255,79613525,79613552,79615235,79615253,79615325,79615352,79615523,79615532,79621355,79621535,79621553,79623155,79623515,79623551,79625135,79625153,79625315,79625351,79625513,79625531,79631255,79631525,79631552,79632155,79632515,79632551,79635125,79635152,79635215,79635251,79635512,79635521,79651235,79651253,79651325,79651352,79651523,79651532,79652135,79652153,79652315,79652351,79652513,79652531,79653125,79653152,79653215,79653251,79653512,79653521,79655123,79655132,79655213,79655231,79655312,79655321,91235567,91235576,91235657,91235675,91235756,91235765,91236557,91236575,91236755,91237556,91237565,91237655,91253567,91253576,91253657,91253675,91253756,91253765,91255367,91255376,91255637,91255673,91255736,91255763,91256357,91256375,91256537,91256573,91256735,91256753,91257356,91257365,91257536,91257563,91257635,91257653,91263557,91263575,91263755,91265357,91265375,91265537,91265573,91265735,91265753,91267355,91267535,91267553,91273556,91273565,91273655,91275356,91275365,91275536,91275563,91275635,91275653,91276355,91276535,91276553,91325567,91325576,91325657,91325675,91325756,91325765,91326557,91326575,91326755,91327556,91327565,91327655,91352567,91352576,91352657,91352675,91352756,91352765,91355267,91355276,91355627,91355672,91355726,91355762,91356257,91356275,91356527,91356572,91356725,91356752,91357256,91357265,91357526,91357562,91357625,91357652,91362557,91362575,91362755,91365257,91365275,91365527,91365572,91365725,91365752,91367255,91367525,91367552,91372556,91372565,91372655,91375256,91375265,91375526,91375562,91375625,91375652,91376255,91376525,91376552,91523567,91523576,91523657,91523675,91523756,91523765,91525367,91525376,91525637,91525673,91525736,91525763,91526357,91526375,91526537,91526573,91526735,91526753,91527356,91527365,91527536,91527563,91527635,91527653,91532567,91532576,91532657,91532675,91532756,91532765,91535267,91535276,91535627,91535672,91535726,91535762,91536257,91536275,91536527,91536572,91536725,91536752,91537256,91537265,91537526,91537562,91537625,91537652,91552367,91552376,91552637,91552673,91552736,91552763,91553267,91553276,91553627,91553672,91553726,91553762,91556237,91556273,91556327,91556372,91556723,91556732,91557236,91557263,91557326,91557362,91557623,91557632,91562357,91562375,91562537,91562573,91562735,91562753,91563257,91563275,91563527,91563572,91563725,91563752,91565237,91565273,91565327,91565372,91565723,91565732,91567235,91567253,91567325,91567352,91567523,91567532,91572356,91572365,91572536,91572563,91572635,91572653,91573256,91573265,91573526,91573562,91573625,91573652,91575236,91575263,91575326,91575362,91575623,91575632,91576235,91576253,91576325,91576352,91576523,91576532,91623557,91623575,91623755,91625357,91625375,91625537,91625573,91625735,91625753,91627355,91627535,91627553,91632557,91632575,91632755,91635257,91635275,91635527,91635572,91635725,91635752,91637255,91637525,91637552,91652357,91652375,91652537,91652573,91652735,91652753,91653257,91653275,91653527,91653572,91653725,91653752,91655237,91655273,91655327,91655372,91655723,91655732,91657235,91657253,91657325,91657352,91657523,91657532,91672355,91672535,91672553,91673255,91673525,91673552,91675235,91675253,91675325,91675352,91675523,91675532,91723556,91723565,91723655,91725356,91725365,91725536,91725563,91725635,91725653,91726355,91726535,91726553,91732556,91732565,91732655,91735256,91735265,91735526,91735562,91735625,91735652,91736255,91736525,91736552,91752356,91752365,91752536,91752563,91752635,91752653,91753256,91753265,91753526,91753562,91753625,91753652,91755236,91755263,91755326,91755362,91755623,91755632,91756235,91756253,91756325,91756352,91756523,91756532,91762355,91762535,91762553,91763255,91763525,91763552,91765235,91765253,91765325,91765352,91765523,91765532,92135567,92135576,92135657,92135675,92135756,92135765,92136557,92136575,92136755,92137556,92137565,92137655,92153567,92153576,92153657,92153675,92153756,92153765,92155367,92155376,92155637,92155673,92155736,92155763,92156357,92156375,92156537,92156573,92156735,92156753,92157356,92157365,92157536,92157563,92157635,92157653,92163557,92163575,92163755,92165357,92165375,92165537,92165573,92165735,92165753,92167355,92167535,92167553,92173556,92173565,92173655,92175356,92175365,92175536,92175563,92175635,92175653,92176355,92176535,92176553,92315567,92315576,92315657,92315675,92315756,92315765,92316557,92316575,92316755,92317556,92317565,92317655,92351567,92351576,92351657,92351675,92351756,92351765,92355167,92355176,92355617,92355671,92355716,92355761,92356157,92356175,92356517,92356571,92356715,92356751,92357156,92357165,92357516,92357561,92357615,92357651,92361557,92361575,92361755,92365157,92365175,92365517,92365571,92365715,92365751,92367155,92367515,92367551,92371556,92371565,92371655,92375156,92375165,92375516,92375561,92375615,92375651,92376155,92376515,92376551,92513567,92513576,92513657,92513675,92513756,92513765,92515367,92515376,92515637,92515673,92515736,92515763,92516357,92516375,92516537,92516573,92516735,92516753,92517356,92517365,92517536,92517563,92517635,92517653,92531567,92531576,92531657,92531675,92531756,92531765,92535167,92535176,92535617,92535671,92535716,92535761,92536157,92536175,92536517,92536571,92536715,92536751,92537156,92537165,92537516,92537561,92537615,92537651,92551367,92551376,92551637,92551673,92551736,92551763,92553167,92553176,92553617,92553671,92553716,92553761,92556137,92556173,92556317,92556371,92556713,92556731,92557136,92557163,92557316,92557361,92557613,92557631,92561357,92561375,92561537,92561573,92561735,92561753,92563157,92563175,92563517,92563571,92563715,92563751,92565137,92565173,92565317,92565371,92565713,92565731,92567135,92567153,92567315,92567351,92567513,92567531,92571356,92571365,92571536,92571563,92571635,92571653,92573156,92573165,92573516,92573561,92573615,9257