using System;
using System.Linq;
using System.Linq.Expressions;
using System.Collections.Generic;
using Debug = System.Diagnostics.Debug;
using StringBuilder = System.Text.StringBuilder;
using System.Numerics;
using Number = System.Int64;
namespace Program
{
    public class Solver
    {
        public void Solve()
        {

            var n = sc.Integer();
            var s = sc.Scan();
            /*
            var dp1 = new int[n - s.Length + 1];
            dp1[0] = 1;
            {
                var dp = new int[n + 2];
                dp[0] = 1;
                for (int i = 0; i < n - s.Length; i++)
                {
                    var next = new int[n + 1];
                    for (int j = 0; j < n; j++)
                    {
                        if ((next[j + 1] += dp[j]) >= MOD) next[j + 1] -= MOD;
                        if ((next[j + 1] += dp[j]) >= MOD) next[j + 1] -= MOD;
                        var p = Math.Max(0, j - 1);
                        if ((next[p] += dp[j]) >= MOD) next[p] -= MOD;

                    }
                    dp = next;
                    dp1[i + 1] = dp[0];
                }
            }
            var dp2 = new int[n - s.Length + 1];
            dp2[0] = 1;
            {
                var dp = new int[n + 2];
                dp[0] = 1;
                for (int i = 0; i < n - s.Length; i++)
                {
                    var next = new int[n + 1];
                    for (int j = 0; j < n; j++)
                    {
                        if ((next[j + 1] += dp[j]) >= MOD) next[j + 1] -= MOD;
                        if ((next[j + 1] += dp[j]) >= MOD) next[j + 1] -= MOD;
                        if (j > 0 && (next[j - 1] += dp[j]) >= MOD) next[j - 1] -= MOD;
                    }
                    dp = next;
                    dp2[i + 1] = dp[0];
                }

            }
            IO.Printer.Out.WriteLine(dp1.AsJoinedString(","));
            IO.Printer.Out.WriteLine(dp2.AsJoinedString(","));
            //IO.Printer.Out.WriteLine(dp1.AsJoinedString(","));
            //IO.Printer.Out.WriteLine(dp2.AsJoinedString(","));
            */
            var dp1 = new int[] { 1, 1, 3, 5, 15, 29, 87, 181, 543, 1181, 3543, 7941, 23823, 54573, 163719, 381333, 1143999, 2699837, 8099511, 19319845, 57959535, 139480397, 418441191, 14536110, 43608330, 426790700, 280372093, 669442763, 8328275, 388935521, 166806556, 139062193, 417186579, 851069935, 553209791, 56037501, 168112503, 267344849, 802034547, 652357957, 957073864, 700539444, 101618318, 396133601, 188400796, 726068788, 178206350, 741117043, 223351115, 742918242, 228754712, 312476430, 937429290, 321447427, 964342281, 33806458, 101419374, 751551908, 254655710, 363399877, 90199624, 156603031, 469809093, 915208994, 745626968, 462850378, 388551127, 246596506, 739789518, 467733091, 403199266, 447059337, 341178004, 278644239, 835932717, 889171503, 667514495, 782338579, 347015723, 245469453, 736408359, 931113934, 793341788, 806025176, 418075514, 217760052, 653280156, 768963093, 306889265, 711216158, 133648460, 910406639, 731219903, 926508572, 779525702, 768155852, 304467542, 326462370, 979387110, 463504958, 390514867, 133036428, 399109284, 590456714, 771370135, 483338560, 450015673, 888488321, 665464949, 350083538, 50250607, 118756719, 356270157, 661690728, 985072177, 23869570, 71608710, 38222864, 114668592, 366500311, 99500926, 572394560, 717183673, 709028776, 127086314, 639656744, 918970225, 900643476, 701930414, 382964607, 148893814, 250036934, 750110802, 219858937, 659576811, 916791044, 750373118, 157680701, 473042103, 487635248, 462905737, 404083031, 212249086, 590446235, 771338698, 6013544, 18040632, 991399340, 974198006, 990849114, 972547328, 558168879, 674506630, 801159551, 403478639, 158070240, 474210720, 809129432, 427388282, 866168462, 598505372, 788433413, 365300225, 674421938, 23265800, 831193374, 493580108, 34565782, 103697346, 510567483, 531702442, 767728249, 303184733, 404642877, 213928624, 853165051, 559495139, 296074444, 888223332, 256370401, 769111203, 929943512, 789830522, 312639125, 937917375, 495300751, 485902246, 972025833, 916077485, 766239658, 298718960, 912963713, 738891125, 637708625, 913125868, 178553316, 535659948, 430788617, 292365844, 288710724, 866132172, 812694564, 438083678, 768129860, 304389566, 442776557, 328329664, 314589440, 943768320, 1868510, 5605530, 833714184, 501142538, 404937555, 214812658, 978572016, 935716034, 324168948, 972506844, 197285144, 591855432, 632087160, 896261473, 377752714, 133258135, 882603909, 647811713, 807878557, 423635657, 722338539, 167015603, 789937499, 369812483, 339651082, 18953239, 44648793, 133946379, 103702425, 311107275, 978041817, 934125437, 122643334, 367930002, 355736134, 67208395, 436516581, 309549736, 107629577, 322888731, 111327069, 333981207, 367739160, 103217473, 894366798, 683100380, 390949155, 172847458, 219945373, 659836119, 802910542, 408731612, 898291568, 694874690, 491207321, 473621956, 696998132, 90994382, 24477213, 73431639, 121003549, 363010647, 656403179, 969209530, 302011238, 906033714, 621477008, 864431017, 217130939, 651392817, 919981289, 759943853, 243207256, 729621768, 265163174, 795489522, 263176272, 789528816, 59189222, 177567666, 310716811, 932150433, 860725050, 582175136, 153427859, 460283577, 197672923, 593018769, 925701914, 777105728, 652750427, 958251274, 407430445, 222291328, 96759999, 290279997, 472290021, 416870056, 456902630, 370707883, 514234291, 542702866, 44831399, 134494197, 788216213, 364648625, 724873033, 174619085, 938751738, 816255200, 911804344, 735413018, 267341221, 802023663, 75547515, 226642545, 802404278, 407212820, 387611837, 162835504, 131495508, 394486524, 51974757, 155924271, 581030990, 743092963, 341540130, 24620383, 679956305, 39868901, 431467085, 294401248, 426377279, 279131830, 447213546, 341640631, 410299788, 230899357, 162936579, 488809737, 853235231, 559705679, 906282997, 718848977, 433049831, 299149486, 248134475, 744403425, 260998812, 782996436, 102778462, 308335386, 43466084, 130398252, 836558177, 509674517, 390595580, 171786733, 243051360, 729154080, 221249400, 663748200, 549684743, 649054222, 378848148, 136544437, 963222440, 889667306, 935582264, 806746778, 588678111, 766034326, 315651076, 946953228, 980147809, 940443413, 994332441, 982997309, 322308459, 966925377, 187412112, 562236336, 411227448, 233682337, 234787384, 704362152, 987025193, 961075565, 550680030, 652040083, 735699850, 207099536, 721841180, 165523526, 651373967, 954121894, 564548234, 693644695, 245325054, 735975162, 650015809, 950047420, 623248003, 869744002, 778245844, 334737518, 38880247, 116640741, 950632187, 851896547, 869900167, 609700487, 187475200, 562425600, 213226770, 639680310, 998418232, 995254682, 270537038, 811611114, 757588227, 272764667, 660180124, 980540365, 252273970, 756821910, 325744671, 977234013, 302411523, 907234569, 576250102, 728750299, 57669416, 173008248, 551377419, 654132250, 829342660, 488027966, 710350562, 131051672, 176820813, 530462439, 783704896, 351114674, 198458213, 595374639, 834136739, 502410203, 805847845, 417543521, 443379759, 330139270, 90917952, 272753856, 599823090, 799469263, 413222975, 239668918, 144460903, 433382709, 601204964, 803614885, 448059198, 344177587, 454947208, 364841617, 864306956, 592920854, 747741645, 243224921, 983058532, 949175582, 936669048, 810007130, 130475154, 391425462, 39612605, 118837815, 695662137, 86986397, 822843470, 468530396, 946427128, 839281370, 255503173, 766509519, 229624121, 688872363, 161353001, 484059003, 269517079, 808551237, 873505478, 620516420, 137322910, 411968730, 784746535, 354239591, 49559330, 148677990, 200201278, 600603834, 784173380, 352520126, 212998867, 638996601, 850942476, 552827414, 839727494, 519182468, 399144292, 197432869, 677184264, 31552778, 594283177, 782849524, 3359066, 10077198, 375315202, 125945599, 926652803, 779958395, 840982921, 522948749, 274287637, 822862911, 364115072, 92345209, 178248998, 534746994, 62782906, 188348718, 10125159, 30375477, 43887369, 131662107, 304864555, 914593665, 282228246, 846684738, 104136462, 312409386, 686230526, 58691564, 897378751, 692136239, 211389162, 634167486, 417400716, 252202141, 253725498, 761176494, 844235022, 532705052, 698197612, 94592822, 712703222, 138109652, 151547059, 454641177, 651680234, 955040695, 840416712, 521250122, 806164857, 418494557, 101365696, 304097088, 761871457, 285614357, 928674409, 786023213, 125634495, 376903485, 184891139, 554673417, 433130722, 299392159, 754361926, 263085764, 336116396, 8349181, 310182871, 930548613, 20803768, 62411304, 903887117, 711661337, 762524523, 287573555, 577943215, 733829638, 313360112, 940080336, 15401226, 46203678, 949589565, 848768681, 199490340, 598471020, 349286863, 47860582, 827361518, 482084540, 912565509, 737696513, 250091996, 750275988, 807546653, 422639945, 274312568, 822937704, 313920570, 941761710, 438256149, 314768440, 715946919, 147840743, 708184656, 124553954, 709450316, 128350934, 602912754, 808738255, 353276312, 59828929, 372316580, 116949733, 829807418, 489422240, 169471503, 508414509, 566612519, 699837550, 385444665, 156333988, 352646463, 57939382, 247283608, 741850824, 401332811, 203998426, 619129613, 857388832, 170263752, 510791256, 526977653, 580932952, 462744735, 388234198, 407180751, 221542246, 656084248, 968252737, 728293306, 184879904, 752883294, 258649868, 450584106, 351752311, 544584862, 633754579, 84125473, 252376419, 447933212, 343799629, 95435131, 286305393, 731771271, 195313799, 20328427, 60985281, 361240842, 83722519, 671191928, 13575770, 552408286, 657224851, 721691592, 165074762, 86664420, 259993260, 456306417, 368919244, 793693842, 381081512, 787459772, 362379302, 860542956, 581628854, 654181651, 962544946, 216378666, 649135998, 532060672, 596182009, 460056948, 380170837, 862718225, 588154661, 252908380, 758725140, 279625799, 838877397, 535715980, 607147933, 269563916, 808691748, 945918035, 837754091, 154676574, 464029722, 768010428, 304031270, 271643342, 814930026, 110953311, 332859933, 965265027, 895795067, 882236267, 646708787, 492546420, 477639253, 204787729, 614363187, 340705793, 22117372, 79879902, 239639706, 302378339, 907135017, 305516802, 916550406, 500477224, 501431665, 953235840, 859707506, 81378462, 244135386, 574381658, 723144967, 931558832, 794676482, 756497113, 269491325, 950994207, 852982607, 990111656, 970334954, 462489386, 387468151, 478171028, 434513077, 102475005, 307425015, 450609266, 351827791, 640646720, 921940153, 660057217, 980171644, 97697070, 293091210, 410926792, 232780369, 533061691, 599185066, 94814348, 284443044, 591486759, 774460270, 589619088, 768857257, 918123849, 754371533, 121590764, 364772292, 869989984, 609969938, 239578028, 718734084, 875679310, 627037916, 993016613, 979049825, 919450736, 758352194, 720465230, 161395676, 14094036, 42282108, 302863303, 908589909, 889845328, 669535970, 842381777, 527145317, 157554451, 472663353, 883942031, 651826079, 822031415, 466094231, 651596042, 954788119, 942244314, 826732928, 937139369, 811418093, 939819798, 819459380, 809309210, 427927616, 265476219, 796428657, 134406054, 403218162, 192495846, 577487538, 299304152, 897912456, 981349311, 944047919, 477280763, 431842282, 471595163, 414785482, 413970278, 241910827, 992082790, 976248356, 225352248, 676056744, 572688272, 718064809, 558721284, 676163845, 130616084, 391848252, 832010676, 496032014, 115697611, 347092833, 93633934, 280901802, 129239903, 387719709, 307560046, 922680138, 95962188, 287886564, 879296072, 637888202, 149432400, 448297200, 527040480, 581121433, 601048956, 803146861, 950705902, 852117692, 871578487, 614735447, 82754093, 248262279, 660332026, 980996071, 893804061, 681412169, 88468414, 265405242, 33221238, 99663714, 939731968, 819195890, 739972718, 219918140, 749040710, 247122116, 801563550, 404690636, 236630755, 709892265, 624978250, 874934743, 440020363, 320061082, 364356548, 93069637, 155150738, 465452214, 371715422, 115146259, 202060610, 606181830, 827636133, 482908385, 538831212, 616493629, 378941971, 136825906, 263812232, 791436696, 618404108, 855212317, 153915113, 461745339, 298303841, 894911523, 113284130, 339852390, 803392857, 410178557, 260082583, 780247749, 358210240, 74630713, 940762673, 822288005, 589779962, 769339879, 811787240, 435361706, 860754478, 582263420, 246845940, 740537820, 618646034, 855938095, 644576249, 933728740, 438804011, 316412026, 17018757, 51056271, 501321648, 503964937, 123746504, 371239512, 386759057, 160277164, 296927787, 890783361, 111407321, 334221963, 746779401, 240338189, 703297704, 109893098, 963387317, 890161937, 670286128, 10858370, 250899743, 752699229, 906102813, 718308425, 876619115, 629857331, 581348907, 744046714, 724583247, 173749727, 939419740, 818259206, 158711627, 476134881, 288001154, 864003462, 121200565, 363601695, 625038908, 875116717, 691068703, 73206095, 605836137, 817508404, 561226264, 683678785, 233161202, 699483606, 752656343, 257969015, 23948767, 71846301, 884546419, 653639243, 236769210, 710307630, 171114385, 513343155, 986347363, 959042075, 333414811, 244426, 166995463, 500986389, 376717054, 130151155, 64704553, 194113659, 51268642, 153805926, 965053861, 895161569, 568818145, 706454428, 562062327, 686186974, 789736896, 369210674, 243196216, 729588648, 121664744, 364994232, 50970893, 152912679, 555142002, 665425999, 910894466, 732683384, 447200174, 341600515, 300419995, 901259985, 883037580, 649112726, 989971351, 969914039, 19054461, 57163383, 122166129, 366498387, 85347227, 256041681, 710715576, 132146714, 396494397, 189483184, 54596634, 163789902, 274398547, 823195641, 913331227, 739993667, 532577683, 597733042, 290662344, 871987032, 3271512, 9814536, 407309900, 221929693, 650120906, 950362711, 15026066, 45078198, 690245233, 70735685, 937039566, 811118684, 342654163, 27962482, 628455737, 885367204, 606449346, 819348031, 792914801, 378744389, 607757349, 823272040, 830441590, 491324756, 148041753, 444125259, 489024731, 467074186, 805370506, 416111504, 903812117, 711436337, 924163321, 772489949, 112578142, 337734426, 298264465, 894793395, 597983123, 793949362, 568920357, 706761064, 594638461, 783915376, 853667588, 561002750, 414432342, 243297019, 493238575, 479715718, 448341412, 345024229, 683967935, 51903791, 598602746, 795808231, 297375178, 892125534, 507108659, 521325970, 920604510, 761813516, 136172586, 408517758, 283707228, 851121684, 615936248, 847808737, 574579465, 723738388, 770222112, 310666322, 198987338, 596962014, 884105468, 652316390, 214819699, 644459097, 145560507, 436681521, 897780215, 693340631, 687243676, 61731014, 666592105, 999776308, 191225066, 573675198, 314900881, 944702643, 644020717, 932062144, 237782324, 713346972, 516310522, 548931559, 877513487, 632540447, 992476131, 977428379, 778816152, 336448442, 177190166, 531570498, 68030150, 204090450, 483417897, 450253684, 576005761, 728017276, 119850663, 359551989, 262607190, 787821570, 565555933, 696667792, 600568123, 801704362, 900281768, 700845290, 708051461, 124154369, 782973386, 348920144, 829278242, 487834712, 168182515, 504547545, 732793403, 198380195, 251489948, 754469844, 561392040, 684176113, 782157685, 346473041, 52448015, 157344045, 165317837, 495953511, 760280447, 280841327, 6460634, 19381902, 874676790, 624030356, 313463443, 940390329, 495698951, 487096846, 877193160, 631579466, 956297962, 868893872, 386244302, 158732899, 269682623, 809047869, 197803505, 593410515, 68055237, 204165711, 253132778, 759398334, 488757902, 466273699, 170556436, 511669308, 100974043, 302922129, 698622908, 95868710, 837824745, 513474221, 540870697, 622612084, 182091480, 546274440, 371328779, 113986330, 652341339, 957024010, 319147553, 957442659, 425779704, 277339105, 101298324, 303894972, 906908394, 720725168, 520855026, 562565071, 694025796, 82077374, 899626500, 698879486, 158441947, 475325841, 737986394, 213959168, 684386437, 53159297, 151672796, 455018388, 904028422, 712085252, 11284044, 33852132, 473233390, 419700163, 649114646, 947343931, 520824045, 562472128, 175610866, 526832598, 436119034, 308357095, 364301899, 92905690, 90576438, 271729314, 881447745, 644343221, 686168639, 58505903, 10835390, 32506170, 944619271, 833857799, 574247317, 722741944, 506781240, 520343713, 1989686, 5969058, 259631962, 778895886, 358466370, 75399103, 424640433, 273921292, 184452758, 553358274, 665340099, 996020290, 402215002, 206644999, 154926834, 464780502, 98062628, 294187884, 36045113, 108135339, 695573162, 86719472, 943091296, 829273874, 594387502, 783162499, 418258886, 254776651, 301149798, 903449394, 913605085, 740815241, 333509959, 529870, 201349432, 604048296, 26167624, 78502872, 664555062, 993665179, 575063380, 725190133, 121034200, 363102600, 595700583, 787101742, 254124050, 762372150, 38141323, 114423969, 516631288, 549893857, 225144545, 675433635, 946168633, 838505885, 75884096, 227652288, 712154213, 136462625, 481444704, 444334105, 182517876, 547553628, 132166594, 396499782, 661612653, 984837952, 9444756, 28334268, 10287161, 30861483, 175527813, 526583439, 31315751, 93947253, 803243007, 409729007, 96815605, 290446815, 757912785, 273738341, 32051203, 96153609, 470752585, 412257748, 152806564, 458419692, 75461433, 226384299, 574987969, 724963900, 949436601, 848309789, 47780645, 143341935, 931923632, 795770882, 66255600, 198766800, 547001528, 641004577, 609699520, 829098553, 964701591, 894104759, 401949129, 205847380, 756025338, 268076000, 602034033, 806102092, 845457709, 536373113, 854277168, 562831490, 58350191, 175050573, 285076516, 855229548, 796262272, 388786802, 515516073, 546548212, 438263952, 314791849, 869128125, 607384361, 158152559, 474457677, 251773427, 755320281, 278941335, 836824005, 25862591, 77587773, 566818576, 700455721, 36366919, 109100757, 5041022, 15123066, 96620638, 289861914, 666780822, 342452, 381968092, 145904269, 724390841, 173172509, 259700595, 779101785, 221588437, 664765311, 252799097, 758397291, 336179975, 8539918, 760450500, 281351486, 72331784, 216995352, 753661675, 260985011, 475097827, 425293474, 618083453, 854250352, 297493743, 892481229, 641700989, 925102960, 191180369, 573541107, 566681939, 700045810, 442548327, 327644974, 645987228, 937961677, 301537364, 904612092, 574605434, 723816295, 938076915, 814230731, 28149544, 84448632, 101612816, 304838448, 622242081, 866726236, 923509808, 770529410, 22054348, 66163044, 366076469, 98229400, 485238030, 455714083, 767997905, 303993701, 668545276, 5635814, 620717546, 862152631, 359277714, 77833135, 901712113, 705136325, 301511450, 904534350, 976349593, 929048765, 526846892, 580540669, 783893913, 351681725, 646517745, 939553228, 616361426, 849084271, 430750207, 292250614, 302304272, 906912816, 502649182, 507947539, 723434877, 170304617, 372225325, 116675968, 39555432, 118666296, 678142783, 34428335, 930284876, 790854614, 270646302, 811938906, 700297899, 100893683, 367523076, 102569221, 23091332, 69273996, 537924340, 613773013, 119023391, 357070173, 682311164, 46933478, 268501855, 805505565, 234597786, 703793358, 245942494, 737827482, 370375262, 111125779, 783008113, 349024325, 858263669, 574790993, 685356444, 56069318, 410522142, 231566419, 489924948, 469774837, 260205863, 780617589, 273794340, 821383020, 38070392, 114211176, 648797881, 946393636, 1378682, 4136046, 588330552, 764991649, 441807172, 325421509, 859715856, 579147554, 558722386, 676167151, 840388662, 521165972, 667506448, 2519330, 587106625, 761319868, 309574603, 928723809, 673723741, 21171209, 718391272, 155173802, 368459051, 105377146, 826806477, 480419417, 844395576, 533186714, 958611711, 875835119, 869070718, 607212140, 546056175, 638168518, 826061619, 478184843, 564144058, 692432167, 796553053, 389659145, 755993842, 267981512, 558261443, 674784322, 720952827, 162858467, 316801804, 950405412, 575868544, 727605625, 181396947, 544190841, 537490345, 612471028, 222070576, 666211728, 534598038, 603794107, 481377797, 444133384, 64864092, 194592276, 56965077, 170895231, 726457903, 179373695, 615129930, 845389783, 53552153, 160656459, 27598822, 82796466, 926627478, 779882420, 792114601, 376343789, 397520652, 192561949, 627149415, 881448238, 886792271, 660376799, 805947496, 417842474, 724168376, 172505114, 444708514, 334125535, 290854127, 872562381, 553110557, 659331664, 943083036, 829249094, 111715713, 335147139, 585333334, 755999995, 945508146, 836524424, 374459076, 123377221, 180044223, 540132669, 30821457, 92464371, 110333743, 331001229, 87486721, 262460163, 69839579, 209518737, 440022902, 320068699, 959961462, 879884372, 869926990, 609780956, 222109940, 666329820, 667469846, 2409524, 552212512, 656637529, 661694672, 985084009, 136974738, 410924214, 286341925, 859025775, 699353331, 98059979, 17144764, 51434292, 73220126, 219660378, 765556836, 296670494, 562173922, 686521759, 918096175, 754288511, 767866130, 303598376, 545135641, 635406916, 345773632, 37320889, 352485090, 57455263, 152426380, 457279140, 915615966, 746847884, 269189943, 807569829, 304259823, 912779469, 798164779, 394494323, 217847030, 653541090, 861357755, 584073251, 235965714, 707897142, 691236920, 73710746, 877805992, 633417962, 75710361, 227131083, 243181068, 729543204, 173491792, 520475376, 586984605, 760953808, 822978768, 468936290, 186102252, 558306756, 702481159, 107443463, 228090087, 684270261, 955465024, 866395058, 876292048, 628876130, 585520606, 756561811, 742470948, 227412830, 955266269, 865798793, 655740377, 967221124, 25251458, 75754374, 645445336, 936336001, 136406838, 409220514, 950536169, 851608493, 979358500, 938075486, 114879014, 344637042, 236429328, 709287984, 843939852, 531819542, 378273156, 134819461, 683312753, 49938245, 108754425, 326263275, 16928684, 50786052, 961975591, 885926759, 331027703, 993083109, 981381277, 944143817, 542792054, 628376155, 82414817, 247244451, 151102496, 453307488, 662658106, 987974311, 598603636, 795810901, 162540136, 487620408, 388553819, 165661450, 12659333, 37977999, 443972547, 331917634, 958437012, 875311022, 382843065, 148529188, 167077427, 501232281, 976648787, 929946347, 360228512, 80685529, 942103925, 826311761, 876690365, 630071081, 752632735, 257898191, 334611056, 3833161, 850976260, 552928766, 663965290, 991895863, 282269401, 846808203, 881592836, 644778494, 509566393, 528699172, 397150974, 191452915, 714590977, 143772917, 50816827, 152450481, 55416008, 166248024, 388787286, 166361851, 681197955, 43593851, 687588891, 62766659, 783961140, 351883406, 916376723, 749130155, 413965678, 241897027, 924317645, 772952921, 258638360, 775915080, 815738960, 447216866, 393190260, 179570773, 24008879, 72026637, 271348413, 814045239, 720638114, 161914328, 684674993, 54024965, 713799627, 141398867, 939246344, 817739018, 280740514, 842221542, 784638134, 353914388, 674636421, 23909249, 373018944, 119056825, 704548089, 113644253, 318088112, 954264336, 76531215, 229593645, 972829003, 918486995, 611012084, 833036245, 870548504, 611645498, 32627571, 97882713, 369545522, 108636559, 259883743, 779651229, 564713059, 694139170, 484407817, 453223444, 401455205, 204365608, 816508899, 449526683, 535833981, 607501936, 964400938, 893202800, 584309243, 752927722, 777951377, 333854117, 148445441, 445336323, 863651353, 590954045, 167570882, 502712646, 890485864, 671457578, 386598133, 159794392, 362793574, 88380715, 919434696, 758304074, 168519818, 505559454, 629815691, 889447066, 83863656, 251590968, 533792270, 601376803, 737466642, 212399912, 629299460, 887898373, 980323814, 940971428, 499298171, 497894506, 732010503, 196031495, 136690074, 410070222, 119910006, 359730018, 528071602, 584214799, 166294381, 498883143, 191048771, 573146313, 180894862, 542684586, 253233195, 759699585, 707583807, 122751407, 467043814, 401131435, 529418344, 588255025, 405369245, 216107728, 36842539, 110527617, 217295958, 651887874, 332779795, 998339385, 458099127, 374297374, 824970217, 474910637, 840126827, 520380467, 476091387, 428274154, 447128417, 341385244, 966299443, 898898315, 310538895, 931616685, 178762482, 536287446, 807300668, 421901990, 369283177, 107849524, 876027909, 628083713, 160175591, 480526773, 963776134, 891328388, 850294151, 550882439, 382448961, 147346876, 994271873, 982815605, 201319720, 603959160, 959455848, 878367530, 138090295, 414270885, 763223955, 289671851, 641531880, 924595633, 121138991, 363416973, 144492772, 433478316, 96561653, 289684959, 627505203, 882515602, 950574927, 851724767, 681716667, 45149987, 288319349, 864958047, 103705508, 311116524, 555216699, 665650090, 175537289, 526611867, 253270339, 759811017, 337397159, 12191470, 641771740, 925315213, 707735935, 123207791, 696461424, 89384258, 428563906, 285691711, 624433108, 873299317, 796350612, 389051822, 416998117, 250994344, 959656477, 878969417, 85001017, 255003051, 105178916, 315536748, 387272106, 161816311, 219522334, 658567002, 593419229, 780257680, 786929834, 360789488, 444750774, 334252315, 596298579, 788895730, 665238394, 995715175, 73273034, 219819102, 725478948, 176436830, 714469991, 143409959, 425143015, 275429038, 571910005, 715730008, 91250869, 273752607, 82955424, 248866272, 102653158, 307959474, 224525497, 673576491, 388291889, 164875660, 81795515, 245386545, 11663362, 34990086, 55869390, 167608170, 776610958, 329832860, 346817141, 40451416, 862539394, 587618168, 170737297, 512211891, 609411018, 828233047, 314667188, 944001564, 288344076, 865032228, 327131363, 981394089, 623197447, 869592334, 704924654, 114773948, 832196917, 496590737, 836729223, 510187655, 481931453, 445794352, 294670804, 884012412, 882246406, 646739204, 809164841, 427494509, 32358369, 97075107, 410337258, 231011767, 265066282, 795198846, 513085687, 539257054, 522057831, 566173486, 193619575, 580858725, 638548808, 915646417, 471431776, 414295321, 472041909, 416125720, 751911393, 255734165, 670783486, 12350444, 871932692, 615798062, 655460148, 966380437, 100596502, 301789506, 791695149, 375085433, 639917218, 919751647, 697317392, 91952162, 900304150, 700912436, 864135834, 592407488, 13889866, 41669598, 601294124, 803882365, 483615779, 450847330, 519283688, 557851057, 658945827, 976837474, 799228268, 397684790, 603232446, 809697331, 406674821, 220024456, 91889743, 275669229, 184189217, 552567651, 796202248, 388606730, 360249777, 80749324, 208614826, 625844478, 630552963, 891658882, 671071239, 13213703, 306543283, 919629849, 443562841, 330688516, 524261693, 572785072, 359360110, 78080323, 611882307, 835646914, 581550102, 744650299, 622474290, 867422863, 433380152, 300140449, 207633843, 622901529, 333853911, 1561726, 186415406, 559246218, 671669224, 15007658, 873208287, 619624847, 607626433, 822879292, 147337256, 442011768, 464949191, 394847566, 394102308, 182306917, 712263588, 136790750, 435351280, 306053833, 572434456, 717303361, 600067771, 800203306, 555571946, 666715831, 244396913, 733190739, 340354394, 21063175, 241003734, 723011202, 225704701, 677114103, 687994440, 63983306, 824461732, 473385182, 670919496, 12758474, 270611390, 811834170, 260075862, 780227586, 476905113, 430715332, 557838308, 673514917, 585391780, 756175333, 446567711, 339703126, 938945364, 816836078, 447833005, 343499008, 809822665, 429467981, 54579461, 163738383, 670188206, 10564604, 944604963, 833814875, 742926336, 228778994, 524284953, 572854852, 20361038, 61083114, 100122111, 300366333, 143197059, 429591177, 542205770, 626617303, 159440538, 478321614, 580457459, 741372370, 995544321, 986632949, 556332035, 668996098, 689371714, 68115128, 511395045, 534185128, 879914205, 639742601, 850993920, 552981746, 34605037, 103815111, 2443575, 7330725, 37699796, 113099388, 671664291, 14992859, 973214276, 919642814, 933623885, 800871641, 377150862, 131452579, 316655258, 949965774, 900869301, 702607889, 890824481, 672473429, 665901252, 997703749, 713966894, 141900668, 980749809, 942249413, 435930143, 307790422, 270202322, 810606966, 523239146, 569717431, 616137579, 848412730, 178657568, 535972704, 638323234, 914969695, 105538021, 316614063, 942887744, 828663218, 511574244, 534722725, 173450557, 520351671, 544992295, 634976878, 122291289, 366873867, 530654091, 591962266, 70388834, 211166502, 100925453, 302776359, 822855076, 468565214, 483470121, 450410356, 663919150, 991757443, 471955332, 415865989, 437175864, 311527585, 67712301, 203136903, 582810374, 748431115, 584135771, 752407306, 271745955, 815237865, 98874886, 296624658, 268632816, 805898448, 850309729, 550929173, 127686559, 383059677, 851364960, 554094866, 348255, 1044765, 269422265, 808266795, 607180854, 821542555, 65188846, 195566538, 272640573, 817921719, 13888949, 41666847, 193824497, 581473491, 984668687, 954006047, 326179638, 978538914, 733352424, 200057258, 560662931, 681988786, 480903100, 442709293, 184908703, 554726109, 781135437, 343406297, 890831907, 672495707, 225338450, 676015350, 236353314, 709059942, 174883162, 524649486, 964926773, 894780305, 541773554, 625320655, 766232673, 298698005, 623416271, 870248806, 841455083, 524365235, 291814419, 875443257, 880456884, 641370638, 677186250, 31558736, 721680001, 165039989, 628514984, 885544945, 699768375, 99305111, 70787814, 212363442, 16768343, 50305029, 981411218, 944233640, 721034022, 163102052, 888889446, 666668324, 34478203, 103434609, 91809171, 275427513, 132052666, 396157998, 564796816, 694390441, 597364331, 792092986, 620820425, 862461268, 87980494, 263941482, 13459819, 40379457, 118411106, 355233318, 994188752, 982566242, 549373628, 648120877, 855263896, 565791674, 587040543, 761121622, 878965676, 636897014, 909405573, 728216705, 521545518, 564636547, 983935198, 951805580, 442967588, 328902757, 124176800, 372530400, 719607081, 158821229, 919598558, 758795660, 958624279, 875872823, 259971801, 779915403, 364006576, 92019721, 81638940, 244916820, 881948500, 645845486, 164356219, 493068657, 892403018, 677209040, 15751410, 47254230, 732350267, 197050787, 124143910, 372431730, 120868343, 362605029, 470697309, 412091920, 418456628, 255369877, 721837933, 165513785, 131787457, 395362371, 615290676, 845872021, 296616785, 889850355, 433478574, 300435715, 121445324, 364335972, 307445422, 922336266, 765876155, 297628451, 255709935, 767129805, 519088440, 557265313, 564236602, 692709799, 960671678, 882015020, 735518476, 206555414, 599209567, 797628694, 557572857, 672718564, 415699524, 247098565, 830986095, 492958271, 166082805, 498248415, 548807313, 646421932, 698912853, 96738545, 1203486, 3610458, 483319001, 449956996, 916734995, 750204971, 995718206, 987154604, 220946658, 662839974, 891588854, 674766548, 713537726, 140613164, 964019162, 892057472, 177835762, 533507286, 632260765, 896782288, 874841213, 624523625, 715439857, 146319557, 877819776, 633459314, 303782966, 911348898, 574731937, 724195804, 520037160, 560111473, 961332034, 883996088, 46361894, 139085682, 603748154, 811244455, 242032994, 726098982, 838520619, 515561843, 633560523, 900681562, 925931663, 777794975, 853236234, 559708688, 766327026, 298981064, 420635665, 261906988, 559263573, 677790712, 380710347, 142131034, 156486715, 469460145, 353019488, 59058457, 427679937, 283039804, 163808941, 491426823, 569004985, 707014948, 740624640, 221873906, 761449487, 284348447, 153088784, 459266352, 817604074, 452812208, 649429345, 948288028, 619804438, 859413307, 390610883, 171832642, 70210147, 210630441, 35338139, 106014417, 949784712, 849354122, 173843517, 521530551, 595160318, 785480947, 691218962, 73656872, 577791553, 733374652, 224010424, 672031272, 81598614, 244795842, 926743650, 780230936, 818209235, 454627691, 298139513, 894418539, 666822750, 468236, 444066196, 332198581, 547314114, 641942335, 208627720, 625883160, 425371600, 276114793, 873892610, 621677816, 744569968, 233709890, 115990032, 347970096, 764436466, 293309384, 897170619, 691511843, 679087581, 37262729, 331042598, 993127794, 996965065, 990895181, 194981707, 584945121, 302963617, 908890851, 539529748, 618589237, 833806058, 501418160, 60569782, 181709346, 761674190, 285022556, 328743872, 986231616, 626635201, 879905596, 258686404, 776059212, 536576240, 609728713, 823002143, 469006415, 243566483, 730699449, 763191743, 289575215, 82105646, 246316938, 89637426, 268912278, 440066324, 320198965, 896424420, 689273246, 956747117, 870241337, 269294268, 807882804, 76002121, 228006363, 757730342, 273191012, 604557296, 813671881, 166560632, 499681896, 557966199, 673898590, 376689844, 130069525, 983952921, 951858749, 235954006, 707862018, 695102097, 85306277, 70026898, 210080694, 928265868, 784797590, 898225219, 694675643, 340647693, 21943072, 382237149, 146711440, 442047482, 326142439, 887317833, 661953485, 154321726, 462965178, 567869693, 703609072, 901194636, 703583894, 637644928, 912934777, 768905440, 306716306, 660341425, 981024268, 823924512, 471773522, 520340046, 561020131, 730887538, 192662600, 679681441, 39044309, 390581963, 171745882, 513035629, 539106880, 27073741, 81221223, 432779644, 298338925, 389260783, 167782342, 715343947, 146031827, 669195865, 7587581, 521833226, 565499671, 931623946, 794871824, 404650047, 213950134, 810455432, 431366282, 318218, 954654, 267559159, 802677477, 157271473, 471814419, 648768942, 946306819, 999950873, 999852605, 90387710, 271163130, 21390188, 64170564, 375087974, 125263915, 598406978, 795220927, 185803054, 557409162, 484733001, 454198996, 768715562, 306146672, 968179222, 904537652, 442103815, 326311438, 790924458, 372773360, 725064852, 175194542, 762130393, 286391165, 988723450, 966170336, 13488818, 40466454, 126850681, 380552043, 717670435, 153011291, 505842786, 517528351, 761508121, 284524349, 214019555, 642058665, 128241222, 384723666, 546475398, 639426187, 39543766, 118631298, 633338431, 900015286, 217083499, 651250497, 417234126, 251702371, 116078606, 348235818, 455795456, 367386361, 442120528, 326361577, 115042202, 345126606, 296065552, 888196656, 76644766, 229934298, 931069128, 793207370, 269134578, 807403734, 818342652, 455027942, 671357565, 14072681, 77628032, 232884096, 981639958, 944919860, 972615652, 917846942, 860747822, 582243452, 199934474, 599803422, 816374943, 449124815, 880484938, 641454800, 75277586, 225832758, 696706016, 90118034, 671464403, 14393195, 689646853, 68940545, 996211656, 988634954, 125070918, 375212754, 916081470, 748244396, 336864182, 10592539, 828018071, 484054199, 482702321, 448106956, 204715933, 614147799, 989829168, 969487490, 678738460, 36215366, 755414017, 266242037, 587685426, 763056271, 900865361, 702596069, 923216786, 769650344, 783100679, 349302023, 687050692, 61152062, 409074493, 227223472, 925328064, 775984178, 653362314, 960086935, 667139044, 1417118, 344831985, 34495948, 286295295, 858885885, 92185458, 276556374, 858207746, 574623224, 38700195, 116100585, 340213529, 20640580, 878409396, 635228174, 629667694, 889003075, 612001554, 836004655, 71076081, 213228243, 926662207, 779986607, 745924377, 237773117, 502927810, 508783423, 981269218, 943807640, 729652933, 188958785, 37910992, 113732976, 660741956, 982225861, 532465428, 597396277, 975474096, 926422274, 955136576, 865409714, 157471732, 472415196, 91538223, 274614669, 308489801, 925469403, 307083371, 921250113, 982364699, 947094083, 317900545, 953701635, 477418250, 432254743, 232969287, 698907861, 430682784, 292048345, 584850804, 754552405, 59870143, 179610429, 484786779, 454360330, 265806462, 797419386, 786335925, 359007761, 220595448, 661786344, 330429889, 991289667, 157648010, 472944030, 650771322, 952313959, 931533165, 794599481, 117917081, 353751243, 330913773, 992741319, 353853465, 61560388, 982827181, 948481529, 633248474, 899745415, 219445020, 658335060, 148296903, 444890709, 716375858, 149127560, 784293320, 352879946, 82440329, 247320987, 31397222, 94191666, 687760015, 63280031, 974434801, 923304389, 293305860, 879917580, 619680403, 859041202, 62114861, 186344583, 632839161, 898517476, 121677531, 365032593, 152726337, 458179011, 601502246, 804506731, 764440643, 293321915, 508320332, 524960989, 317043344, 951130032, 448986483, 346959442, 565580241, 696740716, 11627769, 34883307, 747822098, 243466280, 930832344, 792497018, 472310544, 416931625, 971866803, 915600395, 630935332, 892805989, 293812, 881436, 922656044, 767968118, 27316412, 81949236, 819339069, 458017193, 292822571, 878467713, 655002924, 965008765, 6773224, 20319672, 107921172, 323763516, 354954768, 64864297, 234070597, 702211791, 151520516, 454561548, 967945804, 903837398, 497517689, 492553060, 399526969, 198580900, 303765853, 911297559, 372251193, 116753572, 348996215, 46988638, 623853205, 871559608, 834368680, 503106026, 555236333, 665708992, 223626891, 670880673, 214274209, 642822627, 136179720, 408539160, 380654582, 141963739, 34697624, 104092872, 702815019, 108445043, 468190970, 404572903, 821303230, 463909676, 103581038, 310743114, 367537131, 102611386, 286049064, 858147192, 718507669, 155522993, 448921932, 346765789, 962306215, 886918631, 400365351, 201096046, 612811716, 838435141, 240257855, 720773565, 552695343, 658086022, 624794931, 874384786, 101440264, 304320792, 665967007, 997901014, 280578193, 841734579, 819300695, 457902071, 295699281, 887097843, 255106672, 765320016, 526361586, 579084751, 250407347, 751222041, 685042299, 55126883, 46635919, 139907757, 890130570, 670391696, 231298764, 693896292, 447016599, 341049790, 557993091, 673979266, 571909173, 715727512, 489953197, 469859584, 499932405, 499797208, 615580592, 846741769, 164523253, 493569759, 278636374, 835909122, 522921413, 568764232, 491092336, 473277001, 606891385, 820674148, 913152764, 739458278, 690404126, 71212364, 388965917, 166897744, 379155746, 137467231, 425561015, 276683038, 942633621, 827900849, 370590171, 111770506, 462075606, 386226811, 957438126, 872314364, 163664056, 490992168, 848860871, 546582599, 323015494, 969046482, 566766505, 700299508, 699834328, 99502970, 115049299, 345147897, 927399644, 782198918, 449930777, 349792324, 426760037, 280280104, 772012278, 316036820, 674613446, 23840324, 219497148, 658491444, 713210548, 139631630, 402120770, 206362303, 41793390, 125380170, 486851282, 460553839, 139708331, 419124993, 329003325, 987009975, 324032646, 972097938, 745844605, 237533801, 14485579, 43456737, 116493743, 349481229, 616755463, 850266382, 770748289, 312244853, 833075745, 499227221, 722531167, 167593487, 921759452, 765278342, 198225518, 594676554, 551078231, 653234686, 241159465, 723478395, 198754784, 596264352, 424812284, 274436845, 428594728, 285784177, 25357286, 76071858, 444379080, 333137233, 822997032, 468991082, 242714331, 728142993, 586776200, 760328593, 356064365, 68193088, 623066786, 869200351, 668829407, 6488207, 600742172, 802226509, 843829465, 531488381, 817971988, 453915950, 169777416, 509332248, 91876016, 275628048, 529076152, 587228449, 79744274, 239232822, 788595391, 365786159, 769823313, 309469925, 600798982, 802396939, 198800792, 596402376, 116419188, 349257564, 516437333, 549311992, 47060050, 141180150, 800696631, 402089879, 99396512, 298189536, 609650579, 828951730, 103717269, 311151807, 585879014, 757637035, 511403726, 534211171, 336769282, 10307839, 407681374, 223044115, 207486170, 622458510, 250947705, 752843115, 322605421, 967816263, 107910200, 323730600, 155994098, 467982294, 618643304, 855929905, 910537522, 731612552, 61901079, 185703237, 988363671, 965090999, 776215577, 328646717, 832790684, 498372038, 790437339, 371312003, 888192807, 664578407, 464677206, 394031611, 357243195, 71729578, 485881095, 457643278, 442022248, 326066737, 114960045, 344880135, 415733128, 247199377, 278866844, 836600532, 605580355, 816741058, 747396347, 242189027, 365177790, 95533363, 798021850, 394065536, 585004292, 755012869, 258041166, 774123498, 101816614, 305449842, 796403234, 389209688, 400151648, 200454937, 977402014, 932206028, 149987045, 449961135, 351316941, 53950816, 237883211, 713649633, 625408727, 876226174, 55308103, 165924309, 102958639, 308875917, 217177754, 651533262, 938230353, 814691045, 666275068, 998825197, 395953000, 187858993, 157894524, 473683572, 949241668, 847724990, 317957489, 953872467, 464908071, 394724206, 671827116, 15481334, 463931834, 391795495, 21919315, 65757945, 565754308, 697262917, 401925433, 205776292, 340518254, 21554755, 558481972, 675445909, 895218926, 685656764, 332674004, 998022012, 46070265, 138210795, 850411330, 551233976, 454956792, 364870369, 869185335, 607555991, 782280787, 346842347, 884469522, 653408552, 681910229, 45730673, 900559799, 701679383, 501934332, 505802989, 154692431, 464077293, 484986860, 454960573, 649404160, 948212473, 406539419, 219618250, 48684217, 146052651, 484571401, 453714196, 468884943, 406654822, 447909667, 343728994, 439987478, 319962427, 951050323, 853150955, 732706048, 198118130, 599653230, 798959683, 503969593, 511908772, 11471713, 34415139, 404552444, 213657325, 382711798, 148135387, 945519733, 836559185, 689586451, 68759339, 612069433, 836208292, 933197405, 799592201, 586710856, 760132561, 111411222, 334233666, 853535482, 560606432, 117044819, 351134457, 14495449, 43486347, 75377738, 226133214, 718121602, 154364792, 483304365, 449913088, 629459395, 888378178, 268836752, 806510256, 427201231, 281603686, 912864736, 738594194, 158405899, 475217697, 993962141, 981886409, 216293321, 648879963, 941730943, 825192815, 859869335, 579607991, 428710250, 286130743, 612916968, 838750897, 433292718, 299878147, 624996426, 874989271, 334732774, 4198315, 950615840, 851847506, 756553223, 269659655, 81084707, 243254121, 433216326, 299648971, 98477543, 295432629, 6822271, 20466813, 477211427, 431634274, 299371935, 898115805, 365979386, 97938151, 369059472, 107178409, 966303297, 898909877, 962678129, 888034373, 420536785, 261610348, 24173439, 72520317, 331262975, 993788925, 39729106, 119187318, 265689129, 797067387, 760811631, 282434879, 342358863, 27076582, 777607979, 332823923, 115407837, 346223511, 205172789, 615518367, 529374054, 588122155, 130890683, 392672049, 213571799, 640715397, 397986457, 193959364, 505435702, 516307099, 218414795, 655244385, 754867614, 264602828, 941241580, 823724726, 107657484, 322972452, 992925649, 978776933, 675139803, 25419395, 659501341, 978504016, 732416745, 197250221, 340721736, 22165201, 912129750, 736389236, 415079112, 245237329, 471318825, 413956468, 531736532, 595209589, 919159814, 757479428, 230641731, 691925193, 807143336, 421429994, 882529591, 647588759, 735321377, 205964117, 580604100, 741812293, 316595998, 949787994, 536692569, 610077700, 236285545, 708856635, 787558768, 362676290, 97323945, 291971835, 520248177, 560744524, 848434847, 545304527, 565309929, 695929780, 734801499, 204404483, 223891430, 671674290, 974984829, 924954473, 415858081, 247574236, 494967892, 484903669, 471036301, 413108896, 552967500, 658902493, 568035035, 704105098, 666413452, 999240349, 579023539, 737070610, 58949606, 176848818, 705674617, 117023837, 744503088, 233509250, 977839776, 933519314, 238350650, 715051950, 367253821, 101761456, 739959063, 219877175, 247009672, 741029016, 14947155, 44841465, 824822589, 474467753, 989068352, 967205042, 625870508, 877611517, 743058190, 229174556, 729204383, 187613135, 497943673, 493831012, 362743619, 88230850, 21498447, 64495341, 114876764, 344630292, 586513501, 759540496, 646970980, 940912933, 458377373, 375132112, 658464725, 975394168, 270965734, 812897202, 859291237, 577873697, 28142965, 84428895, 58645674, 175937022, 148958208, 446874624, 6159274, 18477822, 434954983, 304864942, 776375083, 329125235, 745627654, 236882948, 784565286, 353695844, 760057113, 280171325, 487150068, 461450197, 901664003, 704991995, 405754322, 217262959, 866175723, 598527155, 524115619, 572346850, 81107603, 243322809, 148118030, 444354090, 451336801, 354010396, 602415618, 807246847, 326004915, 978014745, 718817299, 156451883, 826309494, 478928468, 879635379, 638906123, 972240866, 916722584, 269707243, 809121729, 918292660, 754877966, 565010094, 695030275, 501956375, 505869118, 230809700, 692429100, 260326983, 780980949, 950763298, 852289880, 888111237, 664333697, 397920913, 193762732, 296911099, 890733297, 618633182, 855899539, 683149783, 49449335, 563396619, 690189850, 802979013, 408937025, 570017475, 710052418, 142830659, 428491977, 674583778, 23751320, 166571542, 499714626, 673588788, 20766350, 936206462, 808619372, 951723550, 855170636, 333896505, 1689508, 161906021, 485718063, 919707633, 759122885, 130677509, 392032527, 578987986, 736963951, 555988826, 667966471, 628780431, 886341286, 106000262, 318000786, 613519729, 840559180, 172602117, 517806351, 739185637, 217556897, 977361219, 932083643, 5715019, 17145057, 599816662, 799449979, 756707668, 270122990, 399470178, 198410527, 491605365, 474816088, 876491896, 629475674, 398426524, 195279565, 119943960, 359831880, 878632554, 635897648, 227954077, 683862231, 139720499, 419161497, 600243836, 800731501, 459568150, 378704443, 323701949, 971105847, 628879756, 886639261, 752319850, 256959536, 405477706, 216433111, 338994190, 16982563, 6665119, 19995357, 505383342, 516150019, 605569489, 816708460, 790166034, 370498088, 262028838, 786086514, 324637079, 973911237, 15900333, 47700999, 114226952, 342680856, 401494436, 204483301, 271563645, 814690935, 394210782, 182632339, 882503162, 647509472, 983746368, 951239090, 521968240, 565904713, 696483074, 89449208, 441433497, 324300484, 578473629, 735420880, 282684295, 848052885, 891748602, 675245792, 345924031, 37772086, 161458229, 484374687, 309091782, 927275346, 540822734, 622468195, 985376268, 956128790, 163492358, 490477074, 262238181, 786714543, 279075512, 837226536, 990898827, 972696467, 476350727, 429052174, 236244668, 708734004, 652649509, 957948520, 314096281, 942288843, 614221035, 842663098, 93971343, 281914029, 389304810, 167914423, 838903656, 516710954, 840253579, 520760723, 727729623, 183188855, 808864292, 426592862, 852598350, 557795036, 78886616, 236659848, 719856282, 159568832, 649390315, 948170938, 357253777, 71761324, 712227897, 136683677, 157392528, 472177584, 484825467, 454476394, 385361191, 156083566, 364714728, 94144177, 917302839, 751908503, 144164486, 432493458, 399672308, 199016917, 606493354, 819480055, 525948417, 577845244, 998160845, 994482521, 537114078, 611342227, 207289241, 621867723, 279326042, 837978126, 377190994, 131572975, 611726706, 835180111, 612887159, 838661470, 934198953, 802596845, 893448111, 680344319, 935307585, 805922741, 827924001, 483771989, 921401786, 764205344, 40107437, 120322311, 284972607, 854917821, 681149134, 43447388, 959926660, 879779966, 363531862, 90595579, 778420256, 335260754, 563996258, 691988767, 74403567, 223210701, 353242207, 59726614, 697270103, 91810295, 853264292, 559792862, 688777822, 66333452, 752720748, 258162230, 988381369, 965144093, 543349773, 630049312, 618338055, 855014158, 970053274, 910159808, 78198444, 234595332, 959189446, 877568324, 249502295, 748506885, 868275249, 604825733, 992850760, 978552266, 937294763, 811884275, 883614797, 650844377, 793509679, 380529023, 21018043, 63054129, 108447321, 325341963, 553652665, 660957988, 408025204, 224075605, 160789449, 482368347, 686566238, 59698700, 27042530, 81127590, 853294858, 559884560, 40763718, 122291154, 582430274, 747290815, 727482380, 182447126, 754932711, 264798119, 763251908, 289755710, 794349080, 383047226, 410292426, 230877271, 972642207, 917926607, 576697833, 730093492, 266649903, 799949709, 341107045, 23321128, 17721901, 53165703, 131403861, 394211583, 353693661, 61080976, 585570659, 756711970, 165667284, 497001852, 224528235, 673584705, 494154422, 482463259, 553587093, 660761272, 231053899, 693161697, 259324778, 777974334, 909081460, 727244366, 704456038, 113368100, 682238423, 46715255, 921483856, 764451554, 609357333, 828071992, 807332695, 421998071, 382973555, 148920658, 537691110, 613073323, 556998478, 670995427, 779895808, 339687410, 384677966, 154033891, 152676640, 458029920, 640038717, 920116144, 8174344, 24523032, 3481811, 10445433, 718167265, 154501781, 851287563, 553862675, 225734085, 677202255, 901652528, 704957570, 573116233, 719348692, 800822372, 402467102, 377446837, 132340504, 724430894, 173292668, 270866345, 812599035, 976456407, 929369207, 902690060, 708070166, 963988264, 891964778, 617889211, 853667626, 780777352, 342332042, 796306529, 388919573, 13000519, 39001557, 528500497, 585501484, 744937562, 234812672, 572082820, 716248453, 9974150, 29922450, 447180938, 341542807, 268816681, 806450043, 851088345, 553265021, 358522822, 75568459, 329602933, 988808799, 298251037, 894753111, 575383600, 726150793, 849908330, 549724976, 15124361, 45373083, 289793505, 869380515, 210602569, 631807707, 789094671, 367283999, 785788580, 357365726, 217230948, 651692844, 561133836, 683401501, 289003730, 867011190, 747366459, 242099363, 565782012, 697346029, 780593475, 341780411, 465019637, 395058904, 164410293, 493230879, 351254710, 53764123, 542963317, 628889944, 529629102, 588887299, 887955493, 663866465, 733417719, 200253143, 332446755, 997340265, 184732397, 554197191, 208819864, 626459592, 948056494, 844169468, 840197666, 520592984, 879911992, 639735962, 589591115, 768773338, 13596741, 40790223, 583344971, 750034906, 188234282, 564702846, 516655626, 549966871, 643857532, 931572589, 875950290, 627850856, 810555474, 431666408, 225396810, 676190430, 641521795, 924565378, 885041910, 655125716, 845759377, 537278117, 436228396, 308685181, 989906191, 969718559, 812362789, 437088353, 883632749, 650898233, 79470918, 238412754, 824709448, 474128330, 760937760, 282813266, 374341087, 123023254, 506691761, 520075276, 394357073, 183071212, 264812422, 794437266, 259471858, 778415574, 75343423, 226030269, 378596105, 135788308, 503371285, 510113848, 775018136, 325054394, 180299147, 540897441, 103585687, 310757061, 499339504, 498018505, 430047139, 290141410, 585230254, 755690755, 863763596, 591290774, 41809524, 125428572, 624512053, 873536152, 378947286, 136841851, 49078270, 147234810, 744955099, 234865283, 642010542, 926031619, 354821114, 64463335, 376241594, 128724775, 863563465, 590690381, 161166511, 483499533, 846838028, 540514070, 412964270, 238892803, 640233792, 920701369, 834094183, 502282535, 654585554, 963756655, 235908691, 707726073, 966070969, 898212893, 695145078, 85435220, 838821349, 516464033, 546959346, 640878031, 592337655, 777012958, 346054017, 38162044, 294634628, 883903884, 744168699, 232506083, 325659950, 976979850, 408307040, 224921113, 525645031, 576935086, 834446447, 503339327, 529318429, 587955280, 754750813, 264252425, 997563696, 992691074, 733777317, 201331937, 339987512, 19962529, 474857053, 424571152, 362953016, 88859041, 263847717, 791543151, 608012633, 824037892, 457315520, 371946553, 590663190, 771989563, 257937936, 773813808, 681358272, 44074802, 744146644, 232439918, 592994073, 778982212, 632811145, 898433428, 983970103, 951910295, 760193602, 280580792, 94176858, 282530574, 265973868, 797921604, 7689419, 23068257, 379446974, 138340915, 562552571, 687657706, 182191319, 546573957, 778808720, 336426146, 441385469, 324156400, 872240522, 616721552, 270947494, 812842482, 9700807, 29102421, 44478204, 133434612, 590159696, 770479081, 278883171, 836649513, 917551271, 752653799, 479010966, 437032891, 323389506, 970168518, 923384119, 770152343, 156043937, 468131811, 386086325, 158258968, 98045036, 294135108, 506444545, 519333628, 324851475, 974554425, 977682411, 933047219, 562556768, 687670297, 539079786, 617239351, 819791630, 459374876, 134899816, 404699448, 193085808, 579257424, 981522703, 944568095, 830407759, 491223263, 488630231, 465890686, 543918909, 631756720, 796822921, 390468749, 3695898, 11087694, 900011636, 700034894, 699695457, 99086357, 438161208, 314483617, 492416906, 477250711, 843140801, 529422389, 629404562, 888213679, 25808499, 77425497, 729779906, 189339704, 170242583, 510727749, 435118255, 305354758, 199661295, 598983885, 957429903, 872289695, 801918862, 405756572, 606741840, 820225513, 318333821, 955001463, 879438131, 638314379, 68646018, 205938054, 640639587, 921918754, 283918858, 851756574, 167493237, 502479711, 655184883, 965554642, 576972247, 730916734, 345729096, 37187281, 848195673, 544587005, 189473286, 568419858, 648033014, 944099035, 347166262, 41498779, 392363656, 177090961, 452041289, 356123860, 152973633, 458920899, 20312106, 60936318, 480057063, 440171182, 873589357, 620768057, 916877063, 750631175, 232096239, 696288717, 951552408, 854657210, 912274381, 736823129, 382502455, 147507358, 970524885, 911574641, 582837023, 748511062, 74369526, 223108578, 938541823, 815625455, 570030128, 710090377, 344623240, 33869713, 677856204, 33568598, 464197517, 392592544, 165953935, 497861805, 3749093, 11247279, 570925441, 712776316, 662166575, 986499718, 310596741, 931790223, 717675709, 153027113, 312568302, 937704906, 130507013, 391521039, 699492569, 98477693, 138895061, 416685183, 541619196, 624857581, 994495982, 983487932, 250343003, 751029009, 863184545, 589553621, 984075563, 952226675, 894943693, 684831065, 600801532, 802404589, 940512415, 821537231, 262523331, 787569993, 36703647, 110110941, 894583928, 683751770, 505500536, 516501601, 568550228, 705650677, 160783396, 482350188, 588443103, 765329302, 640500262, 921500779, 781824234, 345472688, 448099935, 344299798, 658282180, 974846533, 412793052, 238379149, 329076388, 987229164, 904345139, 713035403, 125154502, 375463506, 696082636, 88247894, 772243692, 316731062, 778134161, 334402469, 112856181, 338568543, 440664992, 321994969, 396399680, 189199033, 111272159, 333816477, 727815291, 183445859, 58652859, 175958577, 92434809, 277304427, 142424018, 427272054, 893950653, 681851945, 862774311, 588322919, 833689517, 501068537, 567100932, 701302789, 608358868, 825076597, 163577098, 490731294, 315739721, 947219163, 641842894, 925528675, 915170002, 745509992, 528012841, 584038516, 86314945, 258944835, 346859995, 40579978, 101612819, 304838457, 407544897, 222634684, 941552603, 824657795, 931261859, 793785563, 65294597, 195883791, 366433658, 99300967, 313880454, 941641362, 932358823, 797076455, 948259485, 844778441, 161884732, 485654196, 134506022, 403518066, 965306083, 895918235, 614728407, 844185214, 736056887, 208170647, 743267673, 229803005, 736661834, 209985488, 566526407, 699579214, 723041561, 169124669, 510440532, 531321589, 118481469, 355444407, 354896784, 64690345, 284134347, 852403041, 513074675, 539224018, 69861117, 209583351, 23488062, 70464186, 755217383, 265652135, 929961229, 789883673, 271946276, 815838828, 228634389, 685903167, 617896185, 853688548, 196006084, 588018252, 966015888, 898047650, 71898364, 215695092, 106562595, 319687785, 962563356, 887690054, 776336879, 329010623, 673207831, 19623479, 635064240, 905192713, 77147583, 231442749, 807109810, 421329416, 461045338, 383136007, 665662662, 996987979, 862478753, 587436245, 185069797, 555209391, 144312693, 432938079, 100919860, 302759580, 835475323, 506425955, 18744716, 56234148, 303317336, 909952008, 70442890, 211328670, 64918290, 194754870, 333562088, 686257, 615371129, 846113380, 254233249, 762699747, 493224022, 479672059, 143670612, 431011836, 497840117, 493520344, 37615314, 112845942, 335061334, 5183995, 126830165, 380490495, 794487426, 383462264, 629338078, 888014227, 178270833, 534812499, 867779071, 603337199, 547409195, 642227578, 752845921, 258537749, 46530872, 139592616, 961015340, 883046006, 385179413, 155538232, 488980403, 466941202, 414002081, 242006236, 829733985, 489201941, 52682250, 158046750, 598776060, 796328173, 43209754, 129629262, 685251188, 55753550, 221046452, 663139356, 621575700, 864727093, 576869136, 730607401, 373607485, 120822448, 82575952, 247727856, 761377590, 284132756, 23691180, 71073540, 26983832, 80951496, 583453782, 750361339, 345212001, 35635996, 179567851, 538703553, 18636717, 55910151, 200687345, 602062035, 204593688, 613781064, 244467894, 733403682, 462448324, 387344965, 344397544, 33192625, 351871624, 55614865, 383469758, 150409267, 6986226, 20958678, 831948315, 495844931, 558112638, 674337907, 938411705, 815235101, 178097373, 534292119, 216677786, 650033358, 785098387, 355295147, 552695927, 658087774, 910274985, 730824941, 46178842, 138536526, 343436631, 30309886, 53483591, 160450773, 209563553, 628690659, 457101191, 371303566, 387394951, 162184846, 206945094, 620835282, 558918515, 676755538, 166834550, 500503650, 929423439, 788270303, 115049344, 345148032, 140505878, 421517634, 831589566, 494768684, 408309793, 224929372, 74459294, 223377882, 364758330, 94274983, 999557810, 998673416, 75080495, 225241485, 307823888, 923471664, 114474493, 343423479, 845169521, 535508549, 569804225, 709412668, 758929285, 276787841, 196518523, 589555569, 894126511, 682379519, 106526792, 319580376, 918482155, 755446451, 122918323, 368754969, 317965103, 953895309, 959086561, 877259669, 778238766, 334716284, 690370558, 71111660, 995834419, 987503243, 185861235, 557583705, 98569232, 295707696, 623351677, 870055024, 327853317, 983559951, 702349152, 107047442, 627405997, 882217984, 469693222, 409079659, 532114441, 596343316, 341679370, 25038103, 416153239, 248459710, 644580140, 933740413, 408485830, 225457483, 31182373 };
            var dp2 = new int[] { 1, 0, 2, 0, 8, 0, 40, 0, 224, 0, 1344, 0, 8448, 0, 54912, 0, 366080, 0, 2489344, 0, 17199104, 0, 120393728, 0, 852017152, 0, 85836758, 0, 818024659, 0, 680678741, 0, 200244901, 0, 801795936, 0, 118496330, 0, 876872842, 0, 85341067, 0, 454360680, 0, 919566807, 0, 396751007, 0, 463567555, 0, 186893853, 0, 745420218, 0, 929610189, 0, 776353114, 0, 700283630, 0, 556997924, 0, 747109146, 0, 887015263, 0, 959528441, 0, 375817728, 0, 881269234, 0, 872444890, 0, 809313324, 0, 610102453, 0, 397788858, 0, 139055568, 0, 787000094, 0, 518233245, 0, 95438684, 0, 604725822, 0, 245269374, 0, 133575565, 0, 785210627, 0, 293470128, 0, 237328179, 0, 19254083, 0, 303435569, 0, 415385919, 0, 230779349, 0, 323155651, 0, 15997551, 0, 703559875, 0, 965673477, 0, 88301633, 0, 488752736, 0, 863054116, 0, 221261118, 0, 870801106, 0, 428133596, 0, 361413314, 0, 98322254, 0, 515236731, 0, 30969691, 0, 546719323, 0, 965745534, 0, 492317090, 0, 523150515, 0, 154001268, 0, 531361285, 0, 965872452, 0, 679736549, 0, 111180166, 0, 26182835, 0, 306751364, 0, 207998192, 0, 3541348, 0, 710739372, 0, 619302020, 0, 723087271, 0, 400262281, 0, 913689542, 0, 252455661, 0, 394310414, 0, 191205483, 0, 704149794, 0, 188695045, 0, 528426217, 0, 159225680, 0, 742840456, 0, 490996395, 0, 491596587, 0, 789482375, 0, 280412137, 0, 88095610, 0, 294193404, 0, 892850976, 0, 273060587, 0, 735196074, 0, 335199776, 0, 414718218, 0, 591551210, 0, 49245026, 0, 832932986, 0, 241489570, 0, 360117687, 0, 571739568, 0, 655515849, 0, 758585255, 0, 567778291, 0, 274284216, 0, 855554662, 0, 884893187, 0, 6105462, 0, 149068356, 0, 977640011, 0, 839866485, 0, 374026936, 0, 882554309, 0, 910509819, 0, 428669562, 0, 817102234, 0, 207642814, 0, 329175989, 0, 649298504, 0, 88298904, 0, 163951634, 0, 296708371, 0, 361933868, 0, 624252970, 0, 49645684, 0, 216314381, 0, 302808669, 0, 48312060, 0, 188081049, 0, 517098581, 0, 518312148, 0, 961851065, 0, 61646140, 0, 154698606, 0, 610993097, 0, 467863121, 0, 296548771, 0, 591588904, 0, 926677200, 0, 339283375, 0, 733661685, 0, 785056996, 0, 199274985, 0, 396853769, 0, 298944679, 0, 291638596, 0, 807633196, 0, 184536421, 0, 292552762, 0, 768480628, 0, 469448913, 0, 165261730, 0, 438761682, 0, 917013315, 0, 178505502, 0, 65742404, 0, 443370915, 0, 443869376, 0, 696952429, 0, 844069816, 0, 728413236, 0, 195090972, 0, 807311056, 0, 264880746, 0, 306596990, 0, 386417020, 0, 861748550, 0, 824656995, 0, 486105728, 0, 123105416, 0, 440770037, 0, 277318293, 0, 69213982, 0, 636154423, 0, 983106420, 0, 220779925, 0, 784157259, 0, 223205439, 0, 866709827, 0, 415781108, 0, 991225951, 0, 430355934, 0, 913498899, 0, 313341727, 0, 856682006, 0, 637740780, 0, 733129817, 0, 63030628, 0, 666273329, 0, 110210196, 0, 949728721, 0, 422598309, 0, 148908717, 0, 417804512, 0, 278954835, 0, 613447125, 0, 915493081, 0, 982666157, 0, 699645025, 0, 842894737, 0, 320813127, 0, 737025015, 0, 460311349, 0, 357613497, 0, 338622554, 0, 579056942, 0, 844673559, 0, 472360526, 0, 314645251, 0, 572726799, 0, 564290737, 0, 483823666, 0, 566527045, 0, 376866668, 0, 608167105, 0, 903841214, 0, 927442908, 0, 475993589, 0, 350691382, 0, 404625402, 0, 449749929, 0, 109219239, 0, 992592407, 0, 787272929, 0, 849471585, 0, 481392725, 0, 788792780, 0, 615108951, 0, 15510455, 0, 373308119, 0, 955428849, 0, 149773111, 0, 67331887, 0, 830425661, 0, 219057864, 0, 229582030, 0, 631170465, 0, 34952211, 0, 952632044, 0, 591329965, 0, 276074113, 0, 862113175, 0, 725579831, 0, 6579718, 0, 122916346, 0, 508819061, 0, 922280759, 0, 33023660, 0, 409377374, 0, 579201556, 0, 457557175, 0, 250187582, 0, 172594746, 0, 827458203, 0, 725592004, 0, 749446132, 0, 647279305, 0, 552236827, 0, 549393318, 0, 770729038, 0, 777460501, 0, 23619531, 0, 45060883, 0, 730776371, 0, 217958869, 0, 125498816, 0, 139347974, 0, 432509774, 0, 742550871, 0, 751440466, 0, 719647230, 0, 449958772, 0, 785537629, 0, 631390952, 0, 856121652, 0, 512352683, 0, 878792758, 0, 77058984, 0, 575209907, 0, 964084338, 0, 116217565, 0, 472909658, 0, 115444761, 0, 571907279, 0, 226570448, 0, 857432343, 0, 885421032, 0, 141673401, 0, 686229744, 0, 142388725, 0, 944064401, 0, 402419884, 0, 94510738, 0, 673407848, 0, 223063095, 0, 658110121, 0, 766844059, 0, 481498768, 0, 221640652, 0, 996803637, 0, 77446264, 0, 693514487, 0, 614179204, 0, 367668790, 0, 832105780, 0, 891070031, 0, 536469223, 0, 403585107, 0, 260520894, 0, 149397605, 0, 479315504, 0, 357033989, 0, 558177754, 0, 963267276, 0, 412109827, 0, 496432836, 0, 200951365, 0, 2698054, 0, 140027057, 0, 878760925, 0, 4271245, 0, 588232449, 0, 900878216, 0, 162682749, 0, 755336039, 0, 908569132, 0, 654598026, 0, 467981878, 0, 63572454, 0, 282806485, 0, 410857504, 0, 289987818, 0, 744159519, 0, 124991477, 0, 204279933, 0, 661836685, 0, 156531945, 0, 177892382, 0, 113297475, 0, 45352452, 0, 335628079, 0, 707673661, 0, 164244536, 0, 138897143, 0, 255777798, 0, 498274807, 0, 490458102, 0, 275939938, 0, 240078601, 0, 679292846, 0, 312039369, 0, 320225234, 0, 666918380, 0, 16657386, 0, 902574467, 0, 223789967, 0, 614065015, 0, 751191884, 0, 993236114, 0, 708270393, 0, 707944121, 0, 124586990, 0, 775529581, 0, 248872021, 0, 79012250, 0, 118938031, 0, 313766163, 0, 928739891, 0, 284418079, 0, 224257731, 0, 842116716, 0, 600532113, 0, 735832893, 0, 707418330, 0, 52881614, 0, 421408924, 0, 234173419, 0, 82639708, 0, 851370425, 0, 630921190, 0, 866880861, 0, 694223961, 0, 570761914, 0, 112163446, 0, 795165893, 0, 640261471, 0, 944048571, 0, 508849366, 0, 777295676, 0, 235046496, 0, 411991514, 0, 417962196, 0, 83113063, 0, 711940750, 0, 267024014, 0, 566723411, 0, 873343329, 0, 461060018, 0, 271529704, 0, 247217237, 0, 824534465, 0, 9153311, 0, 627439955, 0, 508579320, 0, 716579231, 0, 356194025, 0, 177431490, 0, 911965845, 0, 415193084, 0, 366824849, 0, 351696403, 0, 727740980, 0, 297736568, 0, 448937722, 0, 171767040, 0, 186199212, 0, 973822286, 0, 856732755, 0, 927799544, 0, 336039106, 0, 992181817, 0, 882116103, 0, 408925560, 0, 71157668, 0, 229367337, 0, 342387291, 0, 880726124, 0, 542227409, 0, 24592069, 0, 477884043, 0, 381497244, 0, 679629594, 0, 858807476, 0, 955356862, 0, 969901406, 0, 988720580, 0, 252349269, 0, 92391926, 0, 297913349, 0, 562029090, 0, 512320610, 0, 571689087, 0, 995454682, 0, 954946975, 0, 735269458, 0, 73332743, 0, 877952990, 0, 205860912, 0, 543466088, 0, 785725216, 0, 608082160, 0, 485226544, 0, 491266500, 0, 641564740, 0, 438542023, 0, 248116195, 0, 222665320, 0, 749972160, 0, 801483713, 0, 961619018, 0, 681191101, 0, 966108664, 0, 325923586, 0, 194074150, 0, 863479743, 0, 591951856, 0, 280471374, 0, 127943244, 0, 508858435, 0, 183145992, 0, 500099838, 0, 390837687, 0, 675997437, 0, 639153080, 0, 654111543, 0, 253778444, 0, 290914724, 0, 648032992, 0, 70201741, 0, 735404907, 0, 732883092, 0, 967140724, 0, 806891081, 0, 945649474, 0, 408937573, 0, 172897234, 0, 374979139, 0, 665496249, 0, 362074256, 0, 479904249, 0, 276841051, 0, 271855700, 0, 416868911, 0, 63121053, 0, 162874456, 0, 765536171, 0, 248181962, 0, 58333274, 0, 278650475, 0, 634412013, 0, 432217903, 0, 33550593, 0, 22005898, 0, 451798021, 0, 42691762, 0, 875424989, 0, 362190775, 0, 410371184, 0, 978683417, 0, 445343821, 0, 24662010, 0, 507073967, 0, 528704737, 0, 499972876, 0, 256926459, 0, 608485583, 0, 778127848, 0, 843701659, 0, 751268391, 0, 306344785, 0, 811066861, 0, 507834090, 0, 918031030, 0, 222494684, 0, 137583748, 0, 545350941, 0, 227715858, 0, 24826126, 0, 832564646, 0, 264237909, 0, 819687265, 0, 162966254, 0, 421675523, 0, 297926026, 0, 672261201, 0, 605072845, 0, 602445849, 0, 857469410, 0, 43198524, 0, 406463861, 0, 262822362, 0, 749039270, 0, 634287954, 0, 118326241, 0, 495402871, 0, 175552376, 0, 278554317, 0, 545024754, 0, 584633968, 0, 321686700, 0, 74633974, 0, 470923023, 0, 968714402, 0, 984423373, 0, 700496526, 0, 366505814, 0, 453390287, 0, 371064732, 0, 893908392, 0, 206132174, 0, 196389105, 0, 259300472, 0, 404051922, 0, 203062353, 0, 95043599, 0, 279202047, 0, 811865197, 0, 384640595, 0, 452572605, 0, 576734489, 0, 416077580, 0, 763340672, 0, 564426730, 0, 887377649, 0, 532100579, 0, 908024392, 0, 398954385, 0, 244717623, 0, 752415659, 0, 197242201, 0, 294744864, 0, 108741095, 0, 147660807, 0, 390424616, 0, 671825322, 0, 851008746, 0, 635185327, 0, 493485554, 0, 153357149, 0, 363790043, 0, 918031677, 0, 591734465, 0, 279313809, 0, 162736011, 0, 292048689, 0, 469220218, 0, 110218650, 0, 103258037, 0, 114670044, 0, 856088154, 0, 679682181, 0, 894718550, 0, 114132327, 0, 217016937, 0, 605071743, 0, 224890696, 0, 499775983, 0, 842872386, 0, 133747267, 0, 344808829, 0, 775962235, 0, 723274133, 0, 865359499, 0, 2388261, 0, 820660239, 0, 996834712, 0, 673302818, 0, 469098252, 0, 843995568, 0, 478745537, 0, 503902551, 0, 230513371, 0, 62485849, 0, 814161510, 0, 804992925, 0, 160603867, 0, 755902759, 0, 572189380, 0, 280384693, 0, 94070316, 0, 466870102, 0, 623430512, 0, 582341163, 0, 76449623, 0, 963663040, 0, 830722296, 0, 279520723, 0, 879137613, 0, 989110644, 0, 900778445, 0, 318655559, 0, 997367365, 0, 292922927, 0, 732504085, 0, 648139439, 0, 923259273, 0, 314416431, 0, 658533567, 0, 946717060, 0, 465614302, 0, 731590081, 0, 398371545, 0, 944467882, 0, 900120096, 0, 892988632, 0, 785476784, 0, 702966075, 0, 527268096, 0, 746803612, 0, 53590581, 0, 624487560, 0, 413320313, 0, 712268513, 0, 540066136, 0, 719816776, 0, 485401329, 0, 463971589, 0, 75242216, 0, 755247145, 0, 763943350, 0, 472534543, 0, 537357825, 0, 958528325, 0, 774217283, 0, 739299383, 0, 566185708, 0, 56713830, 0, 394581910, 0, 908854128, 0, 541983340, 0, 149898818, 0, 52082464, 0, 112727546, 0, 248574354, 0, 249051090, 0, 160528516, 0, 24649436, 0, 156657102, 0, 761297034, 0, 140182567, 0, 930758408, 0, 601096987, 0, 286424280, 0, 877421089, 0, 315072136, 0, 620037605, 0, 884713186, 0, 825422170, 0, 600690342, 0, 37623711, 0, 832000262, 0, 585799802, 0, 993509754, 0, 242304705, 0, 332972375, 0, 32500115, 0, 661130628, 0, 974374287, 0, 101402460, 0, 809529639, 0, 856660990, 0, 129908466, 0, 57858452, 0, 870748418, 0, 969505949, 0, 632584634, 0, 385861337, 0, 448662194, 0, 153928603, 0, 828898488, 0, 632628653, 0, 17871342, 0, 792064252, 0, 576970691, 0, 328794548, 0, 168473847, 0, 756173830, 0, 69615414, 0, 616685985, 0, 707271321, 0, 75866540, 0, 646136635, 0, 838334450, 0, 144766934, 0, 416206335, 0, 904725092, 0, 299572172, 0, 621717917, 0, 698094955, 0, 613590086, 0, 665893653, 0, 406948759, 0, 368626725, 0, 630149698, 0, 478864047, 0, 204263715, 0, 101149122, 0, 58251296, 0, 287223785, 0, 109044626, 0, 400203870, 0, 69344263, 0, 155236236, 0, 338928056, 0, 86500068, 0, 50958763, 0, 367759406, 0, 467578990, 0, 642308169, 0, 834948831, 0, 861147824, 0, 694449681, 0, 436149293, 0, 590959451, 0, 932718790, 0, 921553592, 0, 775184619, 0, 94404653, 0, 19508264, 0, 878842913, 0, 602387158, 0, 574559324, 0, 534029210, 0, 213039327, 0, 346917827, 0, 418901106, 0, 712038800, 0, 426583884, 0, 558274339, 0, 589360138, 0, 94056392, 0, 447995734, 0, 210225686, 0, 487192497, 0, 56223836, 0, 172561181, 0, 548531181, 0, 244662484, 0, 798431341, 0, 820474219, 0, 379217316, 0, 137790119, 0, 44221964, 0, 935205239, 0, 640371724, 0, 706491800, 0, 622841550, 0, 151700066, 0, 585886802, 0, 137673839, 0, 709957, 0, 547541089, 0, 807671254, 0, 732018573, 0, 665002262, 0, 633768030, 0, 763405879, 0, 893113902, 0, 461495581, 0, 241308591, 0, 727185281, 0, 660880967, 0, 273766326, 0, 865755361, 0, 975268223, 0, 378776218, 0, 87591447, 0, 264679523, 0, 36403414, 0, 355761239, 0, 32288286, 0, 517455978, 0, 688015781, 0, 710054045, 0, 161245916, 0, 67557091, 0, 95043720, 0, 794788275, 0, 83529685, 0, 452758483, 0, 358770455, 0, 594266658, 0, 500122321, 0, 884863063, 0, 803616464, 0, 665759807, 0, 727508037, 0, 154108954, 0, 909138641, 0, 973215362, 0, 938861997, 0, 638517590, 0, 40541375, 0, 946712156, 0, 163918780, 0, 570734551, 0, 247499698, 0, 682829747, 0, 780223558, 0, 379738792, 0, 509969708, 0, 228110727, 0, 485676851, 0, 59224825, 0, 970086814, 0, 982817973, 0, 49632754, 0, 258127016, 0, 716227253, 0, 671663130, 0, 412271759, 0, 719106094, 0, 7568903, 0, 987220765, 0, 729941328, 0, 610353309, 0, 986219558, 0, 47120151, 0, 48672876, 0, 861446563, 0, 650553892, 0, 263607239, 0, 363486114, 0, 970828001, 0, 438205950, 0, 790908900, 0, 836300579, 0, 638562690, 0, 287733486, 0, 349673715, 0, 398740899, 0, 641962050, 0, 608592735, 0, 860572822, 0, 20530155, 0, 980930574, 0, 95191286, 0, 163376280, 0, 998934025, 0, 644819695, 0, 901356824, 0, 795315432, 0, 348632179, 0, 682659645, 0, 612446280, 0, 37153699, 0, 742162512, 0, 834980732, 0, 18657945, 0, 621544997, 0, 639255072, 0, 263524028, 0, 714805261, 0, 649976338, 0, 801122459, 0, 568790254, 0, 719541762, 0, 80261615, 0, 497410504, 0, 346709087, 0, 329415883, 0, 212384541, 0, 594473271, 0, 929883891, 0, 190250962, 0, 700967721, 0, 54978393, 0, 908943806, 0, 721596338, 0, 202169422, 0, 569636751, 0, 416712390, 0, 900686725, 0, 530110198, 0, 756003140, 0, 474230169, 0, 257351720, 0, 972365756, 0, 360748798, 0, 400533999, 0, 724137641, 0, 242475132, 0, 86238263, 0, 871013246, 0, 693553375, 0, 349354405, 0, 826311200, 0, 511422327, 0, 893130893, 0, 857975973, 0, 572224447, 0, 314280112, 0, 401154458, 0, 462051312, 0, 33012967, 0, 887120314, 0, 299004843, 0, 979107567, 0, 398293966, 0, 406373034, 0, 429052435, 0, 547649575, 0, 240415891, 0, 426558455, 0, 236178808, 0, 302645623, 0, 308826037, 0, 313887297, 0, 58294801, 0, 172853728, 0, 53196195, 0, 943431339, 0, 292238764, 0, 110490317, 0, 33331880, 0, 3950138, 0, 341685649, 0, 661808053, 0, 880836511, 0, 725702209, 0, 555150330, 0, 275559226, 0, 793175008, 0, 652800329, 0, 269272035, 0, 187410278, 0, 785757474, 0, 450605207, 0, 836987984, 0, 679697915, 0, 805740326, 0, 557143450, 0, 311441910, 0, 268459507, 0, 648960956, 0, 292302542, 0, 542525007, 0, 918847026, 0, 528928148, 0, 193078018, 0, 808043783, 0, 400780835, 0, 948211400, 0, 223760335, 0, 862037774, 0, 738902096, 0, 411845503, 0, 635099178, 0, 223884381, 0, 873563544, 0, 426210816, 0, 748506144, 0, 239794350, 0, 613741840, 0, 326323947, 0, 972879077, 0, 101936644, 0, 120774837, 0, 348485936, 0, 936728817, 0, 923565313, 0, 745584313, 0, 689066440, 0, 410706487, 0, 663282631, 0, 971017946, 0, 697401342, 0, 34104845, 0, 336580978, 0, 919794441, 0, 616321016, 0, 411773666, 0, 875078678, 0, 396663281, 0, 275953610, 0, 829915122, 0, 279669069, 0, 632963303, 0, 191140885, 0, 776921603, 0, 318808845, 0, 203229183, 0, 850724398, 0, 956936242, 0, 966989186, 0, 407420253, 0, 2543431, 0, 627188558, 0, 527969574, 0, 869151202, 0, 321972829, 0, 849676466, 0, 816218792, 0, 706415736, 0, 862248140, 0, 24550434, 0, 863106783, 0, 821340723, 0, 629407434, 0, 296058600, 0, 963612331, 0, 585015973, 0, 271830301, 0, 633982657, 0, 160492403, 0, 951926174, 0, 256062467, 0, 326521494, 0, 524315756, 0, 521356126, 0, 884895415, 0, 65526382, 0, 625062579, 0, 440444035, 0, 713984513, 0, 436255422, 0, 47856662, 0, 252450438, 0, 52013680, 0, 637753734, 0, 385422027, 0, 748232887, 0, 548209508, 0, 582559327, 0, 595967019, 0, 899272401, 0, 556836688, 0, 742669544, 0, 530968771, 0, 687776175, 0, 619300737, 0, 881666299, 0, 761857342, 0, 964015658, 0, 416629151, 0, 507303672, 0, 65642070, 0, 294910962, 0, 11208579, 0, 784091816, 0, 321409235, 0, 930750356, 0, 902785210, 0, 16816573, 0, 123490232, 0, 501952700, 0, 866548920, 0, 157663346, 0, 733901931, 0, 679497553, 0, 811179338, 0, 962695320, 0, 305738300, 0, 584444215, 0, 346393752, 0, 767425338, 0, 909134893, 0, 503034715, 0, 85907347, 0, 625624054, 0, 160650303, 0, 930543060, 0, 395220195, 0, 417328585, 0, 987510492, 0, 672863525, 0, 775921156, 0, 922518986, 0, 877875290, 0, 429608908, 0, 411092899, 0, 471664449, 0, 171673931, 0, 683744100, 0, 374618025, 0, 883832023, 0, 87713317, 0, 431888819, 0, 367153844, 0, 217576482, 0, 910979144, 0, 40082007, 0, 501337611, 0, 610337183, 0, 616912241, 0, 410513475, 0, 43544428, 0, 379259141, 0, 581026018, 0, 849101759, 0, 541563619, 0, 378950970, 0, 873283884, 0, 360205682, 0, 927253695, 0, 114286391, 0, 201783399, 0, 658808290, 0, 346475173, 0, 861320593, 0, 34116938, 0, 312170097, 0, 154500879, 0, 492146193, 0, 333816940, 0, 35882154, 0, 412652275, 0, 512732027, 0, 538851243, 0, 474514007, 0, 608499593, 0, 175759514, 0, 639572173, 0, 222476101, 0, 195409041, 0, 326584472, 0, 954290876, 0, 546507357, 0, 183290304, 0, 484797439, 0, 319685525, 0, 503477226, 0, 987207705, 0, 715358809, 0, 508031359, 0, 391319669, 0, 284983755, 0, 852748982, 0, 766287030, 0, 542737004, 0, 961112764, 0, 343655959, 0, 751658495, 0, 905211055, 0, 433435227, 0, 513300171, 0, 830578787, 0, 492737978, 0, 673419351, 0, 310620579, 0, 283692804, 0, 762550480, 0, 648907039, 0, 330968168, 0, 866856022, 0, 408809762, 0, 699719406, 0, 657029524, 0, 219938097, 0, 965588029, 0, 379875893, 0, 767919248, 0, 101132152, 0, 519754425, 0, 782531629, 0, 571609588, 0, 441521445, 0, 69693492, 0, 396074332, 0, 895846368, 0, 976148332, 0, 804510846, 0, 571283677, 0, 554864646, 0, 136338872, 0, 384645664, 0, 640640643, 0, 372936440, 0, 623462832, 0, 186498107, 0, 433302495, 0, 978433230, 0, 613563763, 0, 810160995, 0, 84751938, 0, 55833442, 0, 800208362, 0, 482763381, 0, 109247328, 0, 847114940, 0, 311838589, 0, 742903496, 0, 377729263, 0, 249701648, 0, 889182317, 0, 501363636, 0, 35755601, 0, 199162542, 0, 44549364, 0, 55167236, 0, 702199595, 0, 642731, 0, 331552295, 0, 854987225, 0, 206224569, 0, 931265739, 0, 698992063, 0, 278432568, 0, 158881347, 0, 183823327, 0, 487869813, 0, 597210115, 0, 926400987, 0, 386590116, 0, 793401480, 0, 7937848, 0, 204706215, 0, 733504229, 0, 998213427, 0, 308558889, 0, 408909566, 0, 22135849, 0, 182376949, 0, 785398222, 0, 120499632, 0, 618036242, 0, 889930914, 0, 392781247, 0, 500566318, 0, 318587709, 0, 391150484, 0, 53779665, 0, 58728856, 0, 955263292, 0, 510228341, 0, 417656609, 0, 801228084, 0, 955154807, 0, 656396004, 0, 472968966, 0, 120176468, 0, 644506078, 0, 263756190, 0, 716568000, 0, 127448350, 0, 370258570, 0, 548465534, 0, 655380959, 0, 728910172, 0, 249168320, 0, 984130550, 0, 407752822, 0, 579065509, 0, 280569451, 0, 798297488, 0, 579657375, 0, 826275126, 0, 859501196, 0, 302813178, 0, 906754453, 0, 595850182, 0, 169888160, 0, 456562503, 0, 388056508, 0, 240074342, 0, 456399519, 0, 738153767, 0, 613228699, 0, 326330891, 0, 634953197, 0, 27680470, 0, 874747724, 0, 842655239, 0, 452637742, 0, 690210102, 0, 452086119, 0, 849978282, 0, 280097491, 0, 854503643, 0, 112529816, 0, 93814512, 0, 722643893, 0, 298276592, 0, 184129273, 0, 687109421, 0, 984715671, 0, 332611936, 0, 321589535, 0, 988056766, 0, 967247601, 0, 903821945, 0, 261241783, 0, 532871780, 0, 508216430, 0, 778669263, 0, 724640818, 0, 358599639, 0, 726138940, 0, 477225888, 0, 560231740, 0, 292569819, 0, 139736911, 0, 491378770, 0, 697723974, 0, 390372798, 0, 491209155, 0, 388851911, 0, 725935873, 0, 593571399, 0, 10980823, 0, 721842349, 0, 891726931, 0, 263161898, 0, 666029820, 0, 190515185, 0, 895800698, 0, 503091998, 0, 581726381, 0, 714453302, 0, 893310003, 0, 324656694, 0, 183335255, 0, 532086241, 0, 55536307, 0, 670714868, 0, 673823142, 0, 463144377, 0, 107507870, 0, 637227502, 0, 970539748, 0, 822502963, 0, 703127834, 0, 809811117, 0, 214241975, 0, 592945970, 0, 850988114, 0, 228083772, 0, 871689618, 0, 341796037, 0, 999043426, 0, 45554742, 0, 415769361, 0, 910512924, 0, 604816290, 0, 736553377, 0, 484949442, 0, 629903750, 0, 59574139, 0, 447490260, 0, 976086431, 0, 449153183, 0, 863275489, 0, 501101012, 0, 295123446, 0, 405442016, 0, 252877996, 0, 394001543, 0, 884449815, 0, 250464762, 0, 882437537, 0, 489982709, 0, 915697492, 0, 646890314, 0, 367652405, 0, 125380472, 0, 883337161, 0, 919484792, 0, 954585049, 0, 396049601, 0, 908711866, 0, 388692387, 0, 599929860, 0, 93747239, 0, 296940713, 0, 975130404, 0, 635754567, 0, 94004928, 0, 196627614, 0, 381726620, 0, 435225026, 0, 442511088, 0, 497274344, 0, 211992847, 0, 476595547, 0, 395538466, 0, 319776746, 0, 398967383, 0, 303847800, 0, 439367394, 0, 361277735, 0, 741481176, 0, 268258679, 0, 819514257, 0, 294455999, 0, 830019281, 0, 932021268, 0, 369657133, 0, 293972594, 0, 879366890, 0, 55243759, 0, 801934275, 0, 846863134, 0, 482295009, 0, 858506172, 0, 931071964, 0, 946396502, 0, 773397941, 0, 991517665, 0, 733444757, 0, 924543407, 0, 990396136, 0, 299444853, 0, 676766373, 0, 105304993, 0, 420416965, 0, 104778396, 0, 953934503, 0, 601879780, 0, 484730138, 0, 69802464, 0, 926307118, 0, 114861998, 0, 176616044, 0, 605520346, 0, 694151726, 0, 92285707, 0, 262925173, 0, 680427692, 0, 387190850, 0, 878171183, 0, 837295110, 0, 606560877, 0, 329709688, 0, 408596278, 0, 742236095, 0, 985730695, 0, 342584735, 0, 4044113, 0, 591756179, 0, 638008414, 0, 527503832, 0, 218468935, 0, 856511268, 0, 797017722, 0, 605195774, 0, 772540529, 0, 550884990, 0, 764482685, 0, 840228493, 0, 707106074, 0, 908357371, 0, 912065123, 0, 219378698, 0, 162853679, 0, 257677103, 0, 234662412, 0, 890692820, 0, 261690845, 0, 691843324, 0, 531897471, 0, 333020396, 0, 645647119, 0, 101893529, 0, 27022254, 0, 548637264, 0, 302961113, 0, 928213921, 0, 327464568, 0, 908110492, 0, 384030384, 0, 962704356, 0, 132940674, 0, 365169978, 0, 312185239, 0, 100926995, 0, 606098053, 0, 739895609, 0, 413354135, 0, 809148138, 0, 831544687, 0, 988099758, 0, 855282873, 0, 297407495, 0, 607702653, 0, 738303650, 0, 510036165, 0, 757504369, 0, 963097301, 0, 786937445, 0, 471185721, 0, 886517397, 0, 824539775, 0, 685822710, 0, 128919808, 0, 702201803, 0, 737649046, 0, 539297186, 0, 178413915, 0, 899783255, 0, 952590255, 0, 139464036, 0, 557932923, 0, 839062074, 0, 539994139, 0, 138293964, 0, 213254323, 0, 540614504, 0, 490200104, 0, 944126532, 0, 976518929, 0, 308167890, 0, 980261154, 0, 477557425, 0, 197869420, 0, 606997249, 0, 39066102, 0, 645988427, 0, 180820735, 0, 500632254, 0, 258556358, 0, 890155072, 0, 977040876, 0, 386750039, 0, 899183905, 0, 396144077, 0, 422481449, 0, 695596800, 0, 304731802, 0, 428572083, 0, 696207743, 0, 644073995, 0, 782346109, 0, 10892547, 0, 427966950, 0, 508823527, 0, 38995576, 0, 130195264, 0, 995238218, 0, 137523777, 0, 804812676, 0, 174731564, 0, 260857040, 0, 623497688, 0, 856562421, 0, 852951521, 0, 539003466, 0, 703093425, 0, 884799231, 0, 743423453, 0, 784311912, 0, 59372365, 0, 264796354, 0, 889938162, 0, 317336135, 0, 732578143, 0, 225014309, 0, 328614666, 0, 954823177, 0, 441905516, 0, 187851020, 0, 101036448, 0, 492402973, 0, 607600180, 0, 406469809, 0, 774434840, 0, 763985354, 0, 412335591, 0, 60768743, 0, 993420346, 0, 443707750, 0, 56556181, 0, 936617963, 0, 600621157, 0, 226639511, 0, 812057820, 0, 158366148, 0, 670186467, 0, 700532098, 0, 591729809, 0, 554022027, 0, 448332985, 0, 811308471, 0, 34414017, 0, 136748507, 0, 926011919, 0, 631131892, 0, 8387060, 0, 788646763, 0, 944644621, 0, 620976593, 0, 464185827, 0, 818498636, 0, 585224601, 0, 349057912, 0, 6938234, 0, 215844112, 0, 390025425, 0, 51829407, 0, 387575248, 0, 290510508, 0, 48804747, 0, 116475712, 0, 359272293, 0, 485840197, 0, 681990386, 0, 697357907, 0, 915997626, 0, 891918254, 0, 588207337, 0, 82129454, 0, 298826386, 0, 962460707, 0, 790756246, 0, 969385823, 0, 209361228, 0, 781425031, 0, 888246581, 0, 595985217, 0, 718060364, 0, 148903996, 0, 340970533, 0, 464551541, 0, 163767582, 0, 663805400, 0, 604195009, 0, 836393970, 0, 765667683, 0, 800437963, 0, 311421913, 0, 53436559, 0, 642459018, 0, 691568957, 0, 673788207, 0, 380753686, 0, 132932112, 0, 311621075, 0, 730823091, 0, 308213909, 0, 967961962, 0, 897769291, 0, 407598851, 0, 392651789, 0, 328626093, 0, 566468285, 0, 784373027, 0, 59528703, 0, 576574737, 0, 852339391, 0, 112871601, 0, 264529004, 0, 412425819, 0, 364653823, 0, 465453793, 0, 431620083, 0, 809453642, 0, 731365647, 0, 452110617, 0, 351413410, 0, 680694649, 0, 244289123, 0, 298596158, 0, 503498717, 0, 110276933, 0, 59973146, 0, 383738708, 0, 311981402, 0, 823315516, 0, 499283232, 0, 461984622, 0, 757770086, 0, 786685206, 0, 197407144, 0, 854725002, 0, 8184713, 0, 388899030, 0, 800261292, 0, 702841231, 0, 235904524, 0, 612608737, 0, 198354658, 0, 256172751, 0, 791256091, 0, 576733585, 0, 315759767, 0, 844931659, 0, 138405311, 0, 253091150, 0, 65559397, 0, 862148144, 0, 973997882, 0, 282110531, 0, 599372568, 0, 112712886, 0, 520193593, 0, 578028763, 0, 139157710, 0, 618316117, 0, 301551905, 0, 681358268, 0, 953622513, 0, 857738783, 0, 219048993, 0, 805085270, 0, 976793283, 0, 946128826, 0, 886027403, 0, 295599752, 0, 4418479, 0, 413373405, 0, 997350587, 0, 946454728, 0, 262127298, 0, 349346490, 0, 629130092, 0, 749443221, 0, 910045552, 0, 797104299, 0, 287713732, 0, 406032870, 0, 584493227, 0, 74582758, 0, 282387235, 0, 519453961, 0, 527540655, 0, 980139027, 0, 489895009, 0, 860139938, 0, 198148884, 0, 496164765, 0, 965973168, 0, 528688338, 0, 215845475, 0, 364682946, 0, 502454473, 0, 807854555, 0, 155056858, 0, 622737634, 0, 541479983, 0, 637319011, 0, 645117516, 0, 30989556, 0, 399494644, 0, 363947129, 0, 648273022, 0, 400234685, 0, 439737808, 0, 792094513, 0, 997765447, 0, 664184011, 0, 462377494, 0, 677615972, 0, 867025751, 0, 121783160, 0, 880328806, 0, 943148995, 0, 970818831, 0, 545936416, 0, 815195265, 0, 252472887, 0, 151810887, 0, 441531966, 0, 416748872, 0, 158590520, 0, 816737891, 0, 482222174, 0, 762079867, 0, 38221195, 0, 665253251, 0, 105432767, 0, 926283459, 0, 181758340, 0, 487995857, 0, 130595491, 0, 708378429, 0, 601547648, 0, 625514467, 0, 77182930, 0, 897044298, 0, 132196581, 0, 355066436, 0, 933234480, 0, 520898273, 0, 134316118, 0, 690880199, 0, 603722450, 0, 518644129, 0, 454420437, 0, 656335703, 0, 296973774, 0, 169505565, 0, 995352466, 0, 177833664, 0, 916899366, 0, 535301826, 0, 176493917, 0, 694661013, 0, 20019017, 0, 179502662, 0, 123877408, 0, 491837353, 0, 343179594, 0, 704336222, 0, 722950921, 0, 209348747, 0, 76131105, 0, 412435922, 0, 303284215, 0, 861343994, 0, 281103639, 0, 388951011, 0, 282662656, 0, 706310930, 0, 604069943, 0, 654850910, 0, 717167457, 0, 137872302, 0, 444888177, 0, 479159646, 0, 32447866, 0, 59374705, 0, 621597055, 0, 539304633, 0, 723688691, 0, 815825254, 0, 182180706, 0, 733465809, 0, 327608378, 0, 289700181, 0, 852739063, 0, 597320509, 0, 189426429, 0, 667232299, 0, 310239245, 0, 569109875, 0, 620874029, 0, 963041786, 0, 650515213, 0, 676681957, 0, 241343294, 0, 354610828, 0, 892806584, 0, 635732923, 0, 317966470, 0, 790925202, 0, 940862738, 0, 229807785, 0, 47867806, 0, 107613461, 0, 321523081, 0, 778575016, 0, 972238755, 0, 740230251, 0, 254536260, 0, 849811902, 0, 791567225, 0, 643398827, 0, 408480155, 0, 196089771, 0, 334379198, 0, 797540089, 0, 642188552, 0, 526783351, 0, 942274417, 0, 792475700, 0, 133795265, 0, 328396800, 0, 493663294, 0, 805446080, 0, 952341216, 0, 412777545, 0, 563046301, 0, 737067283, 0, 615807698, 0, 421581255, 0, 268723278, 0, 73345566, 0, 798554801, 0, 327451510, 0, 687559491, 0, 276511791, 0, 670241318, 0, 674537708, 0, 407116708, 0, 837654743, 0, 395267948, 0, 225809258, 0, 320821131, 0, 205449396, 0, 51813108, 0, 273978184, 0, 745000249, 0, 732947371, 0, 100431543, 0, 339869430, 0, 955933097, 0, 828620331, 0, 471313173, 0, 406205690, 0, 642218889, 0, 453798963, 0, 182700451, 0, 655152575, 0, 22141285, 0, 277301368, 0, 471440284, 0, 829979673, 0, 424732713, 0, 516811228, 0, 452916682, 0, 514438026, 0, 313274066, 0, 170943129, 0, 524931008, 0, 332696931, 0, 479391024, 0, 165874508, 0, 615529, 0, 413457067, 0, 697213915, 0, 461789169, 0, 326205023, 0, 339906669, 0, 475929018, 0, 72016136, 0, 120501645, 0, 941014162, 0, 352446999, 0, 104596517, 0, 540534055, 0, 260390387, 0, 220869330, 0, 525455927, 0, 236776248, 0, 779874636, 0, 106322740, 0, 717008972, 0, 728218642, 0, 332419810, 0, 854939645, 0, 417276273, 0, 370351140, 0, 213590118, 0, 797249246, 0, 995061638, 0, 414658094, 0, 743629515, 0, 251528041, 0, 626329255, 0, 965853646, 0, 989033999, 0, 51767985, 0, 682564853, 0, 555780508, 0, 448904033, 0, 495278702, 0, 966245874, 0, 867687447, 0, 723166739, 0, 813368720, 0, 293138560, 0, 68371685, 0, 391496113, 0, 946326587, 0, 290892725, 0, 757171212, 0, 552862686, 0, 794922111, 0, 764957094, 0, 626254294, 0, 37997163, 0, 441802161, 0, 585207759, 0, 137904011, 0, 246683244, 0, 220893002, 0, 781360, 0, 158194948, 0, 240954873, 0, 211083300, 0, 495300382, 0, 723139811, 0, 393052664, 0, 176041246, 0, 135904937, 0, 797494600, 0, 326140483, 0, 872298282, 0, 691601335, 0, 688622703, 0, 910813223, 0, 499181014, 0, 776019014, 0, 579511726, 0, 560284513, 0, 40357533, 0, 211186612, 0, 787424380, 0, 255718683, 0, 880269405, 0, 76026785, 0, 695043963, 0, 819444981, 0, 892221601, 0, 257195029, 0, 396204337, 0, 515571228, 0, 37459025, 0, 369424626, 0, 859994810, 0, 88540987, 0, 461815283, 0, 29371034, 0, 526120745, 0, 14046624, 0, 414470544, 0, 298836138, 0, 52234306, 0, 133238657, 0, 263299843, 0, 446901342, 0, 375614955, 0, 410080153, 0, 712420771, 0, 738638530, 0, 328932942, 0, 109330958, 0, 341998661, 0, 338441637, 0, 441510329, 0, 954535439, 0, 141110742, 0, 116545233, 0, 317192132, 0, 654712520, 0, 867025525, 0, 376087037, 0, 535043646, 0, 656584524, 0, 806108897, 0, 717926970, 0, 64977115, 0, 270878235, 0, 678611852, 0, 914977238, 0, 836295316, 0, 624505833, 0, 730670349, 0, 442708777, 0, 580111117, 0, 529002558, 0, 890112763, 0, 615344802, 0, 576879100, 0, 794252094, 0, 505783445, 0, 66177598, 0, 569385601, 0, 821293213, 0, 377905870, 0, 784130892, 0, 150636117, 0, 948551229, 0, 334087673, 0, 554437863, 0, 164272021, 0, 317025280, 0, 923162879, 0, 198769481, 0, 553164225, 0, 658031712, 0, 427433115, 0, 696972348, 0, 380600383, 0, 426833552, 0, 580258042, 0, 655722306, 0, 280160798, 0, 10383206, 0, 64218960, 0, 809164533, 0, 678520365, 0, 439353202, 0, 629090838, 0, 134156337, 0, 403644192, 0, 226885851, 0, 465661141, 0, 846155369, 0, 340933480, 0, 164808382, 0, 646361633, 0, 769512856, 0, 30935211, 0, 588726456, 0, 3021537, 0, 459383735, 0, 536498547, 0, 534801207, 0, 193524744, 0, 944327112, 0, 59808882, 0, 87802974, 0, 968074683, 0, 48396437, 0, 213816155, 0, 436611887, 0, 945264414, 0, 330723615, 0, 737049359, 0, 431189004, 0, 82934374, 0, 142200607, 0, 61919963, 0, 629951646, 0, 149747351, 0, 451996823, 0, 377661704, 0, 897432021, 0, 759553318, 0, 716465843, 0, 532004188, 0, 142596988, 0, 201654331, 0, 866031399, 0, 375886835, 0, 120830578, 0, 680723645, 0, 348374669, 0, 531292657, 0, 711636868, 0, 408574209, 0, 761305437, 0, 805452316, 0, 801830289, 0, 604288970, 0, 538222312, 0, 964004962, 0, 926131029, 0, 327680630, 0, 578553625, 0, 499746797, 0, 208742159, 0, 1216373, 0, 665148219, 0, 492492425, 0, 909925759, 0, 453771473, 0, 685929153, 0, 261316248, 0, 74559154, 0, 948179409, 0, 490349776, 0, 4557510, 0, 397596793, 0, 622147949, 0, 632004153, 0, 792515274, 0, 455380220, 0, 1364703, 0, 883308410, 0, 7399071, 0, 762588238, 0, 529015373, 0, 820041576, 0, 694038888, 0, 552162844, 0, 352067742, 0, 355665087, 0, 547768638, 0, 373782759, 0, 290808927, 0, 693037693, 0, 344878902, 0, 926235094, 0, 440390896, 0, 930456579, 0, 783946488, 0, 50114339, 0, 789608581, 0, 714413316, 0, 521414533, 0, 905072077, 0, 16277029, 0, 796198634, 0, 389475212, 0, 993854587, 0, 493560714, 0, 77206539, 0, 509154554, 0, 188365934, 0, 687980393, 0, 116574701, 0, 972990432, 0, 618292441, 0, 261965549, 0, 15963208, 0, 621612406, 0, 510506268, 0, 878124788, 0, 1648256, 0, 492519779, 0, 926876578, 0, 49223616, 0, 83855171, 0, 566625730, 0, 200204609, 0, 429548935, 0, 725516976, 0, 294305666, 0, 979431306, 0, 319416262, 0, 251248296, 0, 698888268, 0, 548532496, 0, 858201493, 0, 419760876, 0, 407475108, 0, 305263938, 0, 71171352, 0, 992783129, 0, 423148556, 0, 488587291, 0, 240918695, 0, 693888239, 0, 426127125, 0, 659845836, 0, 923510553, 0, 631683092, 0, 222143861, 0, 528613280, 0, 742565418, 0, 366066344, 0, 39615797, 0, 957698977, 0, 178225292, 0, 351375949, 0, 723462098, 0, 472713554, 0, 9898636, 0, 68656868, 0, 325848621, 0, 913983466, 0, 235998598, 0, 75943443, 0, 85581823, 0, 365391959, 0, 438423115, 0, 392823942, 0, 211876471, 0, 318254142, 0, 5911845, 0, 744918161, 0, 731408205, 0, 238081183, 0, 824451203, 0, 38847473, 0, 573256522, 0, 841303849, 0, 237535274, 0, 78269009, 0, 854218180, 0, 940038384, 0, 850060393, 0, 694951241, 0, 392292650, 0, 980868166, 0, 226845828, 0, 733350676, 0, 101044174, 0, 163003159, 0, 217874451, 0, 772877387, 0, 990477291, 0, 478084314, 0, 929303734, 0, 827743822, 0, 491339048, 0, 794159068, 0, 187308607, 0, 755873270, 0, 693030533, 0, 528671173, 0, 506975850, 0, 215153941, 0, 746250002, 0, 586029516, 0, 445175613, 0, 787520322, 0, 784792617, 0, 228162470, 0, 136817070, 0, 245842359, 0, 217720461, 0, 844744635, 0, 693932758, 0, 591390762, 0, 465639620, 0, 968052343, 0, 247774746, 0, 655826343, 0, 78227077, 0, 599907294, 0, 430708008, 0, 354258564, 0, 332900298, 0, 214987255, 0, 510063561, 0, 253485237, 0, 363175728, 0, 771355763, 0, 158031039, 0, 610608861, 0, 492011227, 0, 446282628, 0, 721484940, 0, 686225292, 0, 661228283, 0, 622624061, 0, 36513142, 0, 398249374, 0, 940622141, 0, 476373594, 0, 531715032, 0, 187848037, 0, 498466741, 0, 737741649, 0, 855718222, 0, 954968351, 0, 22067217, 0, 273905465, 0, 802630999, 0, 228087591, 0, 933497595, 0, 548852368, 0, 609441044, 0, 719906658, 0, 182529773, 0, 399019434, 0, 311122286, 0, 770261344, 0, 498250003, 0, 443366638, 0, 156912019, 0, 211903102, 0, 319215271, 0, 443609222, 0, 401471455, 0, 741872683, 0, 64242585, 0, 788619469, 0, 760657740, 0, 98947185, 0, 536401712, 0, 250266571, 0, 932692561, 0, 329706560, 0, 284533860, 0, 125351261, 0, 693343828, 0, 642053442, 0, 397437606, 0, 147672779, 0, 897597699, 0, 721472859, 0, 1738246, 0, 944360917, 0, 673492033, 0, 260524357, 0, 242885917, 0, 368329213, 0, 631301201, 0, 86918403, 0, 864541191, 0, 728881261, 0, 631979299, 0, 488817150, 0, 993410766, 0, 448142365, 0, 207461783, 0, 937682102, 0, 672887379, 0, 851818306, 0, 973107106, 0, 683921184, 0, 508656068, 0, 909107359, 0, 139945696, 0, 990902996, 0, 414353544, 0, 93118394, 0, 829700360, 0, 952936008, 0, 463670072, 0, 798736971, 0, 983521561, 0, 300796205, 0, 798437649, 0, 868881361, 0, 908818679, 0, 373853129, 0, 391687422, 0, 722120791, 0, 115463863, 0, 964711081, 0, 542301008, 0, 133803958, 0, 193099282, 0, 82500840, 0, 256594757, 0, 31994165, 0, 573147987, 0, 536086477, 0, 518723037, 0, 135894383, 0, 714485393, 0, 863257877, 0, 139804722, 0, 151793662, 0, 931716032, 0, 786043759, 0, 624880779, 0, 447469109, 0, 216481668, 0, 37998126, 0, 300164411, 0, 152687658, 0, 141633573, 0, 960469873, 0, 683950287, 0, 827970246, 0, 92550458, 0, 518360711, 0, 184654356, 0, 316922500, 0, 437270098, 0, 470305879, 0, 520129490, 0, 71710508, 0, 394149902, 0, 951299683, 0, 426770117, 0, 156889147, 0, 108750284, 0, 388324240, 0, 287090938, 0, 631885709, 0, 641155874, 0, 624165347, 0, 346868168, 0, 88480358, 0, 347562268, 0, 723675289, 0, 829480542, 0, 50399495, 0, 696367701, 0, 322595038, 0 };

            var res = pow(dp2, s.Length, n - s.Length);
            var ret = conv(dp1, res, n - s.Length);
            IO.Printer.Out.WriteLine(ret[n - s.Length]);


        }
        const int MOD = 1000000007;
        static public int[] conv(int[] x, int[] y, int n)
        {
            var ret = new int[n + 1];
            for (int i = 0; i <= n; i++)
            {
                if (x[i] == 0) continue;
                for (int j = 0; i + j <= n; j++)
                {
                    ret[i + j] = (int)((ret[i + j] + 1L * x[i] * y[j]) % MOD);
                }
            }
            return ret;
        }
        static public int[] pow(int[] x, long n, int m)
        {
            var ret = new int[m + 1];
            ret[0] = 1;
            for (;;)
            {
                if ((n & 1) == 1)
                    ret = conv(ret, x, m);
                n >>= 1;
                if (n == 0) break;
                x = conv(x, x, m);
            }
            return ret;
        }
        public IO.StreamScanner sc = new IO.StreamScanner(Console.OpenStandardInput());
        static T[] Enumerate<T>(int n, Func<int, T> f) { var a = new T[n]; for (int i = 0; i < n; ++i) a[i] = f(i); return a; }
        static public void Swap<T>(ref T a, ref T b) { var tmp = a; a = b; b = tmp; }


    }
}
#region main
static class Ex
{
    static public string AsString(this IEnumerable<char> ie) { return new string(System.Linq.Enumerable.ToArray(ie)); }
    static public string AsJoinedString<T>(this IEnumerable<T> ie, string st = " ") { return string.Join(st, ie); }
    static public void Main()
    {
        var solver = new Program.Solver();
        solver.Solve();
        Program.IO.Printer.Out.Flush();
    }
}
#endregion
#region Ex
namespace Program.IO
{
    using System.IO;
    using System.Text;
    using System.Globalization;
    public class Printer: StreamWriter
    {
        static Printer() { Out = new Printer(Console.OpenStandardOutput()) { AutoFlush = false }; }
        public static Printer Out { get; set; }
        public override IFormatProvider FormatProvider { get { return CultureInfo.InvariantCulture; } }
        public Printer(System.IO.Stream stream) : base(stream, new UTF8Encoding(false, true)) { }
        public Printer(System.IO.Stream stream, Encoding encoding) : base(stream, encoding) { }
        public void Write<T>(string format, T[] source) { base.Write(format, source.OfType<object>().ToArray()); }
        public void WriteLine<T>(string format, T[] source) { base.WriteLine(format, source.OfType<object>().ToArray()); }
    }
    public class StreamScanner
    {
        public StreamScanner(Stream stream) { str = stream; }
        public readonly Stream str;
        private readonly byte[] buf = new byte[1024];
        private int len, ptr;
        public bool isEof = false;
        public bool IsEndOfStream { get { return isEof; } }
        private byte read()
        {
            if (isEof) return 0;
            if (ptr >= len) { ptr = 0; if ((len = str.Read(buf, 0, 1024)) <= 0) { isEof = true; return 0; } }
            return buf[ptr++];
        }
        public char Char() { byte b = 0; do b = read(); while ((b < 33 || 126 < b) && !isEof); return (char)b; }

