using System;
using static System.Console;

class Program
{
    public static void Main()
    {
	int[] a = new int[5000];
	int[] b = new int[5000];
	int[] c = new int[5000];

    a[2] = 1; b[2] = 2; c[2] = 2;
    a[3] = 1; b[3] = 4; c[3] = 12;
    a[4] = 2; b[4] = 3; c[4] = 6;
    a[5] = 2; b[5] = 4; c[5] = 20;
    a[6] = 2; b[6] = 7; c[6] = 42;
    a[7] = 2; b[7] = 15; c[7] = 210;
    a[8] = 3; b[8] = 7; c[8] = 42;
    a[9] = 3; b[9] = 10; c[9] = 90;
    a[10] = 3; b[10] = 16; c[10] = 240;
    a[11] = 3; b[11] = 34; c[11] = 1122;
    a[12] = 4; b[12] = 13; c[12] = 156;
    a[13] = 4; b[13] = 18; c[13] = 468;
    a[14] = 4; b[14] = 29; c[14] = 812;
    a[15] = 4; b[15] = 62; c[15] = 1860;
    a[16] = 5; b[16] = 21; c[16] = 420;
    a[17] = 5; b[17] = 30; c[17] = 510;
    a[18] = 5; b[18] = 46; c[18] = 2070;
    a[19] = 5; b[19] = 100; c[19] = 1900;
    a[20] = 6; b[20] = 31; c[20] = 930;
    a[21] = 6; b[21] = 43; c[21] = 1806;
    a[22] = 6; b[22] = 68; c[22] = 2244;
    a[23] = 6; b[23] = 144; c[23] = 3312;
    a[24] = 7; b[24] = 43; c[24] = 1806;
    a[25] = 7; b[25] = 60; c[25] = 2100;
    a[26] = 7; b[26] = 98; c[26] = 1274;
    a[27] = 7; b[27] = 210; c[27] = 1890;
    a[28] = 8; b[28] = 57; c[28] = 3192;
    a[29] = 8; b[29] = 80; c[29] = 2320;
    a[30] = 8; b[30] = 125; c[30] = 3000;
    a[31] = 8; b[31] = 279; c[31] = 2232;
    a[32] = 9; b[32] = 74; c[32] = 2664;
    a[33] = 9; b[33] = 102; c[33] = 3366;
    a[34] = 9; b[34] = 162; c[34] = 2754;
    a[35] = 9; b[35] = 350; c[35] = 3150;
    a[36] = 10; b[36] = 93; c[36] = 2790;
    a[37] = 10; b[37] = 130; c[37] = 2405;
    a[38] = 10; b[38] = 209; c[38] = 2090;
    a[39] = 10; b[39] = 440; c[39] = 3432;
    a[40] = 11; b[40] = 114; c[40] = 3135;
    a[41] = 11; b[41] = 164; c[41] = 1804;
    a[42] = 11; b[42] = 252; c[42] = 2772;
    a[43] = 11; b[43] = 594; c[43] = 2322;
    a[44] = 12; b[44] = 138; c[44] = 3036;
    a[45] = 12; b[45] = 190; c[45] = 3420;
    a[46] = 12; b[46] = 300; c[46] = 3450;
    a[47] = 12; b[47] = 705; c[47] = 2820;
    a[48] = 13; b[48] = 164; c[48] = 3198;
    a[50] = 13; b[50] = 390; c[50] = 1950;
    a[51] = 13; b[51] = 832; c[51] = 3264;
    a[49] = 14; b[49] = 102; c[49] = 2499;
    a[52] = 14; b[52] = 195; c[52] = 2730;
    a[53] = 14; b[53] = 280; c[53] = 2120;
    a[54] = 14; b[54] = 427; c[54] = 3294;
    a[55] = 14; b[55] = 990; c[55] = 3465;
    a[56] = 15; b[56] = 224; c[56] = 3360;
    a[57] = 15; b[57] = 330; c[57] = 2090;
    a[58] = 15; b[58] = 510; c[58] = 2958;
    a[59] = 15; b[59] = 1416; c[59] = 2360;
    a[60] = 16; b[60] = 258; c[60] = 3440;
    a[61] = 16; b[61] = 366; c[61] = 2928;
    a[62] = 16; b[62] = 620; c[62] = 2480;
    a[63] = 16; b[63] = 1440; c[63] = 3360;
    a[64] = 17; b[64] = 304; c[64] = 2584;
    a[65] = 17; b[65] = 442; c[65] = 2210;
    a[66] = 17; b[66] = 682; c[66] = 3162;
    a[67] = 17; b[67] = 2278; c[67] = 2278;
    a[68] = 18; b[68] = 340; c[68] = 3060;
    a[69] = 18; b[69] = 483; c[69] = 2898;
    a[70] = 18; b[70] = 770; c[70] = 3465;
    a[71] = 18; b[71] = 2130; c[71] = 3195;
    a[72] = 19; b[72] = 380; c[72] = 3420;
    a[74] = 19; b[74] = 1064; c[74] = 2072;
    a[75] = 19; b[75] = 2508; c[75] = 3300;
    a[73] = 20; b[73] = 292; c[73] = 730;
    a[76] = 20; b[76] = 430; c[76] = 3268;
    a[77] = 20; b[77] = 605; c[77] = 3388;
    a[78] = 20; b[78] = 1005; c[78] = 3484;
    a[79] = 20; b[79] = 3160; c[79] = 3160;
    a[80] = 21; b[80] = 480; c[80] = 3360;
    a[81] = 21; b[81] = 714; c[81] = 2754;
    a[82] = 21; b[82] = 1148; c[82] = 3444;
    a[83] = 21; b[83] = 3486; c[83] = 3486;
    a[84] = 22; b[84] = 539; c[84] = 3234;
    a[85] = 22; b[85] = 765; c[85] = 3366;
    a[86] = 22; b[86] = 1419; c[86] = 2838;
    a[87] = 23; b[87] = 506; c[87] = 1914;
    a[88] = 23; b[88] = 598; c[88] = 3289;
    a[90] = 23; b[90] = 1564; c[90] = 3060;
    a[89] = 24; b[89] = 356; c[89] = 2136;
    a[91] = 24; b[91] = 504; c[91] = 3276;
    a[92] = 24; b[92] = 690; c[92] = 2760;
    a[93] = 24; b[93] = 992; c[93] = 2976;
    a[94] = 24; b[94] = 1692; c[94] = 3384;
    a[95] = 25; b[95] = 570; c[95] = 2850;
    a[96] = 25; b[96] = 725; c[96] = 3480;
    a[98] = 25; b[98] = 2100; c[98] = 2940;
    a[99] = 26; b[99] = 650; c[99] = 2475;
    a[100] = 26; b[100] = 819; c[100] = 3150;
    a[101] = 26; b[101] = 1313; c[101] = 2626;
    a[102] = 26; b[102] = 2193; c[102] = 3354;
    a[103] = 27; b[103] = 702; c[103] = 2678;
    a[104] = 27; b[104] = 936; c[104] = 2808;
    a[105] = 27; b[105] = 1350; c[105] = 3150;
    a[106] = 27; b[106] = 2862; c[106] = 2862;
    a[97] = 28; b[97] = 194; c[97] = 2716;
    a[107] = 28; b[107] = 749; c[107] = 2996;
    a[108] = 28; b[108] = 972; c[108] = 3402;
    a[109] = 28; b[109] = 1526; c[109] = 3052;
    a[110] = 28; b[110] = 2750; c[110] = 3500;
    a[111] = 29; b[111] = 812; c[111] = 3108;
    a[112] = 29; b[112] = 1204; c[112] = 2494;
    a[114] = 29; b[114] = 3306; c[114] = 3306;
    a[113] = 30; b[113] = 565; c[113] = 3390;
    a[115] = 30; b[115] = 870; c[115] = 3335;
    a[116] = 30; b[116] = 1160; c[116] = 3480;
    a[117] = 30; b[117] = 1820; c[117] = 3276;
    a[118] = 31; b[118] = 930; c[118] = 1770;
    a[120] = 31; b[120] = 1302; c[120] = 3255;
    a[119] = 32; b[119] = 544; c[119] = 1904;
    a[122] = 32; b[122] = 976; c[122] = 1952;
    a[123] = 32; b[123] = 1248; c[123] = 2132;
    a[124] = 32; b[124] = 1488; c[124] = 2976;
    a[125] = 32; b[125] = 2375; c[125] = 3040;
    a[121] = 33; b[121] = 462; c[121] = 1694;
    a[126] = 33; b[126] = 882; c[126] = 3234;
    a[128] = 33; b[128] = 1540; c[128] = 3360;
    a[129] = 33; b[129] = 2508; c[129] = 3268;
    a[130] = 34; b[130] = 962; c[130] = 3145;
    a[132] = 34; b[132] = 1683; c[132] = 3366;
    a[133] = 34; b[133] = 2856; c[133] = 3192;
    a[134] = 35; b[134] = 1190; c[134] = 2278;
    a[135] = 35; b[135] = 1350; c[135] = 3150;
    a[136] = 35; b[136] = 1890; c[136] = 3213;
    a[131] = 36; b[131] = 524; c[131] = 1179;
    a[138] = 36; b[138] = 1104; c[138] = 3312;
    a[137] = 36; b[137] = 1233; c[137] = 1644;
    a[139] = 36; b[139] = 1668; c[139] = 2502;
    a[140] = 36; b[140] = 1980; c[140] = 3465;
    a[141] = 36; b[141] = 3384; c[141] = 3384;
    a[142] = 37; b[142] = 1332; c[142] = 2556;
    a[144] = 37; b[144] = 2220; c[144] = 3330;
    a[143] = 38; b[143] = 1045; c[143] = 1430;
    a[145] = 38; b[145] = 1045; c[145] = 3190;
    a[146] = 38; b[146] = 1387; c[146] = 2774;
    a[147] = 38; b[147] = 1767; c[147] = 3038;
    a[148] = 38; b[148] = 2775; c[148] = 2850;
    a[150] = 39; b[150] = 1482; c[150] = 2850;
    a[152] = 39; b[152] = 2926; c[152] = 3003;
    a[151] = 40; b[151] = 1208; c[151] = 1510;
    a[153] = 40; b[153] = 1224; c[153] = 3060;
    a[154] = 40; b[154] = 1540; c[154] = 3080;
    a[155] = 40; b[155] = 2015; c[155] = 3224;
    a[156] = 40; b[156] = 2860; c[156] = 3432;
    a[158] = 41; b[158] = 1640; c[158] = 3160;
    a[160] = 41; b[160] = 3240; c[160] = 3321;
    a[159] = 42; b[159] = 954; c[159] = 3339;
    a[161] = 42; b[161] = 1380; c[161] = 3220;
    a[162] = 42; b[162] = 1701; c[162] = 3402;
    a[163] = 42; b[163] = 2282; c[163] = 3423;
    a[164] = 42; b[164] = 3403; c[164] = 3486;
    a[165] = 43; b[165] = 1806; c[165] = 2310;
    a[166] = 43; b[166] = 1806; c[166] = 3486;
    a[168] = 44; b[168] = 1260; c[168] = 3465;
    a[169] = 44; b[169] = 1690; c[169] = 2860;
    a[170] = 44; b[170] = 1980; c[170] = 3366;
    a[171] = 44; b[171] = 2660; c[171] = 3465;
    a[172] = 45; b[172] = 1505; c[172] = 2709;
    a[173] = 45; b[173] = 1730; c[173] = 3114;
    a[174] = 45; b[174] = 2088; c[174] = 3480;
    a[175] = 45; b[175] = 2898; c[175] = 3450;
    a[176] = 46; b[176] = 1496; c[176] = 3128;
    a[177] = 46; b[177] = 2070; c[177] = 2655;
    a[180] = 47; b[180] = 1645; c[180] = 2961;
    a[178] = 48; b[178] = 1068; c[178] = 1424;
    a[181] = 48; b[181] = 1086; c[181] = 2896;
    a[182] = 48; b[182] = 1232; c[182] = 3003;
    a[183] = 48; b[183] = 1464; c[183] = 2928;
    a[184] = 48; b[184] = 1633; c[184] = 3408;
    a[185] = 48; b[185] = 2220; c[185] = 2960;
    a[186] = 48; b[186] = 2604; c[186] = 3472;
    a[187] = 49; b[187] = 1666; c[187] = 2618;
    a[188] = 49; b[188] = 2256; c[188] = 2352;
    a[189] = 49; b[189] = 2352; c[189] = 3024;
    a[190] = 50; b[190] = 1311; c[190] = 3450;
    a[192] = 50; b[192] = 1840; c[192] = 3450;
    a[195] = 51; b[195] = 1950; c[195] = 2550;
    a[196] = 51; b[196] = 2261; c[196] = 2793;
    a[198] = 51; b[198] = 3366; c[198] = 3366;
    a[191] = 52; b[191] = 764; c[191] = 2483;
    a[200] = 52; b[200] = 2145; c[200] = 3300;
    a[201] = 52; b[201] = 2613; c[201] = 3484;
    a[204] = 53; b[204] = 2652; c[204] = 2756;
    a[194] = 54; b[194] = 582; c[194] = 2619;
    a[203] = 54; b[203] = 1566; c[203] = 1827;
    a[205] = 54; b[205] = 1845; c[205] = 2214;
    a[206] = 54; b[206] = 1854; c[206] = 2781;
    a[207] = 54; b[207] = 1971; c[207] = 3358;
    a[208] = 54; b[208] = 2376; c[208] = 3432;
    a[209] = 55; b[209] = 1520; c[209] = 3344;
    a[210] = 55; b[210] = 1760; c[210] = 3360;
    a[212] = 55; b[212] = 2862; c[212] = 2970;
    a[202] = 56; b[202] = 808; c[202] = 1414;
    a[213] = 56; b[213] = 1704; c[213] = 2982;
    a[214] = 56; b[214] = 2247; c[214] = 2568;
    a[215] = 56; b[215] = 2365; c[215] = 3080;
    a[216] = 56; b[216] = 2688; c[216] = 3456;
    a[217] = 56; b[217] = 3472; c[217] = 3472;
    a[219] = 57; b[219] = 2774; c[219] = 2774;
    a[220] = 57; b[220] = 3080; c[220] = 3192;
    a[222] = 58; b[222] = 2109; c[222] = 3306;
    a[221] = 58; b[221] = 2210; c[221] = 2465;
    a[224] = 58; b[224] = 3045; c[224] = 3480;
    a[228] = 59; b[228] = 3306; c[228] = 3422;
    a[218] = 60; b[218] = 1090; c[218] = 1308;
    a[223] = 60; b[223] = 1115; c[223] = 2676;
    a[225] = 60; b[225] = 1224; c[225] = 3400;
    a[226] = 60; b[226] = 1356; c[226] = 3390;
    a[230] = 60; b[230] = 2280; c[230] = 3496;
    a[229] = 60; b[229] = 2290; c[229] = 2748;
    a[231] = 60; b[231] = 2750; c[231] = 3500;
    a[232] = 60; b[232] = 3480; c[232] = 3480;
    a[234] = 62; b[234] = 1638; c[234] = 2821;
    a[235] = 62; b[235] = 1860; c[235] = 2820;
    a[238] = 62; b[238] = 2821; c[238] = 3094;
    a[237] = 63; b[237] = 1422; c[237] = 3318;
    a[236] = 63; b[236] = 1652; c[236] = 2124;
    a[240] = 63; b[240] = 1980; c[240] = 3465;
    a[242] = 63; b[242] = 2772; c[242] = 3388;
    a[243] = 63; b[243] = 3402; c[243] = 3402;
    a[245] = 65; b[245] = 1820; c[245] = 2548;
    a[247] = 65; b[247] = 2080; c[247] = 3040;
    a[246] = 65; b[246] = 2132; c[246] = 2460;
    a[248] = 65; b[248] = 2470; c[248] = 2945;
    a[250] = 65; b[250] = 3250; c[250] = 3250;
    a[244] = 66; b[244] = 1342; c[244] = 2013;
    a[249] = 66; b[249] = 1826; c[249] = 2739;
    a[252] = 66; b[252] = 2310; c[252] = 3465;
    a[253] = 66; b[253] = 2970; c[253] = 3105;
    a[255] = 68; b[255] = 1445; c[255] = 3468;
    a[256] = 68; b[256] = 1600; c[256] = 3400;
    a[258] = 68; b[258] = 2193; c[258] = 2924;
    a[259] = 68; b[259] = 2380; c[259] = 3145;
    a[260] = 68; b[260] = 2600; c[260] = 3400;
    a[264] = 69; b[264] = 2970; c[264] = 3105;
    a[261] = 70; b[261] = 1827; c[261] = 2030;
    a[263] = 70; b[263] = 1841; c[263] = 2630;
    a[265] = 70; b[265] = 2120; c[265] = 2968;
    a[266] = 70; b[266] = 2261; c[266] = 3230;
    a[267] = 70; b[267] = 2670; c[267] = 3115;
    a[254] = 72; b[254] = 1016; c[254] = 1143;
    a[262] = 72; b[262] = 1048; c[262] = 2358;
    a[270] = 72; b[270] = 1566; c[270] = 3480;
    a[268] = 72; b[268] = 1608; c[268] = 2412;
    a[272] = 72; b[272] = 2040; c[272] = 3060;
    a[271] = 72; b[271] = 2168; c[271] = 2439;
    a[273] = 72; b[273] = 2184; c[273] = 3276;
    a[274] = 72; b[274] = 2466; c[274] = 3288;
    a[276] = 72; b[276] = 3243; c[276] = 3384;
    a[275] = 74; b[275] = 1850; c[275] = 2035;
    a[280] = 74; b[280] = 2220; c[280] = 3108;
    a[279] = 74; b[279] = 2232; c[279] = 2664;
    a[282] = 74; b[282] = 2664; c[282] = 3384;
    a[285] = 75; b[285] = 2508; c[285] = 3300;
    a[286] = 75; b[286] = 2860; c[286] = 3300;
    a[288] = 76; b[288] = 2280; c[288] = 3420;
    a[284] = 77; b[284] = 1491; c[284] = 2343;
    a[287] = 77; b[287] = 1722; c[287] = 2706;
    a[290] = 77; b[290] = 2030; c[290] = 3190;
    a[294] = 77; b[294] = 3234; c[294] = 3234;
    a[292] = 78; b[292] = 1898; c[292] = 2847;
    a[291] = 78; b[291] = 1950; c[291] = 2425;
    a[297] = 78; b[297] = 2808; c[297] = 3432;
    a[296] = 78; b[296] = 2812; c[296] = 2964;
    a[278] = 80; b[278] = 695; c[278] = 2224;
    a[295] = 80; b[295] = 1416; c[295] = 2832;
    a[299] = 80; b[299] = 1794; c[299] = 3120;
    a[300] = 80; b[300] = 1840; c[300] = 3450;
    a[302] = 80; b[302] = 2416; c[302] = 3020;
    a[303] = 80; b[303] = 2626; c[303] = 3120;
    a[304] = 80; b[304] = 2736; c[304] = 3420;
    a[306] = 81; b[306] = 2754; c[306] = 2754;
    a[308] = 81; b[308] = 2835; c[308] = 3465;
    a[310] = 82; b[310] = 2480; c[310] = 3280;
    a[312] = 82; b[312] = 3120; c[312] = 3280;
    a[301] = 84; b[301] = 924; c[301] = 3311;
    a[298] = 84; b[298] = 1043; c[298] = 1788;
    a[305] = 84; b[305] = 1220; c[305] = 2562;
    a[309] = 84; b[309] = 1442; c[309] = 2884;
    a[314] = 84; b[314] = 1884; c[314] = 3297;
    a[315] = 84; b[315] = 1980; c[315] = 3465;
    a[316] = 84; b[316] = 2212; c[316] = 3318;
    a[318] = 84; b[318] = 2968; c[318] = 2968;
    a[320] = 84; b[320] = 3248; c[320] = 3480;
    a[289] = 85; b[289] = 578; c[289] = 2890;
    a[322] = 85; b[322] = 2990; c[322] = 3094;
    a[323] = 85; b[323] = 3060; c[323] = 3420;
    a[324] = 86; b[324] = 2322; c[324] = 3483;
    a[319] = 87; b[319] = 1320; c[319] = 3480;
    a[327] = 87; b[327] = 2436; c[327] = 3052;
    a[328] = 87; b[328] = 2436; c[328] = 3444;
    a[330] = 87; b[330] = 3190; c[330] = 3190;
    a[325] = 88; b[325] = 1560; c[325] = 3300;
    a[321] = 90; b[321] = 963; c[321] = 3210;
    a[329] = 90; b[329] = 1410; c[329] = 2961;
    a[332] = 90; b[332] = 1660; c[332] = 2988;
    a[333] = 90; b[333] = 1665; c[333] = 3330;
    a[336] = 90; b[336] = 1980; c[336] = 3465;
    a[335] = 90; b[335] = 2010; c[335] = 3015;
    a[338] = 90; b[338] = 2340; c[338] = 3380;
    a[339] = 90; b[339] = 2610; c[339] = 3277;
    a[340] = 90; b[340] = 2805; c[340] = 3366;
    a[341] = 90; b[341] = 3069; c[341] = 3410;
    a[342] = 90; b[342] = 3420; c[342] = 3420;
    a[345] = 92; b[345] = 2280; c[345] = 3496;
    a[344] = 93; b[344] = 1935; c[344] = 2790;
    a[348] = 93; b[348] = 2610; c[348] = 2790;
    a[350] = 93; b[350] = 2790; c[350] = 3150;
    a[352] = 95; b[352] = 2280; c[352] = 2508;
    a[355] = 95; b[355] = 2698; c[355] = 2698;
    a[360] = 95; b[360] = 3420; c[360] = 3420;
    a[351] = 96; b[351] = 1728; c[351] = 2496;
    a[354] = 96; b[354] = 1829; c[354] = 2976;
    a[357] = 96; b[357] = 2040; c[357] = 3360;
    a[356] = 96; b[356] = 2136; c[356] = 2848;
    a[343] = 98; b[343] = 882; c[343] = 3087;
    a[364] = 98; b[364] = 2457; c[364] = 2646;
    a[366] = 98; b[366] = 2562; c[366] = 2989;
    a[368] = 98; b[368] = 2737; c[368] = 3332;
    a[363] = 99; b[363] = 1980; c[363] = 2420;
    a[369] = 99; b[369] = 2442; c[369] = 3034;
    a[370] = 99; b[370] = 2442; c[370] = 3330;
    a[372] = 99; b[372] = 2790; c[372] = 3410;
    a[374] = 99; b[374] = 3366; c[374] = 3366;
    a[361] = 100; b[361] = 1805; c[361] = 1900;
    a[375] = 100; b[375] = 2625; c[375] = 3500;
    a[378] = 100; b[378] = 3375; c[378] = 3500;
    a[362] = 102; b[362] = 1086; c[362] = 3077;
    a[376] = 102; b[376] = 2303; c[376] = 2499;
    a[384] = 102; b[384] = 3168; c[384] = 3366;
    a[385] = 102; b[385] = 3366; c[385] = 3465;
    a[377] = 104; b[377] = 1456; c[377] = 3248;
    a[380] = 104; b[380] = 1900; c[380] = 2600;
    a[387] = 104; b[387] = 2408; c[387] = 3276;
    a[390] = 104; b[390] = 2860; c[390] = 3432;
    a[365] = 105; b[365] = 1022; c[365] = 2190;
    a[371] = 105; b[371] = 1060; c[371] = 3180;
    a[388] = 105; b[388] = 2037; c[388] = 3395;
    a[392] = 105; b[392] = 2695; c[392] = 3234;
    a[395] = 105; b[395] = 3318; c[395] = 3318;
    a[396] = 105; b[396] = 3465; c[396] = 3465;
    a[391] = 106; b[391] = 2346; c[391] = 2703;
    a[400] = 108; b[400] = 2250; c[400] = 3375;
    a[399] = 108; b[399] = 2268; c[399] = 3078;
    a[403] = 108; b[403] = 2808; c[403] = 3224;
    a[405] = 108; b[405] = 3078; c[405] = 3420;
    a[398] = 110; b[398] = 1990; c[398] = 2189;
    a[406] = 110; b[406] = 2233; c[406] = 3190;
    a[402] = 110; b[402] = 2310; c[402] = 2345;
    a[407] = 110; b[407] = 2365; c[407] = 3182;
    a[408] = 110; b[408] = 2431; c[408] = 3315;
    a[410] = 110; b[410] = 2870; c[410] = 3157;
    a[412] = 110; b[412] = 3090; c[412] = 3399;
    a[404] = 112; b[404] = 1616; c[404] = 2828;
    a[411] = 112; b[411] = 2192; c[411] = 2877;
    a[413] = 112; b[413] = 2478; c[413] = 2832;
    a[414] = 112; b[414] = 2484; c[414] = 3024;
    a[416] = 112; b[416] = 2639; c[416] = 3248;
    a[418] = 112; b[418] = 2926; c[418] = 3344;
    a[420] = 112; b[420] = 3248; c[420] = 3480;
    a[381] = 114; b[381] = 762; c[381] = 2413;
    a[415] = 114; b[415] = 1826; c[415] = 3135;
    a[424] = 114; b[424] = 2915; c[424] = 3135;
    a[425] = 115; b[425] = 2346; c[425] = 3450;
    a[432] = 116; b[432] = 3024; c[432] = 3248;
    a[434] = 116; b[434] = 3248; c[434] = 3472;
    a[435] = 116; b[435] = 3480; c[435] = 3480;
    a[429] = 117; b[429] = 2178; c[429] = 3146;
    a[437] = 118; b[437] = 2622; c[437] = 3363;
    a[438] = 118; b[438] = 2774; c[438] = 3363;
    a[440] = 118; b[440] = 3135; c[440] = 3363;
    a[427] = 119; b[427] = 2074; c[427] = 2074;
    a[441] = 119; b[441] = 2940; c[441] = 3060;
    a[442] = 119; b[442] = 3094; c[442] = 3094;
    a[393] = 120; b[393] = 655; c[393] = 3144;
    a[417] = 120; b[417] = 1112; c[417] = 2780;
    a[426] = 120; b[426] = 1420; c[426] = 2840;
    a[430] = 120; b[430] = 1548; c[430] = 3096;
    a[428] = 120; b[428] = 1605; c[428] = 2568;
    a[423] = 120; b[423] = 1692; c[423] = 1880;
    a[436] = 120; b[436] = 2180; c[436] = 2616;
    a[444] = 120; b[444] = 2664; c[444] = 3330;
    a[448] = 120; b[448] = 3248; c[448] = 3480;
    a[450] = 122; b[450] = 2745; c[450] = 3050;
    a[456] = 122; b[456] = 3477; c[456] = 3477;
    a[451] = 123; b[451] = 2442; c[451] = 3034;
    a[455] = 123; b[455] = 2870; c[455] = 3198;
    a[445] = 124; b[445] = 1780; c[445] = 2759;
    a[460] = 125; b[460] = 2760; c[460] = 3000;
    a[462] = 125; b[462] = 3000; c[462] = 3080;
    a[464] = 125; b[464] = 3000; c[464] = 3480;
    a[452] = 126; b[452] = 2034; c[452] = 2373;
    a[458] = 126; b[458] = 2061; c[458] = 3206;
    a[459] = 126; b[459] = 2079; c[459] = 3366;
    a[465] = 126; b[465] = 2790; c[465] = 3255;
    a[468] = 126; b[468] = 3159; c[468] = 3402;
    a[469] = 126; b[469] = 3276; c[469] = 3484;
    a[473] = 129; b[473] = 2508; c[473] = 3268;
    a[480] = 129; b[480] = 3440; c[480] = 3440;
    a[470] = 130; b[470] = 1898; c[470] = 3431;
    a[475] = 130; b[475] = 2275; c[475] = 3458;
    a[474] = 130; b[474] = 2370; c[474] = 3081;
    a[476] = 130; b[476] = 2720; c[476] = 2912;
    a[477] = 132; b[477] = 1908; c[477] = 3498;
    a[472] = 132; b[472] = 1947; c[472] = 2596;
    a[483] = 132; b[483] = 2530; c[483] = 3220;
    a[484] = 132; b[484] = 2541; c[484] = 3388;
    a[482] = 132; b[482] = 2651; c[482] = 2892;
    a[486] = 132; b[486] = 2772; c[486] = 3402;
    a[488] = 133; b[488] = 2562; c[488] = 3477;
    a[492] = 133; b[492] = 3116; c[492] = 3444;
    a[494] = 133; b[494] = 3458; c[494] = 3458;
    a[490] = 135; b[490] = 2352; c[490] = 3024;
    a[495] = 135; b[495] = 2700; c[495] = 3300;
    a[496] = 135; b[496] = 2790; c[496] = 3348;
    a[500] = 135; b[500] = 3375; c[500] = 3375;
    a[481] = 136; b[481] = 1768; c[481] = 2516;
    a[493] = 136; b[493] = 2436; c[493] = 2856;
    a[504] = 138; b[504] = 2576; c[504] = 3312;
    a[506] = 138; b[506] = 2970; c[506] = 3105;
    a[485] = 140; b[485] = 1358; c[485] = 2716;
    a[498] = 140; b[498] = 1660; c[498] = 3486;
    a[497] = 140; b[497] = 1988; c[497] = 2485;
    a[510] = 140; b[510] = 2436; c[510] = 3451;
    a[511] = 140; b[511] = 2628; c[511] = 3285;
    a[512] = 140; b[512] = 2688; c[512] = 3360;
    a[517] = 141; b[517] = 3102; c[517] = 3102;
    a[520] = 143; b[520] = 2530; c[520] = 3289;
    a[524] = 143; b[524] = 2882; c[524] = 3406;
    a[528] = 143; b[528] = 3432; c[528] = 3432;
    a[501] = 144; b[501] = 1503; c[501] = 2672;
    a[516] = 144; b[516] = 1935; c[516] = 3440;
    a[508] = 144; b[508] = 2032; c[508] = 2286;
    a[513] = 144; b[513] = 2052; c[513] = 2736;
    a[515] = 144; b[515] = 2160; c[515] = 2781;
    a[522] = 144; b[522] = 2320; c[522] = 3480;
    a[525] = 144; b[525] = 2800; c[525] = 3150;
    a[529] = 144; b[529] = 3174; c[529] = 3312;
    a[530] = 145; b[530] = 3074; c[530] = 3074;
    a[532] = 147; b[532] = 2597; c[532] = 3021;
    a[536] = 147; b[536] = 2814; c[536] = 3283;
    a[535] = 147; b[535] = 2940; c[535] = 2996;
    a[539] = 147; b[539] = 3234; c[539] = 3234;
    a[518] = 148; b[518] = 1554; c[518] = 3108;
    a[527] = 148; b[527] = 2294; c[527] = 2516;
    a[447] = 149; b[447] = 596; c[447] = 1788;
    a[533] = 150; b[533] = 1950; c[533] = 3075;
    a[534] = 150; b[534] = 2225; c[534] = 2670;
    a[540] = 150; b[540] = 2250; c[540] = 3375;
    a[544] = 150; b[544] = 2550; c[544] = 3400;
    a[545] = 150; b[545] = 2725; c[545] = 3270;
    a[546] = 150; b[546] = 2925; c[546] = 3150;
    a[550] = 150; b[550] = 3150; c[550] = 3465;
    a[552] = 150; b[552] = 3450; c[552] = 3450;
    a[453] = 151; b[453] = 604; c[453] = 1812;
    a[549] = 152; b[549] = 2736; c[549] = 2928;
    a[531] = 153; b[531] = 2006; c[531] = 2006;
    a[558] = 153; b[558] = 3162; c[558] = 3162;
    a[560] = 153; b[560] = 3276; c[560] = 3315;
    a[561] = 153; b[561] = 3366; c[561] = 3366;
    a[553] = 154; b[553] = 2212; c[553] = 3476;
    a[551] = 154; b[551] = 2394; c[551] = 2871;
    a[471] = 156; b[471] = 628; c[471] = 2041;
    a[507] = 156; b[507] = 845; c[507] = 3380;
    a[555] = 156; b[555] = 2220; c[555] = 2886;
    a[559] = 156; b[559] = 2236; c[559] = 3354;
    a[564] = 156; b[564] = 2820; c[564] = 3055;
    a[570] = 156; b[570] = 3211; c[570] = 3380;
    a[572] = 156; b[572] = 3432; c[572] = 3432;
    a[575] = 159; b[575] = 2650; c[575] = 3450;
    a[583] = 159; b[583] = 3498; c[583] = 3498;
    a[567] = 160; b[567] = 2016; c[567] = 3240;
    a[568] = 160; b[568] = 2272; c[568] = 2840;
    a[576] = 160; b[576] = 2464; c[576] = 3465;
    a[574] = 160; b[574] = 2665; c[574] = 2912;
    a[580] = 160; b[580] = 2784; c[580] = 3480;
    a[588] = 161; b[588] = 3381; c[588] = 3381;
    a[578] = 162; b[578] = 2601; c[578] = 2754;
    a[585] = 162; b[585] = 2754; c[585] = 3315;
    a[326] = 163; b[326] = 326; c[326] = 326;
    a[489] = 163; b[489] = 652; c[489] = 1956;
    a[592] = 164; b[592] = 2886; c[592] = 3198;
    a[556] = 165; b[556] = 1529; c[556] = 2085;
    a[582] = 165; b[582] = 2134; c[582] = 2910;
    a[594] = 165; b[594] = 2700; c[594] = 3300;
    a[600] = 165; b[600] = 3150; c[600] = 3465;
    a[581] = 166; b[581] = 1743; c[581] = 3486;
    a[595] = 166; b[595] = 2822; c[595] = 2905;
    a[334] = 167; b[334] = 334; c[334] = 334;
    a[548] = 168; b[548] = 959; c[548] = 3288;
    a[537] = 168; b[537] = 1253; c[537] = 1432;
    a[573] = 168; b[573] = 1528; c[573] = 2674;
    a[584] = 168; b[584] = 1752; c[584] = 3066;
    a[590] = 168; b[590] = 1888; c[590] = 3360;
    a[602] = 168; b[602] = 2709; c[602] = 3096;
    a[608] = 168; b[608] = 2964; c[608] = 3458;
    a[609] = 168; b[609] = 3045; c[609] = 3480;
    a[598] = 170; b[598] = 2431; c[598] = 2530;
    a[605] = 170; b[605] = 2431; c[605] = 3146;
    a[612] = 170; b[612] = 2805; c[612] = 3366;
    a[589] = 171; b[589] = 1710; c[589] = 2790;
    a[603] = 171; b[603] = 2546; c[603] = 2546;
    a[624] = 172; b[624] = 3354; c[624] = 3354;
    a[346] = 173; b[346] = 346; c[346] = 346;
    a[519] = 173; b[519] = 692; c[519] = 2076;
    a[610] = 174; b[610] = 2013; c[610] = 3190;
    a[615] = 174; b[615] = 2255; c[615] = 3190;
    a[616] = 174; b[616] = 2310; c[616] = 3190;
    a[621] = 174; b[621] = 2668; c[621] = 3132;
    a[627] = 174; b[627] = 3135; c[627] = 3190;
    a[630] = 174; b[630] = 3190; c[630] = 3465;
    a[620] = 175; b[620] = 2325; c[620] = 3255;
    a[625] = 175; b[625] = 2500; c[625] = 3500;
    a[606] = 176; b[606] = 1616; c[606] = 3333;
    a[596] = 176; b[596] = 1639; c[596] = 2384;
    a[628] = 176; b[628] = 2512; c[628] = 3454;
    a[623] = 177; b[623] = 2136; c[623] = 3304;
    a[636] = 177; b[636] = 2968; c[636] = 3304;
    a[640] = 177; b[640] = 3304; c[640] = 3360;
    a[358] = 179; b[358] = 358; c[358] = 358;
    a[604] = 180; b[604] = 1359; c[604] = 3020;
    a[632] = 180; b[632] = 2370; c[632] = 2844;
    a[639] = 180; b[639] = 2556; c[639] = 3195;
    a[645] = 180; b[645] = 2844; c[645] = 3397;
    a[644] = 180; b[644] = 2898; c[644] = 3220;
    a[646] = 180; b[646] = 2907; c[646] = 3420;
    a[648] = 180; b[648] = 3078; c[648] = 3420;
    a[543] = 181; b[543] = 724; c[543] = 2172;
    a[611] = 182; b[611] = 1833; c[611] = 1974;
    a[638] = 182; b[638] = 2262; c[638] = 3003;
    a[637] = 182; b[637] = 2457; c[637] = 2646;
    a[650] = 182; b[650] = 2925; c[650] = 3150;
    a[656] = 182; b[656] = 3198; c[656] = 3444;
    a[658] = 182; b[658] = 3367; c[658] = 3478;
    a[660] = 183; b[660] = 3355; c[660] = 3355;
    a[642] = 184; b[642] = 2461; c[642] = 2568;
    a[629] = 185; b[629] = 1530; c[629] = 3330;
    a[666] = 185; b[666] = 3330; c[666] = 3330;
    a[651] = 186; b[651] = 2170; c[651] = 3255;
    a[672] = 186; b[672] = 3472; c[672] = 3472;
    a[663] = 187; b[663] = 2574; c[663] = 3366;
    a[649] = 188; b[649] = 2068; c[649] = 2773;
    a[664] = 189; b[664] = 2241; c[664] = 3486;
    a[675] = 189; b[675] = 2898; c[675] = 3450;
    a[665] = 190; b[665] = 2261; c[665] = 3230;
    a[670] = 190; b[670] = 2412; c[670] = 3420;
    a[680] = 190; b[680] = 3060; c[680] = 3420;
    a[684] = 190; b[684] = 3420; c[684] = 3420;
    a[382] = 191; b[382] = 382; c[382] = 382;
    a[386] = 193; b[386] = 386; c[386] = 386;
    a[579] = 193; b[579] = 772; c[579] = 2316;
    a[679] = 194; b[679] = 2716; c[679] = 2716;
    a[618] = 195; b[618] = 1030; c[618] = 2678;
    a[676] = 195; b[676] = 2028; c[676] = 3380;
    a[668] = 195; b[668] = 2171; c[668] = 2505;
    a[688] = 195; b[688] = 2580; c[688] = 3354;
    a[689] = 195; b[689] = 2756; c[689] = 3180;
    a[690] = 195; b[690] = 2990; c[690] = 2990;
    a[696] = 195; b[696] = 3016; c[696] = 3480;
    a[686] = 196; b[686] = 2744; c[686] = 2744;
    a[693] = 196; b[693] = 2772; c[693] = 3234;
    a[700] = 196; b[700] = 3234; c[700] = 3300;
    a[394] = 197; b[394] = 394; c[394] = 394;
    a[591] = 197; b[591] = 788; c[591] = 2364;
    a[657] = 198; b[657] = 1606; c[657] = 2409;
    a[671] = 198; b[671] = 1647; c[671] = 3294;
    a[682] = 198; b[682] = 2046; c[682] = 3069;
    a[702] = 198; b[702] = 2808; c[702] = 3432;
    a[704] = 198; b[704] = 2992; c[704] = 3366;
    a[711] = 198; b[711] = 3476; c[711] = 3476;
    a[597] = 199; b[597] = 796; c[597] = 2388;
    a[635] = 200; b[635] = 1016; c[635] = 3175;
    a[715] = 200; b[715] = 3300; c[715] = 3432;
    a[505] = 202; b[505] = 404; c[505] = 2020;
    a[707] = 202; b[707] = 2828; c[707] = 2828;
    a[714] = 203; b[714] = 2958; c[714] = 2958;
    a[697] = 204; b[697] = 1938; c[697] = 3116;
    a[705] = 204; b[705] = 2397; c[705] = 2820;
    a[720] = 204; b[720] = 2805; c[720] = 3366;
    a[721] = 206; b[721] = 2884; c[721] = 2884;
    a[667] = 207; b[667] = 1218; c[667] = 2898;
    a[736] = 207; b[736] = 3243; c[736] = 3384;
    a[716] = 208; b[716] = 2327; c[716] = 2864;
    a[728] = 208; b[728] = 2639; c[728] = 3248;
    a[730] = 208; b[730] = 2847; c[730] = 3120;
    a[732] = 208; b[732] = 2928; c[732] = 3172;
    a[735] = 208; b[735] = 3120; c[735] = 3185;
    a[741] = 208; b[741] = 3344; c[741] = 3432;
    a[703] = 209; b[703] = 1672; c[703] = 3256;
    a[710] = 209; b[710] = 2090; c[710] = 2698;
    a[654] = 210; b[654] = 1090; c[654] = 2289;
    a[669] = 210; b[669] = 1115; c[669] = 3122;
    a[685] = 210; b[685] = 1370; c[685] = 2877;
    a[687] = 210; b[687] = 1603; c[687] = 2290;
    a[713] = 210; b[713] = 1860; c[713] = 3220;
    a[712] = 210; b[712] = 1869; c[712] = 3115;
    a[695] = 210; b[695] = 1946; c[695] = 2085;
    a[708] = 210; b[708] = 2065; c[708] = 2478;
    a[726] = 210; b[726] = 2178; c[726] = 3465;
    a[725] = 210; b[725] = 2436; c[725] = 2900;
    a[724] = 210; b[724] = 2534; c[724] = 2715;
    a[738] = 210; b[738] = 2706; c[738] = 3465;
    a[740] = 210; b[740] = 2886; c[740] = 3367;
    a[742] = 210; b[742] = 2915; c[742] = 3498;
    a[744] = 210; b[744] = 3069; c[744] = 3465;
    a[748] = 210; b[748] = 3366; c[748] = 3465;
    a[750] = 210; b[750] = 3500; c[750] = 3500;
    a[422] = 211; b[422] = 422; c[422] = 422;
    a[633] = 211; b[633] = 844; c[633] = 2532;
    a[749] = 214; b[749] = 2996; c[749] = 2996;
    a[756] = 215; b[756] = 2835; c[756] = 3483;
    a[760] = 215; b[760] = 3078; c[760] = 3483;
    a[729] = 216; b[729] = 1944; c[729] = 2916;
    a[752] = 216; b[752] = 2538; c[752] = 3384;
    a[754] = 216; b[754] = 2808; c[754] = 3132;
    a[762] = 216; b[762] = 3048; c[762] = 3429;
    a[768] = 216; b[768] = 3456; c[768] = 3456;
    a[770] = 217; b[770] = 3410; c[770] = 3410;
    a[763] = 218; b[763] = 3052; c[763] = 3052;
    a[759] = 220; b[759] = 2280; c[759] = 3496;
    a[765] = 220; b[765] = 2720; c[765] = 3168;
    a[775] = 220; b[775] = 3100; c[775] = 3410;
    a[780] = 220; b[780] = 3432; c[780] = 3432;
    a[764] = 221; b[764] = 2483; c[764] = 3247;
    a[777] = 222; b[777] = 2886; c[777] = 3367;
    a[446] = 223; b[446] = 446; c[446] = 446;
    a[776] = 224; b[776] = 2716; c[776] = 3104;
    a[784] = 224; b[784] = 2940; c[784] = 3360;
    a[790] = 224; b[790] = 3318; c[790] = 3360;
    a[791] = 224; b[791] = 3360; c[791] = 3390;
    a[792] = 224; b[792] = 3360; c[792] = 3465;
    a[783] = 225; b[783] = 2900; c[783] = 3132;
    a[565] = 226; b[565] = 452; c[565] = 2260;
    a[678] = 226; b[678] = 904; c[678] = 2712;
    a[454] = 227; b[454] = 454; c[454] = 454;
    a[681] = 227; b[681] = 908; c[681] = 2724;
    a[722] = 228; b[722] = 1444; c[722] = 2166;
    a[747] = 228; b[747] = 1577; c[747] = 2988;
    a[779] = 228; b[779] = 2296; c[779] = 3192;
    a[798] = 228; b[798] = 2964; c[798] = 3458;
    a[795] = 228; b[795] = 3021; c[795] = 3180;
    a[800] = 228; b[800] = 3192; c[800] = 3325;
    a[801] = 228; b[801] = 3204; c[801] = 3382;
    a[755] = 230; b[755] = 1510; c[755] = 3473;
    a[774] = 230; b[774] = 2070; c[774] = 2967;
    a[782] = 230; b[782] = 2185; c[782] = 3230;
    a[805] = 230; b[805] = 3220; c[805] = 3220;
    a[803] = 231; b[803] = 3066; c[803] = 3066;
    a[812] = 232; b[812] = 3045; c[812] = 3480;
    a[810] = 232; b[810] = 3132; c[810] = 3240;
    a[466] = 233; b[466] = 466; c[466] = 466;
    a[699] = 233; b[699] = 932; c[699] = 2796;
    a[767] = 234; b[767] = 1593; c[767] = 3186;
    a[793] = 234; b[793] = 2196; c[793] = 3172;
    a[804] = 234; b[804] = 2412; c[804] = 3484;
    a[806] = 234; b[806] = 2604; c[806] = 3276;
    a[816] = 234; b[816] = 3060; c[816] = 3315;
    a[819] = 234; b[819] = 3159; c[819] = 3402;
    a[825] = 236; b[825] = 3245; c[825] = 3300;
    a[826] = 236; b[826] = 3304; c[826] = 3304;
    a[799] = 238; b[799] = 2142; c[799] = 2961;
    a[833] = 238; b[833] = 3332; c[833] = 3332;
    a[478] = 239; b[478] = 478; c[478] = 478;
    a[717] = 239; b[717] = 956; c[717] = 2868;
    a[785] = 240; b[785] = 1884; c[785] = 2512;
    a[817] = 240; b[817] = 2280; c[817] = 3440;
    a[814] = 240; b[814] = 2442; c[814] = 2960;
    a[820] = 240; b[820] = 2460; c[820] = 3280;
    a[828] = 240; b[828] = 2760; c[828] = 3312;
    a[832] = 240; b[832] = 2860; c[832] = 3432;
    a[836] = 240; b[836] = 3135; c[836] = 3344;
    a[840] = 240; b[840] = 3248; c[840] = 3480;
    a[723] = 241; b[723] = 964; c[723] = 2892;
    a[847] = 242; b[847] = 3388; c[847] = 3388;
    a[848] = 244; b[848] = 3021; c[848] = 3477;
    a[854] = 244; b[854] = 3416; c[854] = 3416;
    a[855] = 244; b[855] = 3420; c[855] = 3477;
    a[861] = 246; b[861] = 3403; c[861] = 3486;
    a[808] = 247; b[808] = 1919; c[808] = 2626;
    a[837] = 248; b[837] = 2232; c[837] = 3348;
    a[850] = 248; b[850] = 2635; c[850] = 3400;
    a[864] = 248; b[864] = 3348; c[864] = 3348;
    a[868] = 248; b[868] = 3472; c[868] = 3472;
    a[830] = 249; b[830] = 1992; c[830] = 3320;
    a[875] = 250; b[875] = 3500; c[875] = 3500;
    a[502] = 251; b[502] = 502; c[502] = 502;
    a[753] = 251; b[753] = 1004; c[753] = 3012;
    a[824] = 252; b[824] = 1854; c[824] = 2884;
    a[852] = 252; b[852] = 2556; c[852] = 2982;
    a[858] = 252; b[858] = 2574; c[858] = 3276;
    a[846] = 252; b[846] = 2632; c[846] = 2632;
    a[880] = 252; b[880] = 3465; c[880] = 3465;
    a[731] = 255; b[731] = 860; c[731] = 2580;
    a[860] = 255; b[860] = 2580; c[860] = 2924;
    a[867] = 255; b[867] = 2890; c[867] = 2890;
    a[870] = 255; b[870] = 2958; c[870] = 2958;
    a[884] = 255; b[884] = 3315; c[884] = 3315;
    a[514] = 257; b[514] = 514; c[514] = 514;
    a[771] = 257; b[771] = 1028; c[771] = 3084;
    a[885] = 258; b[885] = 2832; c[885] = 3440;
    a[888] = 258; b[888] = 2960; c[888] = 3440;
    a[896] = 258; b[896] = 3360; c[896] = 3440;
    a[851] = 259; b[851] = 1932; c[851] = 3108;
    a[845] = 260; b[845] = 1690; c[845] = 3380;
    a[856] = 260; b[856] = 2140; c[856] = 2782;
    a[871] = 260; b[871] = 2412; c[871] = 3015;
    a[882] = 261; b[882] = 2842; c[882] = 2842;
    a[899] = 261; b[899] = 3132; c[899] = 3348;
    a[655] = 262; b[655] = 524; c[655] = 2620;
    a[786] = 262; b[786] = 1048; c[786] = 3144;
    a[526] = 263; b[526] = 526; c[526] = 526;
    a[789] = 263; b[789] = 1052; c[789] = 3156;
    a[869] = 264; b[869] = 1896; c[869] = 3476;
    a[872] = 264; b[872] = 2398; c[872] = 2616;
    a[891] = 264; b[891] = 2592; c[891] = 3168;
    a[912] = 264; b[912] = 3344; c[912] = 3344;
    a[890] = 267; b[890] = 2670; c[890] = 2670;
    a[737] = 268; b[737] = 737; c[737] = 2948;
    a[900] = 268; b[900] = 2412; c[900] = 3350;
    a[902] = 268; b[902] = 2747; c[902] = 2948;
    a[538] = 269; b[538] = 538; c[538] = 538;
    a[807] = 269; b[807] = 1076; c[807] = 3228;
    a[874] = 270; b[874] = 2070; c[874] = 2565;
    a[910] = 270; b[910] = 2646; c[910] = 3185;
    a[909] = 270; b[909] = 2727; c[909] = 3030;
    a[915] = 270; b[915] = 2745; c[915] = 3294;
    a[918] = 270; b[918] = 2805; c[918] = 3366;
    a[920] = 270; b[920] = 2875; c[920] = 3375;
    a[924] = 270; b[924] = 2970; c[924] = 3465;
    a[928] = 270; b[928] = 3132; c[928] = 3480;
    a[930] = 270; b[930] = 3348; c[930] = 3348;
    a[542] = 271; b[542] = 542; c[542] = 542;
    a[813] = 271; b[813] = 1084; c[813] = 3252;
    a[901] = 272; b[901] = 2332; c[901] = 2992;
    a[897] = 273; b[897] = 2208; c[897] = 2912;
    a[904] = 273; b[904] = 2373; c[904] = 2938;
    a[927] = 273; b[927] = 2884; c[927] = 3276;
    a[923] = 273; b[923] = 2982; c[923] = 2982;
    a[936] = 273; b[936] = 3159; c[936] = 3402;
    a[822] = 274; b[822] = 1096; c[822] = 3288;
    a[931] = 275; b[931] = 2850; c[931] = 3234;
    a[894] = 276; b[894] = 1788; c[894] = 3427;
    a[554] = 277; b[554] = 554; c[554] = 554;
    a[831] = 277; b[831] = 1108; c[831] = 3324;
    a[834] = 278; b[834] = 1112; c[834] = 3336;
    a[954] = 279; b[954] = 3286; c[954] = 3286;
    a[745] = 280; b[745] = 1043; c[745] = 1192;
    a[876] = 280; b[876] = 1533; c[876] = 2920;
    a[893] = 280; b[893] = 1880; c[893] = 2660;
    a[935] = 280; b[935] = 2618; c[935] = 3080;
    a[940] = 280; b[940] = 2632; c[940] = 3290;
    a[945] = 280; b[945] = 2688; c[945] = 3456;
    a[952] = 280; b[952] = 2975; c[952] = 3400;
    a[946] = 280; b[946] = 3010; c[946] = 3080;
    a[960] = 280; b[960] = 3248; c[960] = 3480;
    a[562] = 281; b[562] = 562; c[562] = 562;
    a[843] = 281; b[843] = 1124; c[843] = 3372;
    a[566] = 283; b[566] = 566; c[566] = 566;
    a[849] = 283; b[849] = 1132; c[849] = 3396;
    a[781] = 284; b[781] = 781; c[781] = 3124;
    a[950] = 285; b[950] = 2508; c[950] = 3300;
    a[969] = 285; b[969] = 3060; c[969] = 3420;
    a[957] = 286; b[957] = 2552; c[957] = 3432;
    a[968] = 286; b[968] = 2904; c[968] = 3432;
    a[975] = 286; b[975] = 3150; c[975] = 3465;
    a[984] = 287; b[984] = 3403; c[984] = 3486;
    a[948] = 288; b[948] = 2528; c[948] = 2844;
    a[963] = 288; b[963] = 2568; c[963] = 3424;
    a[873] = 291; b[873] = 1164; c[873] = 3492;
    a[970] = 291; b[970] = 2910; c[970] = 2910;
    a[990] = 292; b[990] = 3212; c[990] = 3285;
    a[586] = 293; b[586] = 586; c[586] = 586;
    a[879] = 293; b[879] = 1758; c[879] = 1758;
    a[903] = 294; b[903] = 1806; c[903] = 2107;
    a[966] = 294; b[966] = 2254; c[966] = 3381;
    a[980] = 294; b[980] = 2695; c[980] = 3234;
    a[988] = 294; b[988] = 2793; c[988] = 3458;
    a[994] = 294; b[994] = 2982; c[994] = 3479;
    a[987] = 294; b[987] = 3008; c[987] = 3136;
    a[944] = 295; b[944] = 2124; c[944] = 2655;
    a[972] = 295; b[972] = 2430; c[972] = 3186;
    a[999] = 295; b[999] = 3186; c[999] = 3330;
    a[1000] = 295; b[1000] = 3186; c[1000] = 3375;
    a[925] = 296; b[925] = 2035; c[925] = 2200;
    a[938] = 296; b[938] = 2072; c[938] = 2479;
    a[962] = 296; b[962] = 2072; c[962] = 3367;
    a[992] = 297; b[992] = 2728; c[992] = 3348;
    a[1008] = 297; b[1008] = 3267; c[1008] = 3388;
    a[1012] = 298; b[1012] = 3278; c[1012] = 3427;
    a[979] = 300; b[979] = 2225; c[979] = 3300;
    a[1020] = 300; b[1020] = 3400; c[1020] = 3400;
    a[906] = 302; b[906] = 1359; c[906] = 2718;
    a[1010] = 303; b[1010] = 3030; c[1010] = 3030;
    a[976] = 305; b[976] = 2196; c[976] = 2745;
    a[1022] = 305; b[1022] = 2920; c[1022] = 3416;
    a[986] = 306; b[986] = 2349; c[986] = 2754;
    a[1015] = 306; b[1015] = 2610; c[1015] = 3451;
    a[1014] = 306; b[1014] = 2873; c[1014] = 3042;
    a[1023] = 306; b[1023] = 3069; c[1023] = 3162;
    a[614] = 307; b[614] = 614; c[614] = 614;
    a[921] = 307; b[921] = 1842; c[921] = 1842;
    a[1001] = 308; b[1001] = 2184; c[1001] = 3432;
    a[1035] = 308; b[1035] = 3036; c[1035] = 3465;
    a[1036] = 308; b[1036] = 3256; c[1036] = 3256;
    a[1045] = 308; b[1045] = 3420; c[1045] = 3465;
    a[1030] = 309; b[1030] = 3090; c[1030] = 3090;
    a[996] = 310; b[996] = 2490; c[996] = 2573;
    a[1040] = 310; b[1040] = 3224; c[1040] = 3224;
    a[622] = 311; b[622] = 622; c[622] = 622;
    a[933] = 311; b[933] = 1866; c[933] = 1866;
    a[1024] = 312; b[1024] = 2496; c[1024] = 3328;
    a[1025] = 312; b[1025] = 2600; c[1025] = 3198;
    a[1026] = 312; b[1026] = 2808; c[1026] = 2964;
    a[1044] = 312; b[1044] = 3016; c[1044] = 3393;
    a[1048] = 312; b[1048] = 3144; c[1048] = 3406;
    a[1056] = 312; b[1056] = 3432; c[1056] = 3432;
    a[626] = 313; b[626] = 626; c[626] = 626;
    a[939] = 313; b[939] = 1878; c[939] = 1878;
    a[942] = 314; b[942] = 1413; c[942] = 2826;
    a[917] = 315; b[917] = 1310; c[917] = 2358;
    a[1017] = 315; b[1017] = 2260; c[1017] = 3164;
    a[1032] = 315; b[1032] = 2709; c[1032] = 3010;
    a[1050] = 315; b[1050] = 2898; c[1050] = 3450;
    a[1060] = 315; b[1060] = 3339; c[1060] = 3339;
    a[1064] = 315; b[1064] = 3420; c[1064] = 3420;
    a[634] = 317; b[634] = 634; c[634] = 634;
    a[951] = 317; b[951] = 1902; c[951] = 1902;
    a[1007] = 318; b[1007] = 2014; c[1007] = 3021;
    a[1034] = 318; b[1034] = 2491; c[1034] = 3102;
    a[1080] = 320; b[1080] = 3456; c[1080] = 3456;
    a[1070] = 321; b[1070] = 3210; c[1070] = 3210;
    a[989] = 322; b[989] = 1634; c[989] = 3059;
    a[1029] = 322; b[1029] = 2058; c[1029] = 3381;
    a[1078] = 322; b[1078] = 3234; c[1078] = 3381;
    a[1003] = 323; b[1003] = 2242; c[1003] = 2242;
    a[1071] = 323; b[1071] = 2926; c[1071] = 3366;
    a[1053] = 324; b[1053] = 2376; c[1053] = 3432;
    a[1037] = 325; b[1037] = 2210; c[1037] = 3050;
    a[652] = 326; b[652] = 489; c[652] = 978;
    a[815] = 326; b[815] = 652; c[815] = 3260;
    a[978] = 326; b[978] = 1467; c[978] = 2934;
    a[981] = 327; b[981] = 1962; c[981] = 1962;
    a[1090] = 327; b[1090] = 3270; c[1090] = 3270;
    a[1066] = 328; b[1066] = 2542; c[1066] = 3224;
    a[1085] = 329; b[1085] = 2914; c[1085] = 3290;
    a[895] = 330; b[895] = 1074; c[895] = 1969;
    a[913] = 330; b[913] = 1245; c[913] = 1826;
    a[1005] = 330; b[1005] = 2010; c[1005] = 2211;
    a[1075] = 330; b[1075] = 2580; c[1075] = 3300;
    a[1067] = 330; b[1067] = 2619; c[1067] = 2970;
    a[1068] = 330; b[1068] = 2670; c[1068] = 2937;
    a[1089] = 330; b[1089] = 2970; c[1089] = 3267;
    a[1100] = 330; b[1100] = 3150; c[1100] = 3465;
    a[1095] = 330; b[1095] = 3212; c[1095] = 3212;
    a[1104] = 330; b[1104] = 3300; c[1104] = 3450;
    a[662] = 331; b[662] = 662; c[662] = 662;
    a[993] = 331; b[993] = 1986; c[993] = 1986;
    a[1110] = 333; b[1110] = 3330; c[1110] = 3330;
    a[1116] = 333; b[1116] = 3441; c[1116] = 3441;
    a[835] = 334; b[835] = 668; c[835] = 3340;
    a[1002] = 334; b[1002] = 1503; c[1002] = 3006;
    a[1072] = 335; b[1072] = 2412; c[1072] = 3015;
    a[1088] = 336; b[1088] = 2436; c[1088] = 3451;
    a[1074] = 336; b[1074] = 2506; c[1074] = 2864;
    a[1092] = 336; b[1092] = 2639; c[1092] = 3248;
    a[1105] = 336; b[1105] = 3094; c[1105] = 3120;
    a[1120] = 336; b[1120] = 3248; c[1120] = 3480;
    a[674] = 337; b[674] = 674; c[674] = 674;
    a[1011] = 337; b[1011] = 2022; c[1011] = 2022;
    a[1130] = 339; b[1130] = 3390; c[1130] = 3390;
    a[1054] = 340; b[1054] = 1860; c[1054] = 3162;
    a[1062] = 340; b[1062] = 2006; c[1062] = 3060;
    a[1122] = 340; b[1122] = 3060; c[1122] = 3366;
    a[1083] = 342; b[1083] = 2166; c[1083] = 3249;
    a[1098] = 342; b[1098] = 2318; c[1098] = 3477;
    a[1140] = 342; b[1140] = 3420; c[1140] = 3420;
    a[1079] = 344; b[1079] = 1992; c[1079] = 3354;
    a[1106] = 344; b[1106] = 2408; c[1106] = 3397;
    a[1131] = 344; b[1131] = 3016; c[1131] = 3354;
    a[1144] = 344; b[1144] = 3354; c[1144] = 3432;
    a[943] = 345; b[943] = 1230; c[943] = 1886;
    a[1127] = 345; b[1127] = 2940; c[1127] = 3220;
    a[1150] = 345; b[1150] = 3450; c[1150] = 3450;
    a[692] = 346; b[692] = 519; c[692] = 1038;
    a[865] = 346; b[865] = 692; c[865] = 3460;
    a[1038] = 346; b[1038] = 1557; c[1038] = 3114;
    a[694] = 347; b[694] = 694; c[694] = 694;
    a[1041] = 347; b[1041] = 2082; c[1041] = 2082;
    a[1073] = 348; b[1073] = 2088; c[1073] = 2664;
    a[1102] = 348; b[1102] = 2204; c[1102] = 3306;
    a[1107] = 348; b[1107] = 2378; c[1107] = 3132;
    a[1160] = 348; b[1160] = 3480; c[1160] = 3480;
    a[698] = 349; b[698] = 698; c[698] = 698;
    a[1047] = 349; b[1047] = 2094; c[1047] = 2094;
    a[1065] = 350; b[1065] = 1775; c[1065] = 2982;
    a[1113] = 350; b[1113] = 2385; c[1113] = 3150;
    a[1125] = 350; b[1125] = 2625; c[1125] = 3150;
    a[1134] = 350; b[1134] = 2835; c[1134] = 3150;
    a[1152] = 350; b[1152] = 3150; c[1152] = 3360;
    a[1155] = 350; b[1155] = 3150; c[1155] = 3465;
    a[1118] = 351; b[1118] = 2322; c[1118] = 3354;
    a[1161] = 351; b[1161] = 3354; c[1161] = 3354;
    a[1111] = 352; b[1111] = 2222; c[1111] = 3232;
    a[1166] = 352; b[1166] = 3392; c[1166] = 3392;
    a[706] = 353; b[706] = 706; c[706] = 706;
    a[1059] = 353; b[1059] = 2118; c[1059] = 2118;
    a[1121] = 354; b[1121] = 2242; c[1121] = 3363;
    a[1128] = 354; b[1128] = 2491; c[1128] = 3127;
    a[1136] = 355; b[1136] = 2556; c[1136] = 3195;
    a[1139] = 357; b[1139] = 2814; c[1139] = 2814;
    a[1162] = 357; b[1162] = 2822; c[1162] = 3486;
    a[1176] = 357; b[1176] = 3332; c[1176] = 3332;
    a[718] = 359; b[718] = 718; c[718] = 718;
    a[1077] = 359; b[1077] = 2154; c[1077] = 2154;
    a[1143] = 360; b[1143] = 2540; c[1143] = 3048;
    a[1170] = 360; b[1170] = 2860; c[1170] = 3432;
    a[1168] = 360; b[1168] = 2920; c[1168] = 3285;
    a[1184] = 360; b[1184] = 3330; c[1184] = 3330;
    a[905] = 362; b[905] = 905; c[905] = 1810;
    a[1086] = 362; b[1086] = 1629; c[1086] = 3258;
    a[1188] = 363; b[1188] = 3267; c[1188] = 3267;
    a[949] = 364; b[949] = 876; c[949] = 3066;
    a[1183] = 364; b[1183] = 3042; c[1183] = 3276;
    a[1190] = 364; b[1190] = 3185; c[1190] = 3332;
    a[1197] = 364; b[1197] = 3276; c[1197] = 3458;
    a[1159] = 366; b[1159] = 2318; c[1159] = 3477;
    a[1173] = 366; b[1173] = 2806; c[1173] = 3111;
    a[1199] = 366; b[1199] = 3270; c[1199] = 3355;
    a[1200] = 366; b[1200] = 3300; c[1200] = 3355;
    a[734] = 367; b[734] = 734; c[734] = 734;
    a[1101] = 367; b[1101] = 2202; c[1101] = 2202;
    a[1216] = 368; b[1216] = 3496; c[1216] = 3496;
    a[1148] = 369; b[1148] = 2132; c[1148] = 3276;
    a[1147] = 370; b[1147] = 2035; c[1147] = 3410;
    a[1209] = 372; b[1209] = 3224; c[1209] = 3224;
    a[1218] = 372; b[1218] = 3248; c[1218] = 3472;
    a[746] = 373; b[746] = 746; c[746] = 746;
    a[1119] = 373; b[1119] = 2238; c[1119] = 2238;
    a[1207] = 374; b[1207] = 3124; c[1207] = 3124;
    a[1224] = 374; b[1224] = 3366; c[1224] = 3366;
    a[1222] = 376; b[1222] = 3102; c[1222] = 3432;
    a[1215] = 378; b[1215] = 2835; c[1215] = 3402;
    a[1232] = 378; b[1232] = 3267; c[1232] = 3388;
    a[758] = 379; b[758] = 758; c[758] = 758;
    a[1137] = 379; b[1137] = 2274; c[1137] = 2274;
    a[1178] = 380; b[1178] = 2356; c[1178] = 2945;
    a[1206] = 380; b[1206] = 2546; c[1206] = 3420;
    a[1208] = 380; b[1208] = 2869; c[1208] = 3020;
    a[1235] = 380; b[1235] = 3211; c[1235] = 3380;
    a[889] = 381; b[889] = 762; c[889] = 1778;
    a[1016] = 381; b[1016] = 1016; c[1016] = 3048;
    a[955] = 382; b[955] = 955; c[955] = 1910;
    a[1146] = 382; b[1146] = 1719; c[1146] = 3438;
    a[766] = 383; b[766] = 766; c[766] = 766;
    a[1149] = 383; b[1149] = 2298; c[1149] = 2298;
    a[1196] = 384; b[1196] = 2496; c[1196] = 2944;
    a[1248] = 384; b[1248] = 3328; c[1248] = 3328;
    a[1180] = 385; b[1180] = 2065; c[1180] = 3245;
    a[1177] = 385; b[1177] = 2140; c[1177] = 2996;
    a[1204] = 385; b[1204] = 2365; c[1204] = 3311;
    a[1210] = 385; b[1210] = 2420; c[1210] = 3388;
    a[1260] = 385; b[1260] = 3465; c[1260] = 3465;
    a[772] = 386; b[772] = 579; c[772] = 1158;
    a[965] = 386; b[965] = 965; c[965] = 1930;
    a[1158] = 386; b[1158] = 1737; c[1158] = 3474;
    a[1164] = 388; b[1164] = 1746; c[1164] = 3492;
    a[778] = 389; b[778] = 778; c[778] = 778;
    a[1167] = 389; b[1167] = 2334; c[1167] = 2334;
    a[1027] = 390; b[1027] = 1185; c[1027] = 2054;
    a[1112] = 390; b[1112] = 1807; c[1112] = 2085;
    a[1175] = 390; b[1175] = 1950; c[1175] = 3055;
    a[1185] = 390; b[1185] = 2054; c[1185] = 3081;
    a[1230] = 390; b[1230] = 2665; c[1230] = 3198;
    a[1240] = 390; b[1240] = 2821; c[1240] = 3255;
    a[1242] = 390; b[1242] = 2990; c[1242] = 3105;
    a[1272] = 390; b[1272] = 3445; c[1272] = 3445;
    a[1275] = 391; b[1275] = 3450; c[1275] = 3450;
    a[1225] = 392; b[1225] = 2380; c[1225] = 3400;
    a[1179] = 393; b[1179] = 2358; c[1179] = 2358;
    a[788] = 394; b[788] = 591; c[788] = 1182;
    a[985] = 394; b[985] = 985; c[985] = 1970;
    a[1182] = 394; b[1182] = 1970; c[1182] = 2955;
    a[1264] = 395; b[1264] = 3160; c[1264] = 3160;
    a[1220] = 396; b[1220] = 2196; c[1220] = 3355;
    a[1221] = 396; b[1221] = 2220; c[1221] = 3330;
    a[1254] = 396; b[1254] = 2660; c[1254] = 3465;
    a[1274] = 396; b[1274] = 3234; c[1274] = 3276;
    a[1287] = 396; b[1287] = 3432; c[1287] = 3432;
    a[794] = 397; b[794] = 794; c[794] = 794;
    a[1191] = 397; b[1191] = 2382; c[1191] = 2382;
    a[796] = 398; b[796] = 597; c[796] = 1194;
    a[995] = 398; b[995] = 995; c[995] = 1990;
    a[1194] = 398; b[1194] = 1990; c[1194] = 2985;
    a[1288] = 399; b[1288] = 3192; c[1288] = 3496;
    a[1280] = 400; b[1280] = 3200; c[1280] = 3200;
    a[1290] = 400; b[1290] = 3225; c[1290] = 3440;
    a[802] = 401; b[802] = 802; c[802] = 802;
    a[1203] = 401; b[1203] = 2406; c[1203] = 2406;
    a[1212] = 404; b[1212] = 2020; c[1212] = 3030;
    a[1278] = 405; b[1278] = 2840; c[1278] = 3240;
    a[1296] = 405; b[1296] = 3078; c[1296] = 3420;
    a[1305] = 405; b[1305] = 3240; c[1305] = 3480;
    a[1276] = 406; b[1276] = 2610; c[1276] = 3465;
    a[1281] = 406; b[1281] = 2958; c[1281] = 3111;
    a[1295] = 407; b[1295] = 3080; c[1295] = 3256;
    a[1156] = 408; b[1156] = 1734; c[1156] = 2312;
    a[1258] = 408; b[1258] = 2368; c[1258] = 3264;
    a[1292] = 408; b[1292] = 2850; c[1292] = 3400;
    a[818] = 409; b[818] = 818; c[818] = 818;
    a[1227] = 409; b[1227] = 2454; c[1227] = 2454;
    a[1189] = 410; b[1189] = 1845; c[1189] = 2610;
    a[1271] = 410; b[1271] = 2480; c[1271] = 3280;
    a[1265] = 410; b[1265] = 2706; c[1265] = 2829;
    a[1300] = 410; b[1300] = 3075; c[1300] = 3198;
    a[1312] = 410; b[1312] = 3240; c[1312] = 3321;
    a[959] = 411; b[959] = 822; c[959] = 1918;
    a[1096] = 411; b[1096] = 1096; c[1096] = 3288;
    a[1233] = 411; b[1233] = 2466; c[1233] = 2466;
    a[1133] = 412; b[1133] = 1236; c[1133] = 3399;
    a[1236] = 412; b[1236] = 2060; c[1236] = 3090;
    a[1239] = 413; b[1239] = 2478; c[1239] = 2478;
    a[1326] = 414; b[1326] = 3289; c[1326] = 3366;
    a[1332] = 414; b[1332] = 3404; c[1332] = 3404;
    a[1245] = 415; b[1245] = 1992; c[1245] = 3320;
    a[1328] = 415; b[1328] = 3320; c[1328] = 3320;
    a[1157] = 416; b[1157] = 1424; c[1157] = 2848;
    a[973] = 417; b[973] = 834; c[973] = 1946;
    a[1251] = 417; b[1251] = 2502; c[1251] = 2502;
    a[1192] = 418; b[1192] = 1639; c[1192] = 2831;
    a[1302] = 418; b[1302] = 2728; c[1302] = 3192;
    a[1309] = 418; b[1309] = 2856; c[1309] = 3192;
    a[1311] = 418; b[1311] = 2970; c[1311] = 3105;
    a[1320] = 418; b[1320] = 3080; c[1320] = 3192;
    a[838] = 419; b[838] = 838; c[838] = 838;
    a[1257] = 419; b[1257] = 2514; c[1257] = 2514;
    a[1043] = 420; b[1043] = 894; c[1043] = 2980;
    a[1141] = 420; b[1141] = 1630; c[1141] = 1956;
    a[1205] = 420; b[1205] = 1687; c[1205] = 2892;
    a[1250] = 420; b[1250] = 1875; c[1250] = 3500;
    a[1270] = 420; b[1270] = 2540; c[1270] = 2667;
    a[1316] = 420; b[1316] = 2820; c[1316] = 3290;
    a[1330] = 420; b[1330] = 2964; c[1330] = 3458;
    a[1344] = 420; b[1344] = 3248; c[1344] = 3480;
    a[1350] = 420; b[1350] = 3375; c[1350] = 3500;
    a[842] = 421; b[842] = 842; c[842] = 842;
    a[1263] = 421; b[1263] = 2526; c[1263] = 2526;
    a[844] = 422; b[844] = 633; c[844] = 1266;
    a[1055] = 422; b[1055] = 1055; c[1055] = 2110;
    a[1266] = 422; b[1266] = 2110; c[1266] = 3165;
    a[1269] = 423; b[1269] = 1998; c[1269] = 3478;
    a[1219] = 424; b[1219] = 2024; c[1219] = 2332;
    a[1323] = 425; b[1323] = 2700; c[1323] = 3332;
    a[1360] = 425; b[1360] = 3400; c[1360] = 3400;
    a[1284] = 428; b[1284] = 2140; c[1284] = 3210;
    a[1353] = 429; b[1353] = 3120; c[1353] = 3280;
    a[1364] = 429; b[1364] = 3224; c[1364] = 3432;
    a[1378] = 429; b[1378] = 3498; c[1378] = 3498;
    a[1247] = 430; b[1247] = 1806; c[1247] = 3045;
    a[1368] = 430; b[1368] = 3268; c[1368] = 3420;
    a[1376] = 430; b[1376] = 3440; c[1376] = 3440;
    a[862] = 431; b[862] = 862; c[862] = 862;
    a[1293] = 431; b[1293] = 2586; c[1293] = 2586;
    a[866] = 433; b[866] = 866; c[866] = 866;
    a[1299] = 433; b[1299] = 2598; c[1299] = 2598;
    a[1298] = 434; b[1298] = 2065; c[1298] = 3410;
    a[1365] = 434; b[1365] = 3003; c[1365] = 3410;
    a[1386] = 434; b[1386] = 3410; c[1386] = 3465;
    a[1363] = 435; b[1363] = 3102; c[1363] = 3190;
    a[1380] = 435; b[1380] = 3335; c[1380] = 3335;
    a[1392] = 435; b[1392] = 3480; c[1392] = 3480;
    a[1308] = 436; b[1308] = 2180; c[1308] = 3270;
    a[1349] = 437; b[1349] = 2698; c[1349] = 3266;
    a[1387] = 437; b[1387] = 3358; c[1387] = 3358;
    a[1241] = 438; b[1241] = 1825; c[1241] = 2550;
    a[1314] = 438; b[1314] = 2190; c[1314] = 3285;
    a[878] = 439; b[878] = 878; c[878] = 878;
    a[1317] = 439; b[1317] = 2634; c[1317] = 2634;
    a[1285] = 440; b[1285] = 2056; c[1285] = 2827;
    a[1335] = 440; b[1335] = 2314; c[1335] = 3432;
    a[1342] = 440; b[1342] = 2440; c[1342] = 3355;
    a[1352] = 440; b[1352] = 2535; c[1352] = 3432;
    a[1340] = 440; b[1340] = 2680; c[1340] = 2948;
    a[1375] = 440; b[1375] = 3000; c[1375] = 3300;
    a[1391] = 440; b[1391] = 3210; c[1391] = 3432;
    a[1372] = 441; b[1372] = 3087; c[1372] = 3087;
    a[1261] = 442; b[1261] = 1649; c[1261] = 3298;
    a[886] = 443; b[886] = 886; c[886] = 886;
    a[1329] = 443; b[1329] = 2658; c[1329] = 2658;
    a[1406] = 444; b[1406] = 3330; c[1406] = 3420;
    a[1246] = 445; b[1246] = 1780; c[1246] = 2492;
    a[892] = 446; b[892] = 669; c[892] = 1338;
    a[1115] = 446; b[1115] = 1115; c[1115] = 2230;
    a[1338] = 446; b[1338] = 2230; c[1338] = 3345;
    a[1341] = 447; b[1341] = 2682; c[1341] = 2682;
    a[1395] = 448; b[1395] = 2880; c[1395] = 3472;
    a[1400] = 448; b[1400] = 3200; c[1400] = 3200;
    a[898] = 449; b[898] = 898; c[898] = 898;
    a[1347] = 449; b[1347] = 2694; c[1347] = 2694;
    a[1325] = 450; b[1325] = 2385; c[1325] = 2650;
    a[1370] = 450; b[1370] = 2466; c[1370] = 3425;
    a[1408] = 450; b[1408] = 3168; c[1408] = 3300;
    a[1422] = 450; b[1422] = 3300; c[1422] = 3476;
    a[1425] = 450; b[1425] = 3420; c[1425] = 3420;
    a[1356] = 452; b[1356] = 2260; c[1356] = 3390;
    a[1057] = 453; b[1057] = 906; c[1057] = 2114;
    a[1359] = 453; b[1359] = 2718; c[1359] = 2718;
    a[908] = 454; b[908] = 681; c[908] = 1362;
    a[1135] = 454; b[1135] = 1135; c[1135] = 2270;
    a[1362] = 454; b[1362] = 2270; c[1362] = 3405;
    a[1313] = 455; b[1313] = 2020; c[1313] = 2828;
    a[1394] = 455; b[1394] = 2870; c[1394] = 3094;
    a[1404] = 455; b[1404] = 3024; c[1404] = 3120;
    a[1428] = 455; b[1428] = 3315; c[1428] = 3315;
    a[1440] = 455; b[1440] = 3432; c[1440] = 3465;
    a[1377] = 456; b[1377] = 2584; c[1377] = 3078;
    a[914] = 457; b[914] = 914; c[914] = 914;
    a[1371] = 457; b[1371] = 2742; c[1371] = 2742;
    a[916] = 458; b[916] = 687; c[916] = 1374;
    a[1145] = 458; b[1145] = 1145; c[1145] = 2290;
    a[1374] = 458; b[1374] = 2290; c[1374] = 3435;
    a[1416] = 459; b[1416] = 3009; c[1416] = 3186;
    a[1081] = 460; b[1081] = 940; c[1081] = 2162;
    a[1357] = 460; b[1357] = 2300; c[1357] = 2950;
    a[1334] = 460; b[1334] = 2415; c[1334] = 2436;
    a[1410] = 460; b[1410] = 2820; c[1410] = 3243;
    a[922] = 461; b[922] = 922; c[922] = 922;
    a[1383] = 461; b[1383] = 2766; c[1383] = 2766;
    a[1243] = 462; b[1243] = 1356; c[1243] = 3164;
    a[1358] = 462; b[1358] = 2134; c[1358] = 3201;
    a[1398] = 462; b[1398] = 2563; c[1398] = 3262;
    a[1419] = 462; b[1419] = 2838; c[1419] = 3311;
    a[1407] = 462; b[1407] = 2948; c[1407] = 2948;
    a[1452] = 462; b[1452] = 3388; c[1452] = 3388;
    a[1456] = 462; b[1456] = 3432; c[1456] = 3432;
    a[926] = 463; b[926] = 926; c[926] = 926;
    a[1389] = 463; b[1389] = 2778; c[1389] = 2778;
    a[1421] = 464; b[1421] = 2842; c[1421] = 3248;
    a[932] = 466; b[932] = 699; c[932] = 1398;
    a[1165] = 466; b[1165] = 1165; c[1165] = 2330;
    a[934] = 467; b[934] = 934; c[934] = 934;
    a[1401] = 467; b[1401] = 2802; c[1401] = 2802;
    a[1430] = 468; b[1430] = 2717; c[1430] = 3420;
    a[1480] = 470; b[1480] = 3478; c[1480] = 3478;
    a[1099] = 471; b[1099] = 942; c[1099] = 2198;
    a[1256] = 471; b[1256] = 1413; c[1256] = 2826;
    a[1413] = 471; b[1413] = 2826; c[1413] = 2826;
    a[1343] = 472; b[1343] = 1896; c[1343] = 3009;
    a[1450] = 475; b[1450] = 2850; c[1450] = 3306;
    a[1463] = 476; b[1463] = 2992; c[1463] = 3344;
    a[1431] = 477; b[1431] = 2862; c[1431] = 2862;
    a[1484] = 477; b[1484] = 3339; c[1484] = 3339;
    a[956] = 478; b[956] = 717; c[956] = 1434;
    a[1195] = 478; b[1195] = 1195; c[1195] = 2390;
    a[1434] = 478; b[1434] = 2868; c[1434] = 2868;
    a[958] = 479; b[958] = 958; c[958] = 958;
    a[1437] = 479; b[1437] = 2874; c[1437] = 2874;
    a[1333] = 480; b[1333] = 1720; c[1333] = 2976;
    a[1420] = 480; b[1420] = 2272; c[1420] = 3408;
    a[1435] = 480; b[1435] = 2460; c[1435] = 3360;
    a[1424] = 480; b[1424] = 2670; c[1424] = 2848;
    a[1455] = 480; b[1455] = 2716; c[1455] = 3360;
    a[1470] = 480; b[1470] = 2940; c[1470] = 3360;
    a[1488] = 480; b[1488] = 3255; c[1488] = 3360;
    a[1500] = 480; b[1500] = 3360; c[1500] = 3500;
    a[1443] = 481; b[1443] = 2812; c[1443] = 2964;
    a[964] = 482; b[964] = 723; c[964] = 1446;
    a[1446] = 482; b[1446] = 2892; c[1446] = 2892;
    a[1403] = 483; b[1403] = 2562; c[1403] = 2562;
    a[1449] = 483; b[1449] = 2576; c[1449] = 3312;
    a[1426] = 483; b[1426] = 2604; c[1426] = 2852;
    a[1472] = 483; b[1472] = 2800; c[1472] = 3450;
    a[1491] = 483; b[1491] = 3266; c[1491] = 3266;
    a[1458] = 486; b[1458] = 2916; c[1458] = 2916;
    a[1482] = 486; b[1482] = 3078; c[1482] = 3159;
    a[1512] = 486; b[1512] = 3402; c[1512] = 3402;
    a[974] = 487; b[974] = 974; c[974] = 974;
    a[1461] = 487; b[1461] = 2922; c[1461] = 2922;
    a[1464] = 488; b[1464] = 2562; c[1464] = 3416;
    a[1304] = 489; b[1304] = 1467; c[1304] = 2934;
    a[1467] = 489; b[1467] = 2934; c[1467] = 2934;
    a[982] = 491; b[982] = 982; c[982] = 982;
    a[1473] = 491; b[1473] = 2946; c[1473] = 2946;
    a[1476] = 492; b[1476] = 2583; c[1476] = 3444;
    a[1496] = 493; b[1496] = 2871; c[1496] = 3366;
    a[1479] = 493; b[1479] = 2958; c[1479] = 2958;
    a[1520] = 494; b[1520] = 3211; c[1520] = 3380;
    a[1460] = 495; b[1460] = 2409; c[1460] = 3285;
    a[1485] = 495; b[1485] = 2700; c[1485] = 3300;
    a[1530] = 495; b[1530] = 3366; c[1530] = 3366;
    a[1540] = 495; b[1540] = 3465; c[1540] = 3465;
    a[1519] = 496; b[1519] = 3038; c[1519] = 3472;
    a[1536] = 496; b[1536] = 3348; c[1536] = 3456;
    a[1494] = 498; b[1494] = 2988; c[1494] = 2988;
    a[998] = 499; b[998] = 998; c[998] = 998;
    a[1497] = 499; b[1497] = 2994; c[1497] = 2994;
    a[1508] = 500; b[1508] = 2900; c[1508] = 3250;
    a[1525] = 500; b[1525] = 3172; c[1525] = 3250;
    a[1169] = 501; b[1169] = 1002; c[1169] = 2338;
    a[1336] = 501; b[1336] = 1503; c[1336] = 3006;
    a[1503] = 501; b[1503] = 3006; c[1503] = 3006;
    a[1004] = 502; b[1004] = 753; c[1004] = 1506;
    a[1255] = 502; b[1255] = 1255; c[1255] = 2510;
    a[1506] = 502; b[1506] = 3012; c[1506] = 3012;
    a[1006] = 503; b[1006] = 1006; c[1006] = 1006;
    a[1509] = 503; b[1509] = 3018; c[1509] = 3018;
    a[1504] = 504; b[1504] = 2585; c[1504] = 3465;
    a[1518] = 504; b[1518] = 2760; c[1518] = 3465;
    a[1560] = 504; b[1560] = 3432; c[1560] = 3465;
    a[1414] = 505; b[1414] = 2020; c[1414] = 2828;
    a[1515] = 505; b[1515] = 3030; c[1515] = 3030;
    a[1495] = 506; b[1495] = 2530; c[1495] = 3289;
    a[1529] = 506; b[1529] = 3058; c[1529] = 3197;
    a[1521] = 507; b[1521] = 3042; c[1521] = 3042;
    a[1524] = 508; b[1524] = 3048; c[1524] = 3048;
    a[1018] = 509; b[1018] = 1018; c[1018] = 1018;
    a[1527] = 509; b[1527] = 3054; c[1527] = 3054;
    a[1462] = 510; b[1462] = 2064; c[1462] = 3440;
    a[1411] = 510; b[1411] = 2075; c[1411] = 2550;
    a[1528] = 510; b[1528] = 2865; c[1528] = 3247;
    a[1547] = 510; b[1547] = 3094; c[1547] = 3315;
    a[1533] = 511; b[1533] = 3066; c[1533] = 3066;
    a[1539] = 513; b[1539] = 3078; c[1539] = 3078;
    a[1566] = 513; b[1566] = 3306; c[1566] = 3306;
    a[1028] = 514; b[1028] = 771; c[1028] = 1542;
    a[1542] = 514; b[1542] = 3084; c[1542] = 3084;
    a[1339] = 515; b[1339] = 1560; c[1339] = 2472;
    a[1442] = 515; b[1442] = 2060; c[1442] = 2884;
    a[1545] = 515; b[1545] = 3090; c[1545] = 3090;
    a[1505] = 516; b[1505] = 2520; c[1505] = 3096;
    a[1548] = 516; b[1548] = 2844; c[1548] = 3397;
    a[1554] = 516; b[1554] = 3108; c[1554] = 3182;
    a[1457] = 517; b[1457] = 2046; c[1457] = 3102;
    a[1551] = 517; b[1551] = 3102; c[1551] = 3102;
    a[1584] = 517; b[1584] = 3384; c[1584] = 3384;
    a[1211] = 519; b[1211] = 1038; c[1211] = 2422;
    a[1384] = 519; b[1384] = 1557; c[1384] = 3114;
    a[1557] = 519; b[1557] = 3114; c[1557] = 3114;
    a[1573] = 520; b[1573] = 3080; c[1573] = 3388;
    a[1568] = 520; b[1568] = 3185; c[1568] = 3185;
    a[1042] = 521; b[1042] = 1042; c[1042] = 1042;
    a[1563] = 521; b[1563] = 3126; c[1563] = 3126;
    a[1046] = 523; b[1046] = 1046; c[1046] = 1046;
    a[1569] = 523; b[1569] = 3138; c[1569] = 3138;
    a[1310] = 524; b[1310] = 1310; c[1310] = 2620;
    a[1572] = 524; b[1572] = 3144; c[1572] = 3144;
    a[1475] = 525; b[1475] = 2478; c[1475] = 2478;
    a[1550] = 525; b[1550] = 2790; c[1550] = 3150;
    a[1575] = 525; b[1575] = 2898; c[1575] = 3450;
    a[1600] = 525; b[1600] = 3248; c[1600] = 3480;
    a[1596] = 525; b[1596] = 3325; c[1596] = 3325;
    a[1610] = 525; b[1610] = 3450; c[1610] = 3450;
    a[1052] = 526; b[1052] = 789; c[1052] = 1578;
    a[1315] = 526; b[1315] = 1315; c[1315] = 2630;
    a[1578] = 526; b[1578] = 3156; c[1578] = 3156;
    a[1581] = 527; b[1581] = 3162; c[1581] = 3162;
    a[1507] = 528; b[1507] = 2192; c[1507] = 3288;
    a[1474] = 528; b[1474] = 2288; c[1474] = 2613;
    a[1564] = 528; b[1564] = 2992; c[1564] = 3036;
    a[1058] = 529; b[1058] = 1058; c[1058] = 1058;
    a[1587] = 529; b[1587] = 3174; c[1587] = 3174;
    a[1590] = 530; b[1590] = 2915; c[1590] = 3498;
    a[1612] = 530; b[1612] = 3286; c[1612] = 3445;
    a[1593] = 531; b[1593] = 3186; c[1593] = 3186;
    a[1501] = 532; b[1501] = 2212; c[1501] = 3002;
    a[1599] = 533; b[1599] = 3120; c[1599] = 3280;
    a[1602] = 534; b[1602] = 3204; c[1602] = 3204;
    a[1498] = 535; b[1498] = 2140; c[1498] = 2996;
    a[1605] = 535; b[1605] = 3210; c[1605] = 3210;
    a[1273] = 536; b[1273] = 1474; c[1273] = 1672;
    a[1608] = 536; b[1608] = 3216; c[1608] = 3216;
    a[1632] = 536; b[1632] = 3417; c[1632] = 3417;
    a[1253] = 537; b[1253] = 1074; c[1253] = 2506;
    a[1432] = 537; b[1432] = 1611; c[1432] = 3222;
    a[1611] = 537; b[1611] = 3222; c[1611] = 3222;
    a[1076] = 538; b[1076] = 807; c[1076] = 1614;
    a[1345] = 538; b[1345] = 1345; c[1345] = 2690;
    a[1614] = 538; b[1614] = 3228; c[1614] = 3228;
    a[1606] = 539; b[1606] = 3066; c[1606] = 3234;
    a[1617] = 539; b[1617] = 3234; c[1617] = 3234;
    a[1552] = 540; b[1552] = 2619; c[1552] = 2910;
    a[1595] = 540; b[1595] = 2970; c[1595] = 3132;
    a[1620] = 540; b[1620] = 3078; c[1620] = 3420;
    a[1635] = 540; b[1635] = 3348; c[1635] = 3379;
    a[1082] = 541; b[1082] = 1082; c[1082] = 1082;
    a[1623] = 541; b[1623] = 3246; c[1623] = 3246;
    a[1084] = 542; b[1084] = 813; c[1084] = 1626;
    a[1355] = 542; b[1355] = 1355; c[1355] = 2710;
    a[1626] = 542; b[1626] = 3252; c[1626] = 3252;
    a[1267] = 543; b[1267] = 1086; c[1267] = 2534;
    a[1448] = 543; b[1448] = 1629; c[1448] = 3258;
    a[1629] = 543; b[1629] = 3258; c[1629] = 3258;
    a[1598] = 544; b[1598] = 3008; c[1598] = 3008;
    a[1615] = 544; b[1615] = 3040; c[1615] = 3230;
    a[1526] = 545; b[1526] = 2180; c[1526] = 3052;
    a[1534] = 546; b[1534] = 2124; c[1534] = 3276;
    a[1638] = 546; b[1638] = 3159; c[1638] = 3402;
    a[1094] = 547; b[1094] = 1094; c[1094] = 1094;
    a[1641] = 547; b[1641] = 3282; c[1641] = 3282;
    a[1644] = 548; b[1644] = 3288; c[1644] = 3288;
    a[1647] = 549; b[1647] = 3294; c[1647] = 3294;
    a[1650] = 550; b[1650] = 3150; c[1650] = 3465;
    a[1653] = 551; b[1653] = 3306; c[1653] = 3306;
    a[1656] = 552; b[1656] = 3243; c[1656] = 3384;
    a[1580] = 553; b[1580] = 2370; c[1580] = 3318;
    a[1659] = 553; b[1659] = 3318; c[1659] = 3318;
    a[1108] = 554; b[1108] = 831; c[1108] = 1662;
    a[1385] = 554; b[1385] = 1385; c[1385] = 2770;
    a[1662] = 554; b[1662] = 3324; c[1662] = 3324;
    a[1665] = 555; b[1665] = 3330; c[1665] = 3330;
    a[1390] = 556; b[1390] = 1390; c[1390] = 2780;
    a[1668] = 556; b[1668] = 3336; c[1668] = 3336;
    a[1114] = 557; b[1114] = 1114; c[1114] = 1114;
    a[1671] = 557; b[1671] = 3342; c[1671] = 3342;
    a[1674] = 558; b[1674] = 3348; c[1674] = 3348;
    a[1677] = 559; b[1677] = 3354; c[1677] = 3354;
    a[1490] = 560; b[1490] = 2086; c[1490] = 2384;
    a[1640] = 560; b[1640] = 2870; c[1640] = 3280;
    a[1664] = 560; b[1664] = 3040; c[1664] = 3458;
    a[1680] = 560; b[1680] = 3248; c[1680] = 3480;
    a[1628] = 561; b[1628] = 2805; c[1628] = 3145;
    a[1666] = 561; b[1666] = 3234; c[1666] = 3234;
    a[1683] = 561; b[1683] = 3366; c[1683] = 3366;
    a[1124] = 562; b[1124] = 843; c[1124] = 1686;
    a[1405] = 562; b[1405] = 1405; c[1405] = 2810;
    a[1686] = 562; b[1686] = 3372; c[1686] = 3372;
    a[1126] = 563; b[1126] = 1126; c[1126] = 1126;
    a[1689] = 563; b[1689] = 3378; c[1689] = 3378;
    a[1645] = 564; b[1645] = 2820; c[1645] = 3290;
    a[1692] = 564; b[1692] = 3384; c[1692] = 3384;
    a[1582] = 565; b[1582] = 2260; c[1582] = 3164;
    a[1695] = 565; b[1695] = 3390; c[1695] = 3390;
    a[1132] = 566; b[1132] = 849; c[1132] = 1698;
    a[1415] = 566; b[1415] = 1415; c[1415] = 2830;
    a[1698] = 566; b[1698] = 3396; c[1698] = 3396;
    a[1701] = 567; b[1701] = 3402; c[1701] = 3402;
    a[1562] = 568; b[1562] = 2024; c[1562] = 3266;
    a[1704] = 568; b[1704] = 3408; c[1704] = 3408;
    a[1138] = 569; b[1138] = 1138; c[1138] = 1138;
    a[1707] = 569; b[1707] = 3414; c[1707] = 3414;
    a[1444] = 570; b[1444] = 1805; c[1444] = 2166;
    a[1558] = 570; b[1558] = 1968; c[1558] = 3280;
    a[1634] = 570; b[1634] = 2580; c[1634] = 3268;
    a[1672] = 570; b[1672] = 3080; c[1672] = 3192;
    a[1710] = 570; b[1710] = 3420; c[1710] = 3420;
    a[1142] = 571; b[1142] = 1142; c[1142] = 1142;
    a[1713] = 571; b[1713] = 3426; c[1713] = 3426;
    a[1625] = 572; b[1625] = 2750; c[1625] = 2860;
    a[1694] = 572; b[1694] = 3146; c[1694] = 3388;
    a[1700] = 572; b[1700] = 3300; c[1700] = 3315;
    a[1716] = 572; b[1716] = 3432; c[1716] = 3432;
    a[1337] = 573; b[1337] = 1146; c[1337] = 2674;
    a[1719] = 573; b[1719] = 3438; c[1719] = 3438;
    a[1722] = 574; b[1722] = 3403; c[1722] = 3486;
    a[1675] = 575; b[1675] = 3082; c[1675] = 3082;
    a[1725] = 575; b[1725] = 3450; c[1725] = 3450;
    a[1728] = 576; b[1728] = 3456; c[1728] = 3456;
    a[1154] = 577; b[1154] = 1154; c[1154] = 1154;
    a[1731] = 577; b[1731] = 3462; c[1731] = 3462;
    a[1445] = 578; b[1445] = 1445; c[1445] = 2890;
    a[1734] = 578; b[1734] = 3468; c[1734] = 3468;
    a[1351] = 579; b[1351] = 1158; c[1351] = 2702;
    a[1544] = 579; b[1544] = 1737; c[1544] = 3474;
    a[1737] = 579; b[1737] = 3474; c[1737] = 3474;
    a[1624] = 580; b[1624] = 2320; c[1624] = 3248;
    a[1740] = 580; b[1740] = 3480; c[1740] = 3480;
    a[1577] = 581; b[1577] = 1992; c[1577] = 3192;
    a[1660] = 581; b[1660] = 2490; c[1660] = 3486;
    a[1743] = 581; b[1743] = 3486; c[1743] = 3486;
    a[1746] = 582; b[1746] = 3492; c[1746] = 3492;
    a[1749] = 583; b[1749] = 3498; c[1749] = 3498;
    a[1690] = 585; b[1690] = 3042; c[1690] = 3042;
    a[1172] = 586; b[1172] = 879; c[1172] = 1758;
    a[1465] = 586; b[1465] = 1465; c[1465] = 2930;
    a[1174] = 587; b[1174] = 1174; c[1174] = 1174;
    a[1715] = 588; b[1715] = 2940; c[1715] = 3430;
    a[1652] = 590; b[1652] = 2360; c[1652] = 3304;
    a[1379] = 591; b[1379] = 1182; c[1379] = 2758;
    a[1576] = 591; b[1576] = 1970; c[1576] = 2955;
    a[1517] = 592; b[1517] = 1640; c[1517] = 2960;
    a[1186] = 593; b[1186] = 1186; c[1186] = 1186;
    a[1705] = 594; b[1705] = 2970; c[1705] = 3069;
    a[1513] = 595; b[1513] = 1780; c[1513] = 2492;
    a[1729] = 595; b[1729] = 3094; c[1729] = 3230;
    a[1736] = 595; b[1736] = 3162; c[1736] = 3255;
    a[1393] = 597; b[1393] = 1194; c[1393] = 2786;
    a[1592] = 597; b[1592] = 1990; c[1592] = 2985;
    a[1748] = 598; b[1748] = 3059; c[1748] = 3458;
    a[1198] = 599; b[1198] = 1198; c[1198] = 1198;
    a[1616] = 600; b[1616] = 2424; c[1616] = 2525;
    a[1696] = 600; b[1696] = 2650; c[1696] = 3180;
    a[1750] = 600; b[1750] = 3000; c[1750] = 3500;
    a[1751] = 600; b[1751] = 3090; c[1751] = 3400;
    a[1760] = 600; b[1760] = 3150; c[1760] = 3465;
    a[1768] = 600; b[1768] = 3315; c[1768] = 3400;
    a[1775] = 600; b[1775] = 3408; c[1775] = 3408;
    a[1202] = 601; b[1202] = 1202; c[1202] = 1202;
    a[1720] = 602; b[1720] = 2730; c[1720] = 3354;
    a[1764] = 603; b[1764] = 3283; c[1764] = 3283;
    a[1510] = 604; b[1510] = 1510; c[1510] = 3020;
    a[1771] = 605; b[1771] = 3220; c[1771] = 3388;
    a[1717] = 606; b[1717] = 2929; c[1717] = 2958;
    a[1214] = 607; b[1214] = 1214; c[1214] = 1214;
    a[1711] = 609; b[1711] = 2478; c[1711] = 3422;
    a[1586] = 610; b[1586] = 2196; c[1586] = 2340;
    a[1708] = 610; b[1708] = 2440; c[1708] = 3416;
    a[1776] = 612; b[1776] = 3145; c[1776] = 3330;
    a[1785] = 612; b[1785] = 3276; c[1785] = 3315;
    a[1800] = 612; b[1800] = 3400; c[1800] = 3400;
    a[1226] = 613; b[1226] = 1226; c[1226] = 1226;
    a[1228] = 614; b[1228] = 921; c[1228] = 1842;
    a[1535] = 614; b[1535] = 1535; c[1535] = 3070;
    a[1738] = 616; b[1738] = 2765; c[1738] = 3160;
    a[1234] = 617; b[1234] = 1234; c[1234] = 1234;
    a[1648] = 618; b[1648] = 2060; c[1648] = 3090;
    a[1238] = 619; b[1238] = 1238; c[1238] = 1238;
    a[1742] = 620; b[1742] = 2680; c[1742] = 3224;
    a[1767] = 620; b[1767] = 2790; c[1767] = 3420;
    a[1755] = 620; b[1755] = 2808; c[1755] = 3224;
    a[1244] = 622; b[1244] = 933; c[1244] = 1866;
    a[1555] = 622; b[1555] = 1555; c[1555] = 3110;
    a[1780] = 623; b[1780] = 3115; c[1780] = 3115;
    a[1651] = 624; b[1651] = 2032; c[1651] = 3048;
    a[1792] = 624; b[1792] = 3094; c[1792] = 3264;
    a[1820] = 624; b[1820] = 3248; c[1820] = 3480;
    a[1824] = 624; b[1824] = 3344; c[1824] = 3432;
    a[1252] = 626; b[1252] = 939; c[1252] = 1878;
    a[1565] = 626; b[1565] = 1565; c[1565] = 3130;
    a[1782] = 627; b[1782] = 3078; c[1782] = 3078;
    a[1786] = 627; b[1786] = 3102; c[1786] = 3102;
    a[1570] = 628; b[1570] = 1570; c[1570] = 3140;
    a[1739] = 629; b[1739] = 2516; c[1739] = 3196;
    a[1589] = 630; b[1589] = 2043; c[1589] = 2270;
    a[1752] = 630; b[1752] = 2555; c[1752] = 3285;
    a[1806] = 630; b[1806] = 3150; c[1806] = 3225;
    a[1827] = 630; b[1827] = 3190; c[1827] = 3465;
    a[1845] = 630; b[1845] = 3403; c[1845] = 3486;
    a[1848] = 630; b[1848] = 3465; c[1848] = 3465;
    a[1262] = 631; b[1262] = 1262; c[1262] = 1262;
    a[1817] = 632; b[1817] = 3002; c[1817] = 3496;
    a[1477] = 633; b[1477] = 1266; c[1477] = 2954;
    a[1688] = 633; b[1688] = 2110; c[1688] = 3165;
    a[1268] = 634; b[1268] = 951; c[1268] = 1902;
    a[1585] = 634; b[1585] = 1585; c[1585] = 3170;
    a[1862] = 637; b[1862] = 3458; c[1862] = 3458;
    a[1836] = 640; b[1836] = 3060; c[1836] = 3456;
    a[1840] = 640; b[1840] = 3105; c[1840] = 3456;
    a[1860] = 640; b[1860] = 3348; c[1860] = 3456;
    a[1282] = 641; b[1282] = 1282; c[1282] = 1282;
    a[1712] = 642; b[1712] = 2140; c[1712] = 3210;
    a[1286] = 643; b[1286] = 1286; c[1286] = 1286;
    a[1794] = 644; b[1794] = 2691; c[1794] = 3276;
    a[1294] = 647; b[1294] = 1294; c[1294] = 1294;
    a[1863] = 648; b[1863] = 3243; c[1863] = 3384;
    a[1417] = 650; b[1417] = 1090; c[1417] = 2725;
    a[1829] = 650; b[1829] = 3068; c[1829] = 3100;
    a[1643] = 651; b[1643] = 2226; c[1643] = 2226;
    a[1630] = 652; b[1630] = 1630; c[1630] = 3260;
    a[1306] = 653; b[1306] = 1306; c[1306] = 1306;
    a[1744] = 654; b[1744] = 2180; c[1744] = 3270;
    a[1763] = 656; b[1763] = 2624; c[1763] = 2752;
    a[1804] = 656; b[1804] = 2788; c[1804] = 2992;
    a[1833] = 658; b[1833] = 2679; c[1833] = 3458;
    a[1880] = 658; b[1880] = 3290; c[1880] = 3290;
    a[1318] = 659; b[1318] = 1318; c[1318] = 1318;
    a[1793] = 660; b[1793] = 2445; c[1793] = 3260;
    a[1808] = 660; b[1808] = 2486; c[1808] = 3390;
    a[1815] = 660; b[1815] = 2541; c[1815] = 3388;
    a[1830] = 660; b[1830] = 2684; c[1830] = 3355;
    a[1813] = 660; b[1813] = 2849; c[1813] = 2940;
    a[1872] = 660; b[1872] = 3003; c[1872] = 3465;
    a[1870] = 660; b[1870] = 3060; c[1870] = 3366;
    a[1881] = 660; b[1881] = 3135; c[1881] = 3420;
    a[1884] = 660; b[1884] = 3140; c[1884] = 3454;
    a[1890] = 660; b[1890] = 3267; c[1890] = 3388;
    a[1904] = 660; b[1904] = 3366; c[1904] = 3465;
    a[1914] = 660; b[1914] = 3480; c[1914] = 3480;
    a[1322] = 661; b[1322] = 1322; c[1322] = 1322;
    a[1324] = 662; b[1324] = 993; c[1324] = 1986;
    a[1655] = 662; b[1655] = 1655; c[1655] = 3310;
    a[1846] = 663; b[1846] = 2982; c[1846] = 3094;
    a[1900] = 665; b[1900] = 3325; c[1900] = 3325;
    a[1591] = 666; b[1591] = 1554; c[1591] = 2709;
    a[1770] = 666; b[1770] = 2183; c[1770] = 3330;
    a[1702] = 666; b[1702] = 2277; c[1702] = 2442;
    a[1850] = 666; b[1850] = 2775; c[1850] = 3330;
    a[1887] = 666; b[1887] = 3145; c[1887] = 3330;
    a[1908] = 666; b[1908] = 3286; c[1908] = 3441;
    a[1798] = 667; b[1798] = 2668; c[1798] = 2852;
    a[1670] = 668; b[1670] = 1670; c[1670] = 3340;
    a[1561] = 669; b[1561] = 1338; c[1561] = 3122;
    a[1784] = 669; b[1784] = 2230; c[1784] = 3345;
    a[1856] = 672; b[1856] = 2784; c[1856] = 3248;
    a[1920] = 672; b[1920] = 3248; c[1920] = 3480;
    a[1346] = 673; b[1346] = 1346; c[1346] = 1346;
    a[1348] = 674; b[1348] = 1011; c[1348] = 2022;
    a[1685] = 674; b[1685] = 1685; c[1685] = 3370;
    a[1354] = 677; b[1354] = 1354; c[1354] = 1354;
    a[1940] = 679; b[1940] = 3395; c[1940] = 3395;
    a[1853] = 680; b[1853] = 2616; c[1853] = 3270;
    a[1816] = 681; b[1816] = 2270; c[1816] = 3405;
    a[1953] = 682; b[1953] = 3410; c[1953] = 3465;
    a[1366] = 683; b[1366] = 1366; c[1366] = 1366;
    a[1691] = 684; b[1691] = 1691; c[1691] = 3204;
    a[1805] = 684; b[1805] = 2166; c[1805] = 3420;
    a[1919] = 684; b[1919] = 3030; c[1919] = 3420;
    a[1938] = 684; b[1938] = 3230; c[1938] = 3420;
    a[1960] = 686; b[1960] = 3430; c[1960] = 3430;
    a[1603] = 687; b[1603] = 1374; c[1603] = 3206;
    a[1832] = 687; b[1832] = 2290; c[1832] = 3435;
    a[1935] = 688; b[1935] = 3096; c[1935] = 3440;
    a[1541] = 690; b[1541] = 1541; c[1541] = 2010;
    a[1679] = 690; b[1679] = 1752; c[1679] = 2760;
    a[1932] = 690; b[1932] = 3220; c[1932] = 3220;
    a[1382] = 691; b[1382] = 1382; c[1382] = 1382;
    a[1730] = 692; b[1730] = 1730; c[1730] = 3460;
    a[1892] = 693; b[1892] = 2709; c[1892] = 3311;
    a[1925] = 693; b[1925] = 2898; c[1925] = 3450;
    a[1936] = 693; b[1936] = 3146; c[1936] = 3276;
    a[1950] = 693; b[1950] = 3276; c[1950] = 3300;
    a[1980] = 693; b[1980] = 3465; c[1980] = 3465;
    a[1388] = 694; b[1388] = 1041; c[1388] = 2082;
    a[1735] = 694; b[1735] = 1735; c[1735] = 3470;
    a[1924] = 696; b[1924] = 3016; c[1924] = 3219;
    a[1943] = 696; b[1943] = 3216; c[1943] = 3216;
    a[1396] = 698; b[1396] = 1047; c[1396] = 2094;
    a[1745] = 698; b[1745] = 1745; c[1745] = 3490;
    a[1631] = 699; b[1631] = 1398; c[1631] = 3262;
    a[1864] = 699; b[1864] = 2330; c[1864] = 3495;
    a[1918] = 700; b[1918] = 2740; c[1918] = 3425;
    a[1952] = 700; b[1952] = 3050; c[1952] = 3416;
    a[2000] = 700; b[2000] = 3500; c[2000] = 3500;
    a[1402] = 701; b[1402] = 1402; c[1402] = 1402;
    a[1854] = 702; b[1854] = 2678; c[1854] = 2781;
    a[1944] = 702; b[1944] = 3159; c[1944] = 3159;
    a[1978] = 703; b[1978] = 3268; c[1978] = 3404;
    a[1974] = 705; b[1974] = 3290; c[1974] = 3290;
    a[1412] = 706; b[1412] = 1059; c[1412] = 2118;
    a[1888] = 708; b[1888] = 2478; c[1888] = 3304;
    a[1947] = 708; b[1947] = 2950; c[1947] = 3300;
    a[1418] = 709; b[1418] = 1418; c[1418] = 1418;
    a[1988] = 710; b[1988] = 3290; c[1988] = 3337;
    a[1896] = 711; b[1896] = 2844; c[1896] = 2844;
    a[1975] = 711; b[1975] = 3150; c[1975] = 3318;
    a[1891] = 713; b[1891] = 2806; c[1891] = 2806;
    a[1802] = 714; b[1802] = 2226; c[1802] = 2703;
    a[1876] = 714; b[1876] = 2278; c[1876] = 3417;
    a[1911] = 714; b[1911] = 2548; c[1911] = 3332;
    a[1972] = 714; b[1972] = 2958; c[1972] = 3451;
    a[1989] = 714; b[1989] = 3159; c[1989] = 3402;
    a[2009] = 714; b[2009] = 3332; c[2009] = 3444;
    a[2023] = 714; b[2023] = 3468; c[2023] = 3468;
    a[1885] = 715; b[1885] = 2552; c[1885] = 3016;
    a[2015] = 715; b[2015] = 3410; c[2015] = 3410;
    a[1790] = 716; b[1790] = 2148; c[1790] = 2685;
    a[1673] = 717; b[1673] = 1434; c[1673] = 3346;
    a[1912] = 717; b[1912] = 2868; c[1912] = 2868;
    a[1436] = 718; b[1436] = 1077; c[1436] = 2154;
    a[1438] = 719; b[1438] = 1438; c[1438] = 1438;
    a[1968] = 720; b[1968] = 2952; c[1968] = 3280;
    a[2002] = 720; b[2002] = 3120; c[2002] = 3465;
    a[2016] = 720; b[2016] = 3248; c[2016] = 3480;
    a[1687] = 723; b[1687] = 1446; c[1687] = 3374;
    a[1928] = 723; b[1928] = 2892; c[1928] = 2892;
    a[1810] = 724; b[1810] = 2172; c[1810] = 2715;
    a[2025] = 725; b[2025] = 3240; c[2025] = 3480;
    a[2040] = 725; b[2040] = 3400; c[2040] = 3480;
    a[2013] = 726; b[2013] = 3267; c[2013] = 3294;
    a[1454] = 727; b[1454] = 1454; c[1454] = 1454;
    a[1883] = 728; b[1883] = 2152; c[1883] = 3497;
    a[1898] = 728; b[1898] = 2408; c[1898] = 3139;
    a[1984] = 728; b[1984] = 2821; c[1984] = 3472;
    a[1976] = 728; b[1976] = 2964; c[1976] = 3192;
    a[1825] = 730; b[1825] = 2050; c[1825] = 2993;
    a[1769] = 732; b[1769] = 1914; c[1769] = 2684;
    a[1466] = 733; b[1466] = 1466; c[1466] = 1466;
    a[1468] = 734; b[1468] = 1101; c[1468] = 2202;
    a[2058] = 735; b[2058] = 3430; c[2058] = 3430;
    a[1886] = 736; b[1886] = 2336; c[1886] = 2993;
    a[1955] = 736; b[1955] = 2720; c[1955] = 3128;
    a[2024] = 736; b[2024] = 3168; c[2024] = 3312;
    a[2071] = 736; b[2071] = 3488; c[2071] = 3496;
    a[1478] = 739; b[1478] = 1478; c[1478] = 1478;
    a[2035] = 740; b[2035] = 3256; c[2035] = 3256;
    a[1812] = 741; b[1812] = 1963; c[1812] = 2869;
    a[1995] = 741; b[1995] = 2730; c[1995] = 3458;
    a[2028] = 741; b[2028] = 3211; c[2028] = 3211;
    a[1855] = 742; b[1855] = 2120; c[1855] = 2968;
    a[1486] = 743; b[1486] = 1486; c[1486] = 1486;
    a[1788] = 745; b[1788] = 1788; c[1788] = 2980;
    a[1492] = 746; b[1492] = 1119; c[1492] = 2238;
    a[1826] = 747; b[1826] = 2158; c[1826] = 2574;
    a[1992] = 747; b[1992] = 2988; c[1992] = 2988;
    a[1875] = 750; b[1875] = 2500; c[1875] = 2500;
    a[2100] = 750; b[2100] = 3500; c[2100] = 3500;
    a[1502] = 751; b[1502] = 1502; c[1502] = 1502;
    a[2008] = 753; b[2008] = 3012; c[2008] = 3012;
    a[2088] = 754; b[2088] = 3393; c[2088] = 3393;
    a[1809] = 756; b[1809] = 1876; c[1809] = 2814;
    a[1869] = 756; b[1869] = 2403; c[1869] = 2492;
    a[1971] = 756; b[1971] = 2628; c[1971] = 3066;
    a[2052] = 756; b[2052] = 2964; c[2052] = 3458;
    a[2030] = 756; b[2030] = 3045; c[2030] = 3132;
    a[2034] = 756; b[2034] = 3051; c[2034] = 3164;
    a[2079] = 756; b[2079] = 3267; c[2079] = 3388;
    a[1514] = 757; b[1514] = 1514; c[1514] = 1514;
    a[1516] = 758; b[1516] = 1137; c[1516] = 2274;
    a[2068] = 759; b[2068] = 3243; c[2068] = 3243;
    a[1957] = 760; b[1957] = 2472; c[1957] = 3090;
    a[1965] = 760; b[1965] = 2489; c[1965] = 3144;
    a[2080] = 760; b[2080] = 3211; c[2080] = 3380;
    a[2090] = 760; b[2090] = 3344; c[2090] = 3344;
    a[1522] = 761; b[1522] = 1522; c[1522] = 1522;
    a[1778] = 762; b[1778] = 1778; c[1778] = 2667;
    a[1905] = 762; b[1905] = 2540; c[1905] = 2540;
    a[2032] = 762; b[2032] = 3048; c[2032] = 3048;
    a[1910] = 764; b[1910] = 2292; c[1910] = 2865;
    a[2108] = 765; b[2108] = 3366; c[2108] = 3410;
    a[1532] = 766; b[1532] = 1149; c[1532] = 2298;
    a[2048] = 768; b[2048] = 3072; c[2048] = 3072;
    a[2112] = 768; b[2112] = 3328; c[2112] = 3432;
    a[1538] = 769; b[1538] = 1538; c[1538] = 1538;
    a[2070] = 770; b[2070] = 2898; c[2070] = 3465;
    a[2051] = 770; b[2051] = 2930; c[2051] = 3223;
    a[2072] = 770; b[2072] = 3080; c[2072] = 3256;
    a[2115] = 770; b[2115] = 3290; c[2115] = 3465;
    a[2120] = 770; b[2120] = 3339; c[2120] = 3465;
    a[2128] = 770; b[2128] = 3420; c[2128] = 3465;
    a[2056] = 771; b[2056] = 3084; c[2056] = 3084;
    a[1930] = 772; b[1930] = 2316; c[1930] = 2895;
    a[1546] = 773; b[1546] = 1546; c[1546] = 1546;
    a[2064] = 774; b[2064] = 2844; c[2064] = 3397;
    a[2139] = 775; b[2139] = 3450; c[2139] = 3450;
    a[1649] = 776; b[1649] = 1496; c[1649] = 2134;
    a[1556] = 778; b[1556] = 1167; c[1556] = 2334;
    a[1937] = 780; b[1937] = 2235; c[1937] = 2980;
    a[2067] = 780; b[2067] = 2756; c[2067] = 3445;
    a[2106] = 780; b[2106] = 3078; c[2106] = 3420;
    a[2145] = 780; b[2145] = 3432; c[2145] = 3432;
    a[1917] = 781; b[1917] = 2130; c[1917] = 2970;
    a[2156] = 781; b[2156] = 3479; c[2156] = 3479;
    a[2001] = 783; b[2001] = 2484; c[2001] = 3132;
    a[2124] = 783; b[2124] = 3186; c[2124] = 3422;
    a[2160] = 783; b[2160] = 3480; c[2160] = 3480;
    a[2107] = 784; b[2107] = 3010; c[2107] = 3440;
    a[1703] = 786; b[1703] = 1482; c[1703] = 2489;
    a[1834] = 786; b[1834] = 1834; c[1834] = 2751;
    a[2096] = 786; b[2096] = 3144; c[2096] = 3144;
    a[1574] = 787; b[1574] = 1574; c[1574] = 1574;
    a[1773] = 788; b[1773] = 1773; c[1773] = 2364;
    a[1970] = 788; b[1970] = 2364; c[1970] = 2955;
    a[2104] = 789; b[2104] = 3156; c[2104] = 3156;
    a[1958] = 792; b[1958] = 2136; c[1958] = 3204;
    a[1926] = 792; b[1926] = 2354; c[1926] = 2568;
    a[2046] = 792; b[2046] = 2728; c[2046] = 3069;
    a[1588] = 794; b[1588] = 1191; c[1588] = 2382;
    a[2014] = 795; b[2014] = 2650; c[2014] = 2850;
    a[1791] = 796; b[1791] = 1791; c[1791] = 2388;
    a[1990] = 796; b[1990] = 2388; c[1990] = 2985;
    a[1594] = 797; b[1594] = 1594; c[1594] = 1594;
    a[2004] = 798; b[2004] = 2338; c[2004] = 3173;
    a[2109] = 798; b[2109] = 2886; c[2109] = 3367;
    a[2184] = 798; b[2184] = 3458; c[2184] = 3458;
    a[2060] = 800; b[2060] = 2575; c[2060] = 3296;
    a[2075] = 800; b[2075] = 2656; c[2075] = 3320;
    a[2176] = 800; b[2176] = 3400; c[2176] = 3400;
    a[2136] = 801; b[2136] = 3204; c[2136] = 3204;
    a[1604] = 802; b[1604] = 1203; c[1604] = 2406;
    a[2010] = 804; b[2010] = 2412; c[2010] = 3015;
    a[2144] = 804; b[2144] = 3216; c[2144] = 3216;
    a[1633] = 805; b[1633] = 1420; c[1633] = 1988;
    a[2047] = 805; b[2047] = 2492; c[2047] = 3220;
    a[2093] = 805; b[2093] = 2990; c[2093] = 2990;
    a[2162] = 805; b[2162] = 3290; c[2162] = 3290;
    a[2152] = 807; b[2152] = 3228; c[2152] = 3228;
    a[1818] = 808; b[1818] = 1818; c[1818] = 2424;
    a[2020] = 808; b[2020] = 2424; c[2020] = 3030;
    a[1618] = 809; b[1618] = 1618; c[1618] = 1618;
    a[1622] = 811; b[1622] = 1622; c[1622] = 1622;
    a[2146] = 812; b[2146] = 3108; c[2146] = 3219;
    a[2168] = 813; b[2168] = 3252; c[2168] = 3252;
    a[1956] = 815; b[1956] = 1956; c[1956] = 3260;
    a[1819] = 816; b[1819] = 1488; c[1819] = 3317;
    a[2091] = 816; b[2091] = 2624; c[2091] = 3264;
    a[2076] = 816; b[2076] = 2768; c[2076] = 2941;
    a[2142] = 816; b[2142] = 3024; c[2142] = 3213;
    a[1636] = 818; b[1636] = 1227; c[1636] = 2454;
    a[2223] = 819; b[2223] = 3458; c[2223] = 3458;
    a[2050] = 820; b[2050] = 2460; c[2050] = 3075;
    a[2132] = 820; b[2132] = 2730; c[2132] = 3444;
    a[1642] = 821; b[1642] = 1642; c[1642] = 1642;
    a[2055] = 822; b[2055] = 2740; c[2055] = 2740;
    a[2192] = 822; b[2192] = 3288; c[2192] = 3288;
    a[1646] = 823; b[1646] = 1646; c[1646] = 1646;
    a[2200] = 825; b[2200] = 3150; c[2200] = 3465;
    a[2175] = 825; b[2175] = 3190; c[2175] = 3190;
    a[2190] = 825; b[2190] = 3212; c[2190] = 3300;
    a[2211] = 825; b[2211] = 3350; c[2211] = 3350;
    a[2065] = 826; b[2065] = 2360; c[2065] = 3304;
    a[1654] = 827; b[1654] = 1654; c[1654] = 1654;
    a[1998] = 828; b[1998] = 1998; c[1998] = 3404;
    a[2125] = 828; b[2125] = 2875; c[2125] = 3060;
    a[2205] = 828; b[2205] = 3220; c[2205] = 3381;
    a[2208] = 828; b[2208] = 3243; c[2208] = 3384;
    a[2220] = 828; b[2220] = 3330; c[2220] = 3404;
    a[2232] = 828; b[2232] = 3404; c[2232] = 3441;
    a[1658] = 829; b[1658] = 1658; c[1658] = 1658;
    a[2216] = 831; b[2216] = 3324; c[2216] = 3324;
    a[2074] = 832; b[2074] = 2379; c[2074] = 3264;
    a[2210] = 832; b[2210] = 3264; c[2210] = 3315;
    a[1946] = 834; b[1946] = 1946; c[1946] = 2919;
    a[2085] = 834; b[2085] = 2780; c[2085] = 2780;
    a[2224] = 834; b[2224] = 3336; c[2224] = 3336;
    a[1676] = 838; b[1676] = 1257; c[1676] = 2514;
    a[1678] = 839; b[1678] = 1678; c[1678] = 1678;
    a[2037] = 840; b[2037] = 2328; c[2037] = 2910;
    a[2135] = 840; b[2135] = 2562; c[2135] = 3416;
    a[2130] = 840; b[2130] = 2840; c[2130] = 2982;
    a[2170] = 840; b[2170] = 2945; c[2170] = 3192;
    a[2185] = 840; b[2185] = 3059; c[2185] = 3192;
    a[2212] = 840; b[2212] = 3160; c[2212] = 3318;
    a[2233] = 840; b[2233] = 3190; c[2233] = 3480;
    a[2240] = 840; b[2240] = 3248; c[2240] = 3480;
    a[2247] = 840; b[2247] = 3360; c[2247] = 3424;
    a[1682] = 841; b[1682] = 1682; c[1682] = 1682;
    a[1684] = 842; b[1684] = 1263; c[1684] = 2526;
    a[2248] = 843; b[2248] = 3372; c[2248] = 3372;
    a[1899] = 844; b[1899] = 1899; c[1899] = 2532;
    a[2110] = 844; b[2110] = 2532; c[2110] = 3165;
    a[1927] = 846; b[1927] = 1974; c[1927] = 2583;
    a[2256] = 846; b[2256] = 3384; c[2256] = 3384;
    a[2057] = 847; b[2057] = 2142; c[2057] = 3366;
    a[2178] = 847; b[2178] = 2772; c[2178] = 3388;
    a[2264] = 849; b[2264] = 3396; c[2264] = 3396;
    a[2150] = 850; b[2150] = 2618; c[2150] = 3311;
    a[2173] = 850; b[2173] = 2650; c[2173] = 3485;
    a[2244] = 850; b[2244] = 3150; c[2244] = 3465;
    a[2272] = 852; b[2272] = 3408; c[2272] = 3408;
    a[1706] = 853; b[1706] = 1706; c[1706] = 1706;
    a[2196] = 855; b[2196] = 2745; c[2196] = 3477;
    a[2280] = 855; b[2280] = 3420; c[2280] = 3420;
    a[2140] = 856; b[2140] = 2568; c[2140] = 3210;
    a[1714] = 857; b[1714] = 1714; c[1714] = 1714;
    a[1859] = 858; b[1859] = 1482; c[1859] = 3211;
    a[2134] = 858; b[2134] = 2522; c[2134] = 3201;
    a[2288] = 858; b[2288] = 3432; c[2288] = 3432;
    a[1718] = 859; b[1718] = 1718; c[1718] = 1718;
    a[2268] = 861; b[2268] = 3321; c[2268] = 3321;
    a[2296] = 861; b[2296] = 3403; c[2296] = 3486;
    a[1724] = 862; b[1724] = 1293; c[1724] = 2586;
    a[1726] = 863; b[1726] = 1726; c[1726] = 1726;
    a[2304] = 864; b[2304] = 3456; c[2304] = 3456;
    a[1732] = 866; b[1732] = 1299; c[1732] = 2598;
    a[2312] = 867; b[2312] = 3468; c[2312] = 3468;
    a[2163] = 868; b[2163] = 2604; c[2163] = 3193;
    a[2204] = 870; b[2204] = 2755; c[2204] = 3306;
    a[2231] = 870; b[2231] = 2910; c[2231] = 3335;
    a[2262] = 870; b[2262] = 3016; c[2262] = 3480;
    a[2300] = 870; b[2300] = 3335; c[2300] = 3450;
    a[2320] = 870; b[2320] = 3480; c[2320] = 3480;
    a[1962] = 872; b[1962] = 1962; c[1962] = 2616;
    a[2180] = 872; b[2180] = 2616; c[2180] = 3270;
    a[2328] = 873; b[2328] = 3492; c[2328] = 3492;
    a[1909] = 874; b[1909] = 1577; c[1909] = 3154;
    a[2250] = 875; b[2250] = 2898; c[2250] = 3450;
    a[2275] = 875; b[2275] = 3250; c[2275] = 3250;
    a[2310] = 875; b[2310] = 3300; c[2310] = 3500;
    a[2044] = 876; b[2044] = 1932; c[2044] = 3358;
    a[1754] = 877; b[1754] = 1754; c[1754] = 1754;
    a[1756] = 878; b[1756] = 1317; c[1756] = 2634;
    a[1758] = 879; b[1758] = 1758; c[1758] = 1758;
    a[2257] = 880; b[2257] = 2960; c[2257] = 3355;
    a[1762] = 881; b[1762] = 1762; c[1762] = 1762;
    a[2254] = 882; b[2254] = 2898; c[2254] = 3381;
    a[1766] = 883; b[1766] = 1766; c[1766] = 1766;
    a[1772] = 886; b[1772] = 1329; c[1772] = 2658;
    a[1774] = 887; b[1774] = 1774; c[1774] = 1774;
    a[2183] = 888; b[2183] = 2478; c[2183] = 3304;
    a[1397] = 889; b[1397] = 924; c[1397] = 1524;
    a[2007] = 892; b[2007] = 2007; c[2007] = 2676;
    a[2230] = 892; b[2230] = 2676; c[2230] = 3345;
    a[2086] = 894; b[2086] = 2086; c[2086] = 3129;
    a[2235] = 894; b[2235] = 2980; c[2235] = 2980;
    a[2148] = 895; b[2148] = 2685; c[2148] = 2685;
    a[2236] = 897; b[2236] = 2967; c[2236] = 2967;
    a[2340] = 897; b[2340] = 3335; c[2340] = 3393;
    a[1796] = 898; b[1796] = 1347; c[1796] = 2694;
    a[2225] = 900; b[2225] = 2670; c[2225] = 3204;
    a[2214] = 900; b[2214] = 2700; c[2214] = 3075;
    a[2350] = 900; b[2350] = 3384; c[2350] = 3384;
    a[2226] = 901; b[2226] = 2856; c[2226] = 2968;
    a[2255] = 902; b[2255] = 2870; c[2255] = 3157;
    a[2260] = 904; b[2260] = 2712; c[2260] = 3390;
    a[2172] = 905; b[2172] = 2715; c[2172] = 2715;
    a[2114] = 906; b[2114] = 2114; c[2114] = 3171;
    a[2265] = 906; b[2265] = 3020; c[2265] = 3020;
    a[1814] = 907; b[1814] = 1814; c[1814] = 1814;
    a[2043] = 908; b[2043] = 2043; c[2043] = 2724;
    a[2270] = 908; b[2270] = 2724; c[2270] = 3405;
    a[2054] = 910; b[2054] = 2054; c[2054] = 2765;
    a[2278] = 910; b[2278] = 2814; c[2278] = 3315;
    a[2290] = 910; b[2290] = 2977; c[2290] = 3206;
    a[2352] = 910; b[2352] = 3315; c[2352] = 3332;
    a[2366] = 910; b[2366] = 3380; c[2366] = 3380;
    a[1822] = 911; b[1822] = 1822; c[1822] = 1822;
    a[1843] = 912; b[1843] = 1392; c[1843] = 2813;
    a[2299] = 912; b[2299] = 2904; c[2299] = 3344;
    a[2318] = 912; b[2318] = 2928; c[2318] = 3477;
    a[2356] = 912; b[2356] = 3192; c[2356] = 3472;
    a[2368] = 912; b[2368] = 3330; c[2368] = 3420;
    a[2324] = 913; b[2324] = 3080; c[2324] = 3320;
    a[1828] = 914; b[1828] = 1371; c[1828] = 2742;
    a[2061] = 916; b[2061] = 2061; c[2061] = 2748;
    a[2295] = 918; b[2295] = 2805; c[2295] = 3366;
    a[2376] = 918; b[2376] = 3366; c[2376] = 3366;
    a[1838] = 919; b[1838] = 1838; c[1838] = 1838;
    a[2277] = 920; b[2277] = 2898; c[2277] = 3080;
    a[2400] = 920; b[2400] = 3450; c[2400] = 3450;
    a[1842] = 921; b[1842] = 1842; c[1842] = 1842;
    a[1844] = 922; b[1844] = 1383; c[1844] = 2766;
    a[2121] = 924; b[2121] = 2222; c[2121] = 2828;
    a[2123] = 924; b[2123] = 2316; c[2123] = 2702;
    a[2331] = 925; b[2331] = 2898; c[2331] = 3450;
    a[1852] = 926; b[1852] = 1389; c[1852] = 2778;
    a[1858] = 929; b[1858] = 1858; c[1858] = 1858;
    a[2325] = 930; b[2325] = 2800; c[2325] = 3472;
    a[2387] = 930; b[2387] = 3255; c[2387] = 3410;
    a[2097] = 932; b[2097] = 2097; c[2097] = 2796;
    a[2330] = 932; b[2330] = 2796; c[2330] = 3495;
    a[1866] = 933; b[1866] = 1866; c[1866] = 1866;
    a[1868] = 934; b[1868] = 1401; c[1868] = 2802;
    a[2006] = 935; b[2006] = 2090; c[2006] = 2242;
    a[2301] = 936; b[2301] = 2808; c[2301] = 3186;
    a[2322] = 936; b[2322] = 2808; c[2322] = 3354;
    a[2394] = 936; b[2394] = 3192; c[2394] = 3458;
    a[2392] = 936; b[2392] = 3243; c[2392] = 3384;
    a[1874] = 937; b[1874] = 1874; c[1874] = 1874;
    a[2412] = 938; b[2412] = 3276; c[2412] = 3484;
    a[1878] = 939; b[1878] = 1878; c[1878] = 1878;
    a[2021] = 940; b[2021] = 1892; c[2021] = 2585;
    a[2380] = 940; b[2380] = 3196; c[2380] = 3290;
    a[1882] = 941; b[1882] = 1882; c[1882] = 1882;
    a[2198] = 942; b[2198] = 2198; c[2198] = 3297;
    a[2355] = 942; b[2355] = 3140; c[2355] = 3140;
    a[2420] = 945; b[2420] = 3267; c[2420] = 3465;
    a[2430] = 945; b[2430] = 3402; c[2430] = 3402;
    a[2332] = 946; b[2332] = 2752; c[2332] = 3392;
    a[2365] = 946; b[2365] = 3010; c[2365] = 3311;
    a[2408] = 946; b[2408] = 3311; c[2408] = 3311;
    a[1894] = 947; b[1894] = 1894; c[1894] = 1894;
    a[2133] = 948; b[2133] = 2052; c[2133] = 3002;
    a[2370] = 948; b[2370] = 3160; c[2370] = 3160;
    a[2444] = 949; b[2444] = 3431; c[2444] = 3431;
    a[1902] = 951; b[1902] = 1902; c[1902] = 1902;
    a[2363] = 952; b[2363] = 2919; c[2363] = 3336;
    a[1906] = 953; b[1906] = 1906; c[1906] = 1906;
    a[2385] = 954; b[2385] = 2915; c[2385] = 3498;
    a[2292] = 955; b[2292] = 2865; c[2292] = 2865;
    a[2151] = 956; b[2151] = 2151; c[2151] = 2868;
    a[1916] = 958; b[1916] = 1437; c[1916] = 2874;
    a[2415] = 960; b[2415] = 3136; c[2415] = 3381;
    a[1922] = 961; b[1922] = 1922; c[1922] = 1922;
    a[2294] = 962; b[2294] = 2418; c[2294] = 3441;
    a[2442] = 962; b[2442] = 3256; c[2442] = 3432;
    a[2479] = 962; b[2479] = 3484; c[2479] = 3484;
    a[2169] = 964; b[2169] = 2169; c[2169] = 2892;
    a[2316] = 965; b[2316] = 2895; c[2316] = 2895;
    a[2346] = 966; b[2346] = 2856; c[2346] = 3128;
    a[1934] = 967; b[1934] = 1934; c[1934] = 1934;
    a[2464] = 968; b[2464] = 3388; c[2464] = 3388;
    a[2261] = 969; b[2261] = 2584; c[2261] = 2856;
    a[2337] = 969; b[2337] = 2788; c[2337] = 3116;
    a[2432] = 969; b[2432] = 3168; c[2432] = 3366;
    a[2448] = 969; b[2448] = 3230; c[2448] = 3420;
    a[1942] = 971; b[1942] = 1942; c[1942] = 1942;
    a[2187] = 972; b[2187] = 2187; c[2187] = 2916;
    a[2436] = 972; b[2436] = 3132; c[2436] = 3402;
    a[2457] = 972; b[2457] = 3276; c[2457] = 3402;
    a[1948] = 974; b[1948] = 1461; c[1948] = 2922;
    a[2375] = 975; b[2375] = 2850; c[2375] = 3250;
    a[2379] = 975; b[2379] = 3050; c[2379] = 3050;
    a[1954] = 977; b[1954] = 1954; c[1954] = 1954;
    a[2282] = 978; b[2282] = 2282; c[2282] = 3423;
    a[2445] = 978; b[2445] = 3260; c[2445] = 3260;
    a[2450] = 980; b[2450] = 3234; c[2450] = 3300;
    a[1964] = 982; b[1964] = 1473; c[1964] = 2946;
    a[1966] = 983; b[1966] = 1966; c[1966] = 1966;
    a[2460] = 984; b[2460] = 3240; c[2460] = 3321;
    a[2501] = 984; b[2501] = 3416; c[2501] = 3444;
    a[2364] = 985; b[2364] = 2955; c[2364] = 2955;
    a[2117] = 986; b[2117] = 2117; c[2117] = 2482;
    a[2242] = 988; b[2242] = 2242; c[2242] = 3068;
    a[2431] = 988; b[2431] = 2992; c[2431] = 3344;
    a[2470] = 988; b[2470] = 3211; c[2470] = 3380;
    a[2496] = 988; b[2496] = 3344; c[2496] = 3432;
    a[2508] = 988; b[2508] = 3432; c[2508] = 3432;
    a[1661] = 990; b[1661] = 1359; c[1661] = 1510;
    a[2193] = 990; b[2193] = 1935; c[2193] = 3366;
    a[2259] = 990; b[2259] = 2510; c[2259] = 2761;
    a[2360] = 990; b[2360] = 2655; c[2360] = 3245;
    a[2414] = 990; b[2414] = 3060; c[2414] = 3124;
    a[2475] = 990; b[2475] = 3150; c[2475] = 3465;
    a[2482] = 990; b[2482] = 3285; c[2482] = 3366;
    a[2520] = 990; b[2520] = 3465; c[2520] = 3465;
    a[1982] = 991; b[1982] = 1982; c[1982] = 1982;
    a[2418] = 992; b[2418] = 2976; c[2418] = 3224;
    a[2480] = 992; b[2480] = 3255; c[2480] = 3360;
    a[1986] = 993; b[1986] = 1986; c[1986] = 1986;
    a[2485] = 994; b[2485] = 3290; c[2485] = 3337;
    a[2388] = 995; b[2388] = 2985; c[2388] = 2985;
    a[2241] = 996; b[2241] = 2241; c[2241] = 2988;
    a[2490] = 996; b[2490] = 3320; c[2490] = 3320;
    a[1994] = 997; b[1994] = 1994; c[1994] = 1994;
    a[1996] = 998; b[1996] = 1497; c[1996] = 2994;
    a[2538] = 999; b[2538] = 3478; c[2538] = 3478;
    a[2505] = 1002; b[2505] = 3340; c[2505] = 3340;
    a[2345] = 1005; b[2345] = 2814; c[2345] = 2814;
    a[2535] = 1005; b[2535] = 3380; c[2535] = 3484;
    a[2544] = 1005; b[2544] = 3445; c[2544] = 3484;
    a[2012] = 1006; b[2012] = 1509; c[2012] = 3018;
    a[2018] = 1009; b[2018] = 2018; c[2018] = 2018;
    a[2465] = 1010; b[2465] = 2929; c[2465] = 3434;
    a[2424] = 1010; b[2424] = 3030; c[2424] = 3030;
    a[2022] = 1011; b[2022] = 2022; c[2022] = 2022;
    a[2530] = 1012; b[2530] = 3300; c[2530] = 3450;
    a[2026] = 1013; b[2026] = 2026; c[2026] = 2026;
    a[1537] = 1015; b[1537] = 1060; c[1537] = 1484;
    a[2378] = 1015; b[2378] = 2460; c[2378] = 3444;
    a[2159] = 1016; b[2159] = 1768; c[2159] = 3302;
    a[2286] = 1016; b[2286] = 2286; c[2286] = 3048;
    a[1469] = 1017; b[1469] = 1130; c[1469] = 1170;
    a[1921] = 1017; b[1921] = 1582; c[1921] = 2142;
    a[2147] = 1017; b[2147] = 1710; c[2147] = 3390;
    a[2036] = 1018; b[2036] = 1527; c[2036] = 3054;
    a[2038] = 1019; b[2038] = 2038; c[2038] = 2038;
    a[2451] = 1020; b[2451] = 2924; c[2451] = 3230;
    a[2550] = 1020; b[2550] = 3400; c[2550] = 3400;
    a[2042] = 1021; b[2042] = 2042; c[2042] = 2042;
    a[2336] = 1022; b[2336] = 2408; c[2336] = 3139;
    a[2419] = 1025; b[2419] = 2950; c[2419] = 2950;
    a[2291] = 1026; b[2291] = 2133; c[2291] = 3306;
    a[2349] = 1026; b[2349] = 2349; c[2349] = 3306;
    a[2403] = 1026; b[2403] = 2581; c[2403] = 3306;
    a[2565] = 1026; b[2565] = 3420; c[2565] = 3420;
    a[2313] = 1028; b[2313] = 2313; c[2313] = 3084;
    a[2472] = 1030; b[2472] = 3090; c[2472] = 3090;
    a[2062] = 1031; b[2062] = 2062; c[2062] = 2062;
    a[2279] = 1032; b[2279] = 2120; c[2279] = 3180;
    a[2580] = 1032; b[2580] = 3440; c[2580] = 3440;
    a[2592] = 1032; b[2592] = 3483; c[2592] = 3483;
    a[2066] = 1033; b[2066] = 2066; c[2066] = 2066;
    a[2574] = 1034; b[2574] = 3384; c[2574] = 3432;
    a[2484] = 1035; b[2484] = 2875; c[2484] = 3375;
    a[2553] = 1035; b[2553] = 3330; c[2553] = 3330;
    a[2576] = 1036; b[2576] = 3404; c[2576] = 3404;
    a[2595] = 1038; b[2595] = 3460; c[2595] = 3460;
    a[2078] = 1039; b[2078] = 2078; c[2078] = 2078;
    a[1963] = 1040; b[1963] = 1510; c[1963] = 2416;
    a[2560] = 1040; b[2560] = 3328; c[2560] = 3328;
    a[2082] = 1041; b[2082] = 2082; c[2082] = 2082;
    a[2084] = 1042; b[2084] = 1563; c[2084] = 3126;
    a[2494] = 1044; b[2494] = 2844; c[2494] = 3397;
    a[2610] = 1044; b[2610] = 3480; c[2610] = 3480;
    a[2092] = 1046; b[2092] = 1569; c[2092] = 3138;
    a[2094] = 1047; b[2094] = 2094; c[2094] = 2094;
    a[2358] = 1048; b[2358] = 2358; c[2358] = 3144;
    a[2098] = 1049; b[2098] = 2098; c[2098] = 2098;
    a[2575] = 1050; b[2575] = 3296; c[2575] = 3360;
    a[2625] = 1050; b[2625] = 3500; c[2625] = 3500;
    a[2102] = 1051; b[2102] = 2102; c[2102] = 2102;
    a[2367] = 1052; b[2367] = 2367; c[2367] = 3156;
    a[2201] = 1054; b[2201] = 2201; c[2201] = 2414;
    a[2532] = 1055; b[2532] = 3165; c[2532] = 3165;
    a[2343] = 1056; b[2343] = 2272; c[2343] = 3124;
    a[2116] = 1058; b[2116] = 1587; c[2116] = 3174;
    a[2118] = 1059; b[2118] = 2118; c[2118] = 2118;
    a[2438] = 1060; b[2438] = 2756; c[2438] = 2990;
    a[2640] = 1060; b[2640] = 3498; c[2640] = 3498;
    a[2122] = 1061; b[2122] = 2122; c[2122] = 2122;
    a[2126] = 1063; b[2126] = 2126; c[2126] = 2126;
    a[2556] = 1065; b[2556] = 3195; c[2556] = 3195;
    a[2583] = 1066; b[2583] = 3159; c[2583] = 3402;
    a[2138] = 1069; b[2138] = 2138; c[2138] = 2138;
    a[2568] = 1070; b[2568] = 3210; c[2568] = 3210;
    a[2499] = 1071; b[2499] = 2940; c[2499] = 3060;
    a[2618] = 1071; b[2618] = 3366; c[2618] = 3366;
    a[2397] = 1072; b[2397] = 2256; c[2397] = 3417;
    a[2546] = 1072; b[2546] = 2948; c[2546] = 3344;
    a[2613] = 1072; b[2613] = 3216; c[2613] = 3484;
    a[2440] = 1075; b[2440] = 2623; c[2440] = 3050;
    a[2600] = 1075; b[2600] = 3225; c[2600] = 3354;
    a[2421] = 1076; b[2421] = 2421; c[2421] = 3228;
    a[2154] = 1077; b[2154] = 2154; c[2154] = 2154;
    a[2548] = 1078; b[2548] = 3003; c[2548] = 3234;
    a[2542] = 1078; b[2542] = 3038; c[2542] = 3157;
    a[2158] = 1079; b[2158] = 2158; c[2158] = 2158;
    a[2511] = 1080; b[2511] = 2790; c[2511] = 3240;
    a[2164] = 1082; b[2164] = 1623; c[2164] = 3246;
    a[2166] = 1083; b[2166] = 2166; c[2166] = 2166;
    a[2527] = 1083; b[2527] = 2888; c[2527] = 3192;
    a[2439] = 1084; b[2439] = 2439; c[2439] = 3252;
    a[2492] = 1085; b[2492] = 2759; c[2492] = 3115;
    a[2604] = 1085; b[2604] = 3069; c[2604] = 3465;
    a[2666] = 1085; b[2666] = 3440; c[2666] = 3472;
    a[1991] = 1086; b[1991] = 1254; c[1991] = 3439;
    a[2174] = 1087; b[2174] = 2174; c[2174] = 2174;
    a[2541] = 1089; b[2541] = 2772; c[2541] = 3388;
    a[2616] = 1090; b[2616] = 3270; c[2616] = 3270;
    a[2182] = 1091; b[2182] = 2182; c[2182] = 2182;
    a[2171] = 1092; b[2171] = 2004; c[2171] = 2338;
    a[2405] = 1092; b[2405] = 2220; c[2405] = 3367;
    a[2516] = 1092; b[2516] = 2652; c[2516] = 3367;
    a[2639] = 1092; b[2639] = 3276; c[2639] = 3393;
    a[2186] = 1093; b[2186] = 2186; c[2186] = 2186;
    a[2188] = 1094; b[2188] = 1641; c[2188] = 3282;
    a[2555] = 1095; b[2555] = 3066; c[2555] = 3066;
    a[2628] = 1095; b[2628] = 3285; c[2628] = 3285;
    a[2466] = 1096; b[2466] = 2466; c[2466] = 3288;
    a[2194] = 1097; b[2194] = 2194; c[2194] = 2194;
    a[2222] = 1100; b[2222] = 2020; c[2222] = 2525;
    a[2552] = 1100; b[2552] = 2900; c[2552] = 3190;
    a[2650] = 1100; b[2650] = 3180; c[2650] = 3498;
    a[2202] = 1101; b[2202] = 2202; c[2202] = 2202;
    a[2584] = 1102; b[2584] = 2958; c[2584] = 3306;
    a[2206] = 1103; b[2206] = 2206; c[2206] = 2206;
    a[2664] = 1104; b[2664] = 3312; c[2664] = 3404;
    a[2660] = 1105; b[2660] = 3230; c[2660] = 3458;
    a[2652] = 1105; b[2652] = 3315; c[2652] = 3315;
    a[2449] = 1106; b[2449] = 2370; c[2449] = 3255;
    a[2528] = 1106; b[2528] = 2765; c[2528] = 3160;
    a[2624] = 1107; b[2624] = 3024; c[2624] = 3444;
    a[2493] = 1108; b[2493] = 2493; c[2493] = 3324;
    a[2218] = 1109; b[2218] = 2218; c[2218] = 2218;
    a[1961] = 1110; b[1961] = 1590; c[1961] = 1961;
    a[2590] = 1110; b[2590] = 2886; c[2590] = 3367;
    a[2502] = 1112; b[2502] = 2502; c[2502] = 3336;
    a[2688] = 1113; b[2688] = 3392; c[2688] = 3392;
    a[2228] = 1114; b[2228] = 1671; c[2228] = 3342;
    a[2676] = 1115; b[2676] = 3345; c[2676] = 3345;
    a[2619] = 1116; b[2619] = 3007; c[2619] = 3348;
    a[2234] = 1117; b[2234] = 2234; c[2234] = 2234;
    a[2623] = 1118; b[2623] = 3172; c[2623] = 3172;
    a[2238] = 1119; b[2238] = 2238; c[2238] = 2238;
    a[2478] = 1120; b[2478] = 2360; c[2478] = 3360;
    a[2646] = 1122; b[2646] = 3213; c[2646] = 3234;
    a[2673] = 1122; b[2673] = 3213; c[2673] = 3402;
    a[2246] = 1123; b[2246] = 2246; c[2246] = 2246;
    a[2529] = 1124; b[2529] = 2529; c[2529] = 3372;
    a[2691] = 1125; b[2691] = 3250; c[2691] = 3450;
    a[2700] = 1125; b[2700] = 3375; c[2700] = 3375;
    a[2252] = 1126; b[2252] = 1689; c[2252] = 3378;
    a[2303] = 1128; b[2303] = 1848; c[2303] = 3234;
    a[2632] = 1128; b[2632] = 2961; c[2632] = 3384;
    a[2258] = 1129; b[2258] = 2258; c[2258] = 2258;
    a[2712] = 1130; b[2712] = 3390; c[2712] = 3390;
    a[2547] = 1132; b[2547] = 2547; c[2547] = 3396;
    a[2266] = 1133; b[2266] = 2266; c[2266] = 2266;
    a[2724] = 1135; b[2724] = 3405; c[2724] = 3405;
    a[2274] = 1137; b[2274] = 2274; c[2274] = 2274;
    a[2276] = 1138; b[2276] = 1707; c[2276] = 3414;
    a[2720] = 1139; b[2720] = 3350; c[2720] = 3400;
    a[2033] = 1140; b[2033] = 1284; c[2033] = 3210;
    a[2384] = 1140; b[2384] = 2235; c[2384] = 2831;
    a[2622] = 1140; b[2622] = 2760; c[2622] = 3496;
    a[2698] = 1140; b[2698] = 3195; c[2698] = 3420;
    a[2736] = 1140; b[2736] = 3420; c[2736] = 3420;
    a[2745] = 1140; b[2745] = 3420; c[2745] = 3477;
    a[2755] = 1140; b[2755] = 3480; c[2755] = 3480;
    a[2760] = 1140; b[2760] = 3496; c[2760] = 3496;
    a[2284] = 1142; b[2284] = 1713; c[2284] = 3426;
    a[2041] = 1144; b[2041] = 1256; c[2041] = 3454;
    a[2263] = 1144; b[2263] = 1898; c[2263] = 2728;
    a[2706] = 1144; b[2706] = 3198; c[2706] = 3432;
    a[2717] = 1144; b[2717] = 3344; c[2717] = 3344;
    a[2756] = 1144; b[2756] = 3432; c[2756] = 3498;
    a[2748] = 1145; b[2748] = 3435; c[2748] = 3435;
    a[2562] = 1148; b[2562] = 2501; c[2562] = 3444;
    a[2298] = 1149; b[2298] = 2298; c[2298] = 2298;
    a[2680] = 1150; b[2680] = 3082; c[2680] = 3350;
    a[2302] = 1151; b[2302] = 2302; c[2302] = 2302;
    a[2727] = 1152; b[2727] = 3232; c[2727] = 3456;
    a[2306] = 1153; b[2306] = 2306; c[2306] = 2306;
    a[2308] = 1154; b[2308] = 1731; c[2308] = 3462;
    a[2716] = 1155; b[2716] = 3201; c[2716] = 3395;
    a[2695] = 1155; b[2695] = 3234; c[2695] = 3234;
    a[2728] = 1155; b[2728] = 3255; c[2728] = 3410;
    a[2750] = 1155; b[2750] = 3300; c[2750] = 3500;
    a[2772] = 1155; b[2772] = 3465; c[2772] = 3465;
    a[2601] = 1156; b[2601] = 2601; c[2601] = 3468;
    a[2314] = 1157; b[2314] = 2314; c[2314] = 2314;
    a[2784] = 1160; b[2784] = 3480; c[2784] = 3480;
    a[2656] = 1162; b[2656] = 2905; c[2656] = 3320;
    a[2326] = 1163; b[2326] = 2326; c[2326] = 2326;
    a[2796] = 1165; b[2796] = 3495; c[2796] = 3495;
    a[2334] = 1167; b[2334] = 2334; c[2334] = 2334;
    a[2338] = 1169; b[2338] = 2338; c[2338] = 2338;
    a[2704] = 1170; b[2704] = 3042; c[2704] = 3380;
    a[2655] = 1170; b[2655] = 3068; c[2655] = 3068;
    a[2730] = 1170; b[2730] = 3159; c[2730] = 3402;
    a[2342] = 1171; b[2342] = 2342; c[2342] = 2342;
    a[2344] = 1172; b[2344] = 2344; c[2344] = 2344;
    a[1761] = 1174; b[1761] = 1174; c[1761] = 1761;
    a[2348] = 1174; b[2348] = 2348; c[2348] = 2348;
    a[2491] = 1175; b[2491] = 2650; c[2491] = 2650;
    a[2793] = 1176; b[2793] = 3381; c[2793] = 3496;
    a[2354] = 1177; b[2354] = 2354; c[2354] = 2354;
    a[2573] = 1178; b[2573] = 2573; c[2573] = 3154;
    a[2790] = 1178; b[2790] = 3420; c[2790] = 3420;
    a[2596] = 1180; b[2596] = 2596; c[2596] = 3245;
    a[2362] = 1181; b[2362] = 2362; c[2362] = 2362;
    a[2765] = 1185; b[2765] = 3318; c[2765] = 3318;
    a[1779] = 1186; b[1779] = 1186; c[1779] = 1779;
    a[2372] = 1186; b[2372] = 2372; c[2372] = 2372;
    a[2374] = 1187; b[2374] = 2374; c[2374] = 2374;
    a[2409] = 1188; b[2409] = 1971; c[2409] = 3212;
    a[2808] = 1188; b[2808] = 3432; c[2808] = 3432;
    a[2816] = 1188; b[2816] = 3456; c[2816] = 3456;
    a[2635] = 1190; b[2635] = 2821; c[2635] = 3094;
    a[2737] = 1190; b[2737] = 3220; c[2737] = 3220;
    a[2805] = 1190; b[2805] = 3366; c[2805] = 3465;
    a[2800] = 1190; b[2800] = 3400; c[2800] = 3400;
    a[2382] = 1191; b[2382] = 2382; c[2382] = 2382;
    a[2533] = 1192; b[2533] = 2584; c[2533] = 2831;
    a[2386] = 1193; b[2386] = 2386; c[2386] = 2386;
    a[2390] = 1195; b[2390] = 2390; c[2390] = 2390;
    a[2668] = 1196; b[2668] = 2860; c[2668] = 3190;
    a[1797] = 1198; b[1797] = 1198; c[1797] = 1797;
    a[2396] = 1198; b[2396] = 2396; c[2396] = 2396;
    a[2398] = 1199; b[2398] = 2398; c[2398] = 2398;
    a[2752] = 1200; b[2752] = 3225; c[2752] = 3225;
    a[2402] = 1201; b[2402] = 2402; c[2402] = 2402;
    a[1803] = 1202; b[1803] = 1202; c[1803] = 1803;
    a[2404] = 1202; b[2404] = 2404; c[2404] = 2404;
    a[2406] = 1203; b[2406] = 2406; c[2406] = 2406;
    a[2407] = 1204; b[2407] = 2324; c[2407] = 2494;
    a[2709] = 1204; b[2709] = 2844; c[2709] = 3397;
    a[2410] = 1205; b[2410] = 2410; c[2410] = 2410;
    a[2744] = 1206; b[2744] = 3087; c[2744] = 3283;
    a[2814] = 1206; b[2814] = 3276; c[2814] = 3484;
    a[2416] = 1208; b[2416] = 2416; c[2416] = 2416;
    a[2422] = 1211; b[2422] = 2422; c[2422] = 2422;
    a[2426] = 1213; b[2426] = 2426; c[2426] = 2426;
    a[1821] = 1214; b[1821] = 1214; c[1821] = 1821;
    a[2428] = 1214; b[2428] = 2428; c[2428] = 2428;
    a[2835] = 1215; b[2835] = 3402; c[2835] = 3402;
    a[2434] = 1217; b[2434] = 2434; c[2434] = 2434;
    a[2856] = 1218; b[2856] = 3451; c[2856] = 3451;
    a[2684] = 1220; b[2684] = 2684; c[2684] = 3355;
    a[2679] = 1222; b[2679] = 2926; c[2679] = 3003;
    a[2446] = 1223; b[2446] = 2446; c[2446] = 2446;
    a[2754] = 1224; b[2754] = 3060; c[2754] = 3240;
    a[2850] = 1224; b[2850] = 3400; c[2850] = 3420;
    a[1839] = 1226; b[1839] = 1226; c[1839] = 1839;
    a[2452] = 1226; b[2452] = 2452; c[2452] = 2452;
    a[2454] = 1227; b[2454] = 2454; c[2454] = 2454;
    a[2456] = 1228; b[2456] = 2456; c[2456] = 2456;
    a[2458] = 1229; b[2458] = 2458; c[2458] = 2458;
    a[2665] = 1230; b[2665] = 2665; c[2665] = 3198;
    a[2829] = 1230; b[2829] = 3220; c[2829] = 3444;
    a[2870] = 1230; b[2870] = 3403; c[2870] = 3486;
    a[2462] = 1231; b[2462] = 2462; c[2462] = 2462;
    a[2880] = 1232; b[2880] = 3465; c[2880] = 3465;
    a[1851] = 1234; b[1851] = 1234; c[1851] = 1851;
    a[2468] = 1234; b[2468] = 2468; c[2468] = 2468;
    a[2774] = 1235; b[2774] = 2990; c[2774] = 3358;
    a[2795] = 1235; b[2795] = 3010; c[2795] = 3458;
    a[2474] = 1237; b[2474] = 2474; c[2474] = 2474;
    a[1857] = 1238; b[1857] = 1238; c[1857] = 1857;
    a[2476] = 1238; b[2476] = 2476; c[2476] = 2476;
    a[2832] = 1239; b[2832] = 3304; c[2832] = 3304;
    a[2077] = 1240; b[2077] = 1340; c[2077] = 2680;
    a[2323] = 1242; b[2323] = 1674; c[2323] = 3131;
    a[2852] = 1242; b[2852] = 3348; c[2852] = 3348;
    a[2875] = 1242; b[2875] = 3375; c[2875] = 3450;
    a[2486] = 1243; b[2486] = 2486; c[2486] = 2486;
    a[2488] = 1244; b[2488] = 2488; c[2488] = 2488;
    a[2905] = 1245; b[2905] = 3486; c[2905] = 3486;
    a[2670] = 1246; b[2670] = 2670; c[2670] = 3115;
    a[2626] = 1248; b[2626] = 2424; c[2626] = 3232;
    a[2498] = 1249; b[2498] = 2498; c[2498] = 2498;
    a[2500] = 1250; b[2500] = 2500; c[2500] = 2500;
    a[2504] = 1252; b[2504] = 2504; c[2504] = 2504;
    a[2327] = 1253; b[2327] = 1638; c[2327] = 3222;
    a[2506] = 1253; b[2506] = 2506; c[2506] = 2506;
    a[2838] = 1254; b[2838] = 3078; c[2838] = 3483;
    a[2510] = 1255; b[2510] = 2510; c[2510] = 2510;
    a[2512] = 1256; b[2512] = 2512; c[2512] = 2512;
    a[2514] = 1257; b[2514] = 2514; c[2514] = 2514;
    a[2812] = 1258; b[2812] = 3145; c[2812] = 3230;
    a[2518] = 1259; b[2518] = 2518; c[2518] = 2518;
    a[2607] = 1260; b[2607] = 2212; c[2607] = 3465;
    a[2849] = 1260; b[2849] = 3108; c[2849] = 3465;
    a[2826] = 1260; b[2826] = 3140; c[2826] = 3297;
    a[2904] = 1260; b[2904] = 3388; c[2904] = 3465;
    a[2910] = 1260; b[2910] = 3395; c[2910] = 3492;
    a[2912] = 1260; b[2912] = 3432; c[2912] = 3465;
    a[2425] = 1261; b[2425] = 1950; c[2425] = 2910;
    a[2522] = 1261; b[2522] = 2522; c[2522] = 2522;
    a[1893] = 1262; b[1893] = 1262; c[1893] = 1893;
    a[2524] = 1262; b[2524] = 2524; c[2524] = 2524;
    a[2526] = 1263; b[2526] = 2526; c[2526] = 2526;
    a[2860] = 1265; b[2860] = 3289; c[2860] = 3289;
    a[2534] = 1267; b[2534] = 2534; c[2534] = 2534;
    a[2536] = 1268; b[2536] = 2536; c[2536] = 2536;
    a[2820] = 1269; b[2820] = 3105; c[2820] = 3243;
    a[2867] = 1269; b[2867] = 3294; c[2867] = 3294;
    a[2540] = 1270; b[2540] = 2540; c[2540] = 2540;
    a[2597] = 1274; b[2597] = 2548; c[2597] = 2756;
    a[2788] = 1275; b[2788] = 3075; c[2788] = 3075;
    a[2554] = 1277; b[2554] = 2554; c[2554] = 2554;
    a[2059] = 1278; b[2059] = 1566; c[2059] = 1917;
    a[2840] = 1278; b[2840] = 3195; c[2840] = 3195;
    a[2558] = 1279; b[2558] = 2558; c[2558] = 2558;
    a[2928] = 1281; b[2928] = 3416; c[2928] = 3416;
    a[1923] = 1282; b[1923] = 1282; c[1923] = 1923;
    a[2564] = 1282; b[2564] = 2564; c[2564] = 2564;
    a[2566] = 1283; b[2566] = 2566; c[2566] = 2566;
    a[2675] = 1284; b[2675] = 2700; c[2675] = 2889;
    a[2570] = 1285; b[2570] = 2570; c[2570] = 2570;
    a[1929] = 1286; b[1929] = 1286; c[1929] = 1929;
    a[2572] = 1286; b[2572] = 2572; c[2572] = 2572;
    a[2507] = 1288; b[2507] = 2289; c[2507] = 2616;
    a[2806] = 1288; b[2806] = 2806; c[2806] = 3416;
    a[2898] = 1288; b[2898] = 3243; c[2898] = 3384;
    a[2578] = 1289; b[2578] = 2578; c[2578] = 2578;
    a[2582] = 1291; b[2582] = 2582; c[2582] = 2582;
    a[2864] = 1292; b[2864] = 3043; c[2864] = 3401;
    a[2907] = 1292; b[2907] = 3230; c[2907] = 3420;
    a[2586] = 1293; b[2586] = 2586; c[2586] = 2586;
    a[1941] = 1294; b[1941] = 1294; c[1941] = 1941;
    a[2588] = 1294; b[2588] = 2588; c[2588] = 2588;
    a[2594] = 1297; b[2594] = 2594; c[2594] = 2594;
    a[2714] = 1298; b[2714] = 2530; c[2714] = 3245;
    a[2598] = 1299; b[2598] = 2598; c[2598] = 2598;
    a[2602] = 1301; b[2602] = 2602; c[2602] = 2602;
    a[2759] = 1302; b[2759] = 2670; c[2759] = 3255;
    a[2976] = 1302; b[2976] = 3472; c[2976] = 3472;
    a[2606] = 1303; b[2606] = 2606; c[2606] = 2606;
    a[2608] = 1304; b[2608] = 2608; c[2608] = 2608;
    a[2697] = 1305; b[2697] = 2356; c[2697] = 3420;
    a[2871] = 1305; b[2871] = 3190; c[2871] = 3190;
    a[1959] = 1306; b[1959] = 1306; c[1959] = 1959;
    a[2612] = 1306; b[2612] = 2612; c[2612] = 2612;
    a[2614] = 1307; b[2614] = 2614; c[2614] = 2614;
    a[2289] = 1308; b[2289] = 1526; c[2289] = 3052;
    a[2725] = 1308; b[2725] = 2400; c[2725] = 3488;
    a[2943] = 1308; b[2943] = 3348; c[2943] = 3379;
    a[2924] = 1309; b[2924] = 3311; c[2924] = 3311;
    a[2620] = 1310; b[2620] = 2620; c[2620] = 2620;
    a[2828] = 1313; b[2828] = 2912; c[2828] = 3232;
    a[2920] = 1314; b[2920] = 3285; c[2920] = 3285;
    a[2630] = 1315; b[2630] = 2630; c[2630] = 2630;
    a[2585] = 1316; b[2585] = 2068; c[2585] = 3290;
    a[2773] = 1316; b[2773] = 2632; c[2773] = 3304;
    a[2960] = 1316; b[2960] = 3290; c[2960] = 3478;
    a[2961] = 1316; b[2961] = 3384; c[2961] = 3384;
    a[2634] = 1317; b[2634] = 2634; c[2634] = 2634;
    a[1977] = 1318; b[1977] = 1318; c[1977] = 1977;
    a[2636] = 1318; b[2636] = 2636; c[2636] = 2636;
    a[2638] = 1319; b[2638] = 2638; c[2638] = 2638;
    a[2497] = 1320; b[2497] = 1816; c[2497] = 3405;
    a[2739] = 1320; b[2739] = 2407; c[2739] = 3480;
    a[2987] = 1320; b[2987] = 3399; c[2987] = 3480;
    a[2642] = 1321; b[2642] = 2642; c[2642] = 2642;
    a[1983] = 1322; b[1983] = 1322; c[1983] = 1983;
    a[2644] = 1322; b[2644] = 2644; c[2644] = 2644;
    a[2891] = 1323; b[2891] = 3186; c[2891] = 3186;
    a[2648] = 1324; b[2648] = 2648; c[2648] = 2648;
    a[2915] = 1325; b[2915] = 3180; c[2915] = 3300;
    a[2703] = 1326; b[2703] = 2756; c[2703] = 2756;
    a[2822] = 1326; b[2822] = 2822; c[2822] = 3237;
    a[2992] = 1326; b[2992] = 3432; c[2992] = 3432;
    a[2654] = 1327; b[2654] = 2654; c[2654] = 2654;
    a[2658] = 1329; b[2658] = 2658; c[2658] = 2658;
    a[2964] = 1330; b[2964] = 3276; c[2964] = 3420;
    a[2662] = 1331; b[2662] = 2662; c[2662] = 2662;
    a[2627] = 1332; b[2627] = 2556; c[2627] = 2627;
    a[3010] = 1333; b[3010] = 3440; c[3010] = 3472;
    a[2672] = 1336; b[2672] = 2672; c[2672] = 2672;
    a[2674] = 1337; b[2674] = 2674; c[2674] = 2674;
    a[2678] = 1339; b[2678] = 2678; c[2678] = 2678;
    a[2682] = 1341; b[2682] = 2682; c[2682] = 2682;
    a[2970] = 1342; b[2970] = 3294; c[2970] = 3355;
    a[2686] = 1343; b[2686] = 2686; c[2686] = 2686;
    a[2940] = 1344; b[2940] = 3136; c[2940] = 3360;
    a[2944] = 1344; b[2944] = 3136; c[2944] = 3381;
    a[2975] = 1344; b[2975] = 3264; c[2975] = 3400;
    a[3024] = 1344; b[3024] = 3456; c[3024] = 3456;
    a[2690] = 1345; b[2690] = 2690; c[2690] = 2690;
    a[2019] = 1346; b[2019] = 1346; c[2019] = 2019;
    a[2692] = 1346; b[2692] = 2692; c[2692] = 2692;
    a[2694] = 1347; b[2694] = 2694; c[2694] = 2694;
    a[2696] = 1348; b[2696] = 2696; c[2696] = 2696;
    a[2900] = 1350; b[2900] = 3024; c[2900] = 3248;
    a[3000] = 1350; b[3000] = 3375; c[3000] = 3375;
    a[2702] = 1351; b[2702] = 2702; c[2702] = 2702;
    a[2031] = 1354; b[2031] = 1354; c[2031] = 2031;
    a[2708] = 1354; b[2708] = 2708; c[2708] = 2708;
    a[2710] = 1355; b[2710] = 2710; c[2710] = 2710;
    a[2373] = 1356; b[2373] = 1582; c[2373] = 3164;
    a[2567] = 1359; b[2567] = 2416; c[2567] = 2448;
    a[2718] = 1359; b[2718] = 2718; c[2718] = 2718;
    a[2839] = 1360; b[2839] = 2672; c[2839] = 3340;
    a[2890] = 1360; b[2890] = 2992; c[2890] = 3179;
    a[2722] = 1361; b[2722] = 2722; c[2722] = 2722;
    a[2726] = 1363; b[2726] = 2726; c[2726] = 2726;
    a[3036] = 1364; b[3036] = 3404; c[3036] = 3441;
    a[2925] = 1365; b[2925] = 2898; c[2925] = 3450;
    a[2049] = 1366; b[2049] = 1366; c[2049] = 2049;
    a[2732] = 1366; b[2732] = 2732; c[2732] = 2732;
    a[2734] = 1367; b[2734] = 2734; c[2734] = 2734;
    a[2888] = 1368; b[2888] = 2888; c[2888] = 3249;
    a[3040] = 1368; b[3040] = 3420; c[3040] = 3420;
    a[2738] = 1369; b[2738] = 2738; c[2738] = 2738;
    a[2740] = 1370; b[2740] = 2740; c[2740] = 2740;
    a[2742] = 1371; b[2742] = 2742; c[2742] = 2742;
    a[2746] = 1373; b[2746] = 2746; c[2746] = 2746;
    a[3080] = 1375; b[3080] = 3500; c[3080] = 3500;
    a[2758] = 1379; b[2758] = 2758; c[2758] = 2758;
    a[2645] = 1380; b[2645] = 2116; c[2645] = 3174;
    a[2982] = 1380; b[2982] = 3220; c[2982] = 3266;
    a[2762] = 1381; b[2762] = 2762; c[2762] = 2762;
    a[2073] = 1382; b[2073] = 1382; c[2073] = 2073;
    a[2764] = 1382; b[2764] = 2764; c[2764] = 2764;
    a[2766] = 1383; b[2766] = 2766; c[2766] = 2766;
    a[2768] = 1384; b[2768] = 2768; c[2768] = 2768;
    a[2770] = 1385; b[2770] = 2770; c[2770] = 2770;
    a[2844] = 1386; b[2844] = 2607; c[2844] = 3318;
    a[2952] = 1386; b[2952] = 3157; c[2952] = 3157;
    a[3003] = 1386; b[3003] = 3159; c[3003] = 3402;
    a[3060] = 1386; b[3060] = 3366; c[3060] = 3465;
    a[3069] = 1386; b[3069] = 3410; c[3069] = 3465;
    a[2776] = 1388; b[2776] = 2776; c[2776] = 2776;
    a[2778] = 1389; b[2778] = 2778; c[2778] = 2778;
    a[2780] = 1390; b[2780] = 2780; c[2780] = 2780;
    a[2782] = 1391; b[2782] = 2782; c[2782] = 2782;
    a[3016] = 1392; b[3016] = 3120; c[3016] = 3480;
    a[3045] = 1392; b[3045] = 3248; c[3045] = 3480;
    a[2786] = 1393; b[2786] = 2786; c[2786] = 2786;
    a[2792] = 1396; b[2792] = 2792; c[2792] = 2792;
    a[2794] = 1397; b[2794] = 2794; c[2794] = 2794;
    a[2798] = 1399; b[2798] = 2798; c[2798] = 2798;
    a[2950] = 1400; b[2950] = 2950; c[2950] = 3304;
    a[3100] = 1400; b[3100] = 3472; c[3100] = 3472;
    a[2802] = 1401; b[2802] = 2802; c[2802] = 2802;
    a[2103] = 1402; b[2103] = 1402; c[2103] = 2103;
    a[2804] = 1402; b[2804] = 2804; c[2804] = 2804;
    a[2821] = 1404; b[2821] = 2457; c[2821] = 3348;
    a[2916] = 1404; b[2916] = 2916; c[2916] = 3159;
    a[3072] = 1404; b[3072] = 3328; c[3072] = 3456;
    a[2810] = 1405; b[2810] = 2810; c[2810] = 2810;
    a[2886] = 1406; b[2886] = 2926; c[2886] = 3003;
    a[3015] = 1407; b[3015] = 3150; c[3015] = 3350;
    a[2818] = 1409; b[2818] = 2818; c[2818] = 2818;
    a[3066] = 1410; b[3066] = 3290; c[3066] = 3431;
    a[2824] = 1412; b[2824] = 2824; c[2824] = 2824;
    a[2929] = 1414; b[2929] = 3030; c[2929] = 3045;
    a[2830] = 1415; b[2830] = 2830; c[2830] = 2830;
    a[2834] = 1417; b[2834] = 2834; c[2834] = 2834;
    a[2127] = 1418; b[2127] = 1418; c[2127] = 2127;
    a[2836] = 1418; b[2836] = 2836; c[2836] = 2836;
    a[2769] = 1420; b[2769] = 2340; c[2769] = 3195;
    a[2842] = 1421; b[2842] = 2842; c[2842] = 2842;
    a[3096] = 1422; b[3096] = 3397; c[3096] = 3397;
    a[2846] = 1423; b[2846] = 2846; c[2846] = 2846;
    a[2848] = 1424; b[2848] = 2848; c[2848] = 2848;
    a[2854] = 1427; b[2854] = 2854; c[2854] = 2854;
    a[2958] = 1428; b[2958] = 2842; c[2958] = 3332;
    a[3038] = 1428; b[3038] = 3162; c[3038] = 3332;
    a[3111] = 1428; b[3111] = 3416; c[3111] = 3416;
    a[2858] = 1429; b[2858] = 2858; c[2858] = 2858;
    a[2937] = 1430; b[2937] = 2670; c[2937] = 3471;
    a[2990] = 1430; b[2990] = 2990; c[2990] = 3289;
    a[3120] = 1430; b[3120] = 3432; c[3120] = 3432;
    a[2862] = 1431; b[2862] = 2862; c[2862] = 2862;
    a[2968] = 1431; b[2968] = 2862; c[2968] = 3339;
    a[2866] = 1433; b[2866] = 2866; c[2866] = 2866;
    a[2868] = 1434; b[2868] = 2868; c[2868] = 2868;
    a[2872] = 1436; b[2872] = 2872; c[2872] = 2872;
    a[2874] = 1437; b[2874] = 2874; c[2874] = 2874;
    a[2157] = 1438; b[2157] = 1438; c[2157] = 2157;
    a[2876] = 1438; b[2876] = 2876; c[2876] = 2876;
    a[2878] = 1439; b[2878] = 2878; c[2878] = 2878;
    a[3008] = 1440; b[3008] = 2961; c[3008] = 3360;
    a[2882] = 1441; b[2882] = 2882; c[2882] = 2882;
    a[2369] = 1442; b[2369] = 1648; c[2369] = 2576;
    a[2884] = 1442; b[2884] = 2884; c[2884] = 2884;
    a[3090] = 1442; b[3090] = 3296; c[3090] = 3360;
    a[3034] = 1443; b[3034] = 3120; c[3034] = 3280;
    a[3108] = 1443; b[3108] = 3367; c[3108] = 3367;
    a[2892] = 1446; b[2892] = 2892; c[2892] = 2892;
    a[2894] = 1447; b[2894] = 2894; c[2894] = 2894;
    a[2353] = 1448; b[2353] = 1560; c[2353] = 2715;
    a[2896] = 1448; b[2896] = 2896; c[2896] = 2896;
    a[3150] = 1449; b[3150] = 3450; c[3150] = 3450;
    a[2902] = 1451; b[2902] = 2902; c[2902] = 2902;
    a[3025] = 1452; b[3025] = 3025; c[3025] = 3300;
    a[3146] = 1452; b[3146] = 3432; c[3146] = 3432;
    a[2906] = 1453; b[2906] = 2906; c[2906] = 2906;
    a[2181] = 1454; b[2181] = 1454; c[2181] = 2181;
    a[2908] = 1454; b[2908] = 2908; c[2908] = 2908;
    a[2914] = 1457; b[2914] = 2914; c[2914] = 2914;
    a[2918] = 1459; b[2918] = 2918; c[2918] = 2918;
    a[2922] = 1461; b[2922] = 2922; c[2922] = 2922;
    a[2537] = 1462; b[2537] = 2006; c[2537] = 2537;
    a[2603] = 1463; b[2603] = 1918; c[2603] = 3014;
    a[2926] = 1463; b[2926] = 2926; c[2926] = 2926;
    a[2930] = 1465; b[2930] = 2930; c[2930] = 2930;
    a[2199] = 1466; b[2199] = 1466; c[2199] = 2199;
    a[2932] = 1466; b[2932] = 2932; c[2932] = 2932;
    a[2934] = 1467; b[2934] = 2934; c[2934] = 2934;
    a[2936] = 1468; b[2936] = 2936; c[2936] = 2936;
    a[2938] = 1469; b[2938] = 2938; c[2938] = 2938;
    a[3087] = 1470; b[3087] = 3087; c[3087] = 3430;
    a[3136] = 1470; b[3136] = 3248; c[3136] = 3480;
    a[2942] = 1471; b[2942] = 2942; c[2942] = 2942;
    a[2946] = 1473; b[2946] = 2946; c[2946] = 2946;
    a[2948] = 1474; b[2948] = 2948; c[2948] = 2948;
    a[2747] = 1476; b[2747] = 2412; c[2747] = 2747;
    a[3078] = 1476; b[3078] = 3116; c[3078] = 3321;
    a[2954] = 1477; b[2954] = 2954; c[2954] = 2954;
    a[2217] = 1478; b[2217] = 1478; c[2217] = 2217;
    a[2956] = 1478; b[2956] = 2956; c[2956] = 2956;
    a[3132] = 1479; b[3132] = 3213; c[3132] = 3451;
    a[3071] = 1480; b[3071] = 3071; c[3071] = 3320;
    a[3182] = 1480; b[3182] = 3440; c[3182] = 3440;
    a[2962] = 1481; b[2962] = 2962; c[2962] = 2962;
    a[2775] = 1482; b[2775] = 2405; c[2775] = 2850;
    a[3002] = 1482; b[3002] = 3002; c[3002] = 3081;
    a[3042] = 1482; b[3042] = 3042; c[3042] = 3211;
    a[3192] = 1482; b[3192] = 3458; c[3192] = 3458;
    a[2966] = 1483; b[2966] = 2966; c[2966] = 2966;
    a[3021] = 1484; b[3021] = 2968; c[3021] = 3192;
    a[3127] = 1484; b[3127] = 3304; c[3127] = 3304;
    a[2781] = 1485; b[2781] = 2266; c[2781] = 3090;
    a[2229] = 1486; b[2229] = 1486; c[2229] = 2229;
    a[2972] = 1486; b[2972] = 2972; c[2972] = 2972;
    a[2974] = 1487; b[2974] = 2974; c[2974] = 2974;
    a[3007] = 1488; b[3007] = 2976; c[3007] = 3104;
    a[2978] = 1489; b[2978] = 2978; c[2978] = 2978;
    a[2980] = 1490; b[2980] = 2980; c[2980] = 2980;
    a[2984] = 1492; b[2984] = 2984; c[2984] = 2984;
    a[2986] = 1493; b[2986] = 2986; c[2986] = 2986;
    a[2988] = 1494; b[2988] = 2988; c[2988] = 2988;
    a[3094] = 1496; b[3094] = 3003; c[3094] = 3432;
    a[3168] = 1496; b[3168] = 3366; c[3168] = 3366;
    a[2994] = 1497; b[2994] = 2994; c[2994] = 2994;
    a[2996] = 1498; b[2996] = 2996; c[2996] = 2996;
    a[2998] = 1499; b[2998] = 2998; c[2998] = 2998;
    a[3075] = 1500; b[3075] = 2870; c[3075] = 3500;
    a[3200] = 1500; b[3200] = 3360; c[3200] = 3500;
    a[3220] = 1500; b[3220] = 3450; c[3220] = 3500;
    a[3116] = 1501; b[3116] = 3239; c[3116] = 3239;
    a[2253] = 1502; b[2253] = 1502; c[2253] = 2253;
    a[3004] = 1502; b[3004] = 3004; c[3004] = 3004;
    a[3006] = 1503; b[3006] = 3006; c[3006] = 3006;
    a[3012] = 1506; b[3012] = 3012; c[3012] = 3012;
    a[2329] = 1507; b[2329] = 1644; c[2329] = 2244;
    a[3014] = 1507; b[3014] = 3014; c[3014] = 3014;
    a[3018] = 1509; b[3018] = 3018; c[3018] = 3018;
    a[3020] = 1510; b[3020] = 3020; c[3020] = 3020;
    a[3022] = 1511; b[3022] = 3022; c[3022] = 3022;
    a[2889] = 1512; b[2889] = 2568; c[2889] = 2996;
    a[3026] = 1513; b[3026] = 3026; c[3026] = 3026;
    a[2271] = 1514; b[2271] = 1514; c[2271] = 2271;
    a[3028] = 1514; b[3028] = 3028; c[3028] = 3028;
    a[3030] = 1515; b[3030] = 3030; c[3030] = 3030;
    a[3032] = 1516; b[3032] = 3032; c[3032] = 3032;
    a[2967] = 1518; b[2967] = 2838; c[2967] = 2967;
    a[3102] = 1518; b[3102] = 3102; c[3102] = 3243;
    a[2831] = 1520; b[2831] = 2384; c[2831] = 2980;
    a[3135] = 1520; b[3135] = 3135; c[3135] = 3344;
    a[3211] = 1521; b[3211] = 3380; c[3211] = 3420;
    a[2283] = 1522; b[2283] = 1522; c[2283] = 2283;
    a[3044] = 1522; b[3044] = 3044; c[3044] = 3044;
    a[3046] = 1523; b[3046] = 3046; c[3046] = 3046;
    a[2413] = 1524; b[2413] = 1596; c[2413] = 2667;
    a[3048] = 1524; b[3048] = 3048; c[3048] = 3048;
    a[3050] = 1525; b[3050] = 3050; c[3050] = 3050;
    a[3052] = 1526; b[3052] = 3052; c[3052] = 3052;
    a[3054] = 1527; b[3054] = 3054; c[3054] = 3054;
    a[3056] = 1528; b[3056] = 3056; c[3056] = 3056;
    a[3058] = 1529; b[3058] = 3058; c[3058] = 3058;
    a[2941] = 1530; b[2941] = 2595; c[2941] = 3114;
    a[2997] = 1530; b[2997] = 2754; c[2997] = 3145;
    a[3145] = 1530; b[3145] = 3145; c[3145] = 3330;
    a[3230] = 1530; b[3230] = 3420; c[3230] = 3420;
    a[3062] = 1531; b[3062] = 3062; c[3062] = 3062;
    a[3064] = 1532; b[3064] = 3064; c[3064] = 3064;
    a[3212] = 1533; b[3212] = 3285; c[3212] = 3465;
    a[3068] = 1534; b[3068] = 3068; c[3068] = 3068;
    a[3070] = 1535; b[3070] = 3070; c[3070] = 3070;
    a[3074] = 1537; b[3074] = 3074; c[3074] = 3074;
    a[2307] = 1538; b[2307] = 1538; c[2307] = 2307;
    a[3076] = 1538; b[3076] = 3076; c[3076] = 3076;
    a[3240] = 1539; b[3240] = 3420; c[3240] = 3420;
    a[3268] = 1539; b[3268] = 3483; c[3268] = 3483;
    a[3082] = 1541; b[3082] = 3082; c[3082] = 3082;
    a[3084] = 1542; b[3084] = 3084; c[3084] = 3084;
    a[3086] = 1543; b[3086] = 3086; c[3086] = 3086;
    a[3088] = 1544; b[3088] = 3088; c[3088] = 3088;
    a[2319] = 1546; b[2319] = 1546; c[2319] = 2319;
    a[3092] = 1546; b[3092] = 3092; c[3092] = 3092;
    a[2873] = 1547; b[2873] = 2366; c[2873] = 3094;
    a[3098] = 1549; b[3098] = 3098; c[3098] = 3098;
    a[3104] = 1552; b[3104] = 3104; c[3104] = 3104;
    a[3106] = 1553; b[3106] = 3106; c[3106] = 3106;
    a[3110] = 1555; b[3110] = 3110; c[3110] = 3110;
    a[3112] = 1556; b[3112] = 3112; c[3112] = 3112;
    a[3114] = 1557; b[3114] = 3114; c[3114] = 3114;
    a[2993] = 1558; b[2993] = 2774; c[2993] = 2993;
    a[3118] = 1559; b[3118] = 3118; c[3118] = 3118;
    a[3159] = 1560; b[3159] = 3159; c[3159] = 3240;
    a[3198] = 1560; b[3198] = 3240; c[3198] = 3321;
    a[3276] = 1560; b[3276] = 3432; c[3276] = 3465;
    a[3122] = 1561; b[3122] = 3122; c[3122] = 3122;
    a[3124] = 1562; b[3124] = 3124; c[3124] = 3124;
    a[3234] = 1562; b[3234] = 3234; c[3234] = 3479;
    a[3126] = 1563; b[3126] = 3126; c[3126] = 3126;
    a[3105] = 1564; b[3105] = 3060; c[3105] = 3105;
    a[3128] = 1564; b[3128] = 3128; c[3128] = 3128;
    a[3130] = 1565; b[3130] = 3130; c[3130] = 3130;
    a[3134] = 1567; b[3134] = 3134; c[3134] = 3134;
    a[3185] = 1568; b[3185] = 3040; c[3185] = 3458;
    a[3138] = 1569; b[3138] = 3138; c[3138] = 3138;
    a[3140] = 1570; b[3140] = 3140; c[3140] = 3140;
    a[3142] = 1571; b[3142] = 3142; c[3142] = 3142;
    a[3144] = 1572; b[3144] = 3144; c[3144] = 3144;
    a[2361] = 1574; b[2361] = 1574; c[2361] = 2361;
    a[3148] = 1574; b[3148] = 3148; c[3148] = 3148;
    a[3300] = 1575; b[3300] = 3465; c[3300] = 3465;
    a[3152] = 1576; b[3152] = 3152; c[3152] = 3152;
    a[3154] = 1577; b[3154] = 3154; c[3154] = 3154;
    a[3156] = 1578; b[3156] = 3156; c[3156] = 3156;
    a[3158] = 1579; b[3158] = 3158; c[3158] = 3158;
    a[3160] = 1580; b[3160] = 3160; c[3160] = 3160;
    a[3162] = 1581; b[3162] = 3162; c[3162] = 3162;
    a[3164] = 1582; b[3164] = 3164; c[3164] = 3164;
    a[3166] = 1583; b[3166] = 3166; c[3166] = 3166;
    a[3264] = 1584; b[3264] = 3366; c[3264] = 3366;
    a[3170] = 1585; b[3170] = 3170; c[3170] = 3170;
    a[2989] = 1586; b[2989] = 2548; c[2989] = 3172;
    a[3172] = 1586; b[3172] = 3172; c[3172] = 3172;
    a[3174] = 1587; b[3174] = 3174; c[3174] = 3174;
    a[3176] = 1588; b[3176] = 3176; c[3176] = 3176;
    a[3178] = 1589; b[3178] = 3178; c[3178] = 3178;
    a[3180] = 1590; b[3180] = 2915; c[3180] = 3498;
    a[3184] = 1592; b[3184] = 3184; c[3184] = 3184;
    a[3186] = 1593; b[3186] = 3186; c[3186] = 3186;
    a[2391] = 1594; b[2391] = 1594; c[2391] = 2391;
    a[3188] = 1594; b[3188] = 3188; c[3188] = 3188;
    a[3190] = 1595; b[3190] = 3190; c[3190] = 3190;
    a[3245] = 1595; b[3245] = 3190; c[3245] = 3422;
    a[2847] = 1596; b[2847] = 2044; c[2847] = 3458;
    a[2945] = 1596; b[2945] = 2356; c[2945] = 3255;
    a[3248] = 1596; b[3248] = 3306; c[3248] = 3306;
    a[3194] = 1597; b[3194] = 3194; c[3194] = 3194;
    a[3196] = 1598; b[3196] = 3196; c[3196] = 3196;
    a[3202] = 1601; b[3202] = 3202; c[3202] = 3202;
    a[3204] = 1602; b[3204] = 3204; c[3204] = 3204;
    a[3206] = 1603; b[3206] = 3206; c[3206] = 3206;
    a[3208] = 1604; b[3208] = 3208; c[3208] = 3208;
    a[2461] = 1605; b[2461] = 1926; c[2461] = 2070;
    a[3210] = 1605; b[3210] = 3210; c[3210] = 3210;
    a[3214] = 1607; b[3214] = 3214; c[3214] = 3214;
    a[3216] = 1608; b[3216] = 3216; c[3216] = 3216;
    a[3218] = 1609; b[3218] = 3218; c[3218] = 3218;
    a[3059] = 1610; b[3059] = 2660; c[3059] = 3220;
    a[3243] = 1610; b[3243] = 3243; c[3243] = 3290;
    a[3266] = 1610; b[3266] = 3290; c[3266] = 3337;
    a[2685] = 1611; b[2685] = 1790; c[2685] = 3222;
    a[3222] = 1611; b[3222] = 3222; c[3222] = 3222;
    a[3255] = 1612; b[3255] = 3120; c[3255] = 3472;
    a[3224] = 1612; b[3224] = 3224; c[3224] = 3224;
    a[3226] = 1613; b[3226] = 3226; c[3226] = 3226;
    a[3228] = 1614; b[3228] = 3228; c[3228] = 3228;
    a[3232] = 1616; b[3232] = 3232; c[3232] = 3232;
    a[2427] = 1618; b[2427] = 1618; c[2427] = 2427;
    a[3236] = 1618; b[3236] = 3236; c[3236] = 3236;
    a[3238] = 1619; b[3238] = 3238; c[3238] = 3238;
    a[3280] = 1620; b[3280] = 3321; c[3280] = 3321;
    a[3242] = 1621; b[3242] = 3242; c[3242] = 3242;
    a[2433] = 1622; b[2433] = 1622; c[2433] = 2433;
    a[3244] = 1622; b[3244] = 3244; c[3244] = 3244;
    a[3246] = 1623; b[3246] = 3246; c[3246] = 3246;
    a[3304] = 1624; b[3304] = 3304; c[3304] = 3422;
    a[3360] = 1624; b[3360] = 3480; c[3360] = 3480;
    a[3250] = 1625; b[3250] = 3250; c[3250] = 3250;
    a[3252] = 1626; b[3252] = 3252; c[3252] = 3252;
    a[3254] = 1627; b[3254] = 3254; c[3254] = 3254;
    a[3256] = 1628; b[3256] = 3256; c[3256] = 3256;
    a[2715] = 1629; b[2715] = 1810; c[2715] = 3258;
    a[3258] = 1629; b[3258] = 3258; c[3258] = 3258;
    a[3260] = 1630; b[3260] = 3260; c[3260] = 3260;
    a[3262] = 1631; b[3262] = 3262; c[3262] = 3262;
    a[3312] = 1633; b[3312] = 3312; c[3312] = 3408;
    a[3053] = 1634; b[3053] = 2698; c[3053] = 3053;
    a[3270] = 1635; b[3270] = 3270; c[3270] = 3270;
    a[3272] = 1636; b[3272] = 3272; c[3272] = 3272;
    a[3274] = 1637; b[3274] = 3274; c[3274] = 3274;
    a[3213] = 1638; b[3213] = 3094; c[3213] = 3213;
    a[3278] = 1639; b[3278] = 3278; c[3278] = 3278;
    a[3239] = 1640; b[3239] = 3160; c[3239] = 3239;
    a[3320] = 1640; b[3320] = 3320; c[3320] = 3403;
    a[3282] = 1641; b[3282] = 3282; c[3282] = 3282;
    a[2463] = 1642; b[2463] = 1642; c[2463] = 2463;
    a[3284] = 1642; b[3284] = 3284; c[3284] = 3284;
    a[3286] = 1643; b[3286] = 3286; c[3286] = 3286;
    a[3151] = 1644; b[3151] = 3014; c[3151] = 3036;
    a[3288] = 1644; b[3288] = 3288; c[3288] = 3288;
    a[3290] = 1645; b[3290] = 3290; c[3290] = 3290;
    a[2469] = 1646; b[2469] = 1646; c[2469] = 2469;
    a[3292] = 1646; b[3292] = 3292; c[3292] = 3292;
    a[3294] = 1647; b[3294] = 3294; c[3294] = 3294;
    a[3296] = 1648; b[3296] = 3296; c[3296] = 3296;
    a[3298] = 1649; b[3298] = 3298; c[3298] = 3298;
    a[3225] = 1650; b[3225] = 3010; c[3225] = 3311;
    a[3302] = 1651; b[3302] = 3302; c[3302] = 3302;
    a[3306] = 1653; b[3306] = 3306; c[3306] = 3306;
    a[3363] = 1653; b[3363] = 3422; c[3363] = 3422;
    a[2481] = 1654; b[2481] = 1654; c[2481] = 2481;
    a[3308] = 1654; b[3308] = 3308; c[3308] = 3308;
    a[3310] = 1655; b[3310] = 3310; c[3310] = 3310;
    a[2921] = 1656; b[2921] = 2286; c[2921] = 3048;
    a[3314] = 1657; b[3314] = 3314; c[3314] = 3314;
    a[2487] = 1658; b[2487] = 1658; c[2487] = 2487;
    a[3316] = 1658; b[3316] = 3316; c[3316] = 3316;
    a[3081] = 1659; b[3081] = 2686; c[3081] = 3094;
    a[3318] = 1659; b[3318] = 3318; c[3318] = 3318;
    a[3322] = 1661; b[3322] = 3322; c[3322] = 3322;
    a[3324] = 1662; b[3324] = 3324; c[3324] = 3324;
    a[3326] = 1663; b[3326] = 3326; c[3326] = 3326;
    a[3328] = 1664; b[3328] = 3328; c[3328] = 3328;
    a[3330] = 1665; b[3330] = 3330; c[3330] = 3330;
    a[3332] = 1666; b[3332] = 3332; c[3332] = 3332;
    a[3334] = 1667; b[3334] = 3334; c[3334] = 3334;
    a[3336] = 1668; b[3336] = 3336; c[3336] = 3336;
    a[3338] = 1669; b[3338] = 3338; c[3338] = 3338;
    a[3173] = 1670; b[3173] = 2839; c[3173] = 3230;
    a[3340] = 1670; b[3340] = 3340; c[3340] = 3340;
    a[3342] = 1671; b[3342] = 3342; c[3342] = 3342;
    a[3344] = 1672; b[3344] = 3344; c[3344] = 3344;
    a[3346] = 1673; b[3346] = 3346; c[3346] = 3346;
    a[3348] = 1674; b[3348] = 3348; c[3348] = 3348;
    a[3350] = 1675; b[3350] = 3350; c[3350] = 3350;
    a[3352] = 1676; b[3352] = 3352; c[3352] = 3352;
    a[3354] = 1677; b[3354] = 3354; c[3354] = 3354;
    a[2517] = 1678; b[2517] = 1678; c[2517] = 2517;
    a[3356] = 1678; b[3356] = 3356; c[3356] = 3356;
    a[2701] = 1679; b[2701] = 1702; c[2701] = 3358;
    a[3358] = 1679; b[3358] = 3358; c[3358] = 3358;
    a[2751] = 1680; b[2751] = 2096; c[2751] = 2620;
    a[3362] = 1681; b[3362] = 3362; c[3362] = 3362;
    a[2523] = 1682; b[2523] = 1682; c[2523] = 2523;
    a[3364] = 1682; b[3364] = 3364; c[3364] = 3364;
    a[3366] = 1683; b[3366] = 3366; c[3366] = 3366;
    a[3368] = 1684; b[3368] = 3368; c[3368] = 3368;
    a[3370] = 1685; b[3370] = 3370; c[3370] = 3370;
    a[3372] = 1686; b[3372] = 3372; c[3372] = 3372;
    a[3374] = 1687; b[3374] = 3374; c[3374] = 3374;
    a[3376] = 1688; b[3376] = 3376; c[3376] = 3376;
    a[3378] = 1689; b[3378] = 3378; c[3378] = 3378;
    a[3380] = 1690; b[3380] = 3380; c[3380] = 3380;
    a[3382] = 1691; b[3382] = 3382; c[3382] = 3382;
    a[3384] = 1692; b[3384] = 3384; c[3384] = 3384;
    a[3386] = 1693; b[3386] = 3386; c[3386] = 3386;
    a[2783] = 1694; b[2783] = 1886; c[2783] = 3157;
    a[3388] = 1694; b[3388] = 3388; c[3388] = 3388;
    a[3390] = 1695; b[3390] = 3390; c[3390] = 3390;
    a[3392] = 1696; b[3392] = 3392; c[3392] = 3392;
    a[3394] = 1697; b[3394] = 3394; c[3394] = 3394;
    a[3396] = 1698; b[3396] = 3396; c[3396] = 3396;
    a[3398] = 1699; b[3398] = 3398; c[3398] = 3398;
    a[3375] = 1700; b[3375] = 3213; c[3375] = 3500;
    a[3400] = 1700; b[3400] = 3400; c[3400] = 3400;
    a[3402] = 1701; b[3402] = 3402; c[3402] = 3402;
    a[3404] = 1702; b[3404] = 3404; c[3404] = 3404;
    a[3406] = 1703; b[3406] = 3406; c[3406] = 3406;
    a[3195] = 1704; b[3195] = 2840; c[3195] = 3195;
    a[3408] = 1704; b[3408] = 3408; c[3408] = 3408;
    a[3410] = 1705; b[3410] = 3410; c[3410] = 3410;
    a[2559] = 1706; b[2559] = 1706; c[2559] = 2559;
    a[3412] = 1706; b[3412] = 3412; c[3412] = 3412;
    a[3414] = 1707; b[3414] = 3414; c[3414] = 3414;
    a[3416] = 1708; b[3416] = 3416; c[3416] = 3416;
    a[3418] = 1709; b[3418] = 3418; c[3418] = 3418;
    a[2869] = 1710; b[2869] = 2265; c[2869] = 2718;
    a[3325] = 1710; b[3325] = 3150; c[3325] = 3325;
    a[3420] = 1710; b[3420] = 3420; c[3420] = 3420;
    a[3422] = 1711; b[3422] = 3422; c[3422] = 3422;
    a[3317] = 1712; b[3317] = 2996; c[3317] = 3472;
    a[3424] = 1712; b[3424] = 3424; c[3424] = 3424;
    a[3426] = 1713; b[3426] = 3426; c[3426] = 3426;
    a[2571] = 1714; b[2571] = 1714; c[2571] = 2571;
    a[3428] = 1714; b[3428] = 3428; c[3428] = 3428;
    a[3430] = 1715; b[3430] = 3430; c[3430] = 3430;
    a[2977] = 1716; b[2977] = 2519; c[2977] = 2748;
    a[3289] = 1716; b[3289] = 3036; c[3289] = 3289;
    a[3315] = 1716; b[3315] = 3060; c[3315] = 3366;
    a[3432] = 1716; b[3432] = 3432; c[3432] = 3432;
    a[3434] = 1717; b[3434] = 3434; c[3434] = 3434;
    a[2577] = 1718; b[2577] = 1718; c[2577] = 2577;
    a[3436] = 1718; b[3436] = 3436; c[3436] = 3436;
    a[2865] = 1719; b[2865] = 1910; c[2865] = 3438;
    a[3438] = 1719; b[3438] = 3438; c[3438] = 3438;
    a[3311] = 1720; b[3311] = 3080; c[3311] = 3311;
    a[3440] = 1720; b[3440] = 3440; c[3440] = 3440;
    a[3442] = 1721; b[3442] = 3442; c[3442] = 3442;
    a[2911] = 1722; b[2911] = 1988; c[2911] = 3444;
    a[3157] = 1722; b[3157] = 2706; c[3157] = 3157;
    a[3444] = 1722; b[3444] = 3403; c[3444] = 3486;
    a[3446] = 1723; b[3446] = 3446; c[3446] = 3446;
    a[3448] = 1724; b[3448] = 3448; c[3448] = 3448;
    a[3450] = 1725; b[3450] = 3450; c[3450] = 3450;
    a[2589] = 1726; b[2589] = 1726; c[2589] = 2589;
    a[3452] = 1726; b[3452] = 3452; c[3452] = 3452;
    a[3454] = 1727; b[3454] = 3454; c[3454] = 3454;
    a[3456] = 1728; b[3456] = 3456; c[3456] = 3456;
    a[3458] = 1729; b[3458] = 3458; c[3458] = 3458;
    a[3460] = 1730; b[3460] = 3460; c[3460] = 3460;
    a[3462] = 1731; b[3462] = 3462; c[3462] = 3462;
    a[3464] = 1732; b[3464] = 3464; c[3464] = 3464;
    a[3466] = 1733; b[3466] = 3466; c[3466] = 3466;
    a[3179] = 1734; b[3179] = 2601; c[3179] = 3366;
    a[3468] = 1734; b[3468] = 3468; c[3468] = 3468;
    a[3470] = 1735; b[3470] = 3470; c[3470] = 3470;
    a[3472] = 1736; b[3472] = 3472; c[3472] = 3472;
    a[2895] = 1737; b[2895] = 1930; c[2895] = 3474;
    a[3474] = 1737; b[3474] = 3474; c[3474] = 3474;
    a[2923] = 1738; b[2923] = 2442; c[2923] = 2607;
    a[3476] = 1738; b[3476] = 3476; c[3476] = 3476;
    a[3478] = 1739; b[3478] = 3478; c[3478] = 3478;
    a[3480] = 1740; b[3480] = 3480; c[3480] = 3480;
    a[3482] = 1741; b[3482] = 3482; c[3482] = 3482;
    a[3149] = 1742; b[3149] = 2444; c[3149] = 3484;
    a[3484] = 1742; b[3484] = 3484; c[3484] = 3484;
    a[3486] = 1743; b[3486] = 3486; c[3486] = 3486;
    a[3488] = 1744; b[3488] = 3488; c[3488] = 3488;
    a[3490] = 1745; b[3490] = 3490; c[3490] = 3490;
    a[3492] = 1746; b[3492] = 3492; c[3492] = 3492;
    a[3494] = 1747; b[3494] = 3494; c[3494] = 3494;
    a[3496] = 1748; b[3496] = 3496; c[3496] = 3496;
    a[3498] = 1749; b[3498] = 3498; c[3498] = 3498;
    a[3500] = 1750; b[3500] = 3500; c[3500] = 3500;
    a[3139] = 1752; b[3139] = 2628; c[3139] = 3096;
    a[3285] = 1752; b[3285] = 2920; c[3285] = 3285;
    a[2631] = 1754; b[2631] = 1754; c[2631] = 2631;
    a[3267] = 1755; b[3267] = 2970; c[3267] = 3146;
    a[2637] = 1758; b[2637] = 1758; c[2637] = 2637;
    a[3395] = 1760; b[3395] = 3201; c[3395] = 3360;
    a[3465] = 1760; b[3465] = 3360; c[3465] = 3465;
    a[2643] = 1762; b[2643] = 1762; c[2643] = 2643;
    a[2649] = 1766; b[2649] = 1766; c[2649] = 2649;
    a[3355] = 1769; b[3355] = 3190; c[3355] = 3190;
    a[3381] = 1771; b[3381] = 3234; c[3381] = 3234;
    a[2661] = 1774; b[2661] = 1774; c[2661] = 2661;
    a[2667] = 1778; b[2667] = 1778; c[2667] = 2667;
    a[3115] = 1780; b[3115] = 2492; c[3115] = 3115;
    a[2825] = 1800; b[2825] = 2034; c[2825] = 2712;
    a[3526] = 1806; b[3526] = 3403; c[3526] = 3486;
    a[2599] = 1808; b[2599] = 1840; c[2599] = 2260;
    a[3051] = 1808; b[3051] = 2160; c[3051] = 3390;
    a[2721] = 1814; b[2721] = 1814; c[2721] = 2721;
    a[3055] = 1820; b[3055] = 2632; c[3055] = 2632;
    a[2733] = 1822; b[2733] = 1822; c[2733] = 2733;
    a[3339] = 1827; b[3339] = 3074; c[3339] = 3074;
    a[3009] = 1836; b[3009] = 2052; c[3009] = 3363;
    a[3321] = 1836; b[3321] = 2788; c[3321] = 3321;
    a[2757] = 1838; b[2757] = 1838; c[2757] = 2757;
    a[3520] = 1840; b[3520] = 3300; c[3520] = 3450;
    a[3550] = 1840; b[3550] = 3408; c[3550] = 3450;
    a[2763] = 1842; b[2763] = 1842; c[2763] = 2763;
    a[3219] = 1856; b[3219] = 2516; c[3219] = 3264;
    a[2787] = 1858; b[2787] = 1858; c[2787] = 2787;
    a[3565] = 1860; b[3565] = 3404; c[3565] = 3441;
    a[3596] = 1860; b[3596] = 3480; c[3596] = 3480;
    a[2799] = 1866; b[2799] = 1866; c[2799] = 2799;
    a[3471] = 1869; b[3471] = 3204; c[3471] = 3276;
    a[3570] = 1870; b[3570] = 3366; c[3570] = 3465;
    a[3608] = 1870; b[3608] = 3485; c[3608] = 3485;
    a[2811] = 1874; b[2811] = 1874; c[2811] = 2811;
    a[2817] = 1878; b[2817] = 1878; c[2817] = 2817;
    a[3431] = 1880; b[3431] = 2920; c[3431] = 3431;
    a[3572] = 1880; b[3572] = 3384; c[3572] = 3420;
    a[3553] = 1881; b[3553] = 3366; c[3553] = 3366;
    a[2823] = 1882; b[2823] = 1882; c[2823] = 2823;
    a[3335] = 1885; b[3335] = 2990; c[3335] = 2990;
    a[3441] = 1887; b[3441] = 3162; c[3441] = 3162;
    a[3540] = 1888; b[3540] = 3304; c[3540] = 3360;
    a[3483] = 1890; b[3483] = 3010; c[3483] = 3483;
    a[3510] = 1890; b[3510] = 3159; c[3510] = 3402;
    a[3535] = 1890; b[3535] = 3213; c[3535] = 3434;
    a[3584] = 1890; b[3584] = 3360; c[3584] = 3456;
    a[3600] = 1890; b[3600] = 3375; c[3600] = 3500;
    a[3591] = 1890; b[3591] = 3420; c[3591] = 3420;
    a[2841] = 1894; b[2841] = 1894; c[2841] = 2841;
    a[3536] = 1898; b[3536] = 3196; c[3536] = 3431;
    a[2853] = 1902; b[2853] = 1902; c[2853] = 2853;
    a[3281] = 1904; b[3281] = 2702; c[3281] = 3088;
    a[2859] = 1906; b[2859] = 1906; c[2859] = 2859;
    a[3528] = 1911; b[3528] = 3159; c[3528] = 3402;
    a[3588] = 1911; b[3588] = 3381; c[3588] = 3381;
    a[2877] = 1918; b[2877] = 1918; c[2877] = 2877;
    a[2883] = 1922; b[2883] = 1922; c[2883] = 2883;
    a[3367] = 1924; b[3367] = 2886; c[3367] = 3108;
    a[3504] = 1932; b[3504] = 3066; c[3504] = 3358;
    a[2901] = 1934; b[2901] = 1934; c[2901] = 2901;
    a[3612] = 1935; b[3612] = 3311; c[3612] = 3465;
    a[2913] = 1942; b[2913] = 1942; c[2913] = 2913;
    a[3283] = 1943; b[3283] = 2842; c[3283] = 2842;
    a[3564] = 1944; b[3564] = 3159; c[3564] = 3432;
    a[2919] = 1946; b[2919] = 1946; c[2919] = 2919;
    a[3575] = 1950; b[3575] = 3150; c[3575] = 3465;
    a[2931] = 1954; b[2931] = 1954; c[2931] = 2931;
    a[3479] = 1960; b[3479] = 2840; c[3479] = 3479;
    a[3445] = 1960; b[3445] = 2968; c[3445] = 3185;
    a[3393] = 1962; b[3393] = 2834; c[3393] = 3161;
    a[3597] = 1962; b[3597] = 3168; c[3597] = 3488;
    a[2949] = 1966; b[2949] = 1966; c[2949] = 2949;
    a[2955] = 1970; b[2955] = 1970; c[2955] = 2955;
    a[3451] = 1972; b[3451] = 2842; c[3451] = 3332;
    a[3666] = 1974; b[3666] = 3367; c[3666] = 3478;
    a[3555] = 1975; b[3555] = 3150; c[3555] = 3318;
    a[3648] = 1976; b[3648] = 3344; c[3648] = 3432;
    a[3680] = 1978; b[3680] = 3440; c[3680] = 3440;
    a[3640] = 1980; b[3640] = 3276; c[3640] = 3465;
    a[3690] = 1980; b[3690] = 3444; c[3690] = 3465;
    a[3696] = 1980; b[3696] = 3465; c[3696] = 3465;
    a[2973] = 1982; b[2973] = 1982; c[2973] = 2973;
    a[3131] = 1984; b[3131] = 2112; c[3131] = 3333;
    a[2979] = 1986; b[2979] = 1986; c[2979] = 2979;
    a[3542] = 1988; b[3542] = 3124; c[3542] = 3266;
    a[2985] = 1990; b[2985] = 1990; c[2985] = 2985;
    a[3403] = 1992; b[3403] = 2952; c[3403] = 2988;
    a[2991] = 1994; b[2991] = 1994; c[2991] = 2991;
    a[3705] = 1995; b[3705] = 3458; c[3705] = 3458;
    a[3618] = 1998; b[3618] = 3149; c[3618] = 3478;
    a[3652] = 2002; b[3652] = 3237; c[3652] = 3486;
    a[3551] = 2010; b[3551] = 2915; c[3551] = 3498;
    a[3660] = 2013; b[3660] = 3355; c[3660] = 3355;
    a[3233] = 2014; b[3233] = 2318; c[3233] = 3233;
    a[3534] = 2014; b[3534] = 3021; c[3534] = 3286;
    a[3027] = 2018; b[3027] = 2018; c[3027] = 3027;
    a[3033] = 2022; b[3033] = 2022; c[3033] = 3033;
    a[3726] = 2025; b[3726] = 3450; c[3726] = 3450;
    a[3039] = 2026; b[3039] = 2026; c[3039] = 3039;
    a[3549] = 2028; b[3549] = 3042; c[3549] = 3276;
    a[3718] = 2028; b[3718] = 3432; c[3718] = 3432;
    a[3654] = 2030; b[3654] = 3190; c[3654] = 3465;
    a[3712] = 2030; b[3712] = 3360; c[3712] = 3480;
    a[3663] = 2035; b[3663] = 3330; c[3663] = 3330;
    a[3720] = 2035; b[3720] = 3410; c[3720] = 3441;
    a[3057] = 2038; b[3057] = 2038; c[3057] = 3057;
    a[3519] = 2040; b[3519] = 3060; c[3519] = 3128;
    a[3552] = 2040; b[3552] = 3145; c[3552] = 3145;
    a[3655] = 2040; b[3655] = 3225; c[3655] = 3400;
    a[3063] = 2042; b[3063] = 2042; c[3063] = 3063;
    a[3672] = 2052; b[3672] = 3230; c[3672] = 3420;
    a[3399] = 2060; b[3399] = 2575; c[3399] = 3300;
    a[3093] = 2062; b[3093] = 2062; c[3093] = 3093;
    a[3099] = 2066; b[3099] = 2066; c[3099] = 3099;
    a[3117] = 2078; b[3117] = 2078; c[3117] = 3117;
    a[3780] = 2079; b[3780] = 3465; c[3780] = 3465;
    a[3123] = 2082; b[3123] = 2082; c[3123] = 3123;
    a[3129] = 2086; b[3129] = 2086; c[3129] = 3129;
    a[3576] = 2086; b[3576] = 3129; c[3576] = 3129;
    a[3538] = 2088; b[3538] = 2745; c[3538] = 3480;
    a[3744] = 2088; b[3744] = 3393; c[3744] = 3393;
    a[3770] = 2088; b[3770] = 3393; c[3770] = 3480;
    a[3675] = 2090; b[3675] = 3234; c[3675] = 3325;
    a[3762] = 2090; b[3762] = 3420; c[3762] = 3420;
    a[3141] = 2094; b[3141] = 2094; c[3141] = 3141;
    a[3147] = 2098; b[3147] = 2098; c[3147] = 3147;
    a[3275] = 2100; b[3275] = 2620; c[3275] = 2751;
    a[3525] = 2100; b[3525] = 2820; c[3525] = 3290;
    a[3630] = 2100; b[3630] = 3025; c[3630] = 3388;
    a[3247] = 2101; b[3247] = 2618; c[3247] = 2674;
    a[3629] = 2101; b[3629] = 3056; c[3629] = 3344;
    a[3153] = 2102; b[3153] = 2102; c[3153] = 3153;
    a[3626] = 2107; b[3626] = 2960; c[3626] = 3440;
    a[3627] = 2108; b[3627] = 3060; c[3627] = 3315;
    a[3689] = 2108; b[3689] = 3213; c[3689] = 3348;
    a[3808] = 2108; b[3808] = 3472; c[3808] = 3472;
    a[3165] = 2110; b[3165] = 2110; c[3165] = 3165;
    a[3171] = 2114; b[3171] = 2114; c[3171] = 3171;
    a[3624] = 2114; b[3624] = 3171; c[3624] = 3171;
    a[3760] = 2115; b[3760] = 3384; c[3760] = 3384;
    a[3177] = 2118; b[3177] = 2118; c[3177] = 3177;
    a[3828] = 2120; b[3828] = 3480; c[3828] = 3498;
    a[3183] = 2122; b[3183] = 2122; c[3183] = 3183;
    a[3717] = 2124; b[3717] = 3304; c[3717] = 3304;
    a[3189] = 2126; b[3189] = 2126; c[3189] = 3189;
    a[3097] = 2128; b[3097] = 2282; c[3097] = 2608;
    a[3249] = 2128; b[3249] = 2527; c[3249] = 2736;
    a[3692] = 2130; b[3692] = 3120; c[3692] = 3408;
    a[3485] = 2132; b[3485] = 2600; c[3485] = 3400;
    a[3731] = 2132; b[3731] = 3198; c[3731] = 3444;
    a[3201] = 2134; b[3201] = 2134; c[3201] = 3201;
    a[3207] = 2138; b[3207] = 2138; c[3207] = 3207;
    a[3795] = 2139; b[3795] = 3410; c[3795] = 3410;
    a[3546] = 2142; b[3546] = 2758; c[3546] = 3349;
    a[3423] = 2142; b[3423] = 2771; c[3423] = 2934;
    a[3740] = 2145; b[3740] = 3315; c[3740] = 3315;
    a[3231] = 2154; b[3231] = 2154; c[3231] = 3231;
    a[3822] = 2156; b[3822] = 3432; c[3822] = 3432;
    a[3237] = 2158; b[3237] = 2158; c[3237] = 3237;
    a[3840] = 2160; b[3840] = 3456; c[3840] = 3456;
    a[3605] = 2163; b[3605] = 3090; c[3605] = 3090;
    a[3875] = 2170; b[3875] = 3500; c[3875] = 3500;
    a[3261] = 2174; b[3261] = 2174; c[3261] = 3261;
    a[3700] = 2175; b[3700] = 3219; c[3700] = 3219;
    a[3273] = 2182; b[3273] = 2182; c[3273] = 3273;
    a[3279] = 2186; b[3279] = 2186; c[3279] = 3279;
    a[3783] = 2193; b[3783] = 3298; c[3783] = 3354;
    a[3291] = 2194; b[3291] = 2194; c[3291] = 3291;
    a[3782] = 2196; b[3782] = 3294; c[3782] = 3348;
    a[3843] = 2196; b[3843] = 3416; c[3843] = 3416;
    a[3297] = 2198; b[3297] = 2198; c[3297] = 3297;
    a[3768] = 2198; b[3768] = 3297; c[3768] = 3297;
    a[3800] = 2200; b[3800] = 3344; c[3800] = 3344;
    a[3825] = 2200; b[3825] = 3366; c[3825] = 3400;
    a[3763] = 2201; b[3763] = 3286; c[3763] = 3286;
    a[3303] = 2202; b[3303] = 2202; c[3303] = 3303;
    a[3309] = 2206; b[3309] = 2206; c[3309] = 3309;
    a[3752] = 2211; b[3752] = 3234; c[3752] = 3283;
    a[3792] = 2212; b[3792] = 3318; c[3792] = 3318;
    a[3813] = 2214; b[3813] = 3348; c[3813] = 3348;
    a[3327] = 2218; b[3327] = 2218; c[3327] = 3327;
    a[3333] = 2222; b[3333] = 2222; c[3333] = 3333;
    a[3900] = 2225; b[3900] = 3471; c[3900] = 3471;
    a[3604] = 2226; b[3604] = 2862; c[3604] = 3213;
    a[3657] = 2226; b[3657] = 2898; c[3657] = 3339;
    a[3710] = 2226; b[3710] = 2915; c[3710] = 3498;
    a[3816] = 2226; b[3816] = 3339; c[3816] = 3339;
    a[3668] = 2227; b[3668] = 2975; c[3668] = 3275;
    a[3345] = 2230; b[3345] = 2230; c[3345] = 3345;
    a[3568] = 2230; b[3568] = 2676; c[3568] = 3345;
    a[3906] = 2232; b[3906] = 3472; c[3906] = 3472;
    a[3351] = 2234; b[3351] = 2234; c[3351] = 3351;
    a[3357] = 2238; b[3357] = 2238; c[3357] = 3357;
    a[3774] = 2244; b[3774] = 3256; c[3774] = 3256;
    a[3369] = 2246; b[3369] = 2246; c[3369] = 3369;
    a[3745] = 2247; b[3745] = 3210; c[3745] = 3210;
    a[3864] = 2254; b[3864] = 3381; c[3864] = 3381;
    a[3387] = 2258; b[3387] = 2258; c[3387] = 3387;
    a[3616] = 2260; b[3616] = 2712; c[3616] = 3390;
    a[3515] = 2261; b[3515] = 2590; c[3515] = 3230;
    a[3723] = 2263; b[3723] = 3162; c[3723] = 3162;
    a[3888] = 2268; b[3888] = 3402; c[3888] = 3402;
    a[3405] = 2270; b[3405] = 2270; c[3405] = 3405;
    a[3632] = 2270; b[3632] = 2724; c[3632] = 3405;
    a[3411] = 2274; b[3411] = 2274; c[3411] = 3411;
    a[3417] = 2278; b[3417] = 2278; c[3417] = 3417;
    a[3920] = 2280; b[3920] = 3381; c[3920] = 3496;
    a[3933] = 2280; b[3933] = 3420; c[3933] = 3496;
    a[3912] = 2282; b[3912] = 3423; c[3912] = 3423;
    a[3429] = 2286; b[3429] = 2286; c[3429] = 3429;
    a[3556] = 2286; b[3556] = 2898; c[3556] = 2921;
    a[3815] = 2289; b[3815] = 3270; c[3815] = 3270;
    a[3435] = 2290; b[3435] = 2290; c[3435] = 3435;
    a[3664] = 2290; b[3664] = 2748; c[3664] = 3435;
    a[3936] = 2296; b[3936] = 3403; c[3936] = 3486;
    a[3447] = 2298; b[3447] = 2298; c[3447] = 3447;
    a[3872] = 2299; b[3872] = 3344; c[3872] = 3344;
    a[3910] = 2300; b[3910] = 3400; c[3910] = 3400;
    a[3453] = 2302; b[3453] = 2302; c[3453] = 3453;
    a[3459] = 2306; b[3459] = 2306; c[3459] = 3459;
    a[3509] = 2310; b[3509] = 2541; c[3509] = 3190;
    a[3615] = 2310; b[3615] = 2651; c[3615] = 3374;
    a[3850] = 2310; b[3850] = 3150; c[3850] = 3465;
    a[3927] = 2310; b[3927] = 3366; c[3927] = 3465;
    a[3960] = 2310; b[3960] = 3465; c[3960] = 3465;
    a[3848] = 2314; b[3848] = 3293; c[3848] = 3293;
    a[3477] = 2318; b[3477] = 2318; c[3477] = 3477;
    a[3886] = 2320; b[3886] = 3216; c[3886] = 3480;
    a[3741] = 2322; b[3741] = 3024; c[3741] = 3248;
    a[3984] = 2324; b[3984] = 3486; c[3984] = 3486;
    a[3489] = 2326; b[3489] = 2326; c[3489] = 3489;
    a[3495] = 2330; b[3495] = 2330; c[3495] = 3495;
    a[3728] = 2330; b[3728] = 2796; c[3728] = 3495;
    a[3885] = 2331; b[3885] = 3330; c[3885] = 3330;
    a[3567] = 2336; b[3567] = 2784; c[3567] = 2993;
    a[3735] = 2340; b[3735] = 2988; c[3735] = 3237;
    a[3952] = 2340; b[3952] = 3420; c[3952] = 3420;
    a[3876] = 2346; b[3876] = 3128; c[3876] = 3496;
    a[3915] = 2349; b[3915] = 3240; c[3915] = 3480;
    a[3834] = 2352; b[3834] = 3024; c[3834] = 3479;
    a[3976] = 2352; b[3976] = 3408; c[3976] = 3479;
    a[3658] = 2356; b[3658] = 2655; c[3658] = 3420;
    a[3784] = 2365; b[3784] = 3010; c[3784] = 3311;
    a[3887] = 2366; b[3887] = 3220; c[3887] = 3380;
    a[3996] = 2368; b[3996] = 3456; c[3996] = 3456;
    a[3634] = 2370; b[3634] = 2760; c[3634] = 3160;
    a[3950] = 2370; b[3950] = 3300; c[3950] = 3476;
    a[3955] = 2373; b[3955] = 3390; c[3955] = 3390;
    a[3625] = 2378; b[3625] = 2665; c[3625] = 3250;
    a[4000] = 2380; b[4000] = 3400; c[4000] = 3500;
    a[3922] = 2385; b[3922] = 3330; c[3922] = 3330;
    a[3619] = 2387; b[3619] = 2914; c[3619] = 2914;
    a[3383] = 2388; b[3383] = 2587; c[3383] = 2652;
    a[3585] = 2390; b[3585] = 2868; c[3585] = 2868;
    a[3990] = 2394; b[3990] = 3420; c[3990] = 3420;
    a[3706] = 2398; b[3706] = 2805; c[3706] = 3270;
    a[3924] = 2398; b[3924] = 3168; c[3924] = 3488;
    a[3975] = 2400; b[3975] = 3392; c[3975] = 3392;
    a[3685] = 2412; b[3685] = 2948; c[3685] = 3015;
    a[3905] = 2414; b[3905] = 3195; c[3905] = 3366;
    a[4025] = 2415; b[4025] = 3450; c[4025] = 3450;
    a[3751] = 2420; b[3751] = 3025; c[3751] = 3100;
    a[3645] = 2430; b[3645] = 2916; c[3645] = 2916;
    a[3978] = 2431; b[3978] = 3366; c[3978] = 3366;
    a[3857] = 2436; b[3857] = 2964; c[3857] = 3458;
    a[3948] = 2436; b[3948] = 3196; c[3948] = 3451;
    a[4046] = 2436; b[4046] = 3451; c[4046] = 3468;
    a[4060] = 2436; b[4060] = 3480; c[4060] = 3480;
    a[3724] = 2448; b[3724] = 2736; c[3724] = 3332;
    a[4059] = 2460; b[4059] = 3444; c[4059] = 3465;
    a[4080] = 2460; b[4080] = 3485; c[4080] = 3485;
    a[4032] = 2464; b[4032] = 3360; c[4032] = 3465;
    a[3560] = 2465; b[3560] = 2581; c[3560] = 3026;
    a[3636] = 2475; b[3636] = 2525; c[3636] = 3333;
    a[3650] = 2475; b[3650] = 2628; c[3650] = 3212;
    a[3776] = 2478; b[3776] = 2832; c[3776] = 3304;
    a[3968] = 2480; b[3968] = 3255; c[3968] = 3360;
    a[3861] = 2484; b[3861] = 3036; c[3861] = 3289;
    a[4104] = 2484; b[4104] = 3496; c[4104] = 3496;
    a[3621] = 2485; b[3621] = 2840; c[3621] = 2856;
    a[3750] = 2500; b[3750] = 2625; c[3750] = 3500;
    a[4008] = 2505; b[4008] = 3340; c[4008] = 3340;
    a[3827] = 2508; b[3827] = 2937; c[3827] = 3268;
    a[3895] = 2508; b[3895] = 3075; c[3895] = 3300;
    a[3765] = 2510; b[3765] = 3012; c[3765] = 3012;
    a[4095] = 2520; b[4095] = 3432; c[4095] = 3465;
    a[3871] = 2528; b[3871] = 2940; c[3871] = 3360;
    a[3772] = 2530; b[3772] = 2870; c[3772] = 3157;
    a[4030] = 2530; b[4030] = 3289; c[4030] = 3410;
    a[4048] = 2530; b[4048] = 3300; c[4048] = 3450;
    a[4070] = 2530; b[4070] = 3404; c[4070] = 3404;
    a[4056] = 2535; b[4056] = 3380; c[4056] = 3380;
    a[3807] = 2538; b[3807] = 2835; c[3807] = 3290;
    a[3810] = 2540; b[3810] = 3048; c[3810] = 3048;
    a[4020] = 2546; b[4020] = 3230; c[4020] = 3417;
    a[4018] = 2548; b[4018] = 3198; c[4018] = 3444;
    a[3842] = 2550; b[3842] = 2825; c[3842] = 3390;
    a[3904] = 2562; b[3904] = 2928; c[3904] = 3416;
    a[3855] = 2570; b[3855] = 3084; c[3855] = 3084;
    a[4004] = 2574; b[4004] = 3159; c[4004] = 3402;
    a[3956] = 2576; b[3956] = 3010; c[3956] = 3440;
    a[3870] = 2580; b[3870] = 2844; c[3870] = 3397;
    a[4128] = 2580; b[4128] = 3440; c[4128] = 3440;
    a[4050] = 2592; b[4050] = 3200; c[4050] = 3456;
    a[4152] = 2595; b[4152] = 3460; c[4152] = 3460;
    a[3835] = 2596; b[3835] = 2860; c[3835] = 3245;
    a[3894] = 2596; b[3894] = 2950; c[3894] = 3300;
    a[4081] = 2597; b[4081] = 3234; c[4081] = 3498;
    a[4144] = 2604; b[4144] = 3441; c[4144] = 3441;
    a[4187] = 2607; b[4187] = 3498; c[4187] = 3498;
    a[4068] = 2610; b[4068] = 3277; c[4068] = 3390;
    a[4176] = 2610; b[4176] = 3480; c[4176] = 3480;
    a[3999] = 2618; b[3999] = 3162; c[3999] = 3311;
    a[4114] = 2618; b[4114] = 3388; c[4114] = 3388;
    a[3880] = 2619; b[3880] = 2970; c[3880] = 3201;
    a[3930] = 2620; b[3930] = 3144; c[3930] = 3144;
    a[4140] = 2622; b[4140] = 3420; c[4140] = 3420;
    a[4125] = 2625; b[4125] = 3300; c[4125] = 3500;
    a[4200] = 2625; b[4200] = 3500; c[4200] = 3500;
    a[4015] = 2628; b[4015] = 3212; c[4015] = 3285;
    a[3945] = 2630; b[3945] = 3156; c[3945] = 3156;
    a[3508] = 2631; b[3508] = 2631; c[3508] = 2631;
    a[3901] = 2632; b[3901] = 2905; c[3901] = 3320;
    a[3512] = 2634; b[3512] = 2634; c[3512] = 2634;
    a[4040] = 2635; b[4040] = 3131; c[4040] = 3434;
    a[3516] = 2637; b[3516] = 2637; c[3516] = 2637;
    a[4160] = 2640; b[4160] = 3432; c[4160] = 3432;
    a[3524] = 2643; b[3524] = 2643; c[3524] = 2643;
    a[3532] = 2649; b[3532] = 2649; c[3532] = 2649;
    a[3544] = 2658; b[3544] = 2658; c[3544] = 2658;
    a[4180] = 2660; b[4180] = 3420; c[4180] = 3465;
    a[3548] = 2661; b[3548] = 2661; c[3548] = 2661;
    a[3944] = 2668; b[3944] = 3128; c[3944] = 3128;
    a[3738] = 2670; b[3738] = 2670; c[3738] = 3115;
    a[4005] = 2670; b[4005] = 3204; c[4005] = 3204;
    a[4131] = 2673; b[4131] = 3366; c[4131] = 3366;
    a[4158] = 2673; b[4158] = 3402; c[4158] = 3402;
    a[4089] = 2679; b[4089] = 3306; c[4089] = 3306;
    a[4218] = 2679; b[4218] = 3478; c[4218] = 3478;
    a[3580] = 2685; b[3580] = 2685; c[3580] = 2685;
    a[4035] = 2690; b[4035] = 3228; c[4035] = 3228;
    a[3592] = 2694; b[3592] = 2694; c[3592] = 2694;
    a[3773] = 2695; b[3773] = 2744; c[3773] = 3080;
    a[4116] = 2695; b[4116] = 3234; c[4116] = 3430;
    a[4092] = 2697; b[4092] = 3190; c[4092] = 3410;
    a[4100] = 2706; b[4100] = 3150; c[4100] = 3465;
    a[4065] = 2710; b[4065] = 3252; c[4065] = 3252;
    a[3620] = 2715; b[3620] = 2715; c[3620] = 2715;
    a[3628] = 2721; b[3628] = 2721; c[3628] = 2721;
    a[3913] = 2730; b[3913] = 2795; c[3913] = 3354;
    a[4171] = 2730; b[4171] = 3354; c[4171] = 3395;
    a[3644] = 2733; b[3644] = 2733; c[3644] = 2733;
    a[4085] = 2736; b[4085] = 3096; c[4085] = 3440;
    a[4067] = 2739; b[4067] = 3234; c[4067] = 3234;
    a[4110] = 2740; b[4110] = 3288; c[4110] = 3288;
    a[3656] = 2742; b[3656] = 2742; c[3656] = 2742;
    a[4264] = 2747; b[4264] = 3484; c[4264] = 3484;
    a[4224] = 2750; b[4224] = 3360; c[4224] = 3500;
    a[4235] = 2750; b[4235] = 3388; c[4235] = 3500;
    a[4134] = 2756; b[4134] = 3180; c[4134] = 3445;
    a[4240] = 2756; b[4240] = 3445; c[4240] = 3445;
    a[3676] = 2757; b[3676] = 2757; c[3676] = 2757;
    a[3684] = 2763; b[3684] = 2763; c[3684] = 2763;
    a[3688] = 2766; b[3688] = 2766; c[3688] = 2766;
    a[4155] = 2770; b[4155] = 3324; c[4155] = 3324;
    a[4130] = 2773; b[4130] = 3290; c[4130] = 3290;
    a[4255] = 2775; b[4255] = 3450; c[4255] = 3450;
    a[3704] = 2778; b[3704] = 2778; c[3704] = 2778;
    a[4031] = 2780; b[4031] = 2900; c[4031] = 3475;
    a[4170] = 2780; b[4170] = 3336; c[4170] = 3336;
    a[3708] = 2781; b[3708] = 2781; c[3708] = 2781;
    a[3716] = 2787; b[3716] = 2787; c[3716] = 2787;
    a[4185] = 2790; b[4185] = 3348; c[4185] = 3348;
    a[4216] = 2790; b[4216] = 3366; c[4216] = 3410;
    a[3969] = 2793; b[3969] = 3078; c[3969] = 3078;
    a[4256] = 2793; b[4256] = 3381; c[4256] = 3496;
    a[3732] = 2799; b[3732] = 2799; c[3732] = 2799;
    a[4278] = 2800; b[4278] = 3450; c[4278] = 3472;
    a[3736] = 2802; b[3736] = 2802; c[3736] = 2802;
    a[4012] = 2805; b[4012] = 3009; c[4012] = 3245;
    a[3995] = 2805; b[3995] = 3102; c[3995] = 3102;
    a[4284] = 2805; b[4284] = 3465; c[4284] = 3465;
    a[4215] = 2810; b[4215] = 3372; c[4215] = 3372;
    a[3748] = 2811; b[3748] = 2811; c[3748] = 2811;
    a[4221] = 2814; b[4221] = 3276; c[4221] = 3484;
    a[3756] = 2817; b[3756] = 2817; c[3756] = 2817;
    a[4230] = 2820; b[4230] = 3384; c[4230] = 3384;
    a[3764] = 2823; b[3764] = 2823; c[3764] = 2823;
    a[4245] = 2830; b[4245] = 3396; c[4245] = 3396;
    a[4260] = 2840; b[4260] = 3408; c[4260] = 3408;
    a[3788] = 2841; b[3788] = 2841; c[3788] = 2841;
    a[4002] = 2842; b[4002] = 2842; c[4002] = 3381;
    a[3796] = 2847; b[3796] = 2847; c[3796] = 2847;
    a[4275] = 2850; b[4275] = 3420; c[4275] = 3420;
    a[3804] = 2853; b[3804] = 2853; c[3804] = 2853;
    a[4148] = 2856; b[4148] = 3111; c[4148] = 3416;
    a[4199] = 2856; b[4199] = 3192; c[4199] = 3458;
    a[3812] = 2859; b[3812] = 2859; c[3812] = 2859;
    a[4212] = 2860; b[4212] = 3240; c[4212] = 3432;
    a[4290] = 2860; b[4290] = 3432; c[4290] = 3432;
    a[3820] = 2865; b[3820] = 2865; c[3820] = 2865;
    a[4026] = 2867; b[4026] = 3102; c[4026] = 3102;
    a[3824] = 2868; b[3824] = 2868; c[3824] = 2868;
    a[4305] = 2870; b[4305] = 3403; c[4305] = 3486;
    a[3832] = 2874; b[3832] = 2874; c[3832] = 2874;
    a[3836] = 2877; b[3836] = 2877; c[3836] = 2877;
    a[4320] = 2880; b[4320] = 3456; c[4320] = 3456;
    a[3844] = 2883; b[3844] = 2883; c[3844] = 2883;
    a[3852] = 2889; b[3852] = 2889; c[3852] = 2889;
    a[4335] = 2890; b[4335] = 3468; c[4335] = 3468;
    a[3856] = 2892; b[3856] = 2892; c[3856] = 2892;
    a[3860] = 2895; b[3860] = 2895; c[3860] = 2895;
    a[3982] = 2896; b[3982] = 2992; c[3982] = 3077;
    a[4186] = 2898; b[4186] = 3159; c[4186] = 3402;
    a[4350] = 2900; b[4350] = 3480; c[4350] = 3480;
    a[3868] = 2901; b[3868] = 2901; c[3868] = 2901;
    a[4074] = 2910; b[4074] = 2910; c[4074] = 3395;
    a[4365] = 2910; b[4365] = 3492; c[4365] = 3492;
    a[3884] = 2913; b[3884] = 2913; c[3884] = 2913;
    a[4028] = 2915; b[4028] = 3021; c[4028] = 3135;
    a[3892] = 2919; b[3892] = 2919; c[3892] = 2919;
    a[4088] = 2920; b[4088] = 3080; c[4088] = 3212;
    a[3896] = 2922; b[3896] = 2922; c[3896] = 2922;
    a[4300] = 2924; b[4300] = 3400; c[4300] = 3400;
    a[4270] = 2928; b[4270] = 3248; c[4270] = 3480;
    a[3908] = 2931; b[3908] = 2931; c[3908] = 2931;
    a[3916] = 2937; b[3916] = 2937; c[3916] = 2937;
    a[3928] = 2946; b[3928] = 2946; c[3928] = 2946;
    a[3932] = 2949; b[3932] = 2949; c[3932] = 2949;
    a[3940] = 2955; b[3940] = 2955; c[3940] = 2955;
    a[4263] = 2958; b[4263] = 3332; c[4263] = 3332;
    a[4368] = 2964; b[4368] = 3458; c[4368] = 3458;
    a[4136] = 2970; b[4136] = 3105; c[4136] = 3243;
    a[3964] = 2973; b[3964] = 2973; c[3964] = 2973;
    a[4340] = 2976; b[4340] = 3360; c[4340] = 3472;
    a[3972] = 2979; b[3972] = 2979; c[3972] = 2979;
    a[3980] = 2985; b[3980] = 2985; c[3980] = 2985;
    a[4316] = 2988; b[4316] = 3276; c[4316] = 3486;
    a[3988] = 2991; b[3988] = 2991; c[3988] = 2991;
    a[3992] = 2994; b[3992] = 2994; c[3992] = 2994;
    a[4389] = 3003; b[4389] = 3458; c[4389] = 3458;
    a[4016] = 3012; b[4016] = 3012; c[4016] = 3012;
    a[4024] = 3018; b[4024] = 3018; c[4024] = 3018;
    a[4183] = 3026; b[4183] = 3196; c[4183] = 3196;
    a[4036] = 3027; b[4036] = 3027; c[4036] = 3027;
    a[4044] = 3033; b[4044] = 3033; c[4044] = 3033;
    a[4400] = 3036; b[4400] = 3450; c[4400] = 3450;
    a[4154] = 3038; b[4154] = 3038; c[4154] = 3283;
    a[4052] = 3039; b[4052] = 3039; c[4052] = 3039;
    a[4064] = 3048; b[4064] = 3048; c[4064] = 3048;
    a[4072] = 3054; b[4072] = 3054; c[4072] = 3054;
    a[4277] = 3055; b[4277] = 3290; c[4277] = 3290;
    a[4076] = 3057; b[4076] = 3057; c[4076] = 3057;
    a[4437] = 3060; b[4437] = 3480; c[4437] = 3480;
    a[4084] = 3063; b[4084] = 3063; c[4084] = 3063;
    a[4096] = 3072; b[4096] = 3072; c[4096] = 3072;
    a[4293] = 3078; b[4293] = 3180; c[4293] = 3420;
    a[4108] = 3081; b[4108] = 3081; c[4108] = 3081;
    a[4112] = 3084; b[4112] = 3084; c[4112] = 3084;
    a[4410] = 3087; b[4410] = 3430; c[4410] = 3430;
    a[4120] = 3090; b[4120] = 3090; c[4120] = 3090;
    a[4326] = 3090; b[4326] = 3296; c[4326] = 3360;
    a[4124] = 3093; b[4124] = 3093; c[4124] = 3093;
    a[4165] = 3094; b[4165] = 3094; c[4165] = 3185;
    a[4132] = 3099; b[4132] = 3099; c[4132] = 3099;
    a[4329] = 3108; b[4329] = 3276; c[4329] = 3367;
    a[4156] = 3117; b[4156] = 3117; c[4156] = 3117;
    a[4355] = 3120; b[4355] = 3216; c[4355] = 3484;
    a[4164] = 3123; b[4164] = 3123; c[4164] = 3123;
    a[4312] = 3124; b[4312] = 3124; c[4312] = 3479;
    a[4168] = 3126; b[4168] = 3126; c[4168] = 3126;
    a[4370] = 3128; b[4370] = 3230; c[4370] = 3496;
    a[4172] = 3129; b[4172] = 3129; c[4172] = 3129;
    a[4352] = 3136; b[4352] = 3332; c[4352] = 3332;
    a[4184] = 3138; b[4184] = 3138; c[4184] = 3138;
    a[4188] = 3141; b[4188] = 3141; c[4188] = 3141;
    a[4192] = 3144; b[4192] = 3144; c[4192] = 3144;
    a[4356] = 3146; b[4356] = 3276; c[4356] = 3388;
    a[4196] = 3147; b[4196] = 3147; c[4196] = 3147;
    a[4422] = 3150; b[4422] = 3350; c[4422] = 3465;
    a[4500] = 3150; b[4500] = 3500; c[4500] = 3500;
    a[4204] = 3153; b[4204] = 3153; c[4204] = 3153;
    a[4208] = 3156; b[4208] = 3156; c[4208] = 3156;
    a[4446] = 3159; b[4446] = 3402; c[4446] = 3458;
    a[4345] = 3160; b[4345] = 3160; c[4345] = 3476;
    a[4220] = 3165; b[4220] = 3165; c[4220] = 3165;
    a[4480] = 3168; b[4480] = 3465; c[4480] = 3465;
    a[4228] = 3171; b[4228] = 3171; c[4228] = 3171;
    a[4232] = 3174; b[4232] = 3174; c[4232] = 3174;
    a[4236] = 3177; b[4236] = 3177; c[4236] = 3177;
    a[4488] = 3179; b[4488] = 3468; c[4488] = 3468;
    a[4244] = 3183; b[4244] = 3183; c[4244] = 3183;
    a[4459] = 3185; b[4459] = 3430; c[4459] = 3430;
    a[4248] = 3186; b[4248] = 3186; c[4248] = 3186;
    a[4252] = 3189; b[4252] = 3189; c[4252] = 3189;
    a[4268] = 3201; b[4268] = 3201; c[4268] = 3201;
    a[4272] = 3204; b[4272] = 3204; c[4272] = 3204;
    a[4276] = 3207; b[4276] = 3207; c[4276] = 3207;
    a[4280] = 3210; b[4280] = 3210; c[4280] = 3210;
    a[4288] = 3216; b[4288] = 3216; c[4288] = 3216;
    a[4292] = 3219; b[4292] = 3219; c[4292] = 3219;
    a[4324] = 3220; b[4324] = 3220; c[4324] = 3290;
    a[4416] = 3220; b[4416] = 3248; c[4416] = 3480;
    a[4296] = 3222; b[4296] = 3222; c[4296] = 3222;
    a[4304] = 3228; b[4304] = 3228; c[4304] = 3228;
    a[4308] = 3231; b[4308] = 3231; c[4308] = 3231;
    a[4328] = 3246; b[4328] = 3246; c[4328] = 3246;
    a[4515] = 3248; b[4515] = 3440; c[4515] = 3480;
    a[4332] = 3249; b[4332] = 3249; c[4332] = 3249;
    a[4550] = 3250; b[4550] = 3500; c[4550] = 3500;
    a[4336] = 3252; b[4336] = 3252; c[4336] = 3252;
    a[4371] = 3255; b[4371] = 3290; c[4371] = 3290;
    a[4344] = 3258; b[4344] = 3258; c[4344] = 3258;
    a[4348] = 3261; b[4348] = 3261; c[4348] = 3261;
    a[4360] = 3270; b[4360] = 3270; c[4360] = 3270;
    a[4364] = 3273; b[4364] = 3273; c[4364] = 3273;
    a[4372] = 3279; b[4372] = 3279; c[4372] = 3279;
    a[4376] = 3282; b[4376] = 3282; c[4376] = 3282;
    a[4380] = 3285; b[4380] = 3285; c[4380] = 3285;
    a[4384] = 3288; b[4384] = 3288; c[4384] = 3288;
    a[4388] = 3291; b[4388] = 3291; c[4388] = 3291;
    a[4392] = 3294; b[4392] = 3294; c[4392] = 3294;
    a[4396] = 3297; b[4396] = 3297; c[4396] = 3297;
    a[4404] = 3303; b[4404] = 3303; c[4404] = 3303;
    a[4408] = 3306; b[4408] = 3306; c[4408] = 3306;
    a[4484] = 3306; b[4484] = 3363; c[4484] = 3422;
    a[4560] = 3306; b[4560] = 3480; c[4560] = 3480;
    a[4412] = 3309; b[4412] = 3309; c[4412] = 3309;
    a[4420] = 3315; b[4420] = 3315; c[4420] = 3315;
    a[4424] = 3318; b[4424] = 3318; c[4424] = 3318;
    a[4428] = 3321; b[4428] = 3321; c[4428] = 3321;
    a[4536] = 3321; b[4536] = 3403; c[4536] = 3486;
    a[4432] = 3324; b[4432] = 3324; c[4432] = 3324;
    a[4436] = 3327; b[4436] = 3327; c[4436] = 3327;
    a[4440] = 3330; b[4440] = 3330; c[4440] = 3330;
    a[4444] = 3333; b[4444] = 3333; c[4444] = 3333;
    a[4448] = 3336; b[4448] = 3336; c[4448] = 3336;
    a[4512] = 3337; b[4512] = 3408; c[4512] = 3408;
    a[4452] = 3339; b[4452] = 3339; c[4452] = 3339;
    a[4456] = 3342; b[4456] = 3342; c[4456] = 3342;
    a[4460] = 3345; b[4460] = 3345; c[4460] = 3345;
    a[4464] = 3348; b[4464] = 3348; c[4464] = 3348;
    a[4468] = 3351; b[4468] = 3351; c[4468] = 3351;
    a[4472] = 3354; b[4472] = 3354; c[4472] = 3354;
    a[4476] = 3357; b[4476] = 3357; c[4476] = 3357;
    a[4492] = 3369; b[4492] = 3369; c[4492] = 3369;
    a[4496] = 3372; b[4496] = 3372; c[4496] = 3372;
    a[4504] = 3378; b[4504] = 3378; c[4504] = 3378;
    a[4508] = 3381; b[4508] = 3381; c[4508] = 3381;
    a[4559] = 3384; b[4559] = 3384; c[4559] = 3492;
    a[4516] = 3387; b[4516] = 3387; c[4516] = 3387;
    a[4520] = 3390; b[4520] = 3390; c[4520] = 3390;
    a[4524] = 3393; b[4524] = 3393; c[4524] = 3393;
    a[4528] = 3396; b[4528] = 3396; c[4528] = 3396;
    a[4532] = 3399; b[4532] = 3399; c[4532] = 3399;
    a[4592] = 3403; b[4592] = 3444; c[4592] = 3486;
    a[4540] = 3405; b[4540] = 3405; c[4540] = 3405;
    a[4544] = 3408; b[4544] = 3408; c[4544] = 3408;
    a[4548] = 3411; b[4548] = 3411; c[4548] = 3411;
    a[4552] = 3414; b[4552] = 3414; c[4552] = 3414;
    a[4556] = 3417; b[4556] = 3417; c[4556] = 3417;
    a[4564] = 3423; b[4564] = 3423; c[4564] = 3423;
    a[4568] = 3426; b[4568] = 3426; c[4568] = 3426;
    a[4572] = 3429; b[4572] = 3429; c[4572] = 3429;
    a[4576] = 3432; b[4576] = 3432; c[4576] = 3432;
    a[4580] = 3435; b[4580] = 3435; c[4580] = 3435;
    a[4584] = 3438; b[4584] = 3438; c[4584] = 3438;
    a[4588] = 3441; b[4588] = 3441; c[4588] = 3441;
    a[4596] = 3447; b[4596] = 3447; c[4596] = 3447;
    a[4600] = 3450; b[4600] = 3450; c[4600] = 3450;
    a[4604] = 3453; b[4604] = 3453; c[4604] = 3453;
    a[4608] = 3456; b[4608] = 3456; c[4608] = 3456;
    a[4612] = 3459; b[4612] = 3459; c[4612] = 3459;
    a[4616] = 3462; b[4616] = 3462; c[4616] = 3462;
    a[4620] = 3465; b[4620] = 3465; c[4620] = 3465;
    a[4624] = 3468; b[4624] = 3468; c[4624] = 3468;
    a[4628] = 3471; b[4628] = 3471; c[4628] = 3471;
    a[4632] = 3474; b[4632] = 3474; c[4632] = 3474;
    a[4636] = 3477; b[4636] = 3477; c[4636] = 3477;
    a[4640] = 3480; b[4640] = 3480; c[4640] = 3480;
    a[4644] = 3483; b[4644] = 3483; c[4644] = 3483;
    a[4648] = 3486; b[4648] = 3486; c[4648] = 3486;
    a[4652] = 3489; b[4652] = 3489; c[4652] = 3489;
    a[4656] = 3492; b[4656] = 3492; c[4656] = 3492;
    a[4660] = 3495; b[4660] = 3495; c[4660] = 3495;
    a[4664] = 3498; b[4664] = 3498; c[4664] = 3498;

    int n = int.Parse(ReadLine());
    WriteLine($"{a[n]} {b[n]} {c[n]}");
    }
}


Measured memory_bytes: 19900