        public string Scan()
        {
            var sb = new StringBuilder();
            for (var b = Char(); b >= 33 && b <= 126; b = (char)read())
                sb.Append(b);
            return sb.ToString();
        }
        public string ScanLine()
        {
            var sb = new StringBuilder();
            for (var b = Char(); b != '\n'; b = (char)read())
                if (b == 0) break;
                else if (b != '\r') sb.Append(b);
            return sb.ToString();
        }
        public long Long()
        {
            if (isEof) return long.MinValue;
            long ret = 0; byte b = 0; var ng = false;
            do b = read();
            while (b != 0 && b != '-' && (b < '0' || '9' < b));
            if (b == 0) return long.MinValue;
            if (b == '-') { ng = true; b = read(); }
            for (; true; b = read())
            {
                if (b < '0' || '9' < b)
                    return ng ? -ret : ret;
                else ret = ret * 10 + b - '0';
            }
        }
        public int Integer() { return (isEof) ? int.MinValue : (int)Long(); }
        public double Double() { var s = Scan(); return s != "" ? double.Parse(s, CultureInfo.InvariantCulture) : double.NaN; }
        private T[] enumerate<T>(int n, Func<T> f)
        {
            var a = new T[n];
            for (int i = 0; i < n; ++i) a[i] = f();
            return a;
        }

        public char[] Char(int n) { return enumerate(n, Char); }
        public string[] Scan(int n) { return enumerate(n, Scan); }
        public double[] Double(int n) { return enumerate(n, Double); }
        public int[] Integer(int n) { return enumerate(n, Integer); }
        public long[] Long(int n) { return enumerate(n, Long); }
    }
}
#endregion

#region ModNumber
public partial struct ModInteger
{
    public const long Mod = (long)1e9 + 7;
    public long num;
    public ModInteger(long n) : this() { num = n % Mod; if (num < 0) num += Mod; }
    public override string ToString() { return num.ToString(); }
    public static ModInteger operator +(ModInteger l, ModInteger r) { var n = l.num + r.num; if (n >= Mod) n -= Mod; return new ModInteger() { num = n }; }
    public static ModInteger operator -(ModInteger l, ModInteger r) { var n = l.num + Mod - r.num; if (n >= Mod) n -= Mod; return new ModInteger() { num = n }; }
    public static ModInteger operator *(ModInteger l, ModInteger r) { return new ModInteger(l.num * r.num); }
    public static ModInteger operator ^(ModInteger l, long r) { return ModInteger.Pow(l, r); }
    public static implicit operator ModInteger(long n) { return new ModInteger(n); }
    public static ModInteger Pow(ModInteger v, long k)
    {
        ModInteger ret = 1;
        var n = k;
        for (; n > 0; n >>= 1, v *= v)
        {
            if ((n & 1) == 1)
                ret = ret * v;
        }
        return ret;
    }
}
#endregion

Measured memory_bytes: 3032