Problem Statement
Alice is a railroad switch operator. She is in charge of a network of rails that has the topology of a perfectly balanced binary tree with N leaves. N is a power of two. Each non-leaf node of the tree has a left child and a right child. The leaves are numbered from 1 to N from the left to the right.
There will be some trains that will pass through Alice's railroad network. Each of these trains will enter the network in the root of the tree and leave it in one of the leaves. Each non-leaf node contains a railroad switch that can send an incoming train either towards the left child or towards the right child of that node. Initially all switches point to the left.
You are given the information about the trains in
More formally, for each integer z = 1, 2, 3, ... the following steps happen, in order:
- If there is a train with t[i] = z, at time z that train will appear in the root.
- Immediately after that happens, Alice decides whether she wants to take an action. If she doesn't, nothing happens. If she does, she may flip as many switches as she likes. All these flips happen in an instant.
- All trains leave their current nodes according to the state of the switches in those nodes.
- During the time interval (z, z+1) each train travels along an edge of the tree to the next node.
- Any train that just reached a leaf leaves the network.
Alice must route all trains to their desired destinations. Given this requirement, she would like to minimize the number of actions she has to take. (Note that she only cares about the number of actions. The total number of times a switch is flipped does not matter.)
Compute and return the smallest number of actions Alice has to take in order to route all trains correctly.
Definition
- Class:
- RailroadSwitchOperator
- Method:
- minEnergy
- Parameters:
- int, int[], int[]
- Returns:
- int
- Method signature:
- int minEnergy(int N, int[] x, int[] t)
- (be sure your method is public)
Constraints
- N will be a power of 2 between 2 and 131,072 (= 2^17), inclusive.
- The number of elements in t will be between 1 and 2,500, inclusive.
- x will have exactly the same number of elements as t.
- Each element of x will be between 1 and N, inclusive.
- Each element of t will be between 1 and 5,000, inclusive.
- t[i] < t[i+1] for all valid i.
Examples
2
{1,2,1,2,1,2,1,2}
{1,2,3,4,5,6,7,8}
Returns: 7
This network is very simple: one root and two leaves. Trains appear in the root at time 1, 2, ..., 8. The first train can use the default setting of the switch. For each of the 7 remaining trains Alice must take an action to flip the switch.
4
{1,4,4,4,4,4,4,4,4,4}
{1,2,4,8,16,32,64,128,256,512}
Returns: 1
32
{2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31}
{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32}
Returns: 20
131072
{1,1,1,1,1,1,1}
{10,300,500,676,800,950,1000}
Returns: 0
1024
{1,1024,2,512,4,256,8,128,16,64,32}
{1,2,3,5,8,13,21,34,55,89,144}
Returns: 10
1024
{988,777,11,298,827,610,348,156,234,691,362,337,95,825,915,762,741,414,25,725,153,748,295,252,235,856,752,772,234,90,996,662,71,375,922,296,914,301,394,658,735,153,198,756,19,428,667,325,736,327,49,717,706,2,624,233,136,548,945,448,319,262,68,467,1012,526,356,986,592,391,465,490,469,410,45,696,108,36,298,890,748,123,656,773,868,166,116,203,828,96,813,681,658,752,798,679,715,949,739,639,486,132,318,288,729,995,466,832,321,157,705,729,886,905,343,626,637,993,253,17,593,560,553,290,899,440,602,948,177,1023,694,803,728,584,183,443,882,250,752,670,517,272,32,802,236,73,924,183,565,311,134,167,424,260,91,260,128,390,537,685,462,802,128,671,45,793,236,371,546,1001,993,671,618,707,374,497,132,649,451,164,968,564,181,150,200,588,263,858,234,723,878,52,983,229,445,922,208,366,342,79,1009,111,311,513,14,669,422,805,515,391,725,950,365,255,981,172,224,805,148,41,325,836,20,188,86,661,921,649,511,259,47,966,763,820,469,701,288,624,627,575,653,601,731,667,322,1005,331,20,982,269,806,300,600,883,809,618,1015,497,465,689,689,744,872,740,498,760,520,321,14,853,451,191,100,868,569,689,307,526,787,255,77,916,58,407,350,453,743,1013,715,286,643,41,2,657,677,870,172,710,929,183,41,240,980,395,955,202,512,133,995,191,57,574,687,778,827,727,299,567,862,135,404,918,781,729,663,1003,565,987,424,290,780,64,848,461,628,332,120,474,334,859,663,575,77,491,820,50,285,597,84,821,553,161,14,29,483,635,269,617,780,715,154,59,364,316,156,169,317,977,255,902,933,421,28,314,995,257,239,246,758,51,94,866,813,1015,58,941,361,926,861,278,953,721,502,798,945,642,4,710,714,621,510,975,66,654,177,350,518,3,466,531,407,786,478,115,589,87,675,361,973,422,840,935,612,961,881,998,690,171,777,828,757,861,815,567,632,115,755,235,693,158,957,459,549,209,425,761,550,388,936,913,988,460,446,139,960,197,403,746,69,843,605,841,524,550,298,309,777,106,450,836,602,68,640,920,943,75,763,819,964,537,455,366,739,801,329,1021,780,897,571,755,349,823,143,933,266,243,38,163,638,702,810,128,581,977,746,222,461,29,671,738,866,367,230,582,894,908,372,20,775,51,41,617,284,451,433,716,724,766,968,302,126,116,81,507,545,46,720,662,51,611,793,23,540,630,666,331,376,462,823,469,1000,724,902,390,239,259,4,89,621,1000,1000,202,47,458,601,998,626,1004,531,7,848,379,463,263,171,922,879,656,675,131,604,834,603,313,881,391,426,272,413,334,563,33,602,36,388,439,79,985,10,492,174,624,480,454,306,215,799,933,310,245,173,543,1002,621,888,564,131,221,412,580,786,362,21,580,443,268,927,623,527,101,132,249,443,446,908,105,998,372,405,926,585,283,1024,501,399,394,444,436,89,91,937,126,801,377,718,381,310,496,36,738,51,420,957,111,896,570,124,781,236,606,500,428,470,340,914,562,521,1021,770,488,546,365,872,865,855,675,30,229,335,580,917,317,246,712,587,472,115,829,504,160,202,122,675,243,297,661,456,740,651,107,891,351,32,322,565,919,446,705,1,998,426,1016,685,619,543,175,251,913,327,731,1017,792,951,742,578,635,498,613,583,500,299,976,425,553,567,260,334,272,899,426,234,923,984,489,179,664,1004,373,322,100,1011,668,968,561,192,200,100,778,401,466,207,46,73,393,855,503,374,771,236,583,158,902,250,305,794,846,729,686,250,254,703,49,957,295,916,817,498,31,841,525,351,348,281,829,759,107,915,830,154,234,90,125,125,31,62,329,304,46,144,730,811,658,428,396,576,246,778,423,390,404,661,370,1012,491,935,176,613,207,421,855,414,749,784,254,940,817,991,87,31,719,229,523,405,866,605,90,375,5,243,300,6,330,777,651,882,702,934,502,70,934,264,415,65,1021,715,866,638,444,613,7,248,550,216,627,868,548,437,376,710,133,455,38,888,179,831,1011,206,92,448,355,572,652,614,921,398,760,679,203,183,86,233,407,936,328,695,777,968,923,673,857,771,651,842,902,905,347,350,104,28,134,1018,50,574,212,398,529,103,214,821,43,564,633,337,319,951,989,626,520,734,46,146,936,894,708,291,908,687,191,472,689,463,806,649,385,7,411,111,825,780,995,920,896,148,725,392,655,539,911,763,115,917,630,753,487,10,545,630,390,92,281,800,641,269,68,432,597,888,730,784,460,423,997,924,535,481,164,950,464,1017,637,154,660,666,722,416,787,521,654,126,658,31,820,612,591,753,753,147,668,4,375,135,304,466,855,718,975,58,502,894,613,627,681,70,380,579,1010,620,578,111,159,546,861,462,316,326,576,725,316,276,813,282,598,247,661,801,403,153,343,635,776,47,556,880,620,3,390,882,111,905,583,210,577,146,232,694,655,149,6,925,293,171,201,909,103,131,792,171,519,345,366,485,654,5,480,867,486,51,473,899,345,778,81,366,621,223,580,953,143,4,957,510,648,575,26,1021,957,846,737,916,98,120,810,203,779,91,633,23,365,503,230,821,453,859,908,48,473,660,857,129,114,743,463,970,530,255,695,575,406,619,329,660,459,904,307,565,284,746,908,115,259,642,489,655,869,187,450,702,165,846,160,930,530,489,471,52,308,58,292,456,376,481,502,643,780,600,517,656,716,1023,687,330,192,887,877,460,17,945,254,898,274,854,1001,968,961,453,637,286,781,58,468,788,822,920,765,989,967,16,309,335,999,434,983,800,586,62,716,838,95,137,555,944,815,825,540,476,789,770,604,351,610,27,294,531,522,861,7,338,675,330,428,923,838,36,699,240,833,93,174,601,815,972,180,595,395,611,503,48,704,680,479,13,140,167,620,394,160,980,621,839,644,809,237,1018,292,692,308,1021,178,726,651,850,575,951,808,80,743,693,977,677,347,1019,548,197,361,43,486,902,554,114,602,103,180,884,852,756,621,569,671,148,905,632,302,84,954,696,217,373,227,289,602,983,313,820,221,247,77,850,967,700,113,121,238,805,24,429,343,194,273,61,58,982,510,833,52,836,202,739,127,641,950,833,93,838,314,314,306,555,500,766,54,248,742,750,864,75,353,301,454,1012,338,818,652,645,523,174,651,174,298,619,979,40,728,498,898,124,663,91,415,333,881,803,76,645,689,915,795,638,61,58,271,280,23,944,961,202,220,285,1016,948,948,287,59,803,696,233,12,823,954,517,727,755,547,666,24,659,964,225,735,713,391,33,379,873,573,680,779,764,828,542,916,752,1014,737,94,307,874,851,412,149,8,381,933,171,159,2,415,163,748,767,232,552,633,592,114,624,232,163,263,879,777,464,848,612,192,796,720,815,90,356,240,313,182,924,461,830,169,915,220,750,223,957,520,13,220,622,189,182,724,504,279,310,424,315,114,604,950,321,429,9,249,763,681,119,666,901,1005,510,543,504,194,464,595,908,460,494,57,371,450,867,676,4,972,1010,878,933,283,861,480,575,827,217,630,819,775,123,252,94,91,779,751,43,317,49,265,885,925,967,12,452,969,752,566,869,574,150,26,753,706,778,318,764,908,485,614,255,681,883,355,12,270,159,3,75,563,234,481,23,223,426,755,73,317,204,754,819,629,820,64,241,443,527,852,970,798,173,635,195,86,440,108,744,116,854,819,886,901,308,1003,412,17,581,734,648,236,516,796,311,195,452,954,452,437,779,193,233,636,751,306,747,947,245,918,121,860,375,572,161,528,12,118,178,244,619,581,444,328,749,37,807,553,1006,287,813,827,630,458,1014,738,691,902,906,270,85,24,305,980,827,679,115,428,671,35,135,422,413,593,753,167,974,507,220,954,977,557,237,565,906,1009,619,986,853,927,746,536,422,684,288,264,26,707,541,50,435,247,446,195,914,533,25,647,649,859,908,757,974,316,539,361,560,128,277,476,908,132,811,937,901,101,944,37,273,913,307,376,12,361,619,139,706,700,554,458,322,801,517,813,338,946,894,765,486,30,141,501,116,718,734,129,137,127,95,571,1005,949,132,83,475,115,780,766,1006,181,49,1022,522,667,483,999,153,368,740,504,425,864,691,611,404,597,149,265,872,813,119,797,913,875,502,154,290,679,128,769,683,494,880,408,903,216,458,57,385,326,894,193,219,88,291,57,494,228,903,19,33,364,454,318,322,372,858,550,800,60,769,635,742,251,117,823,668,762,160,817,330,611,822,163,305,294,180,506,513,488,288,156,551,471,599,666,751,263,73,210,697,33,541,377,882,336,307,997,278,389,454,302,354,708,268,586,408,907,491,837,723,804,927,140,905,627,302,657,633,196,254,383,992,13,432,590,398,105,28,88,336,691,591,585,816,681,106,841,545,377,630,362,513,605,431,119,282,899,1021,202,509,678,555,16,1019,400,987,691,369,3,55,822,736,453,828,432,219,257,383,150}
{1,3,5,6,7,12,13,16,18,19,22,26,27,31,32,35,36,40,45,47,49,51,54,55,58,59,61,64,65,66,69,72,73,77,79,82,84,86,89,90,92,94,98,99,100,101,103,106,107,110,112,114,115,116,118,119,121,122,125,127,133,135,138,140,142,143,146,148,149,150,152,153,158,160,164,165,168,169,171,175,178,180,181,183,186,188,191,192,195,198,200,201,202,203,204,207,208,209,212,214,216,217,218,220,225,227,229,231,232,236,239,243,245,247,250,251,253,254,256,257,261,262,264,269,271,272,273,274,277,278,281,282,285,286,288,290,291,293,298,300,302,304,306,309,310,314,317,319,322,325,327,328,330,333,335,336,338,340,343,344,346,347,348,350,351,353,355,358,359,360,362,364,366,370,373,375,378,382,384,386,388,390,392,394,395,400,401,402,403,406,409,412,413,415,416,418,421,425,427,429,431,433,436,440,442,446,447,450,452,453,455,456,458,461,465,466,468,471,475,478,479,481,482,484,485,489,491,492,494,496,498,500,503,506,507,509,512,513,515,516,518,520,521,522,524,525,526,527,530,532,535,537,538,542,545,547,549,551,553,557,558,559,562,565,568,569,571,573,574,576,578,581,583,585,589,590,591,593,595,596,599,601,603,606,609,611,613,614,617,624,627,628,629,631,632,634,635,636,639,641,642,643,647,648,651,654,658,663,666,668,670,675,678,682,684,688,691,692,695,697,698,699,700,703,706,707,709,711,712,713,714,716,718,719,724,725,728,731,734,735,738,739,743,744,747,750,752,753,757,758,760,762,765,766,767,771,772,775,777,780,782,784,790,791,795,796,799,802,806,808,810,812,816,819,820,825,826,828,831,834,837,840,842,843,846,849,853,854,857,859,861,863,865,866,869,872,874,875,877,879,880,881,883,887,889,892,893,899,901,902,904,905,908,909,910,912,915,917,919,923,927,929,932,933,935,937,939,941,943,944,946,949,952,954,956,958,960,962,964,970,971,972,976,977,980,981,984,989,994,998,1000,1003,1006,1009,1011,1015,1017,1020,1023,1024,1027,1029,1030,1032,1035,1036,1037,1038,1040,1043,1045,1049,1051,1052,1054,1057,1059,1060,1061,1062,1064,1066,1068,1070,1071,1075,1077,1080,1084,1085,1088,1089,1090,1092,1096,1098,1101,1104,1107,1109,1112,1115,1117,1120,1122,1124,1126,1128,1130,1132,1136,1139,1140,1143,1144,1145,1146,1147,1149,1154,1157,1158,1160,1161,1163,1166,1168,1170,1174,1179,1182,1189,1192,1194,1196,1199,1200,1201,1202,1204,1206,1209,1211,1212,1216,1217,1218,1221,1225,1226,1233,1236,1238,1240,1243,1244,1246,1251,1255,1259,1260,1263,1267,1273,1275,1277,1280,1282,1283,1286,1289,1293,1296,1299,1300,1303,1305,1306,1307,1309,1312,1314,1316,1317,1320,1321,1323,1325,1327,1329,1334,1335,1337,1338,1340,1346,1349,1351,1356,1358,1362,1363,1364,1366,1368,1371,1372,1375,1376,1377,1378,1381,1384,1386,1388,1389,1391,1394,1395,1396,1399,1401,1406,1407,1412,1414,1416,1418,1421,1423,1426,1428,1431,1432,1433,1435,1438,1441,1443,1446,1448,1449,1452,1453,1455,1458,1461,1463,1467,1471,1473,1475,1477,1481,1482,1486,1490,1491,1494,1497,1498,1499,1501,1503,1504,1505,1508,1511,1514,1515,1517,1519,1521,1524,1527,1528,1534,1535,1537,1539,1543,1547,1548,1551,1553,1555,1556,1558,1560,1562,1563,1566,1567,1572,1574,1576,1580,1581,1582,1585,1586,1589,1590,1593,1595,1597,1598,1599,1602,1603,1604,1607,1608,1610,1613,1617,1620,1625,1628,1631,1632,1636,1639,1641,1643,1644,1645,1646,1648,1650,1651,1653,1657,1659,1661,1662,1664,1666,1668,1671,1673,1674,1676,1677,1678,1679,1681,1683,1685,1687,1692,1694,1696,1697,1700,1703,1706,1708,1709,1710,1712,1714,1715,1716,1721,1723,1727,1732,1734,1736,1738,1740,1742,1744,1745,1748,1749,1752,1753,1755,1756,1758,1760,1762,1764,1765,1767,1768,1769,1771,1772,1773,1774,1775,1779,1780,1783,1786,1789,1791,1792,1795,1798,1799,1801,1806,1808,1809,1810,1812,1815,1818,1824,1825,1827,1829,1832,1833,1836,1838,1839,1841,1843,1846,1847,1848,1852,1855,1856,1858,1860,1861,1863,1864,1866,1867,1869,1870,1871,1873,1875,1878,1880,1881,1882,1883,1884,1885,1886,1888,1891,1892,1894,1896,1897,1899,1901,1904,1907,1910,1911,1913,1915,1918,1919,1921,1923,1925,1926,1927,1929,1933,1935,1937,1940,1943,1945,1946,1947,1949,1952,1955,1957,1958,1959,1961,1963,1969,1971,1975,1977,1979,1983,1984,1986,1988,1991,1994,1995,1997,1999,2000,2003,2005,2008,2010,2015,2017,2020,2026,2029,2033,2036,2042,2044,2045,2047,2049,2051,2055,2056,2058,2060,2065,2066,2069,2071,2073,2076,2077,2080,2084,2085,2086,2089,2090,2094,2096,2097,2100,2101,2102,2105,2106,2109,2110,2113,2116,2117,2119,2123,2125,2127,2128,2130,2131,2134,2138,2140,2141,2145,2146,2149,2152,2155,2157,2158,2160,2162,2166,2167,2169,2172,2174,2177,2178,2180,2181,2185,2186,2188,2189,2192,2193,2195,2199,2201,2203,2206,2207,2210,2211,2214,2217,2218,2219,2222,2224,2229,2231,2232,2233,2238,2242,2244,2249,2250,2252,2253,2255,2256,2259,2261,2263,2265,2267,2270,2272,2273,2275,2278,2281,2284,2285,2287,2289,2290,2291,2293,2296,2300,2301,2302,2304,2305,2308,2310,2313,2314,2317,2320,2323,2325,2326,2327,2329,2330,2332,2336,2339,2340,2343,2347,2350,2352,2354,2355,2356,2358,2359,2362,2363,2366,2367,2371,2372,2377,2380,2382,2386,2389,2391,2393,2395,2397,2398,2399,2400,2403,2404,2407,2409,2413,2416,2419,2423,2425,2428,2432,2433,2436,2439,2440,2442,2444,2447,2452,2453,2457,2461,2464,2467,2470,2471,2474,2476,2479,2480,2482,2485,2487,2489,2490,2494,2495,2497,2498,2500,2501,2503,2505,2507,2508,2511,2513,2517,2518,2519,2520,2522,2524,2526,2530,2535,2536,2538,2543,2544,2546,2548,2549,2551,2554,2555,2556,2558,2561,2565,2568,2569,2572,2573,2574,2577,2578,2579,2583,2587,2588,2591,2592,2596,2599,2602,2605,2607,2611,2612,2615,2618,2620,2621,2622,2624,2625,2629,2630,2633,2634,2635,2638,2640,2642,2646,2647,2650,2651,2654,2656,2659,2662,2664,2665,2668,2669,2675,2677,2679,2680,2682,2683,2685,2687,2689,2691,2692,2694,2697,2699,2702,2704,2707,2708,2710,2712,2713,2716,2719,2722,2724,2726,2728,2730,2732,2734,2736,2738,2740,2742,2744,2746,2750,2753,2755,2756,2759,2761,2763,2768,2771,2775,2777,2779,2781,2782,2785,2786,2788,2791,2795,2797,2801,2802,2804,2806,2811,2812,2814,2816,2817,2818,2819,2822,2824,2827,2832,2834,2836,2837,2841,2843,2844,2845,2847,2849,2851,2854,2855,2858,2863,2865,2867,2872,2875,2878,2880,2882,2883,2885,2887,2888,2890,2893,2895,2897,2899,2902,2905,2908,2911,2912,2914,2915,2917,2919,2922,2925,2927,2929,2932,2933,2935,2938,2939,2940,2943,2945,2947,2948,2952,2954,2955,2958,2959,2960,2961,2964,2967,2969,2971,2972,2973,2977,2978,2980,2981,2984,2985,2986,2987,2988,2991,2993,2994,2997,2999,3003,3004,3006,3008,3011,3013,3015,3017,3019,3022,3025,3026,3031,3033,3035,3037,3039,3041,3045,3049,3051,3053,3055,3057,3059,3060,3062,3064,3067,3071,3074,3078,3080,3081,3085,3088,3090,3092,3094,3097,3102,3103,3105,3108,3110,3113,3114,3116,3119,3121,3122,3124,3126,3128,3131,3135,3136,3139,3142,3143,3145,3147,3149,3153,3154,3155,3157,3159,3163,3167,3171,3173,3175,3177,3179,3180,3181,3183,3186,3188,3190,3194,3197,3202,3205,3206,3208,3212,3215,3217,3219,3222,3224,3227,3228,3231,3232,3233,3235,3237,3240,3241,3243,3247,3248,3249,3251,3252,3254,3255,3258,3260,3262,3263,3265,3268,3271,3275,3277,3280,3285,3286,3287,3290,3293,3296,3297,3298,3300,3301,3305,3306,3307,3309,3310,3314,3315,3317,3320,3322,3323,3326,3328,3330,3335,3337,3340,3342,3345,3347,3350,3351,3352,3354,3358,3361,3364,3366,3370,3371,3372,3373,3378,3381,3383,3385,3387,3389,3391,3392,3394,3396,3398,3400,3402,3404,3409,3413,3415,3416,3417,3418,3420,3423,3428,3430,3432,3434,3436,3437,3438,3439,3442,3444,3446,3447,3448,3450,3453,3457,3460,3462,3463,3465,3467,3470,3472,3475,3478,3480,3482,3484,3487,3493,3497,3501,3502,3504,3505,3508,3509,3514,3515,3516,3519,3521,3524,3528,3532,3533,3535,3536,3540,3541,3542,3544,3545,3547,3551,3553,3555,3558,3559,3561,3566,3567,3570,3572,3575,3578,3580,3585,3586,3588,3589,3592,3593,3594,3595,3599,3603,3604,3606,3610,3611,3612,3613,3614,3615,3616,3619,3622,3623,3625,3627,3628,3630,3632,3635,3637,3638,3642,3643,3646,3648,3649,3650,3652,3653,3656,3658,3659,3660,3661,3663,3664,3666,3667,3669,3670,3674,3677,3679,3680,3683,3685,3689,3695,3700,3701,3703,3705,3708,3709,3711,3715,3718,3719,3724,3726,3728,3730,3732,3735,3737,3739,3741,3743,3744,3745,3747,3750,3753,3755,3759,3760,3762,3763,3766,3767,3770,3772,3773,3774,3776,3778,3780,3783,3784,3786,3789,3791,3792,3794,3797,3798,3800,3802,3805,3807,3809,3810,3811,3812,3815,3819,3821,3822,3825,3828,3829,3831,3834,3836,3840,3841,3843,3845,3847,3850,3851,3852,3853,3855,3857,3858,3862,3865,3867,3871,3875,3877,3879,3882,3884,3887,3889,3892,3896,3899,3902,3905,3907,3909,3912,3916,3918,3919,3923,3924,3927,3929,3931,3932,3934,3936,3938,3940,3942,3945,3947,3949,3951,3952,3955,3957,3958,3961,3965,3967,3969,3973,3974,3975,3978,3981,3982,3984,3987,3990,3991,3992,3994,3996,3998,3999,4000,4003,4005,4007,4008,4010,4013,4014,4017,4020,4021,4024,4028,4032,4035,4036,4038,4039,4041,4044,4047,4050,4052,4053,4054,4058,4063,4066,4067,4069,4071,4075,4077,4079,4081,4082,4083,4084,4086,4089,4091,4097,4100,4104,4106,4107,4110,4111,4115,4119,4120,4123,4125,4128,4133,4136,4138,4140,4142,4147,4152,4153,4156,4157,4158,4163,4165,4166,4168,4172,4174,4175,4176,4178,4183,4184,4187,4191,4194,4196,4199,4201,4202,4203,4205,4207,4210,4211,4212,4215,4216,4219,4223,4226,4229,4231,4233,4234,4237,4238,4241,4242,4244,4247,4249,4250,4252,4256,4258,4260,4262,4264,4265,4266,4268,4271,4274,4275,4279,4286,4288,4290,4294,4295,4297,4298,4300,4303,4305,4306,4309,4311,4312,4313,4318,4320,4321,4322,4326,4327,4330,4333,4335,4336,4339,4341,4342,4346,4347,4349,4351,4354,4357,4358,4359,4361,4364,4365,4367,4369,4370,4372,4375,4381,4383,4384,4386,4389,4390,4391,4393,4394,4395,4396,4399,4406,4408,4409,4410,4411}
Returns: 1383
128
{29,85,118,35,88,3,96,13,116,107,60,35,36,31,59,78,107,5,128,62,122,41,72,74,8,106,22,66,99,29,84,66,128,99,62,29,124,101,59,48,61,100,99,9,106,5,37,18,112,9,87,124,13,32,87,29,45,83,71,91,124,127,81,96,10,86,42,35,94,51,54,29,2,24,54,68,99,62,108,45,88,110,89,41,49,25,32,93,115,120,123,90,74,60,122,112,50,59,91,4,4,68,93,111,115,50,108,6,75,34,48,31,14,41,101,23,18,40,110,39,60,108,18,106,111,25,40,104,100,95,99,10,110,97,100,77,18,73,4,53,116,76,106,105,79,51,61,29,115,37,18,93,92,81,42,20,127,86,99,22,65,32,53,79,84,56,101,38,120,120,61,10,15,88,38,16,117,110,9,118,122,56,30,113,107,7,42,110,96,1,46,56,118,99,51,48,7,112,40,8,61,25,47,76,19,62,91,53,100,38,112,70,37,121,79,74,62,120,103,103,63,93,116,41,67,37,93,98,118,100,29,22,119,29,1,41,72,83,104,97,25,51,95,64,89,57,15,77,122,126,111,47,40,119,16,51,14,41,33,40,74,119,112,34,101,8,64,57,112,102,48,89,86,59,96,105,21,106,21,7,71,109,109,72,69,82,124,122,38,80,71,33,42,8,54,102,49,14,85,20,16,127,86,40,110,21,31,124,64,31,42,117,43,67,46,48,47,49,24,21,31,8,6,68,27,11,69,91,86,70,31,15,87,61,19,58,52,74,6,109,31,58,15,105,120,107,80,45,112,13,23,53,78,95,45,109,4,63,38,46,38,9,40,28,43,82,55,27,9,56,128,16,96,45,122,21,102,44,127,57,19,27,13,123,104,50,119,24,74,2,41,95,109,111,123,66,79,35,66,91,3,83,82,91,81,95,63,49,73,47,100,16,101,128,20,101,62,5,117,46,21,72,21,116,56,95,32,58,46,8,29,13,68,10,31,75,46,55,16,71,96,47,41,88,74,28,27,99,24,113,36,128,49,52,127,81,57,86,45,44,67,38,120,101,94,69,6,102,17,63,96,23,82,59,32,114,53,122,83,126,56,56,20,85,14,72,59,52,77,54,1,13,34,111,69,122,102,10,96,99,7,107,103,31,59,42,10,100,70,92,52,50,113,115,62,35,95,66,109,73,33,70,26,23,34,67,82,39,29,63,32,107,61,125,71,72,104,27,1,99,127,107,47,89,102,108,113,96,97,13,67,100,118,77,12,102,39,40,2,8,65,9,83,127,85,16,74,41,42,39,121,4,28,5,116,57,106,8,94,119,54,89,64,90,8,71,26,55,6,45,45,30,119,83,60,121,84,56,75,113,72,39,110,2,19,42,96,60,120,93,75,92,106,83,53,119,17,68,104,67,24,103,24,9,90,109,24,54,51,77,52,111,24,32,39,49,37,11,6,55,86,102,98,67,17,119,80,23,112,96,90,57,87,15,17,114,40,78,120,82,19,79,38,60,52,74,30,3,27,55,94,96,77,80,29,110,13,10,84,96,109,93,3,91,49,62,41,2,13,121,69,20,13,109,57,127,76,64,8,58,33,107,11,92,9,114,89,40,105,46,101,23,30,92,66,60,109,80,16,5,19,122,89,110,34,40,93,88,30,68,122,49,58,126,72,112,20,89,1,82,96,23,4,26,111,61,117,27,50,93,18,44,46,14,69,34,76,31,101,106,9,43,51,74,94,114,117,81,118,127,96,31,121,101,27,119,65,16,85,95,55,89,46,107,105,96,44,5,48,112,31,127,69,108,1,118,49,31,66,18,113,27,17,97,76,23,50,37,54,56,104,49,3,84,84,123,50,111,66,101,113,64,35,80,53,65,73,104,92,3,119,57,91,19,11,2,96,35,67,94,16,29,27,61,94,86,65,119,72,14,110,12,28,98,44,114,94,121,46,90,6,46,97,104,33,17,82,22,47,41,47,18,61,13,120,10,85,93,118,33,76,8,5,100,63,28,34,91,125,95,87,127,110,85,95,52,95,47,71,14,70,78,77,5,117,50,126,119,104,125,87,59,102,94,45,60,22,11,57,7,57,67,88,10,35,122,9,19,32,80,19,16,5,44,31,2,3,46,24,89,77,27,102,16,24,45,90,43,94,47,54,72,122,39,58,96,96,61,126,104,57,13,61,102,1,110,37,54,42,85,53,52,93,79,27,13,44,50,111,22,70,12,82,38,94,7,29,93,127,77,81,59,72,74,82,23,7,3,82,42,41,5,122,27,31,96,98,2,60,100,120,83,126,113,61,108,80,66,5,71,27,112,15,128,80,103,56,23,57,117,28,84,98,35,33,39,108,96,55,8,99,64,17,106,108,95,64,78,57,42,62,85,63,53,110,15,121,18,30,32,83,95,50,89,29,53,108,25,60,110,91,122,10,35,95,127,122,16,4,52,88,37,99,95,73,68,21,48,103,60,9,32,11,2,75,92,109,23,57,18,12,21,57,23,83,82,49,84,7,27,110,30,56,127,7,37,91,69,12,76,60,36,2,82,14,125,31,124,56,94,64,112,107,67,86,71,40,24,65,104,125,60,42,45,66,82,123,66,121,120,66,61,55,18,104,112,43,34,116,106,89,74,102,75,34,110,119,115,104,11,14,69,123,57,74,80,116,13,52,52,64,90,59,63,106,35,95,7,8,108,88,32,103,101,51,17,121,82,82,11,50,108,99,90,41,104,6,6,55,33,85,5,66,119,92,127,28,60,92,109,13,22,108,61,24,58,108,64,37,72,115,38,84,43,110,7,45,86,41,72,81,76,83,33,121,92,81,74,71,31,88,84,95,81,94,120,73,51,74,69,81,79,45,62,91,7,3,60,54,13,8,18,126,128,63,53,104,28,31,98,51,27,28,123,5,25,120,61,34,15,78,120,67,32,63,21,57,82,126,63,49,121,46,13,35,112,41,72,77,8,74,103,49,93,51,9,38,44,85,96,90,125,59,53,42,114,6,50,23,83,60,18,25,112,29,81,34,57,45,94,128,116,35,111,127,100,117,122,108,32,53,123,29,90,45,28,2,86,96,1,68,70,62,115,103,86,45,85,84,43,21,71,103,46,49,46,62,21,60,56,6,26,110,97,17,6,79,106,35,54,34,21,61,1,103,4,38,100,23,112,21,52,34,14,20,5,62,77,18,103,45,78,70,35,126,57,124,96,51,119,103,116,52,7,92,52,92,12,33,17,14,6,5,109,117,127,121,121,128,87,95,59,43,57,101,28,67,53,8,98,72,82,111,37,79,120,38,77,3,94,55,17,12,78,82,62,17,89,70,14,104,71,40,75,101,97,98,90,74,107,40,89,115,124,23,113,85,44,58,120,31,91,73,3,48,57,53,46,9,23,94,50,9,61,8,63,7,42,6,86,67,75,30,61,67,70,114,19,76,81,89,66,21,22,78,52,63,127,3,74,64,95,117,82,35,76,83,91,3,42,1,8,21,60,32,51,77,75,126,116,123,90,23,93,69,28,2,1,79,66,99,47,88,8,66,2,83,103,82,84,9,122,49,88,17,77,28,29,28,12,104,106,38,1,39,126,16,82,57,101,128,85,36,54,49,77,97,83,89,119,28,66,16,45,123,59,67,20,31,92,81,48,115,24,101,104,74,100,110,126,77,25,104,44,49,62,21,22,67,57,5,6,29,50,4,100,84,97,105,33,88,37,83,90,9,106,34,86,88,117,55,104,53,93,17,93,40,18,126,100,78,30,67,19,39,87,29,2,94,18,2,24,62,127,41,44,89,50,54,27,112,6,121,33,46,93,29,72,13,122,127,93,20,14,68,126,56,92,67,125,42,32,5,108,88,91,112,93,44,107,31,14,69,56,128,101,21,55,11,102,30,94,71,122,43,9,78,28,84,89,41,87,25,127,49,50,29,79,116,122,69,18,96,45,12,122,109,30,79,35,23,40,77,23,74,80,38,106,30,101,2,98,114,47,92,123,1,28,123,109,102,60,111,39,121,95,5,50,122,14,99,53,64,7,80,84,12,128,49,123,125,69,106,57,7,118,24,12,64,17,127,67,50,12,34,73,4,81,46,119,89,11,36,73,107,39,91,37,128,63,70,35,102,11,17,37,128,68,38,81,60,102,23,113,120,24,83,120,110,120,10,119,49,104,7,4,35,32,111,39,24,5,11,48,80,124,54,92,58,72,113,33,24,50,119,99,35,22,85,110,86,51,21,121,61,123,16,125,128,106,84,77,101,89,70,72,29,126,81,29,1,99,123,66,64,76,31,44,29,25,104,33,3,6,74,125,15,58,103,128,39,96,46,75,98,60,121,120,35,110,46,94,98,88,126,67,125,95,3,2,44,16,96,94,4,128,86,3,105,7,7,122,113,107,46,29,91,52,28,95,86,11,45,28,23,29,43,109,38,35,74,86,99,102,109,13,102,54,97,104,67,16,15,121,39,72,109,54,114,124,116,128,22,10,26,85,27,87,12,94,116,54,57,13,62,56,7,5}
{1,3,5,7,10,12,14,16,17,18,20,21,22,23,26,29,30,32,34,35,37,39,41,42,43,44,45,47,49,51,54,56,57,58,62,63,65,66,67,70,73,74,76,79,80,81,82,83,84,86,88,90,91,93,96,97,98,100,101,103,105,107,110,111,112,114,116,117,118,119,120,122,123,124,125,126,127,128,129,130,131,133,134,136,138,140,142,144,145,147,149,151,152,153,155,156,157,159,161,163,165,166,167,172,173,175,176,178,179,180,181,183,185,186,188,189,190,191,192,193,194,196,197,198,201,202,204,205,207,210,212,213,214,217,220,221,226,228,231,234,236,238,240,241,242,245,248,249,252,253,254,256,260,261,262,263,266,267,268,269,272,273,274,276,277,278,279,280,282,283,285,286,288,289,293,295,297,300,302,304,307,308,310,312,314,315,317,318,320,321,322,323,324,325,327,328,329,331,332,335,336,339,342,344,346,348,350,351,353,354,355,357,359,361,362,364,365,367,368,369,372,375,376,377,379,381,382,383,385,386,388,389,390,391,392,393,395,396,399,400,401,404,406,408,409,410,412,414,415,416,420,421,422,424,425,426,427,428,429,432,433,434,437,440,443,445,446,447,448,449,450,452,453,454,455,456,457,458,460,461,463,464,465,466,468,469,471,472,474,475,478,479,481,483,484,485,487,490,494,495,496,497,498,499,500,501,506,508,510,514,515,516,517,518,519,521,523,525,528,529,531,534,537,539,540,541,542,544,546,548,549,550,551,552,553,554,557,558,559,561,562,563,565,567,568,572,575,577,578,580,582,584,587,588,589,591,592,593,595,597,598,599,602,604,607,608,610,612,613,615,616,618,619,620,623,624,625,627,629,630,631,633,634,635,636,638,639,644,646,649,651,653,655,658,660,662,663,664,665,667,668,669,670,671,674,675,677,680,682,684,688,691,693,694,695,697,698,701,702,704,705,707,708,709,710,711,712,714,715,716,720,722,723,724,725,726,727,729,731,732,734,736,741,742,744,745,746,747,748,751,755,756,758,759,761,764,765,766,767,768,769,771,772,774,775,776,777,778,780,782,783,785,787,788,789,792,793,795,797,798,800,802,804,805,807,810,813,815,816,818,820,822,824,828,830,831,832,834,836,837,838,839,840,841,842,843,844,846,847,848,850,851,852,853,854,856,858,860,862,864,867,868,871,872,875,876,879,881,883,884,886,887,890,892,893,895,896,898,900,901,903,906,907,908,909,911,914,917,918,920,921,923,924,925,926,928,929,930,932,933,936,938,940,943,945,946,948,949,951,953,954,956,957,959,960,962,963,965,966,968,970,971,973,974,977,978,979,983,984,985,986,988,989,990,991,992,993,995,996,997,998,999,1000,1001,1003,1004,1006,1008,1010,1012,1013,1016,1018,1020,1021,1022,1023,1025,1028,1030,1031,1032,1035,1037,1039,1042,1045,1046,1047,1048,1049,1050,1052,1053,1054,1056,1057,1059,1061,1063,1066,1067,1069,1072,1074,1075,1076,1078,1080,1081,1083,1085,1086,1088,1089,1091,1095,1098,1099,1100,1102,1103,1104,1105,1108,1110,1112,1114,1117,1118,1120,1122,1123,1124,1126,1127,1129,1132,1133,1134,1135,1136,1138,1139,1140,1143,1144,1145,1148,1149,1151,1152,1153,1155,1156,1157,1158,1161,1164,1166,1169,1170,1171,1172,1176,1177,1178,1180,1182,1184,1185,1186,1188,1190,1191,1192,1195,1198,1199,1200,1203,1204,1206,1207,1208,1209,1211,1213,1215,1216,1218,1219,1221,1223,1225,1226,1227,1229,1230,1232,1234,1236,1238,1240,1241,1242,1243,1245,1246,1247,1248,1251,1253,1254,1255,1256,1259,1262,1263,1266,1268,1271,1272,1273,1274,1276,1277,1280,1281,1285,1287,1288,1292,1294,1296,1297,1298,1299,1302,1303,1304,1305,1306,1307,1311,1312,1314,1317,1318,1320,1322,1323,1328,1329,1330,1331,1333,1335,1337,1338,1340,1341,1343,1347,1348,1349,1350,1352,1353,1354,1355,1357,1358,1360,1362,1363,1365,1366,1367,1370,1371,1373,1375,1378,1381,1384,1386,1388,1390,1392,1393,1396,1397,1398,1402,1404,1405,1406,1408,1409,1410,1411,1413,1414,1415,1417,1419,1420,1421,1424,1425,1427,1428,1429,1431,1432,1433,1435,1436,1438,1439,1441,1443,1445,1448,1450,1452,1454,1455,1457,1459,1460,1461,1462,1465,1468,1470,1471,1474,1476,1477,1480,1482,1484,1487,1490,1492,1495,1496,1497,1499,1502,1503,1504,1505,1506,1508,1509,1511,1514,1515,1517,1519,1520,1521,1522,1525,1527,1529,1532,1534,1535,1536,1538,1540,1543,1544,1546,1547,1549,1550,1552,1553,1556,1558,1560,1562,1564,1565,1566,1567,1570,1572,1574,1575,1577,1579,1580,1581,1582,1585,1586,1587,1589,1590,1591,1592,1594,1595,1597,1599,1601,1602,1603,1605,1606,1609,1610,1611,1613,1616,1619,1620,1622,1623,1624,1627,1629,1630,1631,1634,1636,1638,1639,1640,1643,1645,1648,1650,1652,1654,1655,1656,1657,1662,1664,1666,1668,1670,1672,1674,1675,1677,1678,1679,1681,1682,1684,1687,1689,1691,1693,1694,1696,1697,1698,1699,1701,1703,1704,1705,1706,1708,1709,1710,1712,1716,1718,1721,1723,1725,1726,1727,1729,1730,1733,1735,1738,1740,1743,1746,1747,1748,1749,1752,1753,1754,1755,1758,1761,1762,1764,1765,1767,1768,1769,1770,1772,1774,1775,1776,1780,1781,1783,1787,1790,1792,1793,1795,1796,1799,1801,1803,1804,1805,1806,1808,1809,1811,1812,1813,1814,1815,1818,1819,1822,1824,1826,1828,1832,1835,1837,1839,1840,1841,1843,1844,1845,1847,1849,1851,1852,1853,1855,1858,1861,1862,1865,1867,1868,1869,1872,1874,1876,1878,1879,1880,1881,1882,1885,1886,1887,1888,1889,1890,1891,1893,1894,1895,1897,1898,1900,1903,1904,1905,1907,1908,1910,1912,1913,1915,1919,1921,1922,1924,1925,1927,1930,1932,1934,1937,1938,1941,1943,1944,1946,1948,1949,1951,1952,1954,1955,1957,1959,1960,1961,1962,1965,1966,1968,1969,1970,1972,1974,1975,1976,1978,1979,1981,1983,1985,1986,1987,1988,1990,1993,1994,1995,1996,1998,2000,2002,2004,2006,2007,2008,2009,2011,2013,2014,2016,2017,2021,2023,2024,2027,2029,2031,2032,2034,2036,2038,2039,2042,2044,2049,2050,2051,2052,2053,2055,2057,2058,2060,2062,2064,2067,2069,2070,2072,2074,2076,2080,2081,2082,2085,2086,2088,2089,2092,2093,2095,2098,2100,2102,2104,2105,2106,2108,2111,2112,2113,2114,2115,2119,2120,2121,2122,2125,2126,2127,2128,2129,2131,2133,2135,2136,2137,2138,2139,2142,2143,2144,2145,2146,2148,2149,2150,2151,2152,2153,2155,2156,2157,2159,2160,2161,2162,2163,2164,2165,2166,2168,2170,2175,2179,2181,2182,2185,2186,2187,2189,2191,2192,2193,2195,2199,2200,2203,2204,2207,2209,2211,2212,2213,2214,2215,2217,2220,2225,2226,2228,2230,2232,2234,2236,2238,2240,2242,2245,2246,2248,2249,2251,2252,2255,2257,2259,2260,2262,2263,2265,2266,2267,2269,2271,2273,2275,2276,2279,2281,2282,2284,2285,2288,2289,2290,2292,2293,2295,2296,2300,2302,2304,2305,2307,2308,2309,2310,2311,2312,2314,2315,2318,2320,2323,2324,2327,2328,2329,2330,2332,2333,2335,2336,2338,2339,2341,2343,2345,2346,2348,2349,2350,2352,2355,2357,2358,2362,2366,2367,2370,2373,2374,2375,2376,2378,2380,2382,2384,2387,2390,2392,2395,2396,2397,2401,2403,2404,2405,2407,2408,2409,2410,2411,2413,2415,2416,2417,2418,2419,2420,2422,2424,2426,2428,2430,2433,2434,2438,2439,2440,2442,2443,2445,2446,2447,2449,2451,2452,2453,2456,2458,2460,2461,2462,2464,2466,2467,2469,2471,2473,2475,2477,2478,2480,2481,2482,2483,2484,2486,2487,2488,2491,2493,2496,2498,2502,2503,2506,2507,2508,2509,2510,2513,2514,2517,2518,2521,2523,2525,2526,2530,2531,2532,2535,2537,2538,2539,2540,2541,2542,2545,2547,2548,2549,2552,2553,2555,2556,2557,2559,2560,2561,2563,2566,2569,2571,2575,2577,2579,2580,2581,2582,2584,2586,2588,2589,2590,2592,2593,2594,2596,2597,2598,2600,2602,2604,2606,2607,2608,2609,2610,2611,2612,2614,2615,2616,2617,2618,2619,2622,2624,2626,2627,2628,2629,2632,2633,2635,2636,2638,2640,2641,2642,2643,2645,2646,2648,2649,2650,2652,2653,2656,2658,2662,2663,2665,2667,2670,2672,2674,2676,2678,2680,2682,2683,2685,2687,2688,2690,2692,2693,2695,2697,2698,2700,2701,2702,2703,2704,2705,2706,2709,2711,2713,2715,2717,2719,2720,2722,2723,2725,2727,2728,2729,2731,2733,2734,2736,2737,2739,2740,2742,2743,2744,2745,2746,2748,2749,2751,2752,2754,2755,2756,2757,2758,2761,2763,2767,2768,2769,2770,2771,2773,2774,2776,2777,2779,2780,2782,2783,2785,2786,2789,2791,2794,2796,2797,2798,2799,2800,2802,2803,2804,2805,2806,2807,2809,2810,2812,2813,2814,2815,2817,2818,2819,2822,2824,2827,2828,2829,2830,2831,2832,2834,2836,2837,2839,2840,2842,2844,2845,2847,2848,2850,2851,2853,2855,2856,2857,2859,2860,2861,2864,2865,2866,2867,2869,2870,2871,2873,2875,2878,2879,2880,2882,2883,2885,2888,2889,2891,2893,2895,2896,2897,2898,2900,2901,2902,2904,2905,2906,2909,2911,2913,2915,2916,2917,2919,2920,2922,2924,2927,2928,2929,2933,2935,2937,2940,2943,2946,2947,2948,2949,2951,2953,2955,2957,2958,2959,2960,2961,2963,2964,2966,2968,2970,2972,2975,2976,2977,2980,2981,2983,2985,2988,2990,2992,2993,2995,2998,2999,3000,3002,3004,3005,3006,3007,3008,3010,3012,3014,3016,3019,3021,3022,3024,3025,3026,3028,3029,3031,3032,3035,3037,3038,3040,3041,3042,3043,3044,3045,3047,3048,3049,3050,3052,3054,3057,3059,3060,3061,3062,3064,3066,3067,3068,3071,3072,3074,3076,3077,3080,3083,3084,3085,3086,3087,3089,3090,3092,3093,3096,3098,3100,3101,3102,3103,3104,3105,3106,3108,3110,3112,3113,3114,3115,3116,3117,3118,3119,3123,3126,3131,3133,3134,3135,3137,3139,3141,3143,3147,3148,3149,3151,3153,3155,3156,3158,3160,3163,3164,3166,3167,3169,3172,3174,3175,3176,3178,3180,3182,3183,3184,3187,3188,3189,3190,3192,3194,3195,3197,3199,3200,3202,3203,3205,3207,3208,3210,3211,3213,3214,3216,3218,3219,3223,3224,3226,3228,3230,3231,3233,3235,3237,3238,3241,3242,3243,3244,3246,3250,3252,3254,3256,3258,3259,3260,3261,3262,3264,3266,3267,3269,3270,3271,3272,3273,3276,3279,3280,3281,3283,3286,3288,3290,3293,3294,3295,3296,3298,3299,3300,3301,3302,3304,3306,3308,3310,3311,3313,3315,3319,3321,3323,3326,3327,3329,3330,3331,3332,3333,3336,3337,3340,3342,3344,3345,3346,3349,3351,3353,3354,3357,3358,3359,3360,3361,3362,3364,3365,3366,3367,3368,3370,3373,3375}
Returns: 1431
4
{1,4,4,4,4,3,2,3,4,4,3,3,3,3,1,2,1,3,2,1,3,4,1,2,4,1,2,3,3,2,4,1,3,2,2,3,2,2,3,4,3,2,3,2,3,3,3,1,4,1,2,1,4,2,4,1,2,2,4,3,2,1,4,1,3,2,2,1,3,1,1,2,2,2,4,4,4,1,3,4,3,1,2,3,1,2,4,1,1,1,4,2,3,3,1,3,4,3,1,4,1,4,4,4,3,3,1,4,2,3,4,4,1,4,3,1,4,3,3,2,2,1,2,1,2,1,3,4,2,4,3,2,3,3,3,2,2,1,2,2,1,3,1,3,4,4,3,3,4,2,2,3,1,2,4,3,1,4,3,2,3,3,4,4,4,1,2,2,3,1,3,1,3,4,2,3,1,4,4,3,3,1,4,1,3,1,2,1,3,2,2,3,1,2,3,4,3,2,3,3,4,4,1,1,2,3,3,3,4,1,4,4,2,3,4,1,1,4,3,2,4,1,2,1,2,1,3,4,3,4,2,1,4,1,1,3,2,4,4,1,2,3,4,1,3,3,3,3,3,3,3,3,2,2,4,2,3,3,2,3,2,4,2,3,2,2,2,3,3,4,1,2,3,1,1,2,4,3,4,1,4,1,1,4,3,2,4,1,3,4,2,3,2,2,2,4,4,2,1,1,2,3,3,2,2,4,4,2,4,4,4,3,3,2,4,1,2,3,4,1,2,2,3,3,3,4,2,3,1,4,1,3,2,4,4,2,1,2,3,2,4,3,3,2,1,2,1,3,4,4,4,2,2,1,1,2,4,4,2,4,4,1,2,2,4,4,1,4,3,3,3,4,4,2,2,4,1,2,2,2,4,2,1,4,2,1,3,3,3,1,3,3,2,2,4,3,1,1,4,3,3,4,2,4,3,3,1,4,2,2,1,3,4,1,1,1,1,2,1,4,1,4,4,1,3,3,4,4,2,4,2,1,2,3,1,2,2,3,3,1,2,4,2,3,1,2,1,2,1,1,4,1,4,1,4,4,2,1,3,4,3,1,4,2,1,2,3,4,3,3,4,1,1,1,4,1,2,4,2,3,3,3,3,1,4,1,3,2,2,3,4,4,3,2,1,2,4,3,4,4,4,3,3,4,3,1,4,2,1,2,4,2,4,1,1,4,2,2,3,3,2,1,4,1,4,3,3,4,2,2,1,3,4,3,1,3,4,1,1,1,3,2,2,1,4,2,3,2,2,4,1,1,3,4,4,4,2,2,3,4,1,2,3,1,2,4,4,1,2,4,3,3,1,3,1,1,1,1,3,3,3,3,4,4,2,2,1,2,4,1,2,4,2,2,3,2,3,1,3,3,4,3,4,1,4,4,1,4,4,3,4,2,3,4,2,3,3,3,3,4,3,1,4,4,4,4,3,2,4,3,3,2,3,1,2,2,1,2,1,1,1,3,1,3,2,1,2,4,4,2,1,1,4,3,1,4,1,2,3,3,2,1,4,4,4,4,3,4,3,2,3,1,4,1,4,1,1,3,1,4,3,1,1,1,4,1,2,2,3,2,3,1,3,2,3,2,2,4,3,3,4,4,2,2,3,3,4,3,3,4,2,4,4,2,2,4,1,1,4,1,2,4,1,2,3,2,1,2,3,4,1,3,2,1,1,2,2,2,4,2,3,3,1,2,4,3,3,3,1,2,1,3,4,3,4,1,4,1,2,3,4,1,2,2,3,2,4,4,4,4,1,1,3,2,1,2,1,2,1,2,1,4,1,1,3,2,3,2,3,2,1,3,1,4,4,1,2,1,4,1,2,1,1,1,2,1,3,1,2,1,1,4,4,1,3,1,2,2,1,1,3,3,2,2,1,4,2,4,1,3,2,1,3,4,3,1,3,3,2,4,2,4,3,4,3,2,2,4,3,2,4,1,1,3,4,2,3,2,4,3,1,1,1,4,1,4,4,4,2,3,1,3,2,4,2,4,1,3,2,3,1,3,2,3,3,1,3,3,3,1,2,1,1,2,4,3,4,2,1,1,4,4,4,1,4,2,1,2,3,1,3,3,3,2,2,2,1,2,2,1,2,4,1,4,4,4,2,3,2,2,1,1,4,2,4,2,4,1,4,3,3,4,4,4,4,1,1,2,2,4,1,1,1,2,2,4,3,4,2,1,2,1,2,4,4,1,3,3,3,4,2,4,2,1,2,4,2,3,3,2,4,1,4,2,3,2,2,1,3,1,4,2,4,2,3,2,3,3,2,4,1,4,1,4,1,3,2,2,3,1,4,1,2,4,2,4,1,3,3,3,4,4,1}
{2,6,10,12,16,18,26,30,33,38,43,46,47,51,55,57,63,68,72,76,78,83,86,89,91,93,95,96,101,103,106,113,115,117,123,129,134,141,145,151,156,158,159,163,167,171,174,177,182,184,188,192,199,203,207,216,221,225,228,233,238,242,251,257,260,265,271,277,279,283,288,290,296,302,306,313,316,321,328,333,336,344,349,353,358,362,368,370,375,380,385,390,392,398,402,404,406,409,411,414,417,424,428,430,436,439,444,450,453,456,458,466,469,472,475,480,484,488,497,501,503,508,513,516,518,523,526,535,538,541,544,546,550,556,561,566,576,582,587,590,593,600,609,612,615,623,629,634,641,645,648,650,655,660,663,666,673,677,684,687,693,697,702,705,709,713,716,719,725,729,734,735,739,745,749,754,756,761,764,767,772,777,781,787,793,796,799,804,811,817,821,825,831,835,838,847,850,856,863,870,876,879,884,890,896,901,904,908,911,917,920,924,926,928,933,938,941,945,946,948,951,956,959,965,968,972,975,979,983,991,996,1001,1003,1005,1011,1015,1018,1020,1022,1027,1032,1036,1041,1047,1050,1051,1052,1058,1060,1063,1066,1070,1075,1081,1086,1092,1096,1099,1102,1105,1110,1114,1117,1120,1125,1127,1133,1135,1140,1144,1148,1155,1160,1165,1168,1171,1179,1183,1188,1191,1194,1196,1200,1205,1207,1212,1218,1221,1225,1229,1234,1240,1246,1251,1253,1256,1260,1264,1267,1277,1280,1285,1287,1293,1295,1298,1304,1311,1313,1317,1321,1323,1325,1330,1334,1338,1344,1348,1354,1358,1362,1365,1366,1372,1376,1380,1385,1389,1390,1393,1398,1404,1408,1414,1419,1420,1426,1430,1431,1435,1443,1446,1451,1455,1458,1462,1463,1467,1472,1479,1481,1486,1492,1496,1498,1505,1510,1514,1521,1523,1526,1530,1531,1535,1539,1543,1548,1552,1558,1561,1564,1566,1570,1572,1578,1586,1591,1596,1602,1606,1608,1612,1616,1622,1624,1627,1632,1636,1644,1647,1651,1652,1656,1659,1664,1671,1675,1679,1685,1686,1690,1696,1702,1708,1717,1723,1726,1732,1737,1741,1746,1749,1751,1756,1762,1767,1769,1774,1776,1783,1787,1792,1793,1799,1804,1807,1811,1814,1817,1822,1828,1833,1837,1843,1849,1854,1859,1866,1868,1875,1877,1882,1889,1891,1895,1896,1901,1908,1912,1915,1917,1923,1927,1931,1937,1939,1944,1949,1954,1958,1962,1965,1970,1972,1977,1982,1985,1989,1995,1999,2004,2007,2011,2014,2017,2025,2027,2029,2033,2036,2044,2050,2054,2057,2061,2063,2067,2071,2078,2086,2093,2096,2105,2109,2114,2121,2123,2130,2133,2138,2143,2153,2162,2167,2176,2182,2191,2196,2201,2203,2212,2217,2221,2225,2233,2237,2241,2245,2249,2253,2258,2261,2270,2275,2278,2283,2291,2293,2295,2301,2305,2308,2311,2316,2319,2323,2329,2334,2335,2337,2338,2343,2344,2349,2351,2353,2357,2361,2363,2369,2373,2377,2381,2385,2387,2390,2394,2398,2401,2405,2407,2410,2415,2420,2421,2428,2431,2436,2439,2443,2445,2450,2458,2461,2463,2468,2473,2475,2482,2487,2490,2495,2499,2504,2505,2508,2514,2517,2524,2528,2529,2533,2541,2544,2548,2552,2557,2559,2563,2568,2571,2576,2581,2586,2591,2594,2598,2605,2609,2613,2619,2623,2633,2637,2640,2645,2648,2651,2657,2664,2667,2672,2674,2677,2684,2687,2692,2695,2698,2699,2701,2706,2711,2717,2725,2731,2733,2735,2738,2744,2750,2753,2759,2767,2772,2775,2783,2788,2791,2798,2802,2805,2808,2811,2817,2819,2825,2828,2833,2837,2842,2847,2849,2851,2855,2861,2868,2873,2878,2879,2883,2887,2892,2898,2902,2904,2909,2914,2922,2930,2936,2941,2947,2948,2954,2962,2970,2975,2982,2986,2989,2994,2997,3002,3005,3011,3017,3024,3025,3029,3034,3039,3042,3044,3047,3052,3055,3058,3061,3066,3069,3074,3079,3082,3089,3092,3095,3102,3106,3108,3112,3115,3121,3126,3130,3136,3140,3141,3147,3152,3158,3161,3166,3168,3169,3171,3176,3178,3185,3187,3192,3194,3201,3207,3212,3217,3220,3226,3231,3234,3239,3246,3249,3257,3262,3264,3268,3271,3274,3279,3284,3292,3296,3300,3307,3312,3315,3320,3325,3330,3337,3339,3342,3347,3348,3352,3358,3362,3364,3369,3371,3375,3379,3380,3387,3389,3395,3399,3407,3409,3410,3415,3418,3419,3422,3426,3429,3434,3437,3440,3445,3447,3454,3461,3466,3470,3473,3479,3485,3489,3493,3496,3501,3508,3511,3517,3520,3526,3531,3535,3538,3542,3545,3550,3553,3558,3564,3569,3573,3577,3582,3586,3589,3590,3593,3596,3603,3606,3607,3613,3618,3621,3627,3632,3635,3637,3639,3644,3647,3650,3651,3656,3657,3660,3661,3668,3673,3680,3682,3686,3695,3699,3703,3705,3709,3717,3718,3721,3723,3725,3731,3734,3737,3741,3744,3750,3754,3759,3762,3765,3773,3777,3780,3783,3788,3792,3797,3805,3808,3811,3818,3825,3834,3838,3843,3847,3849,3854,3857,3862,3868,3875,3878,3883,3887,3892,3898,3900,3904,3908,3911,3917,3922,3927,3932,3935,3941,3944,3946,3953,3958,3963,3967,3969,3975,3980,3983,3987,3992,3993,3996,3997,4001,4006,4009,4013,4017,4024,4030,4037,4042,4045,4050,4055,4063,4064,4070,4075,4079,4083,4085,4087,4089,4091,4094,4099,4102,4104,4110,4116,4122,4125,4130,4133,4137,4141,4147,4151,4160,4166,4168,4172,4176,4185,4190,4195,4199,4203,4207,4210,4215,4223,4226,4228,4239,4246,4248,4253,4259,4262,4268,4272,4278,4285,4290,4296,4300,4301,4307,4309,4314,4320,4325,4327,4331,4335,4341,4347,4352,4355,4361,4370,4374,4380,4382,4386,4389,4396,4400,4403,4405,4409,4414}
Returns: 658
1024
{132,974,858,147,373,44,926,560,779,107,1018,611}
{141,299,443,585,729,884,1049,1185,1336,1480,1636,1793}
Returns: 8
1024
{531,1014,907,687,173,666,922,340,701,570,787,51,376,710,248,919,863,585,110,163,764,129,856,190,933,16,299,40,185,836,588,435,287,840,294,170,554,696,292,1022,661,945,216,820,1005,464,951,444,668,519,344,282,649,187,871,169,121,582,329,959,609,740,5,932,827,231,748,755,327,800,370,788,48,452,187,690,838,291,946,389,672,54,682,573,279,116,58,757,990,282,878,880,975,496,61,545,948,100,515,547,580,530,185,67,546,219,183,157,433,785,529,162,138,428,1017,730,29,778,492,600,304,623,62,931,3,846,799,936,303,842,811,843,459,767,121,863,465,972,349,252,136,26,17,396,858,50,774,124,142,791,510,512,69,429,676,831,858,575,552,1014,253,848,541,194,343,737,505,846,266,595,893,756,764,904,956,173,963,321,926,182,973,844,606,768,900,707,507,299,711,889,355,430,871,412,498,1003,174,406,459,1003,143,141,707,723,458,259,435,650,251,437,123,878,412,73,356,697,753,536,295,731,1023,831,434,258,260,752,637,2,74,53,78,244,942,878,342,276,1005,815,998,748,652,650,292,551,781,884,723,578,67,396,701,984,683,123,9,859,262,239,690,480,209,107,809,499,201,572,127,625,74,832,351,264,805,659,207,68,627,725,475,718,1009,619,543,585,668,213,435,5,141,76,1,200,897,209,982,802,752,265,579,225,102,409,760,171,109,308,577,87,85,496,28,796,837,104,416,126,758,461,398,470,761,10,700,44,930,586,793,860,107,40,10,426,21,864,295,93,974,540,178,617,346,921,417,473,875,408,421,883,616,725,595,470,823,434,888,635,251,596,392,766,592,170,573,103,554,280,692,146,79,508,424,831,320,209,488,271,388,869,194,609,86,105,464,747,534,650,361,230,828,616,263,980,272,470,230,783,554,572,133,971,349,64,992,167,714,158,479,647,953,144,225,834,786,40,300,639,409,467,456,43,629,80,845,515,524,930,341,768,763,469,597,966,672,458,807,706,176,228,741,314,838,33,350,90,772,494,556,555,322,1023,49,605,132,895,355,496,546,552,188,776,662,24,126,929,203,170,322,584,915,62,716,948,911,358,555,707,738,491,363,607,872,745,7,429,904,879,38,807,322,552,980,621,699,247,689,775,878,213,968,982,234,215,220,894,562,236,1007,498,222,958,419,522,903,785,722,52,336,755,454,75,762,631,892,247,666,963,959,599,965,482,779,50,760,67,975,395,22,625,297,68,216,653,1003,839,401,464,930,188,971,149,72,1015,12,639,602,1018,398,957,597,976,138,448,496,410,440,87,214,923,890,998,80,133,910,541,247,256,574,153,878,134,638,1004,266,684,254,436,893,91,709,439,704,438,713,110,729,521,210,260,922,681,780,356,755,119,718,239,860,414,93,298,631,537,239,1016,319,440,422,16,510,413,504,677,426,379,938,186,384,640,648,814,825,593,500,547,476,96,678,852,717,682,808,713,681,259,539,634,883,800,451,907,415,490,280,827,993,1006,842,497,473,848,940,136,77,314,233,631,559,909,917,903,94,382,400,125,761,683,227,74,523,647,648,657,111,791,767,132,786,604,132,673,1012,356,141,104,999,639,62,709,909,483,447,715,968,232,658,70,971,17,385,692,711,795,302,896,361,181,803,381,910,191,459,75,223,136,745,421,918,25,760,896,819,605,279,893,420,982,647,853,78,159,1011,465,835,634,649,286,21,786,582,429,776,227,753,31,132,691,223,366,610,582,731,544,28,671,666,50,688,255,371,842,225,492,885,986,629,155,914,17,298,840,40,187,90,659,2,183,141,79,223,801,721,1012,381,793,35,891,631,973,16,905,602,101,624,137,743,394,818,189,767,348,46,67,565,781,65,189,270,204,68,390,666,297,487,39,598,217,547,634,837,665,141,182,908,197,729,456,585,880,942,838,975,468,536,201,825,859,803,928,762,753,370,132,247,720,807,103,466,956,278,98,560,100,727,652,1020,161,587,643,291,76,506,182,222,667,239,647,17,332,972,1010,344,587,579,197,254,800,403,34,352,775,58,200,49,916,200,891,394,892,423,747,508,100,394,392,373,664,111,534,346,269,816,778,302,78,37,863,464,181,431,285,135,738,47,653,54,324,929,778,90,613,480,843,713,481,434,802,729,242,934,7,546,1005,303,7,209,879,939,71,402,666,127,215,753,849,282,369,603,602,334,895,803,809,96,469,603,552,297,439,738,135,919,745,924,496,594,510,172,739,363,156,863,546,908,756,898,41,451,152,21,417,677,131,125,145,100,360,725,46,647,823,899,100,728,597,462,110,654,797,284,853,994,495,574,446,481,167,103,527,955,528,360,740,682,725,312,921,352,346,284,983,460,817,867,321,570,758,324,426,259,216,310,161,596,655,268,217,529,280,34,108,118,866,787,772,717,233,935,426,607,580,323,587,731,962,874,1017,610,911,447,361,194,273,671,138,171,719,881,175,304,721,934,107,883,785,452,273,44,152,1013,978,612,965,4,851,254,891,340,258,623,778,487,654,648,63,605,630,92,848,978,554,732,549,347,235,346,812,587,102,468,451,373,763,460,849,297,939,869,73,830,230,919,891,1020,434,897,155,676,37,579,72,574,179,571,152,314,895,27,210,711,960,3,515,241,299,173,1015,772,100,684,866,62,445,463,558,904,187,268,581,426,877,393,464,99,532,1019,329,470,611,19,187,214,342,103,331,1022,948,570,808,730,822,851,554,492,422,356,170,15,888,377,112,374,237,898,296,637,844,340,603,628,886,553,195,205,1012,866,920,332,627,288,646,602,988,330,29,762,575,416,706,190,313,457,905,179,974,143,770,326,615,9,863,534,53,755,626,481,275,581,913,502,8,235,678,519,619,104,442,704,287,107,406,289,871,113,98,129}
{2,10,15,19,23,29,32,38,42,47,51,55,59,61,66,67,70,72,76,80,85,90,92,97,101,104,106,109,112,114,121,125,131,134,136,138,140,144,147,150,153,155,160,163,169,173,176,181,187,193,198,202,204,211,217,221,222,226,228,232,235,240,242,245,250,256,259,260,263,266,269,273,277,281,285,286,291,294,299,303,310,314,320,323,326,328,330,332,335,339,341,344,349,352,353,356,359,363,371,377,380,383,392,397,401,403,408,415,420,423,426,430,433,438,440,445,448,453,456,459,460,461,465,468,474,480,485,486,489,493,494,498,504,508,511,515,518,522,524,529,535,536,539,541,545,552,555,559,565,569,570,577,580,584,587,594,596,602,604,607,609,611,614,615,618,622,627,630,634,636,639,643,646,653,655,656,658,660,664,670,673,676,678,680,685,689,692,698,700,701,707,709,713,717,722,726,731,737,739,743,746,750,754,757,764,767,768,773,775,781,785,788,792,796,799,802,806,809,812,815,820,823,827,832,835,844,845,851,856,860,862,869,875,880,885,890,894,898,905,907,912,915,921,923,926,928,931,935,937,943,946,950,954,958,963,966,970,972,977,982,989,993,995,996,999,1001,1003,1006,1010,1013,1019,1022,1024,1029,1032,1038,1041,1047,1050,1054,1056,1058,1060,1067,1070,1077,1079,1081,1085,1089,1096,1101,1109,1113,1116,1118,1122,1126,1130,1135,1140,1143,1149,1150,1154,1159,1162,1169,1177,1182,1185,1189,1192,1196,1198,1201,1203,1206,1209,1213,1215,1221,1226,1231,1240,1244,1248,1252,1256,1261,1266,1269,1271,1273,1277,1278,1281,1282,1284,1287,1291,1296,1299,1305,1308,1313,1315,1317,1321,1324,1332,1335,1341,1345,1348,1351,1354,1358,1362,1366,1371,1375,1380,1384,1390,1392,1396,1398,1400,1409,1412,1416,1421,1424,1428,1430,1434,1437,1439,1443,1448,1458,1461,1466,1469,1472,1477,1481,1487,1490,1492,1495,1500,1504,1508,1511,1516,1521,1524,1528,1535,1536,1543,1544,1549,1551,1554,1559,1560,1568,1570,1576,1578,1582,1586,1588,1591,1594,1597,1601,1604,1609,1612,1618,1619,1625,1627,1630,1634,1637,1642,1646,1650,1654,1660,1665,1671,1672,1673,1679,1683,1688,1696,1700,1703,1706,1710,1713,1720,1727,1734,1736,1742,1747,1751,1754,1758,1760,1764,1767,1770,1772,1773,1777,1781,1783,1788,1797,1799,1801,1805,1808,1811,1816,1818,1822,1825,1831,1837,1843,1846,1849,1855,1858,1863,1868,1871,1874,1877,1884,1892,1898,1901,1905,1907,1911,1913,1917,1920,1923,1925,1927,1929,1932,1935,1938,1941,1947,1951,1955,1958,1960,1963,1971,1975,1978,1981,1984,1987,1990,1994,1997,2000,2004,2009,2012,2015,2018,2019,2021,2027,2030,2033,2034,2039,2045,2047,2056,2060,2063,2064,2070,2074,2077,2082,2089,2092,2095,2102,2103,2105,2113,2116,2120,2124,2127,2129,2133,2140,2145,2150,2154,2159,2162,2166,2169,2174,2178,2180,2186,2189,2192,2198,2204,2207,2212,2215,2217,2223,2226,2229,2235,2238,2242,2248,2252,2256,2260,2265,2267,2270,2274,2278,2279,2280,2283,2287,2291,2295,2301,2303,2311,2318,2321,2327,2332,2335,2342,2347,2351,2352,2353,2355,2356,2359,2361,2364,2367,2373,2374,2377,2380,2385,2389,2394,2397,2399,2400,2402,2403,2407,2412,2415,2418,2424,2429,2433,2436,2440,2446,2452,2454,2456,2458,2463,2470,2475,2478,2483,2486,2489,2491,2497,2502,2505,2511,2515,2521,2524,2527,2531,2534,2540,2543,2548,2552,2557,2560,2564,2565,2567,2572,2574,2582,2588,2591,2595,2600,2602,2604,2610,2615,2617,2619,2625,2629,2631,2635,2641,2645,2649,2650,2653,2654,2661,2665,2674,2678,2682,2689,2693,2698,2702,2706,2712,2715,2719,2722,2723,2730,2733,2738,2744,2747,2751,2755,2757,2758,2761,2765,2768,2771,2778,2784,2790,2794,2799,2804,2809,2812,2814,2817,2823,2826,2831,2836,2839,2842,2847,2849,2853,2859,2866,2872,2879,2883,2887,2889,2897,2900,2905,2907,2910,2915,2916,2917,2920,2924,2929,2933,2935,2937,2942,2944,2947,2949,2952,2957,2961,2964,2968,2971,2973,2975,2976,2981,2985,2989,2992,2994,2997,2999,3002,3006,3008,3015,3018,3021,3023,3028,3035,3040,3046,3049,3053,3056,3060,3063,3069,3074,3076,3079,3085,3089,3093,3095,3098,3104,3107,3109,3116,3118,3123,3129,3135,3137,3141,3146,3149,3152,3157,3163,3165,3172,3174,3180,3184,3189,3196,3199,3203,3206,3209,3218,3222,3226,3230,3231,3236,3242,3244,3245,3247,3253,3255,3258,3260,3261,3268,3271,3274,3279,3284,3289,3292,3299,3302,3306,3309,3312,3313,3319,3325,3329,3330,3333,3340,3344,3346,3351,3354,3357,3359,3361,3367,3375,3379,3383,3386,3392,3395,3398,3404,3409,3413,3417,3421,3427,3431,3438,3443,3448,3452,3455,3457,3458,3463,3468,3472,3480,3488,3491,3495,3500,3503,3507,3512,3517,3523,3527,3532,3537,3541,3544,3547,3550,3555,3558,3559,3563,3569,3574,3575,3579,3583,3591,3595,3601,3608,3613,3616,3621,3624,3627,3630,3635,3638,3641,3646,3652,3656,3662,3665,3669,3671,3676,3680,3684,3687,3694,3698,3701,3705,3710,3711,3715,3720,3726,3731,3733,3739,3743,3747,3753,3756,3758,3763,3768,3770,3774,3779,3781,3787,3790,3792,3795,3800,3804,3811,3816,3817,3821,3827,3831,3833,3837,3839,3844,3847,3852,3854,3859,3862,3863,3865,3867,3875,3880,3886,3891,3894,3895,3899,3902,3906,3909,3916,3919,3925,3931,3937,3939,3943,3947,3949,3956,3958,3960,3963,3970,3972,3976,3978,3979,3980,3984,3985,3991,3996,3997,4002,4007,4015,4021,4024,4027,4032,4038,4041,4044,4048,4054,4063,4067,4072,4076,4079,4083,4088,4093,4099,4102,4107,4110,4114,4118,4123,4126,4132,4134,4136,4140,4142,4147,4151,4154,4161,4165,4169,4173,4176,4179,4182,4186,4190,4192,4199,4200,4201,4204,4207,4212,4214,4218,4222,4227,4228,4233,4236,4242,4248,4253,4256,4260,4264,4271,4275,4278,4280,4281,4284,4292,4296,4298,4302,4308,4311,4313,4316,4317,4321,4326,4328,4330,4336,4341,4346,4351,4357,4360,4364,4370,4375,4379,4383,4390,4392,4395,4397,4401,4405,4410,4413,4417,4421,4424,4427,4433,4435,4441,4445,4450,4453,4459,4462,4464,4468,4474,4477,4484,4488,4490,4494,4497,4501,4506,4511,4514,4520,4525,4527,4529,4530,4534,4537,4539,4542,4545,4547,4551,4553,4558,4561,4568,4572,4578,4582,4587,4590,4596,4602,4608,4613,4617,4623,4627,4633,4636,4637,4641,4644,4651,4654,4659,4664,4667,4670,4674,4679,4682,4683,4686,4694,4698,4702,4708,4711,4716,4721,4724,4730,4734,4742,4746,4749,4753,4758,4762,4763,4765,4769,4772,4776,4780,4782,4784,4790,4792,4794,4798,4803,4807,4809,4817,4822,4824,4828,4833,4835,4842,4845,4847,4848,4852,4857,4860,4863,4866,4868,4872,4876,4878,4880,4883,4887,4889,4894,4895,4898,4902,4903,4905,4911,4915,4919}
Returns: 895
32768
{20102,16280,22852,7452,11120,27874,5977,29104,21953,23104,20670,27550,32355,21308,18258,31296,24960,3213,23494,5626,21970,15941,3361,14813,10689,23921,29752,22985,9097,9098,2769,26761,1996,7502,24166,7787,15353,18808,656,21011,28719,25419,12090,23121,13900,19365,29428,6380,2563,7861,16828,31608,4086,25453,27869,28773,14313,25840,14456,917,30790,11614,20357,3820,1874,17536,18249,10354,18560,17398,14115,14508,6792,1441,8708,26882,19698,10293,2745,25387,16882,24814,3204,10144,9102,4226,13701,4694,6434,21666,10395,31238,5254,22107,14479,12156,7201,24801,15971,32627,26989,23393,24796,15038,18814,5021,23406,11649,26447,24111,3778,22386,1438,27777,17760,9267,12380,22405,6879,21494,5070,16767,23653,14770,29062,6211,1326,28020,6556,27739,10760,3639,24741,189,15048,12316,16617,10715,30960,6319,12200,18905,24249,29771,11587,13056,29182,15501,14644,30849,8835,6441,6401,14541,23371,6479,19285,13289,23228,15669,3744,2860,13705,25651,5294,22311,7250,21828,21216,21335,5191,15520,22692,13980,20206,8821,13350,27233,11672,3010,12050,12717,16634,10129,5023,29765,15767,8149,13310,18771,27082,24165,7331,2060,31313,21412,11210,5110,9831,3460,16094,19851,29843,12984,16500,1827,23930,16133,8120,6436,25108,10943,7239,12172,5850,30894,22400,11818,28039,31388,18076,4059,13119,30223,28374,28747,18697,12206,18201,32479,4241,17683,12511,27791,24439,8652,13290,32127,1885,17796,1715,17006,8484,32363,28555,7434,19949,11258,12429,5490,2157,4989,31366,11855,28030,18626,20805,20460,4789,10882,23994,4624,5661,29497,24707,7996,2621,25666,20900,9026,15777,6673,14395,12845,7528,9668,26411,21407,5706,6414,4579,25057,24529,18165,5732,13069,2432,5301,26612,3533,29141,21367,14313,14930,824,15466,20522,4937,10993,20017,3363,20897,31352,29568,765,26933,17288,2053,7196,11120,17273,450,25838,2090,6796,14910,17240,11306,22517,3042,1540,26561,21383,13614,2594,14123,25102,13413,11286,31085,10627,4994,20973,22932,30298,25978,7252,10592,29532,701,11558,27497,2451,25671,30864,3598,30190,20853,16407,24459,20072,28199,9422,3764,16546,5043,12349,6907,18411,16472,18830,27005,28904,19983,18096,19448,32041,2716,10081,8626,22791,14330,2557,22885,23137,27983,4155,32383,9944,17849,13327,8969,27737,17258,31493,25287,18140,19096,2195,27421,16987,6398,17911,26254,24633,9154,12384,25004,25423,20122,23601,14964,26136,31837,24162,27209,25211,2598,4881,32189,23267,23370,8833,21650,16484,13749,13271,20339,486,19225,28439,24582,25676,27840,17916,788,23507,3256,30039,945,6878,22620,20187,342,27305,25926,7494,4644,9834,6871,23307,32119,22904,14247,32168,29252,3416,2901,17932,18345,17548,14910,22654,17769,29483,8658,21672,9475,32375,14684,16501,29517,26798,5151,22175,13713,20098,30442,11239,13393,16327,17482,9232,4333,17656,22451,22994,21139,3937,16640,27430,25071,25048,12020,3417,31313,13316,14423,25224,27115,27243,6287,17472,4647,14724,23958,5385,29699,27191,29303,11507,13206,14939,25188,6939,24844,31701,9679,16516,31844,24865,17389,13953,5254,5680,4147,1335,4423,22692,19582,25805,11039,14999,32190,7684,19052,5928,18954,7439,850,69,17464,27555,8773,4415,6695,3416,16528,6584,12288,9114,7984,209,19453,19572,4481,4212,4893,25031,4205,3258,14499,5223,8654,5034,26378,22771,5866,15756,4725,14895,16396,22074,4526,26337,4697,19452,3025,14152,24614,6298,32267,28772,11043,30052,21969,14703,17134,6946,22812,2548,20897,8945,22385,19755,11049,21812,25445,4422,11058,20460,7595,22418,10436,28108,26547,31843,1435,15276,9471,13273,8841,4589,1942,17099,2365,5029,15602,26908,26352,25973,11780,25865,669,25112,26110,3311,11390,27341,6321,14171,15290,11754,10866,1838,2615,24064,2203,13264,32188,22553,4810,2961,4259,8116,19016,14443,29552,25430,30190,15744,19427,27777,26160,13773,17683,29244,1517,4778,5978,15660,27106,29399,26105,26800,6567,10462,19302,19525,23124,10713,11387,15579,21481,25507,28077,23976,32745,25529,27841,9297,26743,17946,11385,1114,23718,5543,28372,27083,24464,7577,3499,17233,15644,9669,14474,22545,22619,12683,22972,1432,29827,7008,17344,18046,27343,19736,27471,2643,29827,24351,22889,29610,27014,5891,11226,300,4405,4027,27113,31410,25605,19542,9693,13214,25047,4022,23371,20392,27124,4679,13609,14240,20136,4245,26047,20378,12237,13288,32194,18486,31872,28,14067,4299,21880,16397,29128,98,26262,23564,13497,16257,12119,7168,20218,21752,5881,4321,22398,29688,4686,16239,7237,18897,3643,10262,13591,3578,17201,28192,20460,32486,2764,10855,29791,17048,18989,25574,26298,20931,136,15002,548,10372,2718,1880,21709,28651,12539,3395,32743,12172,8153,22471,22639,22157,29903,525,1267,4024,8037,27389,22402,23594,26356,17164,27199,23692,303,28470,4094,145,16886,28293,31141,2283,3617,17889,1024,24516,24581,28607,30957,18455,21947,27553,10734,17472,28204,19286,10535,22622,19218,527,2346,29985,838,17294,29399,25562,18888,28604,3034,31914,27412,22825,6004,17378,25457,11008,28218,17335,5650,19775,24764,5014,30192,25591,21518,32386,15992,26775,26196,7686,11069,25175,11416,1881,29425,27908,8767,21645,9003,2934,11690,25514,22397,13633,11426,6586,10127,9499,20036,20474,3342,10194,5985,19818,27494,2446,18756,20281,20560,16743,518,9852,30057,8555,20655,23032,37,6973,7812,1705,30350,6073,14852,27142,23640,29190,32573,5376,27911,23741,3108,16104,27894,20943,9964,2945,5156,11284,30540,22452,8936,11115,29396,17498,16819,27281,24481,16088,25140,14303,6083,13131,29005,20564,17106,25651,18034,11856,2669,6052,24083,29615,24896,25119,4599,28912,19347,21357,11108,26946,13127,10705,22577,30068,12414,29738,15610,19935,21264,13220,5039,19844,24654,6597,32521,11953,9078,28607,30819,21428,24212,2068,32443,25632,7293,21412,29329,8568,7115,20363,21428,5115,17889,282,25331,4771,9235,6536,31479,12130,2093,8959,18571,15069,9418,17603,25543,24821,7401,15477,10413,20901,8563,7774,3826,32704,1632,18173,9652,14671,20592,9247,16666,15213,5994,7139,21743,25991,14345,23615,26721,22070,13270,17821,1084,1489,17486,28522,30226,24862,4573,30077,16345,30870,11842,20819,3259,3807,25899,31318,2273,11044,11486,25716,815,21037,31738,13422,19712,11068,2149,9578,23819,7082,30395,9063,20441,20126,18566,2678,31004,11299,25304,19067,22171,29974,21974,25506,22083,3986,8449,18334,1610,2441,1815,10239,28482,30047,8079,6665,1337,1677,13013,15507,19975,14941,4474,13469,4151,25335,32208,24923,5849,6423,27225,6316,21486,27378,16063,4345,27654,5327,2051,21929,31475,10779,28638,16253,10871,21453,4658,27181,263,11028,18129,1239,8131,15717,14527,8942,31759,28965,11100,24422,31268,20551,6391,13327,11064,12376,25960,23336,21229,17805,12915,26958,15568,26777,31449,2577,21479,13580,29710,27039,23376,10326,21951,23041,6186,3940,2408,10914,12827,23336,27472,29915,2268,25177,12670,20602,14952,10481,15414,30527,5741,31720,1743,22154,16616,2570,9907,27241,20160,8349,16792,32147,13460,21739,8975,3501,28869,10676,7327,7089,28468,10709,8931,7191,15878,32623,9490,2753,18453,16645,27565,23214,27307,1082,24055,4508,24944,16347,25912,23514,11366,9481,16300,17605,16649,22932,29786,1126,2265,25468,15359,31467,25718,8186,6783,32430,9196,20034,3919,4564,8607,2202,12934,26724,28309,31811,18249,24616,17395,19198,17273,10111,13968,16133,1966,20640,30403,23651,392,29385,14216,24793,13745,17168,11614,28023,13793,14991,28221,25417,21095,28640,22865,28311,26075,15858,3594,21059,27841,10840,24423,16142,12777,14687,6508,24718,13222,32346,23498,19416,1256,15009,15860,8696,20622,17912,26089,613,19516,18205,13357,22482,21315,29549,9342,7132,4414,8359,1011,25629,5917,27639,8792,25961,27775,5510,11709,6156,10853,28694,29763,18945,27480,26635,22872,12858,24639,11693,24758,561,8274,31318,19093,294,21924,14463,22946,28267,14044,2741,31848,15989,20983,17813,14593,16468,723,27946,25339,22386,2981,9730,20619,14234,9310,20115,29999,30543,31065,7566,32037,22210,30875,11759,15892,18345,30785,20919,3714,5251,12191,22602,22222,31699,12266,11687,29550,11803,67,21448,18803,23389,15396,14201,15190,24363,4686,18005,32080,8283,17795,29548,7544,25488,22370,1142,27948,7672,20714,4466,22092,18368,11082,5304,2038,17344,11951,16807,19358,11312,13327,5189,15462,12851,4552,11298,2004,16431,6755,2334,20495,13590,30610,10415,15600,22732,21218,20081,16999,6156,10405,29417,8120,10303,20636,26511,7232,27110,15168,14129,2975,14922,6520,9743,11308,25412,8128,29967,32718,31274,21736,12171,20573,17639,24490,21363,9712,9854,3438,3964,3699,8789,22478,9040,13095,14263,32112,8640,22967,11572,22005,27941,5040,23943,24550,16957,2129,13803,8863,1504,29123,22481,23888,20008,6122,13832,8031,18341,18462,4002,19848,9070,578,22752,16955,11000,20674,29857,9947,27323,564,5880,22179,7369,16483,17290,4865,6315,18871,6318,3202,3551,24335,31271,16986,12946,18753,13478,32212,22569,11903,23883,13831,885,18731,32370,29525,13936,28315,5459,22862,3475,13694,31236,20674,10983,28858,1439,25302,9504,7347,10332,12588,20773,18950,9116,5680,16535,490,16896,23514,14327,5529,12739,7733,11063,17165,5037,23104,32671,5840,25375,22708,26135,29544,4555,6023,6379,11337,3029,3060,9321,11059,22317,4646,8627,9234,9007,7816,28499,27789,25479,18450,31546,8596,31656,2543,7666,24170,3625,9717,22253,26021,13687,24724,28154,15859,16772,25093,5640,26963,4130,24462,10622,1750,13286,19170,30875,23515,24461,9408,26196,29450,29180,13068,14449,13402,2320,16838,2972,4744,12188,16741,19545,10153,3340,1072,27116,23403,29511,3921,12370,29422,16771,27545,21149,13074,20723,7384,12055,2910,560,26118,15031,4260,2198,17254,18832,25524,15015,2843,5636,31124,31988,28569,30882,6098,20204,11940,14015,14477,5933,2718,9700,28449,1819,17134,7788,20306,19339,7080,22448,17941,17027,9071,19530,17431,5147,18928,11551,3949,22221,70,13808,2753,21882,1997,26210,15778,8098,17162,13957,27295,17011,20316,22011,1283,25426,25961,24857,24856,29394,31031,14168,1807,20731,21021,17066,8638,516,21958,1882,6002,31932,2224,16448,29796,10736,20890,6959,27457,24154,23700,23982,20888,28310,3421,21017,8926,30455,18441,22908,15895,3827,29140,24209,16152,25151,27485,10854,1456,3998,26742,17233,12785,14240,28918,2825,5657,21428,268,16571,23459,16378,11952,24623,23096,22648,27889,3877,25676,9310,32016,26163,5722,18498,22612,25223,721,23106,23751,12826,26081,14629,18970,21512,24951,12733,8967,12988,6881,3035,21192,28148,28835,2635,1320,32407,24623,32635,29447,13961,6230,21124,31779,23238,7777,11874,16946,13873,22745,5989,6238,1942,17477,18665,32125,5527,2837,1935,32326,32574,13124,601,18472,4132,4391,28432,25665,29497,12346,17572,1357,5970,26523,20521,2668,29891,22848,24411,21425,9076,10212,23960,17584,21751,16617,1643,21561,20044,11388,15077,20394,26896,28522,5399,865,29714,10044,1837,18650,32584,10818,10681,3665,14165,6759,22261,17076,28898,706,20163,11260,25665,17633,24954,3319,24012,19482,1408,8919,20421,12829,17925,27098,15975,14662,10011,17306,28448,15930,28098,2190,6134,893,12388,16798,1094,32473,11924,15756,16418,6533,11479,28996,23476,8472,29557,4406,15411,30848,5486,5359,14361,27979,20172,23893,26709,28333,6053,278,10349,16610,31566,20948,13205,10384,22862}
{3,6,7,9,11,12,13,15,17,20,22,24,26,27,30,32,35,38,39,40,42,45,49,53,55,58,59,60,62,64,66,67,70,71,75,78,82,83,86,87,88,91,94,96,98,99,103,104,105,108,111,114,116,117,118,120,123,124,125,126,130,132,134,136,139,141,142,144,146,147,150,151,153,156,158,159,162,163,165,166,169,170,172,174,175,177,178,179,180,183,185,186,188,189,190,192,195,196,198,199,201,205,207,209,210,211,214,217,220,225,226,227,228,230,233,234,236,237,239,240,241,242,243,245,246,247,249,251,254,255,257,259,262,265,267,268,272,274,277,280,281,283,285,288,289,291,293,296,298,301,304,305,306,309,310,313,316,319,320,322,325,328,329,330,331,333,334,337,339,341,344,346,348,349,350,351,355,357,359,361,362,365,368,369,372,374,375,376,378,379,380,383,385,386,388,389,390,394,395,398,399,400,403,406,407,409,410,414,416,418,420,422,424,425,428,430,432,434,436,438,440,441,442,443,444,447,449,451,452,453,456,457,460,461,462,463,464,468,471,473,475,476,478,479,480,481,482,483,486,488,489,490,491,494,498,501,503,505,507,509,511,513,515,517,519,522,525,527,530,533,534,536,540,541,543,545,547,550,552,554,558,559,561,562,563,565,568,569,573,574,576,578,579,582,585,587,589,590,591,594,595,597,599,603,604,607,608,610,613,614,615,617,619,620,621,623,624,625,626,628,630,632,635,638,639,641,645,647,649,650,652,653,658,660,661,662,664,665,668,670,671,673,674,675,678,679,681,683,684,686,690,694,697,700,701,704,705,709,711,713,715,716,719,722,725,727,728,730,733,736,740,741,744,746,750,752,755,756,757,761,767,770,772,774,775,778,781,784,787,788,789,790,791,793,794,797,799,802,803,804,805,806,808,809,812,815,816,817,818,819,822,824,829,830,831,832,833,834,836,838,841,843,845,849,850,852,854,857,860,861,862,863,865,866,868,871,872,874,877,878,879,882,883,885,888,890,892,895,898,899,901,903,904,906,908,912,914,916,917,918,920,921,922,924,925,926,929,930,932,934,935,937,938,940,941,945,947,948,949,951,953,955,956,958,961,962,964,967,968,970,971,973,976,979,981,982,984,987,988,992,994,996,998,1000,1002,1005,1006,1008,1009,1011,1012,1018,1022,1024,1028,1031,1032,1034,1035,1037,1039,1040,1042,1045,1046,1049,1050,1053,1054,1055,1056,1061,1064,1065,1068,1071,1072,1074,1076,1078,1080,1082,1083,1086,1087,1090,1093,1096,1097,1100,1103,1104,1107,1109,1111,1114,1118,1121,1122,1123,1124,1125,1128,1130,1133,1137,1140,1142,1144,1146,1148,1151,1153,1154,1155,1158,1161,1162,1164,1168,1170,1171,1174,1177,1179,1180,1183,1186,1189,1192,1196,1197,1198,1199,1200,1203,1204,1205,1206,1207,1208,1211,1213,1214,1216,1220,1221,1223,1225,1226,1227,1229,1230,1233,1235,1237,1242,1244,1246,1250,1251,1255,1256,1258,1260,1263,1265,1267,1269,1270,1272,1276,1278,1280,1281,1283,1286,1287,1289,1292,1293,1295,1297,1300,1303,1304,1306,1310,1311,1314,1316,1317,1320,1324,1328,1330,1333,1336,1337,1338,1339,1340,1341,1345,1346,1348,1350,1352,1355,1358,1361,1364,1367,1369,1370,1372,1373,1378,1380,1382,1386,1387,1390,1392,1395,1396,1397,1400,1402,1406,1407,1411,1412,1414,1416,1420,1421,1423,1427,1428,1430,1432,1433,1437,1439,1441,1442,1443,1445,1448,1453,1456,1458,1461,1463,1464,1468,1469,1471,1473,1474,1475,1478,1480,1483,1484,1485,1488,1490,1493,1494,1496,1501,1504,1507,1509,1511,1513,1518,1521,1525,1527,1530,1531,1533,1535,1537,1538,1539,1541,1544,1546,1548,1550,1555,1559,1562,1564,1565,1566,1569,1572,1574,1575,1577,1578,1580,1581,1582,1585,1587,1588,1589,1591,1593,1594,1596,1597,1598,1599,1601,1604,1605,1608,1613,1614,1615,1617,1621,1624,1626,1627,1632,1633,1636,1637,1639,1643,1644,1647,1650,1652,1654,1655,1656,1659,1660,1664,1666,1667,1668,1669,1671,1672,1673,1675,1676,1678,1680,1681,1684,1688,1692,1693,1695,1697,1700,1703,1705,1706,1708,1710,1711,1714,1718,1720,1722,1723,1724,1726,1730,1732,1736,1739,1741,1743,1744,1746,1748,1750,1752,1753,1757,1758,1759,1763,1766,1768,1773,1775,1777,1778,1781,1782,1785,1786,1788,1791,1794,1798,1801,1805,1809,1811,1812,1814,1815,1819,1821,1822,1825,1826,1828,1829,1832,1834,1836,1837,1838,1839,1841,1842,1844,1847,1848,1849,1851,1855,1857,1858,1860,1862,1864,1867,1870,1872,1874,1876,1878,1880,1883,1884,1886,1891,1892,1894,1897,1899,1901,1903,1905,1906,1908,1909,1914,1917,1918,1919,1921,1925,1930,1931,1932,1934,1935,1938,1940,1943,1945,1946,1947,1950,1952,1955,1957,1958,1961,1962,1963,1965,1969,1970,1973,1975,1978,1979,1982,1983,1985,1988,1989,1990,1992,1993,1995,1997,1998,1999,2000,2002,2004,2005,2007,2009,2012,2015,2020,2021,2023,2026,2028,2029,2030,2033,2034,2035,2038,2039,2042,2045,2048,2049,2050,2051,2053,2056,2058,2061,2063,2064,2067,2068,2069,2070,2072,2075,2079,2081,2084,2085,2087,2088,2089,2090,2091,2092,2093,2094,2097,2100,2105,2108,2111,2112,2115,2117,2118,2120,2122,2123,2126,2128,2129,2130,2132,2134,2137,2139,2141,2143,2147,2149,2150,2153,2154,2155,2157,2160,2161,2163,2165,2168,2171,2173,2175,2176,2178,2182,2183,2186,2187,2189,2190,2192,2196,2197,2198,2200,2202,2203,2204,2205,2207,2208,2211,2215,2216,2217,2220,2221,2222,2224,2225,2227,2229,2232,2233,2234,2236,2237,2240,2242,2244,2246,2248,2249,2251,2252,2254,2256,2258,2260,2262,2266,2270,2272,2275,2277,2278,2280,2282,2283,2284,2285,2286,2288,2290,2291,2296,2297,2298,2301,2306,2309,2312,2315,2317,2318,2321,2322,2323,2324,2326,2329,2330,2332,2333,2336,2337,2340,2342,2344,2345,2347,2348,2354,2355,2357,2358,2360,2363,2365,2368,2370,2372,2375,2377,2379,2381,2382,2383,2384,2385,2386,2387,2389,2391,2394,2398,2400,2402,2403,2404,2406,2409,2412,2413,2415,2416,2419,2423,2424,2425,2431,2433,2434,2436,2437,2439,2442,2443,2444,2447,2448,2451,2453,2455,2457,2460,2462,2464,2466,2469,2471,2473,2475,2478,2480,2481,2483,2487,2488,2490,2491,2492,2496,2499,2502,2504,2507,2509,2510,2511,2513,2514,2516,2518,2522,2525,2529,2530,2531,2532,2533,2535,2536,2537,2538,2540,2543,2545,2547,2550,2552,2554,2555,2558,2560,2562,2563,2564,2565,2568,2570,2571,2573,2576,2578,2581,2585,2587,2588,2589,2591,2593,2594,2595,2597,2599,2600,2603,2604,2605,2606,2607,2608,2610,2612,2614,2619,2621,2622,2626,2628,2631,2633,2635,2637,2638,2640,2642,2646,2648,2649,2651,2654,2655,2659,2660,2661,2662,2665,2667,2668,2672,2674,2676,2677,2678,2681,2683,2685,2690,2692,2693,2694,2696,2699,2701,2703,2706,2707,2709,2710,2714,2716,2717,2719,2722,2725,2728,2730,2732,2736,2738,2742,2743,2745,2747,2748,2750,2753,2755,2757,2759,2762,2764,2767,2768,2770,2772,2774,2775,2778,2781,2783,2785,2786,2788,2790,2793,2796,2797,2799,2802,2804,2808,2809,2810,2811,2812,2815,2816,2817,2818,2820,2822,2823,2826,2827,2829,2830,2832,2833,2834,2838,2839,2841,2843,2846,2848,2850,2852,2853,2854,2856,2857,2860,2861,2864,2868,2872,2873,2878,2879,2883,2884,2885,2887,2889,2890,2891,2894,2898,2903,2905,2908,2910,2912,2914,2916,2918,2919,2921,2925,2926,2927,2928,2930,2932,2934,2935,2938,2940,2942,2944,2945,2946,2948,2952,2955,2956,2958,2959,2961,2964,2966,2967,2969,2971,2974,2978,2980,2981,2982,2983,2985,2986,2988,2989,2990,2992,2995,2996,2998,3000,3001,3003,3004,3005,3007,3008,3009,3011,3014,3016,3017,3019,3022,3025,3027,3030,3031,3037,3040,3043,3045,3049,3052,3053,3055,3057,3059,3060,3061,3064,3068,3070,3072,3074,3075,3077,3079,3080,3081,3082,3085,3086,3088,3089,3092,3094,3098,3099,3100,3101,3104,3105,3106,3109,3110,3112,3113,3114,3115,3116,3117,3119,3120,3122,3124,3126,3127,3128,3129,3132,3137,3138,3140,3141,3144,3148,3149,3150,3151,3152,3154,3155,3156,3158,3160,3163,3165,3166,3169,3170,3171,3172,3175,3176,3177,3180,3181,3182,3184,3186,3187,3191,3193,3197,3199,3201,3203,3204,3206,3207,3208,3209,3211,3215,3218,3219,3222,3225,3227,3229,3230,3235,3236,3238,3242,3243,3245,3247,3253,3255,3256,3258,3260,3263,3264,3265,3269,3271,3274,3275,3278,3279,3280,3281,3282,3283,3285,3288,3289,3292,3296,3297,3298,3300,3302,3303,3304,3306,3307,3310,3311,3314,3316,3318,3320,3324,3325,3328,3329,3331,3335,3337,3338,3340,3342,3344,3347,3349,3352,3354,3355,3356,3357,3358,3360,3361,3363,3365,3366,3367,3368,3370,3372,3373,3375,3378,3379,3383,3384,3388,3389,3390,3391,3394,3398,3399,3402,3405,3409,3411,3415,3418,3420,3421,3424,3426,3427,3431,3433,3437,3438,3441,3446,3447,3448,3449,3452,3455,3457,3461,3462,3466,3468,3470,3472,3476,3478,3480,3482,3483,3485,3486,3489,3490,3491,3493,3496,3500,3502,3505,3507,3511,3512,3514,3517,3519,3522,3524,3526,3527,3530,3533,3536,3538,3540,3543,3547,3549,3552,3553,3556,3559,3561,3563,3565,3568,3569,3570,3571,3573,3575,3576,3579,3581,3582,3584,3585,3590,3592,3594,3595,3597,3598,3599,3601,3603,3604,3605,3606,3607,3611,3613,3617,3618,3621,3625,3626,3627,3631,3632,3634,3636,3637,3638,3641,3642,3644,3645,3650,3651,3654,3656,3658,3663,3664,3665,3668,3670,3673,3674,3680,3683,3685,3687,3688,3690,3693,3695,3698,3699,3702,3707,3708,3710,3711,3713,3716,3717,3720,3721,3723,3725,3727,3732,3733,3736,3737,3738,3740,3743,3745,3748,3752,3754,3756,3759,3760,3762,3764,3765,3766,3770,3771,3772,3775,3776,3778,3779,3781,3782,3783,3785,3786,3789,3792,3793,3795,3797,3801,3803,3805,3807,3808,3811,3813,3815,3818,3820,3822,3825,3828,3831,3832,3833,3834,3836,3837,3839,3843,3846,3848,3849,3850,3853,3856,3857,3860,3861,3864,3865,3867,3871,3873,3875,3876,3878,3880,3882,3884,3886,3888}
Returns: 1345
65536
{65475,18883,56832,57270,45767,47574,4665,56130,63937,56939,12435,38345,60604,31732,55942,40985,17039,42463,21685,62361,41231,40897,14064,45725,21142,1001,44791,16796,38968,28015,32598,34445,46603,54284,60923,53190,17763,32857,59494,57381,20197,65335,48543,57953,11474,50049,61515,37324,15345,13643,52611,47840,61419,50770,42832,21078,62996,17242,52213,50621,45029,674,38234,54456,29864,49068,13894,13913,47129,60667,15692,35409,27135,1165,8060,39390,41209,59434,32593,47278,59660,45786,20075,10792,23721,29965,23300,52176,1329,13651,21557,59824,56895,14248}
{15,27,38,47,58,68,83,102,114,124,130,146,162,180,192,205,219,231,243,251,262,273,291,305,321,332,344,369,386,398,409,422,436,449,458,471,485,498,514,531,543,560,570,580,590,603,612,629,641,654,669,684,698,710,721,738,748,767,779,792,807,818,829,843,857,878,893,905,916,930,941,958,972,983,995,1011,1022,1035,1053,1062,1077,1095,1109,1132,1147,1160,1175,1193,1201,1215,1224,1236,1257,1270}
Returns: 69
64
{53,4,16,64,32,53,20,43,60,12,49,30,46,39,61,39,11,16,60,54,55,59,23,47,46,4,27,28,61,58,19,3,30,7,4,63,20,39,37,40,34,25,6,9,42,26,53,22,52,54,40,14,41,45,50,21,52,26,25,47,16,34,35,14,49,38,57,32,20,36,13,55,52,18,1,9,47,2,26,27,42,10,15,22,23,17,55,41,6,61,8,17,47,2,12,26,18,22,3,53,49,43,2,45,41,8,56,63,30,2,52,9,44,24,16,57,3,30,26,7,21,20,56,50,2,25,30,28,22,6,43,10,24,17,26,18,1,5,53,5,32,59,11,20,19,5,8,10,54,46,12,41,55,30,2,17,27,51,21,64,55,35,30,8,19,32,46,4,29,20,10,28,10,44,38,62,12,24,9,60,17,37,42,34,1,3,45,48,34,16,44,31,22,39,53,55,31,7,14,53,32,15,59,38,23,43,40,21,29,18,37,26,37,46,57,24,50,43,24,21,22,43,57,1,8,51,3,60,14,30,7,57,39,8,51,52,47,39,57,5,3,22,10,28,32,4,49,29,53,45,56,34,28,64,32,58,58,6,57,59,56,55,51,23,14,57,8,34,58,3,57,48,25,28,40,9,7,9,27,14,43,7,42,57,27,46,19,11,35,56,24,57,64,64,35,62,3,7,17,5,12,52,14,37,16,64,47,35,1,48,58,8,10,45,13,49,49,33,33,27,1,12,48,22,41,50,14,58,44,27,16,38,26,62,56,23,57,20,22,44,50,59,10,40,8,34,47,23,44,21,20,63,46,12,54,24,51,22,22,62,31,61,37,14,1,53,58,47,30,7,56,52,39,62,10,31,22,36,19,9,29,28,38,14,64,62,36,3,22,21,31,1,32,18,18,37,28,21,19,45,46,35,60,58,16,61,26,22,54,42,52,20,52,2,62,9,57,29,44,61,63,24,48,42,63,21,23,28,46,36,5,17,47,12,14,29,12,22,36,28,12,45,44,44,52,57,64,16,9,48,58,13,36,61,38,4,53,49,18,45,22,44,47,29,14,31,46,28,3,54,29,47,20,3,29,49,42,20,45,43,30,34,4,31,41,21,62,16,31,36,57,34,24,63,49,35,53,21,3,39,18,40,12,8,29,12,50,2,6,23,21,31,9,56,48,32,20,58,34,28,64,49,30,54,52,11,42,37,51,61,11,64,6,42,40,3,19,47,43,34,50,21,20,19,40,11,2,35,11,43,17,44,22,36,8,3,10,2,56,64,56,64,19,44,38,25,5,15,32,35,60,44,3,26,37,12,45,29,33,28,45,1,19,57,63,38,19,55,23,12,26,46,29,62,63,47,14,45,16,46,22,12,59,25,61,46,1,44,44,53,40,40,48,48,60,56,51,31,46,42,53,16,15,19,59,50,40,36,30,59,24,14,46,36,29,20,27,30,14,16,64,14,5,37,25,27,63,53,63,44,27,53,58,10,19,26,23,40,4,24,47,22,47,39,21,59,7,31,50,27,32,49,53,27,52,27,58,47,22,63,38,34,6,29,22,46,40,41,24,10,30,61,34,55,18,44,7,62,41,5,31,39,10,28,18,16,53,54,9,27,50,34,58,32,46,22,18,28,41,24,21,51,36,40,58,51,39,20,63,24,45,34,6,23,60,59,32,7,39,11,2,15,63,48,29,52,25,8,20,43,55,7,38,23,63,38,8,8,8,37,50,24,53,54,36,25,51,41,21,47,41,53,23,13,61,31,59,13,26,52,51,60,45,54,24,60,61,25,35,54,33,28,29,46,43,8,41,22,61,25,62,8,7,56,57,13,31,48,40,1,38,23,37,29,45,57,26,2,11,40,55,39,26,30,34,57,27,31,40,33,5,14,3,53,1,64,38,43,64,42,64,31,62,47,46,1,52,50,17,57,64,3,30,43,18,58,51,33,37,64,28,49,52,30,57,28,28,38,14,44,41,41,28,17,32,2,46,9,3,36,41,9,54,49,12,63,49,58,20,1,57,11,47,49,33,14,63,23,1,6,7,12,36,50,27,20,17,62,52,16,24,12,2,41,52,50,7,40,59,11,34,39,38,22,31,26,18,52,52,45,53,46,13,35,30,33,50,56,49,35,38,28,53,23,40,40,43,45,57,30,5,41,52,26,54,43,40,40,11,47,52,41,21,18,25,22,32,36,22,50,34,2,58,10,56,26,30,5,59,53,1,1,43,37,9,58,32,3,9,15,48,46,45,56,44,21,1,21,13,7,43,7,61,5,56,25,5,34,51,20,17,20,40,40,31,57,64,39,2,37,14,13,50,7,60,19,19,33,44,51,60,7,17,54,26,20,25,64,60,22,47,55,16,47,21,54,2,39,42,4,49,1,49,9,18,26,32,7,36,21,21,64,23,8,50,1,35,57,38,15,1,33,10,37,9,57,29,9,22,45,37,57,25,42,10,59,45,14,61,61,60,52,33,1,18,5,42,3,62,32,51,40,22,53,54,5,9,46,27,43,52,9,9,22,37,26,12,49,35,19,40,32,14,55,59,45,47,33,61,12,63,36,38,5,1,20,54,15,48,38,26,38,25,10,38,61,4,5,22,21,64,55,15,5,2,32,16,2,16,63,26,27,49,44,16,10,6,53,11,9,28,54,21,21,6,49,16,27,51,62,17,17,63,18,34,53,42,35,8,38,30,47,49,32,43,22,13,49,43,46,40,12,36,33,60,17,41,41,60,53,29,45,31,57,28,57,28,49,4,34,37,21,58,36,24,12,55,51,3,55,23,50,1,31,32,24,21,45,24,3,47,5,7,17,26,7,47,4,14,26,9,48,26,38,4,3,1,60,5,24,39,41,51,37,31,24,5,10,34,58,33,14,57,36,16,24,36,47,33,38,3,29,20,47,6,29,45,60,60,36,54,51,15,53,40,53,11,26,14,4,30,36,32,52,1,4,61,1,5,53,43,21,49,52,15,53,54,11,26,52,18,24,45,62,32,20,32,11,7,25,54,36,11,29,51,52,39,64,26,15,28,31,35,61,57,52,56,8,52,63,30,63,35,32,56,60,1,56,39,9,23,51,3,24,8,19,47,29,42,52,38,19,26,50,33,9,56,45,51,33,47,8,53,46,31,23,7,63,36,28,11,24,27,23,31,45,62,60,48,37,45,40,17,59,22,63,41,57,42,28,44,11,44,10,31,38,11,35,46,10,27,15,26,9,55,62,2,51,28,46,50,9,61,17,11,59,40,64,49,10,25,37,6,7,6,24,4,9,21,54,63,60,1,33,36,64,11,47,47,44,35,11,3,5,50,20,33,61,27,9,47,40,31,42,35,6,7,47,35,56,58,36,48,15,48,21,26,54,62,26,56,10,62,54,55,13,27,42,45,41,42,62,53,58,54,35,49,50,9,46,25,22,59,3,12,31,7,42,48,6,22,63,32,5,46,35,57,42,59,6,16,57,16,41,41,55,27,21,13,6,36,48,56,38,33,34,64,10,6,42,26,9,36,35,60,54,8,42,41,20,22,18,7,29,40,19,61,9,62,9,55,56,57,41,37,53,18,10,45,32,46,24,15,11,54,29,54,12,59,53,1,43,15,60,64,47,26,51,6,8,2,38,18,46,63,22,18,20,56,21,14,24,62,29,39,2,41,38,16,8,49,57,24,54,20,17,17,57,27,41,22,64,15,5,56,10,43,5,60,35,52,11,48,34,53,23,61,34,58,8,4,19,51,62,44,52,27,37,48,9,60,16,48,5,53,43,26,2,29,30,7,46,37,31,55,3,46,36,43,58,53,16,39,26,44,55,57,5,48,21,3,20,10,25,7,27,26,3,53,8,40,12,25,17,60,42,51,63,3,16,17,34,43,25,43,1,45,50,48,21,18,14,63,46,60,55,15,45,59,44,14,2,37,44,20,59,31,2,8,25,8,8,45,58,60,34,34,35,12,11,39,37,29,42,20,10,51,32,26,19,64,29,13,19,19,12,27,50,34,31,35,27,13,29,3,55,47,53,30,33,15,56,45,23,12,25,46,18,6,23,11,42,28,21,23,52,11,1,31,47,10,13,1,57,59,29,22,6,29,35,22,6,36,35,35,24,4,35,64,13,38,15,21,55,60,20,4,28,6,4,12,13,34,46,3,54,54,56,45,53,41,2,36,53,49,19,42,12,47,45,35,14,9,16,13,34,10,49,34,57,43,40,54,60,31,17,22,41,22,50,47,53,8,17,12,40,43,38,29,21,44,22,4,60,45,62,6,58,61,56,4,57,55,24,33,18,25,19,41,64,47,47,10,40,28,21,25,5,2,25,29,35,11,38,38,41,32,31,3,11,60,23,36,33,46,43,20,34,11,19,49,38,39,1,40,63,29,21,4,60,28,37,47,22,25,5,40,49,41,62,59,6,13,33,26,55,27,5,61,41,44,55,2,40,28,21,61,41,14,35,48,56,34,35,38,54,64,10,43,51,45,21,33,56,22,28,24,57,43,6,36,7,18,61,52,54,30,34,23,18,14,49,53,29,25,13,34,45,46,20,58,19,55,13,12,15,48,32,64,42,6,15,48,7,39,34,23,47,52,53,14,47,40,58,55,29,14,1,23,33,27,57,13,16,1,7,33,48,7,8,4,34,11,20,61,2,47,16,60,59,51,63,55,33,3,56,18,23,15,29,47,19,14,61,19,41,19,2,25,33,10,48,25,64,13,56,60,61,30,42,10,59,37,3,48,31,24,44,21,6,58,42,50,18,63,33,20,15,56,64,9,60,45,5,57,29,40,5,43,49,58,22,34,4,1,4,50,56,59,57,10,2,20,18,3,62,64,62,26,44,55,7,12,56,59,38,54,22,39,43,23,12,19,41,25,42,51,15,64,31,54,5,17,18,55,45,46,27,64,47,52,56,35,48,42,62,53,17,24,34,50,17,47,13,6,21,60,32,47,16,27,14,46}
{2,4,5,6,10,11,14,17,21,23,25,26,27,28,29,31,34,37,40,42,44,46,47,48,51,52,55,56,57,60,62,64,65,68,70,73,75,76,78,82,84,85,87,89,90,94,96,98,100,102,104,105,107,108,111,114,117,121,124,125,126,128,129,132,135,136,139,143,146,147,148,149,152,153,154,156,158,160,161,165,166,167,169,171,172,174,175,179,181,183,186,188,190,191,193,195,197,198,200,202,208,211,212,213,214,218,220,223,224,228,230,231,233,234,236,238,240,243,246,248,249,250,253,255,257,259,261,262,263,265,266,268,270,273,275,278,281,283,285,286,287,289,293,294,295,297,298,299,301,303,307,309,310,311,312,314,317,322,323,325,327,330,332,335,337,339,340,342,343,345,347,348,350,353,355,359,360,362,363,365,366,367,368,372,373,376,378,379,380,382,383,384,386,388,391,393,394,395,397,400,402,403,404,408,410,411,412,413,416,418,421,425,429,430,431,432,438,440,441,443,447,449,451,453,454,455,456,460,462,463,465,467,469,470,471,472,473,474,475,478,480,483,487,489,491,493,498,500,504,506,507,510,512,515,517,519,520,522,524,525,527,529,530,535,538,541,544,546,547,549,550,551,552,555,556,558,559,560,561,564,565,566,567,569,572,573,575,577,580,581,584,587,588,589,592,593,595,598,601,603,605,606,608,609,610,613,614,615,618,619,622,624,625,628,629,630,633,635,636,640,642,643,644,645,647,648,649,651,653,654,657,659,661,662,664,666,669,673,674,675,676,681,683,684,685,686,688,692,696,698,699,701,702,705,706,709,711,714,716,718,720,722,723,726,727,729,731,733,737,739,740,743,745,747,748,752,754,758,759,761,763,765,768,770,771,773,774,776,779,780,781,783,784,785,787,790,792,794,795,797,798,799,800,801,803,804,806,807,809,811,813,815,818,819,821,822,823,826,827,828,830,832,833,834,835,837,838,839,841,842,844,845,846,847,849,850,851,852,853,855,856,858,860,861,862,864,867,871,872,873,878,881,883,885,886,888,892,898,901,902,904,906,909,910,911,913,917,919,922,923,924,926,927,931,932,933,934,936,938,942,944,947,949,951,954,955,957,959,961,963,965,966,970,972,975,976,978,979,980,981,985,988,992,994,995,996,998,1001,1002,1003,1004,1006,1007,1009,1011,1013,1015,1017,1018,1020,1022,1023,1025,1028,1030,1031,1032,1036,1039,1041,1044,1048,1049,1052,1053,1054,1057,1058,1059,1061,1062,1064,1065,1066,1068,1071,1072,1073,1074,1075,1079,1080,1083,1084,1088,1089,1090,1094,1097,1099,1102,1103,1104,1105,1106,1108,1109,1112,1114,1115,1118,1120,1125,1126,1128,1129,1130,1132,1135,1136,1137,1138,1140,1141,1145,1146,1147,1149,1153,1154,1155,1156,1159,1161,1162,1164,1166,1168,1170,1172,1173,1174,1175,1177,1180,1183,1186,1187,1189,1190,1191,1192,1194,1196,1197,1198,1201,1202,1203,1206,1207,1209,1211,1212,1215,1218,1222,1223,1224,1226,1227,1228,1231,1234,1235,1236,1239,1242,1243,1246,1248,1250,1253,1254,1258,1261,1263,1268,1270,1272,1274,1275,1276,1278,1280,1281,1282,1283,1284,1286,1288,1290,1292,1294,1297,1298,1299,1302,1308,1310,1311,1313,1316,1317,1319,1321,1323,1326,1329,1330,1331,1332,1334,1335,1336,1338,1339,1340,1342,1347,1348,1350,1351,1353,1356,1357,1361,1364,1365,1368,1370,1372,1374,1377,1378,1379,1380,1383,1384,1385,1386,1387,1389,1391,1393,1395,1398,1400,1402,1405,1409,1411,1412,1414,1415,1416,1419,1421,1427,1428,1430,1431,1434,1436,1438,1440,1442,1444,1448,1449,1451,1452,1453,1456,1457,1458,1460,1461,1463,1466,1470,1471,1473,1474,1478,1481,1482,1485,1486,1487,1488,1489,1491,1492,1495,1498,1500,1501,1503,1504,1508,1509,1510,1511,1513,1515,1519,1523,1527,1528,1532,1533,1535,1536,1539,1541,1545,1547,1550,1551,1552,1555,1556,1558,1561,1563,1566,1567,1570,1573,1576,1577,1578,1582,1584,1586,1588,1589,1593,1594,1595,1596,1599,1600,1603,1604,1605,1606,1609,1611,1612,1613,1614,1619,1620,1622,1624,1625,1627,1630,1632,1633,1635,1636,1639,1640,1642,1644,1645,1646,1650,1651,1652,1653,1654,1656,1657,1659,1660,1663,1665,1666,1667,1670,1672,1674,1675,1676,1678,1679,1681,1682,1686,1687,1688,1689,1694,1695,1696,1697,1698,1699,1702,1706,1707,1708,1712,1715,1717,1718,1721,1722,1723,1725,1726,1727,1730,1732,1733,1734,1736,1737,1738,1739,1740,1741,1742,1744,1745,1749,1751,1754,1756,1759,1760,1761,1763,1764,1767,1769,1771,1772,1773,1775,1777,1778,1779,1780,1782,1783,1785,1788,1789,1791,1792,1793,1795,1797,1798,1801,1803,1804,1808,1811,1816,1818,1821,1822,1823,1825,1827,1832,1834,1836,1838,1840,1842,1844,1846,1849,1850,1851,1852,1854,1855,1856,1858,1862,1864,1869,1870,1871,1872,1874,1875,1877,1878,1880,1882,1883,1884,1885,1889,1890,1891,1894,1896,1897,1898,1900,1901,1903,1904,1905,1908,1909,1910,1911,1912,1914,1915,1919,1921,1926,1928,1929,1932,1933,1934,1936,1938,1939,1942,1943,1944,1947,1951,1954,1955,1957,1961,1963,1965,1966,1967,1969,1971,1974,1975,1978,1979,1980,1984,1985,1986,1989,1990,1991,1993,1996,1998,2000,2001,2004,2007,2009,2011,2017,2018,2022,2024,2026,2028,2029,2031,2033,2034,2035,2039,2040,2041,2042,2044,2045,2046,2047,2050,2051,2053,2055,2058,2060,2061,2063,2064,2065,2069,2070,2071,2072,2074,2075,2076,2077,2079,2081,2083,2085,2087,2088,2090,2091,2092,2093,2094,2095,2097,2099,2101,2104,2108,2113,2117,2119,2120,2121,2124,2125,2129,2130,2133,2135,2136,2139,2142,2144,2145,2146,2149,2150,2151,2154,2156,2157,2158,2159,2161,2162,2164,2166,2168,2170,2172,2173,2176,2177,2178,2180,2182,2184,2185,2188,2190,2193,2196,2199,2202,2204,2207,2208,2211,2213,2214,2216,2219,2225,2228,2230,2231,2232,2233,2235,2237,2238,2239,2241,2243,2244,2245,2247,2249,2251,2253,2254,2256,2257,2259,2261,2263,2266,2268,2270,2271,2275,2277,2278,2280,2281,2282,2283,2285,2287,2289,2290,2291,2293,2295,2297,2300,2302,2303,2306,2308,2309,2310,2311,2313,2315,2318,2319,2320,2322,2324,2326,2327,2331,2332,2334,2335,2337,2338,2340,2343,2346,2347,2348,2350,2351,2352,2354,2356,2358,2362,2363,2364,2365,2366,2368,2369,2372,2374,2375,2376,2377,2378,2379,2380,2381,2383,2387,2388,2390,2391,2393,2395,2396,2398,2399,2400,2403,2405,2410,2414,2415,2417,2418,2419,2420,2423,2424,2426,2428,2430,2434,2435,2438,2441,2442,2443,2444,2448,2449,2450,2453,2455,2456,2457,2460,2461,2462,2463,2464,2467,2468,2470,2472,2474,2475,2478,2479,2482,2483,2486,2487,2489,2490,2492,2494,2495,2496,2497,2499,2501,2502,2503,2507,2508,2510,2513,2515,2518,2520,2521,2522,2524,2525,2526,2528,2532,2534,2535,2536,2537,2539,2543,2544,2546,2548,2549,2551,2554,2557,2559,2560,2562,2563,2565,2566,2568,2572,2576,2578,2581,2582,2586,2587,2590,2591,2595,2596,2597,2598,2599,2600,2601,2604,2609,2612,2613,2615,2617,2618,2620,2621,2623,2625,2626,2629,2630,2631,2632,2633,2635,2636,2637,2639,2640,2643,2644,2645,2646,2647,2651,2653,2658,2662,2664,2666,2668,2670,2671,2673,2674,2675,2677,2680,2681,2684,2686,2691,2692,2694,2695,2697,2700,2701,2703,2706,2707,2709,2710,2711,2713,2715,2717,2719,2723,2724,2726,2727,2729,2730,2732,2733,2738,2739,2742,2745,2747,2748,2750,2751,2752,2753,2754,2757,2761,2762,2763,2765,2767,2768,2770,2772,2773,2775,2777,2778,2779,2780,2783,2785,2788,2789,2790,2792,2793,2795,2796,2797,2799,2800,2803,2805,2806,2808,2810,2813,2815,2818,2821,2823,2824,2825,2827,2831,2834,2837,2839,2841,2844,2845,2848,2849,2851,2852,2853,2854,2855,2857,2858,2860,2863,2867,2871,2874,2876,2877,2878,2879,2880,2884,2885,2888,2890,2891,2893,2894,2897,2899,2901,2902,2905,2907,2908,2909,2910,2912,2914,2916,2918,2919,2921,2924,2928,2929,2932,2933,2934,2936,2938,2939,2941,2943,2945,2946,2948,2949,2950,2951,2953,2954,2955,2957,2960,2961,2965,2966,2968,2969,2972,2975,2979,2980,2982,2983,2986,2987,2988,2990,2992,2995,2997,2999,3002,3003,3005,3007,3009,3012,3014,3017,3020,3024,3027,3028,3031,3032,3037,3039,3040,3043,3046,3048,3050,3051,3053,3057,3058,3059,3061,3062,3063,3064,3066,3068,3069,3073,3076,3078,3079,3081,3082,3083,3085,3087,3088,3090,3091,3094,3096,3097,3098,3099,3101,3103,3104,3108,3110,3111,3112,3114,3116,3119,3122,3123,3125,3126,3128,3129,3133,3135,3138,3139,3142,3144,3145,3146,3147,3149,3150,3151,3153,3154,3156,3157,3160,3161,3163,3164,3166,3167,3168,3170,3171,3173,3176,3178,3180,3182,3183,3185,3190,3191,3193,3194,3195,3198,3201,3203,3204,3208,3211,3213,3215,3217,3220,3222,3223,3227,3228,3229,3230,3233,3234,3238,3239,3240,3241,3245,3246,3250,3252,3254,3255,3256,3257,3258,3260,3262,3263,3267,3268,3272,3275,3278,3280,3282,3285,3287,3290,3291,3293,3295,3297,3298,3300,3301,3303,3304,3307,3309,3313,3317,3318,3320,3323,3325,3326,3329,3330,3331,3334,3336,3337,3338,3339,3341,3344,3350,3351,3352,3353,3355,3356,3357,3359,3362,3366,3368,3369,3370,3373,3375,3376,3377,3379,3380,3382,3384,3385,3387,3389,3390,3391,3392,3393,3394,3395,3396,3397,3399,3401,3403,3404,3405,3408,3410,3411,3412,3415,3417,3418,3419,3421,3423,3425,3426,3427,3429,3430,3432,3433,3437,3440,3441,3443,3447,3450,3453,3455,3458,3460,3461,3463,3464,3466,3468,3472,3474,3476,3477,3478,3480,3482,3483,3488,3489,3491,3492,3494,3496,3497,3499,3500,3503,3504,3505,3507,3511,3513,3515,3516,3518,3519,3521,3527,3532,3533,3534,3537,3540,3541,3542,3544,3546,3548,3549,3550,3551,3555,3557,3558,3560,3561,3563,3565,3569,3570,3571,3572,3574,3576,3577,3578,3581,3584,3587,3588,3589,3592,3593,3597,3600,3604,3605,3606,3607,3608,3610,3612,3615,3616,3618,3620,3622,3623,3624,3628,3629,3630,3631,3633,3634,3636,3638,3640,3641,3642,3644,3645,3647,3649,3650,3654,3656,3659,3660,3662,3665,3668,3670,3671,3673,3675,3677,3680,3681,3683,3685,3688,3690,3692,3695,3696,3698,3699,3700,3701,3702,3703,3705,3707,3710,3711,3712,3714,3718,3719,3721,3722,3724,3725,3727,3728,3729,3731,3732,3734,3737,3739,3741,3742,3744,3746,3747,3749,3751,3753,3755,3756,3757,3759,3763,3766,3767,3770,3771,3774,3776,3778,3780,3782,3783,3784,3785,3786,3787,3791,3793,3794,3796,3798,3801,3803,3806,3808,3812,3814,3817,3818,3819,3821,3822,3823,3824,3825,3826,3827,3828,3832,3835,3836,3837,3838,3839,3840,3842,3845,3849,3850,3851,3853,3854,3857,3861,3863,3866,3867,3869,3870,3872,3874,3876,3877,3878,3879,3881,3882,3884,3885,3886,3888,3890,3891,3894,3895,3896,3897,3899,3900,3901,3902,3904,3906,3907,3911,3913,3915,3917,3918,3919,3923,3924,3925,3927,3929,3933,3934,3936,3937,3940,3941,3943,3946,3948,3950,3952,3953,3954,3957,3958,3959,3960,3962,3965,3966,3967,3969,3971,3972,3973,3974,3979,3982,3983,3984,3985,3986,3987,3988,3989,3991,3992,3993,3994,3996,3998,4002,4003,4005,4007,4009,4014,4016,4018,4019,4022,4024,4025,4026,4027,4029,4030,4032,4033,4034,4036,4037,4038,4039,4040,4043,4047,4048,4049,4050,4052,4053,4054,4055,4058,4060,4063,4066,4067,4068,4069,4071,4074,4076,4078,4080,4082,4084,4089,4092,4094,4097,4100,4102,4103,4105,4106,4108,4110,4113,4114,4117,4118,4119,4122,4123,4124,4126,4127,4129,4130,4131,4132,4135,4138,4141,4142,4143,4145,4147,4148,4150,4152,4154,4156,4157,4158,4159,4162,4164,4166,4167,4168,4171,4172,4173}
Returns: 1538
16
{14,3,3,3,7,16,12,5,4,1,7,16,1,8,4,2,10,6,1,5,14,11,13,6,12,10,8,8,14,3,11,9,15,4,2,5,11,14,16,3,16,5,9,8,10,9,16,1}
{20,43,57,76,94,113,132,146,167,191,213,226,241,257,285,304,331,348,374,389,409,423,449,466,489,506,525,541,561,578,594,610,625,641,666,691,704,723,738,761,784,799,815,832,849,875,895,916}
Returns: 34
4
{4,1,3,1,3,4,4,1,4,3,3,1,3,4,2,3,2,1,2,1,1,4,1,4,1,2,1,1,2,2,3,4,2,3,3,4,4,2,1,3,3,3,2,4,2,1,3,3,2,2,2,4,4,3,2,4,2,1,4,1,4,2,4,1,3,2,2,4,2,1,1,3,3,3,4,4,4,4,1,1,2,2,3,3,2,1,2,3,4,3,3,1,4,1,1,3,1,1,3,1,2,4,1,1,4,2,1,4,4,3,2,3,1,2,1,3,2,4,4,3,4,2,4,4,4,3,1,3,3,3,3,4,4,3,4,1,4,4,3,4,1,4,3,4,4,2,1,2,3,3,4,1,2,3,4,3,1,2,4,3,1,3,3,2,2,3,3,1,2,3,2,3,2,1,4,3,3,2,3,3,1,2,1,3,2,2,4,3,4,1,1,4,2,4,3,1,2,2,4,1,1,4,1,4,3,3,2,2,3,3,2,3,4,3,1,2,3,2,4,1,3,2,4,1,1,4,4,2,1,4,2,1,3,1,4,3,3,4,1,4,2,2,1,2,4,1,2,3,4,2,3,2,2,3,3,4,4,4,1,1,3,3,3,2,1,4,3,4,2,1,2,4,3,2,4,1,1,2,2,4,1,1,1,3,4,2,4,3,4,2,4,1,4,3,4,2,4,3,1,4,1,1,1,1,4,3,1,1,4,1,4,4,3,4,1,3,2,2,1,3,1,3,2,4,1,1,4,1,3,1,2,3,1,2,1,1,4,3,3,3,4,4,4,2,4,1,3,4,4,4,4,2,3,4,4,4,1,3,4,2,2,3,2,2,1,1,1,2,3,4,2,3,1,3,4,3,3,1,3,4,4,3,4,4,2,2,3,1,2,1,4,2,2,3,2,2,1,3,1,1,3,4,3,2,1,1,4,3,4,3,4,4,1,1,1,2,2,3,2,3,3,4,4,3,1,3,2,1,1,2,1,3,4,2,2,1,4,1,2,2,1,4,4,4,3,1,4,3,2,2,3,2,2,3,4,4,3,3,4,1,2,1,3,2,1,4,3,2,3,2,1,2,4,1,2,2,4,4,1,3,2,2,2,2,1,1,4,2,3,2,2,2,2,2,1,2,1,1,3,3,2,2,1,4,1,3,3,1,2,3,1,2,1,2,2,4,2,1,4,2,2,2,3,2,1,1,4,1,3,3,4,1,1,1,1,3,1,2,1,1,3,1,4,4,2,2,1,3,4,3,3,3,1,3,4,1,3,4,3,3,1,2,3,4,4,4,2,4,4,3,1,3,1,3,4,4,1,3,2,4,4,2,3,4,3,1,2,2,4,1,1,2,4,1,1,1,3,4,2,3,4,3,2,2,2,2,3,3,2,3,3,3,2,1,2,1,3,2,2,3,2,4,1,3,2,3,2,1,2,2,2,4,4,1,4,2,4,2,1,4,1,3,2,4,4,3,1,3,3,3,3,2,4,1,1,3,1,3,4,2,3,4,3,2,1,4,2,4,3,4,3,3,3,1,1,1,2,2,1,2,1,3,2,4,3,2,2,4,3,3,2,3,2,3,4,1,3,1,1,3,1,1,3,1,3,2,1,1,2,1,2,1,4,2,2,1,2,1,2,1,2,3,4,3,1,1,4,3,2,3,2,1,4,2,4,4,2,1,3,4,1,3,4,2,3,4,1,2,3,3,1,3,3,2,1,1,1,1,4,1,3,2,2,1,3,2,3,3,2,2,3,1,4,1,4,3,2,2,3,1,2,4,2,2,1,4,1,4,2,3,1,4,3,4,1,2,1,4,2,2,1,4,4,1,4,1,4,4,4,4,1,4,2,3,3,1,1,4,2,2,2,2,2,1,3,2,2,1,1,1,1,1,1,1,2,3,2,1,2,2,3,4,3,4,1,2,1,2,4,2,1,4,4,4,4,1,4,1,3,1,2,4,3,2,4,2,2,3,2,2,2,4,3,3,3,3,3,3,2,4,4,3,2,2,3,3,2,4,3,2,4,1,3,1,3,1,4,3,4,3,1,2,2,4,3,2,2,3,1,3,4,3,3,4,4,3,3,1,3,3,2,4,3,3,1,3,3,2,3,4,4,4,1,1,1,1,1,4,4,2,3,4,1,2,4,2,3,1,2,1,2,3,1,3,4,3,3,4,2,2,4,4,1,1,3,1,3,3,2,2,2,2,2,2,1,4,2,1,1,1,3,3,1,1,3,2,2,2,2,2,3,4,1,4,2,1,1,4,4,4,4,4,4,3,1,2,3,4,4,1,3,2,2,2,2,4,2,4,1,4,3,4,2,3,1,4,3,4,4,4,2,3,3,1,2,3,2,2,4,3,2,1,1,1,1,3,3,2,4,3,4,3,3,3,1,3,1,4,1,2,2,4,1,1,3,1,1,3,1,2,4,3,1,1,2,1,4,3,3,3,4,2,3,2,4,3,4,4,2,1,2,1,1,3,1,3,2,1,4,4,2,1,1,3,4,3,2,1,3,3,1,4,3,3,1,2,3,3,4,2,3,1,3,3,3,1,2,4,3,3,1,1,2,2,4,1,2,3,3,4,1,2,3,3,4,3,1,1,3,4,2,3}
{2,6,7,10,12,17,21,25,27,29,31,32,33,34,36,38,40,41,45,47,51,54,58,61,62,65,67,69,71,72,73,76,80,82,84,87,90,92,94,95,98,103,106,107,109,110,113,114,115,116,120,121,124,126,128,131,136,138,140,142,144,151,153,154,156,157,158,159,161,167,169,173,176,178,179,183,184,185,187,189,190,193,197,200,201,204,208,211,214,216,217,218,222,225,229,233,235,237,239,240,242,245,249,253,254,256,257,259,262,264,267,269,272,274,280,281,282,284,286,289,292,293,297,301,304,307,311,312,313,317,320,321,324,326,327,328,330,332,335,337,339,340,342,344,348,351,354,355,356,358,361,363,364,366,368,369,372,373,374,376,377,378,381,384,385,387,389,393,399,404,405,408,409,410,411,414,416,419,422,425,429,431,432,435,437,442,446,448,451,452,456,458,460,462,464,468,470,472,473,475,477,478,479,480,481,484,486,491,493,495,497,501,504,505,507,511,515,517,519,524,526,531,532,536,539,543,544,546,548,550,552,555,558,561,564,568,571,574,576,577,579,582,586,587,588,591,592,594,596,599,600,602,603,606,608,610,611,613,615,617,620,623,625,626,628,629,633,634,636,638,641,646,647,649,650,652,656,660,663,665,667,669,671,674,676,678,683,684,686,690,693,694,696,697,699,702,703,707,709,712,716,718,720,722,727,729,730,731,735,736,739,741,744,745,749,750,752,755,758,759,760,762,765,767,768,770,775,777,783,785,786,787,788,790,793,794,796,798,800,802,804,805,807,808,811,812,816,819,820,821,823,827,831,835,837,840,841,845,848,849,852,854,855,858,860,862,866,870,872,876,877,879,883,885,887,889,890,891,894,895,898,899,901,905,907,909,911,912,917,921,925,927,930,932,934,936,937,940,944,945,948,949,950,951,954,956,959,962,964,965,968,971,973,974,975,977,979,983,985,986,989,991,992,995,996,999,1001,1003,1008,1009,1012,1014,1018,1021,1022,1027,1031,1033,1037,1038,1041,1043,1045,1047,1048,1051,1052,1053,1056,1057,1060,1061,1065,1068,1071,1072,1073,1075,1078,1079,1081,1083,1086,1087,1090,1091,1092,1093,1095,1098,1101,1106,1108,1110,1111,1113,1116,1118,1120,1123,1125,1128,1130,1131,1133,1136,1138,1141,1143,1145,1148,1152,1154,1156,1157,1159,1160,1162,1164,1166,1167,1169,1172,1176,1181,1184,1187,1189,1191,1192,1195,1197,1199,1204,1205,1206,1209,1210,1215,1219,1223,1224,1228,1231,1233,1234,1235,1238,1240,1242,1245,1247,1249,1252,1253,1255,1258,1261,1263,1266,1268,1272,1275,1279,1281,1283,1285,1288,1291,1295,1298,1299,1300,1302,1303,1304,1306,1309,1311,1315,1316,1319,1322,1323,1325,1327,1328,1329,1330,1332,1335,1337,1339,1341,1344,1345,1346,1348,1350,1355,1357,1359,1360,1361,1362,1364,1367,1369,1370,1371,1372,1376,1377,1379,1381,1384,1387,1390,1393,1395,1398,1400,1401,1404,1408,1409,1412,1416,1418,1419,1420,1421,1425,1428,1432,1435,1436,1437,1439,1442,1443,1444,1447,1450,1452,1455,1459,1461,1463,1467,1468,1472,1473,1475,1479,1481,1486,1487,1493,1495,1497,1500,1501,1503,1509,1510,1513,1515,1516,1518,1520,1521,1523,1526,1528,1531,1532,1534,1537,1538,1541,1545,1548,1551,1553,1555,1556,1558,1559,1560,1561,1564,1566,1568,1570,1574,1575,1577,1580,1582,1586,1590,1593,1597,1599,1602,1605,1608,1609,1612,1616,1617,1620,1621,1623,1625,1627,1628,1629,1631,1634,1637,1639,1642,1644,1645,1649,1650,1655,1657,1660,1663,1664,1666,1669,1673,1674,1675,1676,1678,1679,1683,1686,1688,1692,1694,1697,1700,1701,1706,1710,1711,1713,1715,1718,1720,1723,1725,1728,1729,1732,1736,1737,1739,1743,1745,1751,1755,1759,1760,1761,1763,1766,1769,1772,1776,1777,1779,1781,1782,1786,1789,1791,1792,1794,1799,1800,1803,1806,1810,1811,1814,1815,1817,1819,1823,1825,1828,1829,1834,1837,1841,1844,1847,1850,1852,1855,1861,1864,1867,1871,1875,1877,1878,1881,1883,1884,1887,1889,1890,1894,1896,1898,1899,1903,1905,1907,1908,1910,1914,1916,1920,1924,1927,1931,1932,1935,1938,1941,1942,1944,1948,1951,1954,1955,1957,1958,1962,1965,1966,1968,1971,1975,1976,1977,1981,1984,1986,1989,1991,1992,1994,1996,1997,2000,2001,2003,2005,2009,2012,2015,2017,2019,2021,2023,2025,2027,2029,2034,2035,2036,2037,2039,2043,2046,2048,2050,2053,2057,2059,2063,2068,2070,2073,2074,2077,2078,2079,2080,2082,2084,2085,2089,2093,2094,2095,2098,2101,2102,2105,2107,2109,2112,2116,2119,2123,2127,2128,2132,2133,2136,2137,2140,2143,2146,2148,2150,2153,2155,2156,2157,2158,2160,2163,2166,2170,2173,2174,2177,2178,2180,2182,2184,2191,2194,2195,2200,2202,2203,2204,2208,2209,2213,2215,2220,2223,2227,2230,2232,2233,2237,2238,2239,2242,2246,2248,2250,2251,2253,2255,2256,2258,2259,2261,2264,2266,2267,2271,2273,2276,2277,2278,2280,2281,2284,2286,2288,2290,2291,2293,2295,2296,2298,2303,2306,2309,2312,2313,2315,2321,2326,2328,2329,2332,2333,2335,2337,2339,2340,2342,2344,2347,2350,2352,2354,2355,2356,2361,2362,2363,2367,2369,2371,2372,2376,2382,2385,2390,2391,2393,2394,2395,2396,2399,2404,2407,2408,2409,2412,2413,2417,2419,2421,2423,2427,2430,2431,2433,2437,2438,2441,2442,2445,2447,2449,2455,2458,2460,2462,2464,2465,2469,2470,2472,2473,2475,2477,2478,2479,2481,2483,2486,2487,2490,2492,2494,2497,2500,2501,2502,2506,2507,2512,2514,2515,2517,2519,2521,2524,2527,2528,2530,2532,2534,2536,2539,2543,2545,2547,2550,2552,2554,2555,2558,2559,2562,2565,2566,2567,2570,2572,2575,2576,2577,2580,2584,2586,2588,2593,2596,2599,2600,2601,2602,2605,2607,2610,2614,2616,2618,2619,2620,2623,2626,2627,2629,2636,2638,2641,2642,2643,2646,2648,2651,2652,2655,2656,2657,2659,2662,2665,2666,2669,2672,2673,2675,2678,2679,2681,2683,2684,2685,2689,2693,2697,2701,2705,2706,2708,2710,2713,2714}
Returns: 722
32768
{6777,19538,25340,15174,16940,30040,18193,5600,27283,4947,30641,16838,29823,22245,28272,23499,7025,26096,7437,27906,9550,18087,4803,13322,16306,27448,26741,7208,18541,20137,28610,7122,5286,9908,14627,22907,17528,1400,358,7839,20179,24840,30441,19982,13215,22009,2838,17333,10296,7461,11487,14641,7293,5144,21737,918,9423,25231,15461,15374,10093,14023,27538,9705,8663,17721,1300,27135,29921,12239,20336,2132,25691,13162,32264,11785,22846,31220,7989,28361,31613,12859,23823,13844,25268,5608,27326,7616,27395,20776,2108,13397,11679,20115,31361,7914,12965,15658,11867,26463,11240,15661,30754,12497,26272,31726,708,31092,9186,9638,1192,491,11782,30616,14611,26496,19249,25575,26840,30625,6997,9111,32066,16451,559,16991,11311,25029,29643,8975,17571,11322,21589,12899,32507,6909,6660,31058,29760,20137,547,32485,1052,13981,28748,27887,30998,12389,30988,12787,9957,31862,10056,26057,3771,1226,15846,1427,18844,4885,3399,11984,4317,14687,28245,22634,14624,22772,4848,9148,21547,24760,7620,16055,29230,3357,22938,29539,8984,10491,29266,26657,25802,1987,16375,16163,6922,11939,1610,13013,586,25412,376,32724,18015,7153,12957,25720,640,5671,7418,14549,28640,9611,1753,8553,27787,7815,22314,8617,19468,5333,21286,23255,4037,32622,19768,3745,13515,12401,18626,3110,14681,28839,11328,290,21506,29569,21894,16428,4848,16766,16898,26611,14727,9223,32481,30391,14096,3828,15181,14368,30969,30986,8416,8943,10125,3558,1211,9973,3064,8417,5554,6913,29354,18850,25122,28031,21827,6194,27185,29091,29518,22387,29007,7726,16691,25127,25580,20965,14569,8090,27779,13563,8218,21075,15665,5590,17264,31804,8491,10919,30470,14534,7067,28797,24575,3782,12132,29583,9060,24792,26020,9121,4770,19512,18103,29320,19971,29473,15286,23011,6581,24811,13471,2136,18943,27432,31037,23980,14195,11337,14669,2106,7175,28993,16957,1388,3609,13553,14126,31221,1674,2330,16876,19884,31544,5586,29109,12809,5956,9605,24267,14702,32417,1208,12261,26728,21164,20964,18624,12645,22902,12999,14110,5701,14792,16854,26038,14971,12762,26476,12970,885,1759,14222,16699,31787,10184,22077,15506,3041,7564,20825,17315,12075,26507,20559,23597,17800,19128,28385,5420,11494,26190,4474,28407,20374,4340,32409,12706,30802,5474,2576,4132,13072,23985,9179,20745,14476,30865,9608,13184,23942,9184,17983,27077,15820,11295,11929,18433,24165,30832,15004,12488,18729,1772,4423,22187,12117,27952,22081,7228,28596,9525,23394,12843,28710,1682,23771,3382,4445,18552,31737,27577,7893,18640,22929,25832,31790,6396,25151,25019,29724,30963,5075,27090,29787,30069,15450,23719,11550,20030,28754,379,31136,7507,14004,20143,10905,28792,11959,25382,17008,8750,15403,27301,28212,16280,5251,2062,1401,11471,22468,26280,7769,342,13731,15775,18940,17000,30789,24338,22821,12573,11063,24119,5999,22111,30277,28194,16102,20189,10507,21733,31994,5448,23852,11507,15534,10560,577,12457,2368,30072,6059,29226,16246,16321,19885,11192,27389,14781,16414,17133,6231,31015,31334,11077,4853,12987,30049,2713,31309,2784,17667,23620,20404,11111,13474,19901,6679,3517,7696,12729,31649,3363,22675,11472,6302,23696,12849,10494,30182,26626,32415,11059,117,31027,25724,22678,16035,11177,12931,20204,16107,21603,11132,28154,12026,32081,24806,19880,8488,29967,24943,24299,25958,14192,12632,7040,32232,7028,14386,12998,7920,16256,2121,20474,21561,7346,8545,26716,21924}
{2,3,6,7,8,12,16,22,29,35,37,38,40,42,48,53,57,63,68,71,75,78,82,84,85,88,91,94,96,99,101,105,107,112,114,115,118,119,123,125,129,135,136,140,145,152,155,158,161,165,168,175,178,182,184,189,195,201,203,206,207,212,215,218,219,222,225,231,236,238,240,245,249,255,261,263,268,269,274,278,279,282,285,290,292,293,296,298,301,303,310,313,316,318,320,323,325,328,332,334,340,342,344,348,350,356,364,370,375,376,379,381,383,387,393,397,400,403,406,410,413,417,420,423,425,429,436,437,439,445,449,454,459,462,466,470,474,476,479,482,485,488,494,497,501,506,508,510,513,515,517,519,522,526,528,533,537,540,542,547,551,558,560,567,568,573,575,578,584,587,591,597,598,599,603,605,608,612,615,619,621,627,629,633,637,643,646,650,653,656,661,664,672,677,681,683,685,689,694,697,699,703,707,711,714,717,721,724,726,729,732,734,736,741,744,752,754,757,761,764,766,768,771,774,775,780,784,786,792,797,800,804,807,809,813,815,819,824,828,834,838,843,847,848,850,853,858,866,869,876,879,881,884,888,891,893,897,899,901,907,912,914,916,919,921,924,927,928,931,932,933,938,942,945,948,950,951,954,955,959,965,969,973,975,980,982,984,987,989,993,995,998,1001,1004,1007,1010,1013,1017,1019,1022,1027,1029,1032,1033,1038,1040,1045,1047,1049,1052,1054,1058,1060,1065,1068,1072,1074,1077,1080,1082,1085,1088,1091,1095,1101,1103,1106,1108,1111,1114,1118,1121,1127,1129,1131,1135,1139,1142,1145,1147,1151,1153,1154,1156,1161,1163,1167,1170,1171,1172,1175,1176,1180,1185,1190,1196,1199,1203,1206,1212,1217,1219,1220,1225,1227,1229,1231,1238,1244,1245,1247,1251,1252,1255,1256,1260,1264,1265,1270,1274,1281,1287,1291,1293,1297,1302,1306,1309,1314,1316,1320,1322,1325,1327,1331,1332,1336,1339,1343,1345,1348,1351,1357,1360,1363,1364,1368,1372,1377,1381,1382,1384,1386,1391,1394,1397,1401,1403,1405,1410,1412,1417,1421,1424,1425,1428,1430,1433,1435,1437,1440,1445,1448,1452,1456,1458,1460,1462,1466,1470,1473,1476,1480,1483,1486,1487,1490,1495,1498,1501,1502,1505,1510,1515,1517,1519,1521,1523,1527,1528,1531,1533,1537,1542,1545,1547,1549,1551,1554,1557,1559,1562,1564,1566,1569,1571,1577,1579,1583,1586,1589,1591,1595,1596,1604,1607,1614,1617,1620,1623,1626,1630,1635,1638,1641,1645,1649,1653,1657,1660,1663,1665,1667,1674,1678,1680,1687,1692,1695,1700,1702,1704,1707,1709,1711,1716,1718,1723,1724,1727,1730,1733,1736,1739,1746,1750,1751,1754,1755,1758,1764,1768,1772,1777,1780,1782,1785,1787,1789,1791,1795,1796,1799,1805,1807,1809,1811,1814,1818,1821,1825,1828,1833,1836,1839,1842,1844,1846,1848,1851,1852,1855,1857,1859,1865,1873,1877,1880,1882,1886,1891,1895,1897,1900}
Returns: 409
65536
{64726,8929,60324,36790,42586,13897,14728,14802,53290,42575,62469,1863,16580,58475,28535,43078,15639,54886,7454,21754,14628,21285,1021,53322,47786,27396,60195,16106,24999,45259,21579,63480,62152,31419,37391,6837,61457,56634,47373,58120,50264,62228,59337,27874,50785,57707,25899,54446,24747,59316,25035,26985,31556,46701,48274,62221,56626,14696,1861,58976,39750,64710,11265,48476,53869,22038,32977,37319,56265,34091,51925,34208,57641,4750,44707,31617,14525,52144,20448,7963,14073,57153,28219,17514,13860,50760,8765,12877,27384,55518,30883,33682,48718,42935,36655,59307,19403,30158,33323,12959,21991,30689,28161,55786,30702,53657,1195,12881,40634,41601,47843,33015,55615,55087,23878,14374,25156,56641,61915,34453,23755,51983,9912,46638,40198,1590,12969,46485,32743,63064,63775,36337,17307,56257,30395,29883,35718,29629,63568,40846,47762,44760,25118,65094,38617,24409,55722,34280,14863,28841,30839,50454,43563,60016,19060,4365,38443,48300,48894,47229,39686,5126,57267,20396,9498,49171,5245,22448,31393,1897,63635,14529,48152,8093,51286,50654,44935,24981,15433,18007,64537,15568,14727,20456,5000,56958,40059,37497,26420,31639,34488,5312,44784,12098,1331,18239,63459,26947,38987,49517,59904,64059,9036,29442,13047,58863,3436,37295,19878,17906,60006,37304,60763,45386,54573,1608,11395,53251,50023,23657,16016,64452,31904,494,52523,4306,35952,45014,22782,56605,31476,15834,61106,60726,54116,39737,16626,53597,1182,18172,49269,22267,62445,59439,39801,40238,11897,29916,42540,23888,515,44226,3559,14995,27129,35600,24894,28180,43516,47260,59193,44815,41815,63078,30809,51467,28443,61017,3108,60457,35525,54945,63059,26099,61867,55806,24318,6994,53668,17901,55620,52866,9617,5529,7256,63031,25795,36580,51950,44354,41583,19708,58732,3180,60572,16967,64358,4692,30277,61861,28993,6022,7320,23887,14080,44827,9106,61382,7582,48787,39511,61868,36989,35266,46086,62830,55483,27125,34299,29,14469,59823,2215,7387,7351,2214,60537,30393,23386,32213,53383,2799,62932,59354,44266,33741,7641,65001,52986,53958,19573,65035,39397,44656,4791,51072,23116,12147,60382,19045,57305,26023,49416,14347,15364,58593,65217,10644,63855,63293,5382,50365,23455,22742,64130,49406,47849,7993,54303,4434,56540,46362,12870,57691,15757,41206,27973,34487,39552,9158,35532,431,46099,39649,48768,10908,9898,63153,2044,13229,28940,34269,43213,47333,47515,51974,11590,12925,43104,4423,35635,16388,47127,63997,27071,60644,46269,19618,65064,49455,47669,59314,2308,11216,59928,53219,26678,38278,15298,301,25055,13900,15914,54118,17632,39184,24353,31357,15286,37843,20470,26752,14035,23716,27567,7689,41908,19976,38731,17341,15954,57271,61617,48629,43710,21206,50519,51643,44272,37637,46523,6326,50476,55278,40752,20398,44929,42282,57768,16836,50494,57519,56174,49286,34656,55830,268,57205,43361,18286,52156,6071,52198,28265,54574,52982,46892,60192,56184,25259,19767,51120,5253,65386,39978,57969,11345,14800,28996,62092,34237,38196,36195,54579,55785,57934,9243,12214,7736,42584,40620,56637,44418,35175,46199,4330,3355,8460,51895,36769,19107,19054,13717,59065,56279,44391,25836,3925,7626,61548,16202,32824,3394,39730,60931,18994,38435,42086,9573,32154,58405,11493,33890,49503,29497,63817,65351,46762,14939,53439,26944,32287,12216,1651,6354,30251,37226,6408,21387,5120,53800,33258,42376,35609,50602,33909,35219,53619,44211,2865,52990,28882,3302,26543,64121,32706,54507,6079,30602,3873,10629,35073,53345,21359,23703,12832,18999,54059,64318,16166,13417,60917,38018,31929,61695,8774,54849,9278,15713,37356,57934,43304,35400,26538,18931,44519,16975,60051,62028,54610,46754,15891,16422,15221,2477,1979,20057,65299,55246,30267,40403,27482,36463,28445,41658,65420,23045,64319,52834,51360,21459,25609,14852,16154,8325,54758,57962,8603,33002,50819,30975,37618,28260,53197,11004,6316,15596,10943,25494,62814,58528,30579,31346,49208,1360,2562,29634,2461,28284,34351,29633,21178,63143,11750,19331,40046,13591,59654,37195,22520,16695,46855,2770,37428,62292,60775,52284,51299,16994,24585,21153,62409,17144,21192,3430,65431,64455,56848,15830,2798,48152,16939,53411,36602,57652,32659,55636,48991,65471,27780,41916,16778,13903,27282,58367,42388,1765,53509,27086,57801,29961,6967,57288,28693,20128,60490,35902,37575,30166,982,48317,46212,47774,20851,33316,52571,21161,28495,42780,13633,18144,60948,22342,21115,15791,1757,49517,8371,57788,31249,7055,41912,50388,39997,54168,63285,1826,54370,25612,53977,15112,6468,14349,2221,63010,19888,18032,47528,16460,46543,36830,47803,39356,8674,30743,60115,41343,54562,1774,2202,32238,41347,31119,60665,2286,11167,12569,60824,27145,52241,63403,37086,14513,3565,51557,43836,31050,23606,51980,29627,51134,2680,56374,7181,51895,34521,16192,65207,39630,11868,9601,33783,8511,60955,35412,29829,37371,38580,44046,36701,3359,35127,40436,56865,9259,12103,58037,29132,30601,33347,47887,59320,57653,49058,55455,21835,43411,19163,28921,65196,5075,42891,16785,35679,10085,26790,61718,16833,64599,60388,24376,12446,63665,47818,57353,5232,23835,29930,5235,13306,14182,14656,3428,26199,20929,40662,43951,62114,64948,28420,47835,65492,43568,32238,6455,55693,3141,12343,23556,25793,16981,30443,49811,48553,49609,19742,63375,7762,4013,3278,5096,56238,15542,17150,37642,32025,56715,1298,27738,45202,49245,11243,21029,9266,61739,17226,10869,7073,46645,28272,12927,61065,3714,64791,57752,31555,58483,60957,36078,65361,38612,10128,355,46420,45791,48634,50518,3729,47634,16132,30766,23603,38642,38371,53755,17122,62453,51746,6525,24932,59,35770,33629,10568,19937,14727,53629,1766,24059,53646,46483,39986,7822,1199,61060,31,5910,31133,54319,43678,16496,9549,2454,62324,36152,33078,22947,53348,63463,20990,22249,52612,33868,41864,13096,4254,560,39276,26482,38661,34606,46419,12848,49978,34335,16075,42101,48711,8866,35446,62547,9903,57237,63680,3611,1368,3986,42602,60105,1747,32449,62377,1539,34259,42384,14491,27231,2520,21540,14412,12005,31557,11928,9638,60666,29805,33364,22502,43565,50507,62746,7811,60817,30208,20106,32417,15518,21052,9541,1664,1980,20008,35053,19821,8959,58252,55965,10553,17333,56369,58794,7229,40896,56518,62149,349,47083,27082,65475,34214,35501,3632,32420,37223,59664,49627,65200,23786,27553,44046,60087,36658,37297,58492,6077,28506,59711,58256,14265,58231,47697,59667,25638,45607,38057,48732,56451,15911,19201,57233,50440,48530,23366,17859,10807,49332,32647,49625,52738,46723,10112,5783,19371,65333,59137,50757,61352,1919,31119,54949,14620,55665,55310,42070,23224,35333,323,15567,14622,60621,33407,40064,21770,340,33235,40149,51163,40996,1924,21537,63824,1929,34995,10164,64904,2679,16742,54936,39571,52783,49258,20920,52525,13710,9147,19584,17524,21285,59499,3873,46245,32116,56619,14866,4406,60151,47867,55421,46823,3547,9130,21929,20101,16778,18959,42905,47507,48738,21570,18279,43526,12863,39988,24092,40645,52930,20317,58118,57002,6247,37502,18121,46117,17371,14992,44226,39876,31017,24691,41563,20546,59048,37101,47732,40676,10183,7940,28942,46898,9753,10971,16836,14708,17734,17280,59852,40810,23750,9836,25738,47903,48251,913,20468,61419,15256,55613,3144,31216,7035,61242,6355,37030,23109,13529,58836,28998,60274,18913,37302,26154,11961,18072,52767,45176,59358,60236,30629,53653,60514,48147,16669,4690,46629,45496,12740,19911,3168,38150,39897,63043,65182,52701,40783,730,32660,27594,17065,62558,2033,29198,43589,26851,52123,64841,64644,50452,13794,44355,4016,21231,37799,55667,5247,54714,3197,31554,3732,64326,20031,25922,4716,17099,39081,21173,61057,59895,10467,38709,7074,12536,24347,47696,36552,52899,23184,5982,19680,48628,12976,44540,28502,42640,26158,44002,40540,518,37675,56573,58418,51191,3549,6924,8947,56159,30034,2598,25760,43941,63530,60385,45947,31799,38266,5899,9954,36305,18469,44589,22333,62635,46441,33593,31148,16192,43357,45863,64145,12638,26280,26735,35878,49065,37051,24454,17567,10207,16946,15586,38313,31325,45899,32807,40254,10711,44680,58492,36365,15923,62433,18993,46083,38901,38190,55849,59305,18874,18594,61377,6504,28065,43139,31261,64491,1196,22900,61971,47904,24178,6917,46629,7073,16298,55379,39480,21637,32363,59638,48382,29656,4914,54405,16712,9273,44533,5477,23977,14444,46822,35256,20769,30681,17063,31642,12231,50484,59919,27647,9884,57059,42441,5608,51706,42705,50787,29111,15959,5560,57759,56034,36679,48168,5652,56395,21750,63940,22136,37364,56448,57724,34335,226,25580,6090,4225,16479,40619,54825,19938,53741,41934,42325,30556,3996,39798,19977,9460,10905,64796,63051,20600,52767,62635,24441,41026,7465,37023,49062,19762,27524,44961,48898,20333,50478,16446,47184,40375,4373,18881,31146,13172,24230,24922,26912,16811,47042,41724,7905,26518,41732,436,15619,3985,23667,51032,35614,5507,44303,26577,8770,44031,13249,24686,50194,3532,58548,47075,19949,59785,32275,55294,38795,40342,46001,58933,62060,19071,56608,29818,60917,31379,1068,24607,64050,40289,19413,63642,382,56896,51750,5243,6039,60709,6553,36595,60130,10597,6358,50335,47828,15921,35329,2709,13529,43224,34029,50905,48928,53545,63965,50603,26408,21638,54451,41841,57336,58484,43693,42776,47704,41410,16146,13616,18307,11664,38267,6184,25873,49620,47746,13928,50980,33567,58905,62260,13332,58827,7377,25475,35618,28866,65472,46165,24035,24730,3297,39955,23171,44464,11287,29975,49922,49265,1843,43880,46082,44823,21914,31794,3043,14434,63086,41386,22825,53054,28264,27203,21878,62271,8371,58999,6292,49772,25718,19595,23894,10441,27370,28163,59473,21137,50209,7863,24230,3607,13025,47552,41326,39605,27177,33956,4228,64076,16731,36227,60833,15150,58893,50474,30507,22663,38144,33338,14359,16272,28108,20206,30903,16415,1837,57106,45676,44910,33804,20532,26245,52253,2989,25143,48833,723,45472,10937,60483,35581,3157,57864,20469,62346,62329,52362,5529,40884,8575,61398,4365,25633,48626,14056,23426,27896,10354,58661,25775,21940,46729,48168,59960,58316,30887,1139,36304,9597,34040,48541,37080,52816,47345,38528,37502,35620,23728,62084,2971,45015,38292,11547,43474,4313,8121,33009,39352,4927,22573,29815,17919,65067,15358,29126,4076,24718,41620,15357,2961,61098,41964,18597,55457,37585,52624,40871,18115,36166,33671,51442,37569,26434,44153,31452,45059,11641,37591,12495,16419,57009,46778,36310,37012,15152,9920,29472,13476,10798,55351,65154,39000,47736,24888,14739,14049,23549,27036,7661,62904,20467,8678,47019,33682,30152,4488,39728,32955,35598,38945,38864,42130,44313,36768,36068,2610,27387,38746,35683,19581,65301,45708,64019,8214,22383,3806,18133,43010,27775,63945,52151,55297,1574,17928,62146,54733,30458,42095,20403,28882,1578,48593,23314,30233,47252,11730,46680,56426,59866,55494,25882,33510,44686,30984,13159,33434,18621,43614,38344,57813,4213,11349,43934,52784,4627,36537,45257,24740,19564,64891,6085,21791,59688,27586,47549,3411,463,61418,1596,44253,33909,48306,57450,6885,37637,50652,58390,15316,18555,51452,8432,50127,10155,9546,63151,39171,38755,42903,41226,56067,47089,12753,11977,19128,36459,61360,4935,64675,64070,40048,15920,62842,10764,14270,43349,36697,19524,27187,39136,19472,2534,50176,24131,1869,61407,62139,19114,20904,19836,1364,41422,7112,13788,55217,51816,48943,17056,51579,44466,57456,28296,62995,13224,40127,57013,15804,3579,62260,47542,37489,36838,24631,15273,9458,9567,12243,3837,16646,6214,8701,37305,57843,46746,39435,5952,19124,39118,47320,26363,14181,48073,28520,45170,36845,24106,52726,60834,56817,5332,37313,13480,10870,22256,14868,51729,20957,54736,47946,56677,20241,20845,15564,47535,30986,15982,11608,56369,12304,32494,24322,54135,595,41833,51904,369,57797,42387,4473,23386,40786,54009,52958,2692,33243,43433,22669,24921,31118,48463,37440,61474,8847,22396,5645,42345,33792,27144,3570,52739,15058,38586,49722,31001,35337,33718,3697,15556,40008,28756,42224,38910,7370,605,18242,14103,12339,36831,57319,12256,49108,48638,47148,58164,64572,10630,56102,37292,63054,61985,5395,55690,12323,28014,58510,17454,4466,64355,8573,49592,15696,61871,5009,29063,57714,55311,12474,24270,14669,48071,49671,59503,43457,13488,15273,25545,3103,53904,11055,10806,63938,3502,15657,43354,11143,33222,457,16011,19160,12015,50731,40429,58401,47103,3680,17926,34008,6779,64104,2293,29041,10295,9902,1144,51689,7968,26298,31360,26057,6103,3881,56316,10938,43041,25115,9,8986,581,6067,61901,9255,3813,59976,63376,26024,31472,33904,30181,1852,30632,11525,6648,8608,63212,5052,18004,44194,33335,12039,5544,13459,26377,12870,26474,5222,55208,16774,21099,43988,52080,44628,2458,54063,56859,14184,47010,41150,10691,64290,5668,28112,7035,35616,36262,60377,36551,21872,31620,1093,4172,58911,54143,12260,1162,23079,45736,60682,37743,47865,41430,64967,42514,57393,13791,8673,63477,58148,29745,4709,14733,9829,58014,40696,34293,29022,29034,61264,64011,42662,32499,5483,3935,10679,3189,20330,31152,7962,56273,37434,43482,20544,38495,14431,50553,41613,19731,64146,54947,48989,39581,43529,13177,49398,28740,32394,41330,30395,7828,11449,33953,6425,31538,25395,32606,5097,7529,48993,17160,58459,35646,50462,63181,58775,55579,59042,34233,19884,44659,13368,22881,35449,55766,56769,33540,42144,40801,18958,6379,19657,46224,10877,39511,48546,27836,39803,32868,43896,61933,5322,48785,4180,34236,42672,55784,49653,44642,50032,27112,25869,58438,40618,19127,32675}
{3,4,6,9,13,15,17,19,22,24,27,30,32,33,35,36,38,39,42,44,45,47,49,50,51,53,54,58,59,61,63,65,69,72,73,76,80,84,85,86,87,91,93,96,99,101,102,104,107,110,112,114,115,117,119,122,126,128,130,131,133,136,139,140,142,144,145,148,150,152,155,157,159,164,166,167,168,170,172,173,175,177,179,182,185,187,189,192,197,199,201,203,206,208,213,216,218,220,223,224,227,228,229,230,232,237,241,243,245,250,255,256,258,259,263,265,268,269,271,272,274,276,280,282,283,285,288,289,292,294,296,297,298,299,301,302,304,309,311,314,317,319,320,325,327,329,332,333,335,341,342,345,347,350,351,352,353,358,361,363,364,366,369,370,372,373,376,377,380,381,382,384,386,388,392,394,396,398,399,401,402,404,407,409,410,411,413,415,418,420,421,423,425,427,428,429,431,437,439,440,444,447,449,450,453,456,458,462,464,467,468,472,474,477,480,481,483,484,485,487,488,491,493,494,497,498,500,501,503,505,508,509,512,515,516,518,520,523,525,528,529,531,532,534,537,538,541,542,546,548,550,552,558,560,563,565,569,571,572,575,578,580,581,584,585,586,587,588,591,595,598,599,600,603,605,606,607,609,611,614,615,617,619,623,626,629,630,631,634,635,636,639,641,643,644,645,646,647,650,652,653,654,656,659,663,664,665,666,670,672,674,675,677,678,679,681,683,687,689,690,692,694,696,699,701,704,707,709,711,712,713,716,717,719,721,726,727,729,732,734,735,736,737,740,741,742,743,745,747,750,752,753,756,759,761,762,765,768,769,775,777,778,779,782,784,785,788,791,792,793,794,796,799,801,802,804,805,806,809,810,811,812,813,817,819,821,823,825,826,827,828,829,830,833,834,837,839,841,844,846,848,849,851,853,855,856,859,861,863,866,869,873,875,878,879,880,883,885,886,888,890,893,895,897,898,899,900,901,904,907,908,913,915,916,917,918,919,921,923,927,931,932,933,937,938,941,942,946,947,950,952,954,956,959,963,965,967,968,969,973,976,978,979,982,986,988,989,990,993,995,998,1001,1002,1003,1005,1008,1009,1010,1011,1012,1013,1015,1018,1020,1022,1023,1025,1026,1029,1031,1033,1034,1036,1037,1039,1040,1041,1045,1047,1050,1054,1055,1057,1059,1063,1065,1067,1069,1072,1074,1075,1076,1078,1079,1080,1081,1087,1089,1092,1093,1094,1095,1097,1100,1101,1104,1106,1109,1110,1112,1114,1117,1118,1121,1124,1126,1127,1129,1130,1132,1133,1137,1142,1146,1148,1150,1152,1154,1158,1160,1161,1164,1168,1170,1172,1174,1176,1179,1183,1184,1185,1188,1190,1191,1195,1197,1199,1202,1204,1208,1209,1211,1213,1216,1219,1221,1223,1228,1230,1232,1233,1234,1236,1239,1240,1242,1244,1247,1249,1251,1252,1254,1259,1262,1263,1264,1267,1271,1273,1276,1277,1280,1281,1283,1284,1285,1286,1289,1291,1295,1296,1297,1300,1303,1306,1307,1311,1315,1316,1317,1319,1322,1324,1328,1330,1333,1335,1336,1339,1340,1343,1345,1348,1349,1354,1357,1360,1364,1368,1370,1372,1378,1379,1381,1382,1385,1389,1393,1394,1395,1396,1397,1398,1401,1404,1408,1410,1412,1415,1418,1419,1420,1422,1424,1427,1428,1431,1433,1435,1438,1439,1442,1444,1447,1450,1451,1453,1456,1457,1461,1462,1464,1467,1468,1471,1473,1474,1475,1477,1479,1482,1483,1485,1487,1488,1490,1493,1495,1497,1498,1499,1502,1506,1510,1511,1512,1513,1514,1515,1517,1520,1524,1527,1528,1531,1533,1534,1535,1537,1539,1541,1543,1546,1548,1549,1553,1555,1557,1559,1562,1563,1566,1568,1570,1571,1572,1573,1574,1575,1579,1583,1586,1587,1589,1592,1593,1594,1597,1600,1601,1602,1604,1607,1608,1611,1613,1616,1621,1624,1625,1626,1627,1629,1631,1634,1637,1638,1639,1641,1644,1647,1649,1651,1654,1660,1661,1664,1666,1668,1670,1672,1673,1676,1678,1683,1684,1685,1686,1689,1690,1692,1694,1696,1697,1699,1702,1706,1709,1710,1712,1713,1716,1717,1718,1722,1724,1726,1730,1731,1733,1734,1735,1736,1738,1740,1742,1747,1749,1751,1752,1753,1755,1757,1759,1761,1762,1764,1765,1768,1770,1771,1773,1775,1777,1779,1783,1786,1788,1791,1793,1796,1798,1800,1802,1803,1807,1809,1811,1814,1817,1819,1820,1822,1824,1826,1828,1829,1831,1834,1836,1837,1838,1841,1843,1845,1847,1850,1852,1853,1855,1856,1858,1860,1862,1865,1866,1867,1868,1870,1872,1875,1876,1879,1881,1884,1885,1887,1888,1889,1892,1895,1896,1899,1903,1904,1905,1907,1910,1911,1912,1914,1916,1920,1921,1925,1928,1930,1933,1938,1940,1942,1945,1946,1947,1949,1951,1953,1954,1957,1960,1961,1963,1965,1968,1972,1975,1979,1981,1983,1985,1988,1992,1994,1995,1999,2002,2005,2007,2008,2010,2011,2014,2015,2016,2017,2018,2020,2023,2024,2025,2026,2028,2032,2033,2034,2036,2037,2038,2039,2041,2042,2045,2048,2051,2052,2054,2056,2058,2059,2063,2064,2065,2068,2070,2071,2073,2075,2077,2078,2081,2082,2083,2085,2088,2091,2092,2095,2097,2099,2100,2101,2102,2104,2106,2108,2109,2110,2113,2115,2118,2121,2124,2125,2126,2127,2129,2130,2133,2135,2136,2138,2139,2141,2142,2143,2147,2148,2150,2153,2154,2157,2158,2161,2163,2165,2167,2169,2171,2173,2174,2176,2178,2181,2183,2185,2186,2187,2190,2193,2195,2198,2201,2202,2204,2206,2207,2209,2211,2214,2215,2218,2219,2221,2223,2226,2228,2231,2234,2237,2238,2239,2242,2243,2245,2246,2250,2252,2253,2254,2258,2260,2261,2263,2264,2266,2268,2269,2273,2274,2276,2279,2283,2286,2289,2293,2294,2296,2301,2302,2303,2304,2307,2310,2312,2313,2316,2318,2319,2320,2323,2324,2326,2329,2333,2334,2337,2339,2342,2343,2344,2346,2348,2350,2352,2355,2356,2357,2358,2360,2361,2362,2363,2364,2365,2369,2371,2374,2376,2377,2379,2380,2382,2385,2387,2390,2391,2393,2395,2396,2398,2401,2402,2403,2406,2407,2409,2410,2412,2414,2417,2418,2420,2422,2425,2427,2428,2429,2430,2433,2434,2439,2440,2442,2443,2445,2447,2449,2451,2452,2455,2456,2457,2460,2461,2463,2465,2467,2469,2471,2472,2473,2474,2477,2478,2479,2481,2484,2487,2489,2491,2496,2498,2502,2504,2506,2507,2511,2512,2517,2518,2520,2523,2527,2532,2534,2536,2540,2543,2547,2548,2550,2552,2554,2555,2557,2558,2559,2560,2561,2563,2566,2567,2570,2573,2576,2577,2580,2582,2583,2587,2589,2592,2593,2595,2597,2598,2600,2601,2605,2606,2608,2610,2612,2614,2618,2621,2622,2625,2627,2628,2630,2631,2632,2635,2638,2639,2641,2642,2645,2649,2652,2653,2656,2658,2662,2664,2665,2670,2671,2674,2678,2681,2683,2685,2687,2688,2689,2692,2695,2698,2700,2704,2705,2709,2711,2713,2716,2719,2721,2723,2725,2727,2729,2733,2734,2735,2736,2737,2738,2742,2743,2746,2747,2751,2754,2756,2758,2759,2763,2765,2768,2769,2771,2772,2776,2778,2780,2782,2784,2787,2791,2794,2795,2798,2799,2803,2808,2809,2810,2813,2816,2820,2821,2825,2828,2831,2834,2836,2838,2840,2842,2843,2846,2848,2850,2852,2854,2858,2861,2864,2866,2867,2869,2870,2873,2876,2877,2878,2880,2881,2885,2887,2888,2890,2892,2895,2896,2899,2900,2901,2903,2904,2905,2906,2907,2911,2914,2917,2919,2921,2923,2925,2927,2930,2931,2934,2938,2940,2941,2944,2948,2951,2952,2956,2957,2961,2963,2964,2965,2968,2971,2974,2976,2979,2983,2986,2987,2989,2993,2996,2997,2999,3003,3004,3005,3007,3008,3012,3016,3018,3020,3022,3023,3026,3028,3029,3030,3032,3034,3039,3042,3047,3050,3051,3054,3058,3060,3061,3062,3063,3065,3067,3068,3071,3073,3075,3077,3082,3085,3088,3090,3092,3093,3095,3096,3099,3100,3102,3103,3105,3107,3110,3111,3112,3114,3117,3118,3119,3120,3122,3125,3126,3129,3132,3135,3136,3139,3142,3145,3147,3148,3149,3150,3151,3153,3156,3157,3158,3159,3160,3162,3164,3168,3169,3172,3174,3175,3179,3181,3182,3183,3184,3185,3188,3190,3192,3193,3195,3196,3198,3200,3201,3203,3204,3205,3207,3209,3212,3214,3215,3216,3219,3221,3222,3225,3227,3229,3232,3233,3235,3238,3240,3245,3248,3254,3256,3257,3259,3261,3262,3263,3266,3267,3270,3272,3274,3275,3277,3278,3280,3281,3283,3285,3287,3289,3291,3293,3295,3299,3301,3304,3305,3307,3309,3310,3312,3313,3314,3315,3318,3320,3321,3323,3325,3326,3329,3332,3334,3338,3340,3342,3344,3347,3349,3352,3353,3355,3358,3362,3363,3366,3368,3369,3370,3372,3373,3374,3376,3377,3380,3381,3383,3385,3387,3392,3394,3396,3400,3403,3405,3406,3408,3410,3413,3414,3416,3418,3419,3420,3422,3424,3425,3427,3430,3431,3432,3434,3435,3436,3438,3439,3444,3445,3447,3450,3453,3456,3457,3459,3464,3468,3472,3474,3476,3477,3480,3483,3484,3486,3490,3493,3495,3497,3500,3501,3502,3507,3508,3509,3513,3514,3515,3516,3517,3519,3521,3522,3523,3525,3527,3528,3529,3530,3532,3536,3537,3538,3541,3543,3546,3548,3551,3555,3557,3559,3561,3564,3565,3567,3571,3575,3578,3580,3581,3583,3587,3589,3591,3595,3598,3600,3603,3606,3610,3613,3617,3619,3621,3623,3624,3626,3628,3630,3634,3639,3643,3648,3650,3653,3654,3656,3658,3660,3663,3666,3668,3670,3672,3675,3676,3678,3680,3682,3684,3685,3687,3688,3692,3696,3697,3698,3702,3703,3706,3708,3709,3710,3711,3714,3716,3718,3721,3724,3725,3728,3731,3732,3733,3736,3739,3744,3749,3751,3752,3753,3754,3757,3760,3762,3764,3766,3768,3770,3773,3777,3778,3783,3784,3789,3790,3792,3793,3795,3796,3800,3801,3803,3805,3808,3810,3811,3813,3814,3816,3818,3820,3821,3822,3825,3828,3829,3832,3836,3841,3843,3844,3845,3847,3849,3851,3853,3855,3856,3857,3859,3861,3863,3865,3866,3867,3868,3869,3872,3874,3876,3877,3878,3882,3883,3884,3886,3889,3891,3894,3896,3899,3902,3904,3906,3908,3909,3911,3912,3915,3917,3918,3921,3923,3924,3925,3926,3927,3930,3934,3935,3937,3940,3942,3943,3944,3946,3947,3949,3950,3953,3954,3955,3956,3957,3959,3960,3962,3963,3966,3967,3971,3973,3977,3978,3981,3983,3985,3986,3987,3989,3993,3994,3996,3999,4000,4003,4008,4012,4014,4015,4016,4019,4021,4024,4025,4026,4028,4029,4030,4032,4033,4035,4038,4039,4041,4043,4045,4046,4049,4050,4054,4057,4060,4063,4066,4069,4071,4073,4076,4081,4082,4084,4085,4086,4089,4090,4093,4094,4098,4100,4104,4106,4108,4109,4113,4115,4120,4121,4123,4125,4126,4128,4132,4134,4136,4137,4140,4141,4144,4146,4147,4148,4150,4152,4155,4156,4159,4160,4162,4164,4167,4169,4172,4173,4174,4175,4177,4180,4182,4185,4187,4188,4191,4193,4194,4196,4198,4199,4202,4203,4205,4207,4210,4211,4212,4214,4217,4220,4222,4224,4226,4227,4229,4231,4235,4237,4239,4241,4243,4245,4247,4248,4250,4253,4254,4256,4260,4261,4262,4263,4264,4266,4267,4269,4274,4275,4279,4281,4283,4285,4286,4289,4290,4292,4294,4296,4297,4298,4300,4302,4304,4305,4307,4309,4310,4311,4313,4315,4316,4317,4319,4321,4322,4325,4327,4331,4332,4334,4337,4341,4342,4344,4345,4347,4349,4351,4352,4355,4358,4362,4363,4364,4366,4367,4370,4372,4375,4377,4380,4383,4384,4386,4388,4392,4393,4397,4398,4400,4401,4403,4404,4406,4408,4413,4414,4416,4417,4420,4422,4425,4428,4431,4433,4435,4437,4440,4443,4448,4452,4454,4456,4458,4462,4463,4465,4467,4472,4473,4474,4476,4477,4481,4485,4487,4489,4492,4493,4495,4498,4503,4505,4507,4509,4513,4516,4517,4519,4522,4524,4528,4531,4533,4534,4537,4540,4542,4543,4545,4546,4549,4551,4552,4554,4556,4558,4561,4563,4564,4565,4568,4571,4573,4574,4576,4577,4578,4579,4580,4584,4585,4587,4588,4590,4592,4594,4595,4596,4597,4598,4599,4602,4604,4606,4608,4611,4612,4617,4618,4620,4622,4629,4631,4632,4635,4636,4638,4639,4640,4642,4644,4645,4646,4647,4648,4653,4654,4656,4661,4663,4665,4666,4668,4670,4672,4675,4679,4681,4686,4688,4689,4690}
Returns: 1567
32768
{26190,32583,16928,4415,9964,6784,30491,28664,27030,27778,29327,17981,29210,24979,31867,18949,26432,24795,11521,17008,16233,14847,30307,26530,26628,24291,11569,20440,17166,10098,4956,5000,29151,26190,26891,19868,9394,8839,10273,23511,19052,23414,21925,18106,1106,20778,15907,32568,11625,25790,128,11202,5503,16689,31902,3411,17362,7803,4483,6184,11653,5536,4260,13085,18479,9665,27198,11170,16619,14122,22704,19308,25713,6823,14059,8227,27871,14423,14395,27757,30209,23167,26037,25820,18684,15847,6097,19033,1127,21112,6332,9939,24056,23520,13864,26638,22294,27454,18274,20371,15790,30675,3771,11757,14044,11777,25424,8801,22800,24782,14950,8083,1906,25460,30152,16526,20600,28035,20098,2268,1454,3391,18864,32088,6875,4386,24325,6847,5844,14939,22248,2521,91,30564,26663,4217,13717,22250,17237,8587,1222,22595,1026,5513,10524,14331,28219,32739,32359,21487,28856,17660,21202,17346,6742,1906,13765,18280,2975,14998,32563,14018,27436,8996,2754,10840,1509,20029,18003,9830,2605,2570,15255,9870,14143,12867,10360,402,26637,11834,2616,14783,4888,19705,13151,28576,12005,16187,7315,20965,25789,17949,7331,3667,6548,18572,5180,29922,5907,24720,23999,12088,1245,5300,31214,9157,27718,22760,32310,21761,11987,7530,14711,19023,10756,8521,22626,20805,14585,29006,2693,11037,24240,29470,17757,833,8624,6063,17103,22801,1055,20243,15503,22526,2398,6893,11816,28258,25684,9201,4959,19569,14302,482,10478,20965,17595,29889,10630,21003,30381,8419,22879,31492,31851,30410,28290,5687,29785,19156,1101,17642,14822,16339,19629,19796,1464,2764,6583,350,23775,15691,9845,16788,14682,11975,13759,7121,26750,19632,12855,1623,20928,3059,29321,15650,12970,28114,8507,20595,23253,1288,1910,142,5328,10089,7760,5106,12072,31539,21059,27219,687,22134,20625,10174,24940,29206,1677,28810,2985,16638,11970,20413,7859,20310,24624,1710,27407,25741,4057,11753,15856,15935,21779,15444,27637,6424,1313,15056,20795,24566,25285,8094,1286,16550,10884,1545,11604,4290,13458,13266,12502,23632,14707,7966,31722,10977,32357,27823,10049,32530,19190,10081,3365,20339,2330,16112,15420,14062,21848,11583,15601,24055,3245,30332,18617,9440,4599,4470,24714,25303,5320,8915,8703,7208,6070,22215,20680,25995,19516,2592,17421,16735,5779,23707,17845,7880,11216,13194,29561,16869,16606,9489,22493,16199,10493,14635,15190,23582,3724,26376,7139,3990,8453,12864,19355,4351,10040,19604,27862,20872,23790,9740,23687,30577,24378,24168,6605,27559,10978,6121,23437,18946,21611,15538,19267,1862,10604,23818,17984,26476,22269,26090,5292,27033,279,3190,14272,7788,27397,27660,18140,28780,26872,31150,19753,15722,20253,6353,14245,15073,29325,19080,9609,32371,5288,8526,21304,9923,14725,22714,25038,2058,30267,10634,27597,27375,13294,12188,10559,23361,14507,30853,23558,14155,32572,5780,22259,10160,821,23860,12444,25293,9910,14526,5324,7606,15182,25836,11718,20510,32712,6716,18545,30602,4241,9148,9448,20801,22706,11198,22220,4522,1367,28480,12034,29397,22046,27835,25227,2828,24677,3171,94,14187,31761,11483,18978,1454,5190,28817,10759,27492,32455,7444,18893,16371,18625,22233,15738,23020,6120,247,17942,24398,21237,2446,26398,19325,15528,28851,25438,25800,2198,24774,13312,22144,12606,15431,12006,25551,31433,5726,22343,10866,5706,8292,15837,13277,17700,12256,25592,7718,11410,7558,18154,30065,15700,24298,3950,27027,11175,25021,23228,25299,28636,22650,12578,5050,10216,21924,33,1331,30337,17331,21543,15636,9325,32018,6164,1685,21710,148,20211,3868,3406,31735,3668,30992,10047,10015,30181,14695,30413,12265,31488,3038,4496,16240,7437,1229,7655,28396,31146,18114,30887,21324,15798,9508,18111,7140,6776,1081,13480,6558,13366,4625,13684,24891,29120,771,1957,7267,10873,20326,7632,570,27303,1919,17780,22928,25556,11668,1630,21396,8517,9551,14628,32611,16024,10926,15205,2978,10439,27100,29845,1194,24549,15490,3644,15057,16915,16417,22195,32121,7746,27712,15753,23749,10102,1613,13524,11477,24438,19505,734,4776,12742,28088,13234,29645,15906,28681,25141,14130,15252,23971,31888,24204,27551,12351,30678,7389,18134,12630,6904,12244,25242,8448,8471,26317,2456,18947,28578,27505,7930,17712,31874,3311,9775,3333,17660,31,12155,9728,24029,15296,29547,1768,12747,20827,5532,6034,29330,24654,22860,3023,5760,432,2110,4914,29436,20714,26302,19872,8602,32234,19857,12191,23827,8968,25807,138,26554,27080,190,24553,21756,24277,19434,18005,15315,11925,14289,16732,26617,24828,8088,14608,5114,3130,7789,24835,3646,23330,21824,3461,26461,11581,14777,312,26661,907,2659,26118,4567,24120,10772,1995,21319,9341,28392,3594,27049,10556,24329,23859,5105,23497,26587,30490,21460,13737,20999,9563,28551,31501,3897,28566,17304,27897,31832,23161,13368,6443,21815,11204,12685,1272,23773,29308,19109,1381,10129,22968,14056,12278,525,22407,3550,27837,9043,6281,6492,21348,11438,7173,17990,8694,30126,19290,13341,17764,16349,29385,17369,6353,12358,24761,19079,12753,21192,5057,13397,17660,30087,18117,28902,26417,22717,21949,29117,11565,381,25779,22497,27676,29673,26057,9677,8949,13223,4637,26376,23962,10083,9364,16065,12225,24150,9381,13054,14056,15608,21101,20997,26511,16388,19561,31691,17213,21302,21074,10570,29141,11060,6091,32721,6642,10301,27791,22132,14616,342,5900,4061,9641,21967,6511,19188,20921,17694,14388,28894,22240,21279,31877,3836,18544,10485,5070,14269,17009,12524,22778,21787,10490,7634,766,27611,3218,9301,26493,18101,11642,1838,30552,23719,8377,5359,5686,1507,9998,22627,11548,14048,22263,677,23386,306,20495,31,28725,1527,18249,14288,25280,21955,22666,9806,19603,28173,11095,23579,32537,7246,7530,24844,8789,2841,20258,7325,26412,7563,6864,9494,13887,433,12586,15809,26542,2676,18975,22077,30478,28141,4742,2924,21031,29937,15423,31837,20495,31990,22375,15324,4456,25956,24711,16723,410,7600,14484,31194,27673,2454,2278,31865,6091,21770,26196,27295,7633,6531,23476,12321,14365,25194,23886,9219,3911,11921,951,32146,7760,197,19927,10089,5647,27038,3809,13321,16674,12496,5683,5622,17520,25720,3123,16185,14167,6359,28746,29307,29124,2869,6498,22993,5531,9907,4940,26035,17393,6634,12446,2176,7600,16490,10696,6451,8816,6982,10008,510,14185,28645,7354,23973,7015,25748,27825,18580,19462,5715,21505,28868,25428,11155,15711,22955,15443,21412,11471,22422,14285,29375,5319,30678,18978,28339,1673,24942,3535,10349,21632,13285,28049,10883,26263,2091,5151,30038,11667,31092,11943,5417,21418,570,12865,22267,32163,898,15299,31954,10478,31453,19578,17007,28750,15746,5463,22384,16821,1327,13676,11269,21821,13689,18300,2439,32270,32369,21949,28760,15207,25491,18899,6292,16595,13328,12886,15165,516,11199,15932,30120,10147,16884,6573,10520,12215,7632,26331,11409,23893,15760,24744,32519,98,6299,19443,25652,1881,25135,14224,30336,14897,5271,10767,15489,28295,4876,16273,14529,31325,31362,24834,13963,9197,10147,10579,18096,18962,2699,15411,29509,511,5833,17699,10639,27669,30833,3262,13656,2756,13571,3371,26912,29587,309,11755,12971,17263,23205,21052,25504,21672,24258,11373,25081,19954,26155,21425,17451,16151,7706,26880,4379,8438,12120,10972,29692,13229,31880,11979,12392,24276,8088,4745,790,25826,4177,22048,24509,27633,17445,13073,9416,4896,8553,11272,27045,1307,20069,15233,31898,13637,13987,30495,31012,13898,5914,12369,6163,24019,31731,4682,30368,12896,22721,30767,4588,27985,17949,13750,6260,11342,30150,20316,31516,16994,6265,9903,21406,29238,16104,27158,17992,14343,12589,9927,30991,11001,20080,11935,4636,25247,16491,6862,27685,14007,11421,3910,20217,7179,3896,541,32444,21191,4566,11539,23696,3979,31276,30388,8039,16793,15138,2938,23519,5584,17592,3755,9805,22284,25950,15778,4611,20925,26991,5997,11557,27067,9139,5567,22654,7762,11216,17233,32464,18874,26069}
{3,4,6,9,12,14,18,21,23,24,25,29,33,34,37,39,41,46,48,49,52,54,56,58,61,64,66,69,72,76,77,80,82,84,87,89,92,93,95,97,102,103,105,109,113,115,119,125,130,131,135,138,140,142,144,147,152,154,158,160,162,164,166,169,172,174,177,180,184,187,188,191,193,194,196,198,199,202,205,207,208,209,213,214,217,220,222,227,229,232,235,238,239,243,245,248,252,254,258,261,262,264,268,269,271,273,277,279,280,284,286,290,291,294,295,297,300,303,304,307,309,310,312,314,316,318,320,324,328,330,333,335,338,340,342,346,348,349,351,355,358,360,362,364,368,371,373,376,379,380,384,387,389,392,393,395,396,397,402,404,408,410,413,418,422,425,429,430,432,435,437,438,442,446,450,453,454,455,458,462,469,470,472,474,476,479,482,487,490,491,494,497,501,502,507,508,509,511,514,518,522,525,530,534,535,536,540,543,545,549,552,557,558,560,563,564,568,572,574,578,582,584,585,586,587,590,593,595,598,600,601,603,607,608,609,611,612,614,617,622,627,629,632,633,636,638,640,642,643,646,648,650,651,657,659,663,667,669,671,673,676,678,682,685,686,687,690,692,693,694,698,702,706,710,712,716,717,719,720,721,729,730,735,737,738,739,742,745,748,749,752,754,758,760,762,766,769,773,778,779,783,786,789,792,794,796,798,801,803,805,806,808,810,811,815,817,819,823,825,827,831,835,836,841,844,846,848,850,854,855,859,862,863,865,871,876,879,881,884,888,890,893,895,896,898,901,906,908,911,912,914,915,916,918,919,921,925,928,930,934,935,940,942,947,948,951,953,956,958,960,963,965,968,971,973,976,979,985,989,993,997,1001,1003,1005,1009,1014,1015,1017,1020,1022,1024,1028,1031,1033,1036,1038,1043,1046,1048,1052,1054,1055,1059,1061,1063,1064,1066,1067,1069,1071,1075,1076,1080,1083,1084,1086,1089,1091,1093,1095,1100,1103,1107,1109,1112,1116,1121,1124,1125,1128,1130,1132,1135,1139,1141,1148,1152,1153,1156,1160,1161,1164,1166,1168,1170,1171,1173,1175,1176,1178,1182,1185,1188,1190,1193,1196,1199,1204,1206,1208,1209,1211,1213,1218,1220,1221,1223,1224,1225,1227,1230,1234,1236,1238,1240,1243,1245,1248,1251,1252,1254,1255,1257,1258,1260,1262,1263,1266,1268,1271,1276,1278,1282,1285,1286,1288,1290,1291,1294,1295,1298,1303,1305,1307,1310,1313,1317,1319,1321,1322,1325,1327,1328,1329,1330,1333,1334,1336,1342,1343,1345,1347,1349,1351,1353,1354,1356,1359,1362,1365,1367,1369,1370,1374,1379,1381,1383,1389,1392,1395,1397,1400,1404,1406,1407,1409,1411,1415,1419,1423,1426,1430,1434,1436,1438,1440,1442,1444,1448,1449,1450,1452,1454,1457,1458,1459,1463,1464,1466,1470,1472,1474,1477,1480,1482,1485,1490,1493,1495,1498,1504,1506,1507,1509,1514,1515,1517,1520,1523,1524,1526,1528,1530,1531,1533,1535,1538,1541,1542,1546,1549,1551,1555,1557,1559,1562,1565,1567,1571,1574,1578,1580,1583,1585,1587,1590,1592,1594,1595,1598,1600,1603,1605,1610,1613,1615,1618,1620,1622,1623,1624,1625,1626,1629,1631,1633,1639,1644,1648,1651,1654,1659,1660,1664,1666,1670,1672,1673,1675,1677,1679,1681,1682,1684,1688,1690,1694,1695,1698,1699,1702,1703,1708,1710,1712,1714,1716,1717,1720,1722,1723,1724,1725,1728,1731,1734,1739,1741,1744,1745,1747,1750,1754,1757,1758,1759,1763,1767,1769,1773,1775,1779,1781,1783,1787,1791,1793,1796,1798,1803,1806,1810,1813,1815,1818,1821,1826,1827,1828,1830,1832,1833,1838,1839,1841,1844,1845,1850,1853,1856,1858,1859,1862,1864,1867,1870,1871,1873,1877,1880,1881,1884,1887,1891,1894,1896,1898,1901,1905,1908,1910,1912,1915,1916,1918,1920,1921,1922,1927,1929,1933,1939,1940,1943,1947,1951,1953,1957,1961,1965,1968,1971,1973,1976,1978,1981,1982,1983,1985,1986,1987,1994,1996,2000,2005,2008,2012,2014,2016,2017,2019,2021,2024,2028,2032,2033,2035,2037,2038,2042,2045,2050,2054,2058,2059,2062,2063,2066,2067,2071,2075,2078,2079,2080,2081,2082,2086,2088,2091,2093,2096,2097,2100,2101,2105,2109,2111,2114,2115,2120,2122,2126,2127,2130,2133,2139,2142,2144,2146,2149,2151,2153,2154,2157,2161,2163,2166,2170,2172,2176,2183,2189,2190,2192,2196,2199,2200,2206,2210,2211,2219,2222,2224,2226,2230,2233,2235,2239,2243,2246,2250,2252,2257,2261,2264,2266,2268,2271,2275,2279,2281,2283,2285,2287,2289,2290,2293,2294,2296,2298,2300,2302,2303,2306,2309,2311,2313,2315,2316,2319,2320,2322,2324,2325,2326,2332,2336,2338,2340,2341,2343,2345,2349,2350,2352,2354,2355,2359,2361,2364,2366,2370,2371,2374,2377,2379,2380,2384,2387,2389,2393,2397,2399,2403,2407,2408,2412,2414,2417,2419,2421,2423,2426,2430,2435,2438,2440,2443,2445,2447,2451,2454,2456,2457,2458,2462,2463,2465,2466,2468,2469,2474,2477,2480,2483,2485,2486,2489,2494,2497,2500,2502,2504,2507,2511,2515,2517,2523,2524,2526,2527,2530,2532,2533,2537,2539,2540,2541,2543,2546,2548,2550,2551,2555,2557,2560,2562,2566,2570,2572,2575,2578,2579,2581,2587,2591,2595,2599,2602,2604,2608,2610,2613,2615,2618,2621,2625,2629,2630,2634,2635,2637,2639,2641,2643,2647,2649,2655,2658,2660,2663,2666,2672,2675,2678,2684,2687,2690,2692,2695,2697,2698,2700,2704,2709,2710,2712,2714,2715,2718,2719,2721,2723,2724,2725,2727,2731,2734,2738,2740,2741,2746,2748,2750,2752,2755,2759,2763,2766,2767,2770,2772,2773,2774,2775,2778,2780,2785,2786,2787,2790,2793,2796,2800,2804,2807,2810,2811,2814,2815,2817,2820,2822,2825,2828,2830,2833,2837,2840,2841,2842,2848,2850,2853,2857,2862,2864,2867,2868,2870,2871,2875,2876,2880,2883,2885,2887,2891,2895,2897,2899,2900,2903,2906,2908,2911,2914,2916,2918,2922,2924,2927,2930,2931,2932,2935,2938,2940,2944,2947,2949,2952,2956,2957,2960,2963,2965,2967,2969,2971,2974,2975,2979,2983,2985,2987,2991,2996,2997,3000,3004,3007,3011,3014,3016,3018,3022,3026,3028,3029,3031,3033,3040,3042,3044,3047,3048,3050,3052,3055,3057,3059,3063,3068,3070,3072,3074,3076,3082,3084,3087,3088,3090,3092,3095,3099,3101,3104,3106,3108,3111,3114,3117,3122,3127,3130,3135,3136,3139,3140,3144,3146,3148,3152,3155,3158,3160,3164,3166,3167,3168,3170,3175,3179,3182,3185,3188,3189,3193,3200,3201,3205,3206,3209,3213,3216,3217,3220,3222,3226,3228,3229,3231,3235,3238,3241,3242,3245,3248,3251,3252,3254,3257,3263,3265,3268,3272,3273,3275,3278,3279,3283,3287,3290,3291,3294,3298,3299,3301,3302,3303,3306,3308,3309,3311,3313,3316,3318,3323,3326,3328,3331,3334,3338,3339,3343,3346,3349,3353,3357,3360,3363,3365,3369,3370,3373,3375,3376,3377,3381,3384,3387,3389,3392,3395,3397,3398,3400,3403,3410,3413,3414,3417,3421,3424,3425,3428,3432,3435,3439,3440,3441,3444,3447,3450,3455,3458,3460,3462,3465,3467,3472,3474}
Returns: 942
8192
{8128,3541,8087,5124,127,4808,8015,2208,4772,6497,6031,8026,5895,6860,2287,3754,5638,799,1570,7130,4793,2237,1,4742,2205,4787,4969,3760,2303,6936,4720,3686,5687,1208,4052,650,5255,7718,440,479,4938,2173,12,5606,3271,3329,4963,5821,2029,6917,6666,4526,1258,3661,7104,1441,3152,7767,6006,6445,6243,4072,2804,3991,217,5194,2420,3204,4896,3233,3209,2487,5134,3051,511,7874,2980,3855,4508,8187,4182,6298,3824,2239,3336,3256,1476,7264,5067,4604,2766,2512,5912,7330,5847,1919,7206,1005,3981,3973,673,5218,8108,8109,6393,7555,8029,1404,23,7906,3577,3031,7750,5710,8096,5761,3755,2020,874,5920,6561,2289,2604,4100,4600,8050,6686,2688,5101,2608,258,280,5222,87,7318,359,4586,2968,6279,5643,3166,3262,2373,7827,3484,224,5232,6596,629,7198,478,3646,2752,1828,7032,3581,7849,7558,3709,2736,4188,5398,3587,4996,2777,6527,1227,109,6558,839,5071,917,135,1672,2879,5901,6165,938,7374,889,23,2916,6304,3044,2422,1905,6481,900,6050,4684,6110,5027,2820,6753,5530,662,1910,6189,104,8187,7352,700,3330,5943,6772,2828,6944,3712,3670,7398,4290,1914,4190,4785,5135,3535,6268,4581,1683,189,53,1727,236,3632,3040,4054,2864,2151,217,7507,3245,6848,2249,4984,3310,1742,3562,1349,37,81,6389,6647,6777,5460,1844,1856,2027,3859,3581,6666,2530,239,4248,4271,8089,3131,3681,2952,1048,6696,192,5063,4739,4267,855,3230,2286,5054,5267,4009,2583,6613,383,7091,1996,6412,1455,7126,2535,6635,3741,1322,4399,3407,2539,6663,420,7294,3699,3103,3347,3302,2583,6544,1284,7345,2278,7477,2668,4539,1541,8044,464,4636,898,677,968,1002,1043,3596,5159,377,4226,6301,7490,1986,4673,4118,294,1612,7559,2335,2012,596,1792,4394,2050,4758,5121,7798,7791,5522,6097,6089,455,2482,1424,861,6199,7485,992,7058,4046,915,1628,4109,5440,7596,6312,6872,279,3425,8086,2868,4271,7570,7896,6861,7826,1203,3135,3597,3358,3052,1414,1358,5782,4720,6736,690,5927,6953,2515,8061,1925,4746,4717,7103,567,689,303,7228,4564,7587,4145,3187,3021,8183,5185,5562,402,4545,7501,4202,6476,6174,182,287,1923,7996,2429,6669,3186,872,8182,6026,512,1777,399,1755,4768,4995,6386,5998,7596,7915,3971,169,6922,3541,2859,2430,7728,6816,5623,6912,2046,6887,2311,7232,1798,7128,243,943,5959,5144,8095,4457,1162,6501,3649,1459,1516,168,4639,28,7525,4306,5978,1439,6995,6982,5849,5949,7286,30,3885,1684,4083,323,3122,4830,2899,3235,3511,3835,2992,5248,898,3,7562,1110,2984,3087,11,318,2046,4548,5314,3700,6194,7010,2610,240,4076,4857,3532,2238,6928,2431,4395,6954,3601,1942,3808,5734,7419,7356,7197,3544,431,6341,5904,3535,6303,2926,1266,3531,2813,3827,5903,6713,7737,1167,4957,6351,4713,1241,900,3716,7155,6651,5235,6750,6308,1723,6385,3612,1322,879,2792,3090,3489,6373,4435,6460,6839,6486,7204,766,5295,2198,5031,4509,7768,3732,1591,766,964,4724,3429,5304,873,6249,4840,6446,5145,4514,3611,4279,5873,7050,994,1698,581,4777,1349,310,325,7573,7228,3194,992,3388,2685,2299,2879,512,4958,4730,226,4117,42,1459,6474,409,1410,2370,1750,4585,2255,745,5698,5058,7639,4419,5119,692,3858,6471,4198,2190,7793,6045,146,98,2209,3921,4711,6853,4654,497,5160,6662,1042,6308,2748,2320,7324,2657,7551,5308,6625,6381,7007,3417,1046,5317,2739,3402,173,6067,5131,4477,6691,3657,2060,6582,3278,6665,285,2177,3661,4229,4990,5591,2917,8022,315,6998,8059,2362,6911,3615,4368,1616,7140,95,2044,4048,977,921,7254,1857,6910,7364,2142,6572,225,3172,5099,6337,4490,5833,7472,1685,1627,7079,4349,7166,416,2103,5077,1581,4240,1079,3472,5558,7114,2045,6778}
{9,13,18,28,35,41,48,57,60,64,71,74,80,90,97,103,110,118,126,133,140,148,154,161,168,175,183,190,196,202,206,215,221,225,231,238,248,256,264,274,284,295,299,309,316,327,332,339,347,359,364,369,380,388,393,399,407,417,426,432,443,449,454,459,467,475,480,484,491,497,502,510,515,518,522,529,535,544,550,555,562,578,589,600,608,617,629,636,649,659,664,671,679,685,697,703,709,715,725,731,739,749,754,765,771,776,779,789,794,799,805,807,815,824,827,833,843,855,863,875,882,887,891,895,902,908,912,922,925,935,942,948,955,961,969,974,978,990,1000,1007,1010,1019,1026,1032,1038,1048,1056,1061,1069,1078,1080,1088,1099,1107,1111,1119,1125,1131,1139,1146,1154,1159,1167,1174,1187,1199,1206,1212,1226,1237,1244,1252,1259,1269,1280,1288,1294,1307,1318,1324,1329,1337,1345,1351,1360,1368,1374,1386,1396,1402,1411,1422,1428,1437,1445,1453,1463,1469,1479,1484,1489,1497,1502,1505,1514,1519,1527,1534,1548,1554,1563,1570,1578,1584,1587,1595,1609,1616,1620,1623,1628,1635,1641,1649,1652,1655,1664,1671,1679,1689,1698,1706,1716,1723,1727,1733,1738,1747,1752,1758,1765,1770,1776,1779,1790,1796,1801,1812,1819,1825,1834,1839,1844,1850,1855,1858,1864,1869,1875,1883,1892,1906,1908,1915,1926,1932,1938,1945,1954,1961,1966,1974,1978,1989,1993,1999,2011,2016,2021,2027,2036,2042,2047,2054,2062,2069,2077,2086,2091,2097,2104,2107,2117,2125,2137,2141,2147,2152,2157,2161,2170,2176,2184,2189,2196,2205,2215,2223,2230,2239,2246,2250,2256,2259,2265,2269,2276,2284,2290,2295,2307,2313,2321,2327,2330,2338,2343,2350,2358,2371,2379,2386,2393,2399,2407,2414,2420,2426,2435,2440,2446,2450,2455,2466,2475,2480,2487,2494,2499,2508,2514,2524,2531,2536,2544,2556,2566,2577,2586,2599,2607,2618,2625,2631,2638,2646,2656,2662,2669,2680,2689,2692,2698,2705,2714,2721,2731,2735,2748,2751,2759,2763,2769,2774,2782,2790,2795,2803,2810,2818,2824,2830,2835,2846,2854,2860,2865,2870,2883,2886,2893,2899,2906,2917,2921,2929,2936,2944,2953,2963,2967,2975,2981,2992,2996,3006,3014,3022,3026,3032,3036,3044,3050,3058,3062,3065,3075,3085,3091,3095,3101,3110,3116,3122,3129,3133,3138,3145,3155,3161,3166,3173,3183,3187,3197,3203,3207,3212,3219,3223,3233,3238,3245,3257,3266,3271,3278,3284,3292,3298,3307,3318,3322,3329,3333,3338,3345,3351,3357,3363,3369,3378,3387,3392,3398,3406,3412,3417,3425,3432,3436,3442,3450,3456,3460,3464,3470,3476,3485,3490,3498,3507,3515,3522,3528,3536,3543,3550,3554,3559,3569,3576,3585,3594,3601,3606,3617,3624,3630,3638,3644,3647,3653,3657,3662,3672,3682,3690,3694,3698,3705,3711,3721,3729,3737,3748,3756,3759,3764,3768,3772,3779,3784,3791,3798,3808,3822,3828,3834,3842,3854,3864,3866,3874,3879,3891,3900,3906,3914,3921,3928,3932,3938,3944,3952,3958,3966,3970,3981,3987,3994,4002,4011,4015,4024,4031,4041,4045,4048,4054,4062,4072,4076,4082,4092,4098,4113,4123,4129,4133,4137,4143,4150,4159,4162,4173,4181,4188,4195,4200,4209,4218,4221,4231,4238,4246,4254,4258,4268,4270,4278,4284,4287,4291,4297,4301,4310,4314,4325,4336,4344,4351,4364,4377,4384,4390,4399,4407,4415,4429,4444,4450,4455,4463,4469,4473,4486,4494,4501,4505,4515,4522,4529,4536,4541,4547,4552,4560,4568,4575,4577,4586,4593,4601,4610,4612,4617,4623,4634,4641,4651,4657,4661,4670,4677,4685,4688,4693,4697,4708,4723,4732,4744,4748,4755,4762,4770,4779,4783,4787,4797,4804,4810,4817,4824,4830,4840,4845,4852,4864,4871,4873,4878,4883,4889,4897,4905,4914,4918,4927,4933}
Returns: 489
64
{64,57,35,47,3,52,21,31,27,46,45,28,35,64,59,56,6,40,15,62,62,39,43,27,9,60,6,46,18,13,46,28,35,6,33,7,29,45,23,45,49,64,48,50,5,14,50,39,28,49,37,57,26,30,47,11,62,50,43,56,63,32,38,61,50,36,19,8,36,52,3,1,8,11,35,16,36,11,20,17,49,10,39,12,23,42,44,52,22,59,26,60,17,58,53,10,42,33,43,10,52,27,9,33,35,57,28,29,59,23,63,30,1,5,21,18,48,30,41,44,55,14,18,63,49,44,32,33,42,62,28,1,55,53,33,42,16,60,29,39,48,31,9,17,56,6,30,27,13,39,12,1,32,28,22,57,21,59,29,13,22,13,64,15,35,51,58,55,15,26,9,33,30,19,52,18,29,45,24,7,8,48,10,39,28,38,37,24,15,40,10,27,10,40,22,43,15,3,51,24,3,5,31,41,37,54,48,12,15,15,61,48,15,9,50,58,59,23,2,18,42,62,57,62,23,53,13,20,26,11,45,22,60,63,8,35,24,53,38,21,12,7,4,43,14,46,59,12,33,58,8,1,30,53,6,62,28,56,24,24,28,45,33,17,11,26,57,30,51,16,31,42,7,14,62,20,40,13,46,1,36,53,15,26,12,36,2,63,32,60,36,40,39,29,18,33,37,54,32,20,32,21,48,60,25,41,10,44,6,42,22,2,55,29,41,43,15,4,38,20,8,64,6,61,31,7,7,15,27,34,32,44,19,45,59,6,53,38,27,1,49,6,8,59,44,18,32,44,27,2,35,31,25,1,15,15,29,5,24,28,35,63,35,23,46,48,4,62,51,37,7,50,59,39,55,40,62,51,21,33,47,31,53,7,5,12,35,21,31,40,10,25,37,57,55,56,57,22,11,14,42,56,40,57,64,29,22,55,47,29,31,12,16,37,14,57,18,33,34,33,15,10,61,12,40,15,61,31,43,43,1,28,26,12,20,6,45,37,17,54,56,57,8,43,28,38,15,62,9,41,38,63,22,52,39,42,6,46,40,13,2,29,8,40,37,36,28,48,32,20,11,17,3,30,15,10,41,18,13,25,53,56,11,47,61,24,35,26,45,21,10,20,40,20,2,58,23,43,28,47,12,25,59,34,59,1,1,41,51,21,48,64,59,33,10,37,37,21,8,17,61,13,52,57,44,30,51,21,2,10,38,43,62,7,9,17,42,53,31,36,31,11,20,28,54,32,36,34,8,11,30,53,37,54,36,51,9,37,48,9,39,21,43,23,34,54,7,64,36,57,20,59,6,2,8,25,42,3,31,25,9,4,19,22,29,25,3,49,1,64,34,13,47,11,3,32,31,48,53,14,8,29,59,36,24,12,19,17,6,57,11,33,33,40,12,52,44,20,53,51,61,5,21,39,51,29,64,43,6,45,18,36,8,43,56,36,10,33,12,55,54,32,32,60,9,6,62,24,59,18,56,52,14,57,23,41,27,15,11,29,13,38,7,18,14,45,29,9,22,18,7,31,5,41,41,46,1,38,32,56,61,16,14,35,44,10,45,61,1,30,31,64,21,46,21,3,36,60,31,38,12,8,9,16,12,16,63,30,39,50,32,48,36,55,2,42,20,18,15,63,45,3,5,38,13,35,29,56,51,29,31,37,45,27,17,36,54,27,15,13,20,44,56,11,36,7,50,13,44,60,58,39,32,57,39,49,25,43,55,25,18,52,2,40,34,46,51,64,16,50,60,29,23,49,4,22,12,8,47,11,58,35,19,6,46,30,55,24,17,2,15,19,33,3,18,61,52,38,63,21,45,2,1,35,49,20,48,10,43,25,45,28,47,22,20,16,36,27,29,6,6,24,34,6,59,59,57,25,30,44,58,50,20,49,53,13,47,64,57,64,4,4,62,58,61,27,14,56,3,33,61,11,38,2,60,10,43,26,8,48,50,58,39,39,4,32,12,23,7,47,50,60,19,42,37,56,59,11,58,26,14,56,5,18,35,51,17,52,6,30,9,16,63,4,29,57,7,3,57,19,21,49,39,3,38,52,49,45,36,62,27,54,28,24,21,52,45,12,32,63,59,2,44,21,24,35,52,40,14,1,20,57,19,2,7,63,64,34,44,45,23,2,41,59,7,23,47,19,1,60,38,53,13,15,54,44,32,30,56,58,41,44,23,14,55,48,31,58,13,33,28,15,51,40,25,37,36,33,54,8,4,46,37,48,7,63,17,32,45,54,55,40,4,1,41,28,15,14,43,33,46,50,15,9,61,29,40,34,11,11,10,29,45,3,55,41,15,41,23,60,50,13,24,9,59,64,53,52,58,2,45,33,4,33,59,27,25,18,62,21,52,39,31,29,1,35,52,24,1,2,5,64,3,20,63,25,60,13,25,2,39,15,30,8,34,18,44,3,16,58,29,24,30,57,56,48,32,30,37,31,31,46,39,28,36,15,14,11,53,38,30,53,43,8,42,63,56,19,4,8,39,15,37,32,8,42,39,11,29,18,10,16,11,35,37,5,40,41,37,46,25,38,2,52,39,61,57,16,31,8,4,21,10,50,32,34,62,28,31,38,48,51,45,52,25,16,22,22,31,18,64,29,49,24,21,32,52,4,15,64,43,34,52,33,63,18,37,16,46,62,22,17,43,17,6,51,39,41,42,64,23,51,31,3,61,32,33,44,49,16,57,49,18,37,9,39,49,34,9,35,21,1,58,11,7,58,52,57,18,44,30,11,46,49,60,48,37,39,39,64,12,21,7,29,35,6,41,49,6,44,31,56,55,13,49,51,5,39,61,64,43,10,1,38,45,61,22,57,60,40,39,49,45,64,25,28,10,12,52,45,6,36,7,60,42,16,44,5,16,57,36,19,12,15,16,12,58,58,7,45,15,60,62,3,39,61,63,59,35,11,43,27,22,21,18,35,45,26,13,33,3,12,13,58,50,43,23,48,23,42,50,26,11,3,12,62,59,11,31,34,37,46,21,5,58,24,47,53,21,9,18,51,44,12,51,29,40,58,44,3,51,50,51,27,43,24,50,23,45,35,57,14,20,12,5,6,50,37,46,42,2,3,34,20,43,46,45,13,11,39,49,1,8,45,49,63,56,18,28,33,39,49,47,20,7,18,38,34,29,35,15,20,46,6,21,17,32,36,62,10,19,30,46,18,9,15,47,58,32,28,28,18,42,20,34,59,63,58,21,52,53,28,36,28,2,2,30,50,33,51,63,44,50,10,56,1,39,19,56,43,20,20,17,28,22,59,30,35,9,19,26,37,19,48,63,10,2,2,58,26,12,10,18,9,1,37,36,54,26,2,23,42,57,3,37,13,59,5,27,58,56,27,28,48,8,36,54,34,6,47,52,49,29,55,37,56,61,26,16,9,5,1,33,50,43,35,26,10,62,60,3,5,40,36,54,4,4,54,51,14,3,21,55,39,28,32,8,33,21,49,59,38,36,54,11,12,16,44,30,13,9,21,21,54,22,15,18,37,15,15,16,26,37,4,50,57,25}
{1,2,3,4,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,116,117,118,119,120,121,122,124,125,126,127,128,129,130,132,133,134,135,136,137,138,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,209,210,211,212,213,214,215,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,289,290,291,292,293,294,295,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,350,351,352,353,354,355,356,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,411,412,413,414,415,416,417,418,419,420,421,422,423,424,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,523,524,525,526,527,529,530,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,588,589,590,591,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,701,702,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,784,785,786,787,788,789,790,791,792,793,794,795,796,797,799,800,801,802,803,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,845,846,847,848,849,850,851,852,853,854,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1055,1056,1057,1058,1059,1060,1061,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1229,1230,1231,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1367,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1387,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1519,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1596,1597,1598,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1625,1626,1627}
Returns: 1111
1024
{301,242,446,180,304,636,928,180,877,313,391,853,999,910,5,316,236,160,331,1021,278,426,690,227,853,223,1008,927,922,80,321,875,579,210,462,451,425,366,909,909,259,966,530,88,334,153,509,827,250,430,818,533,247,888,124,486,464,287,1005,651,475,213,34,97,442,270,859,7,762,176,654,787,295,280,914,113,122,195,759,6,511,78,870,834,41,454,509,912,979,855,200,959,228,753,564,806,818,992,582,915,938,520,120,779,871,41,811,759,537,877,3,116,747,676,721,127,805,637,850,719,972,640}
{7,13,20,29,37,43,56,60,65,78,83,89,99,106,111,119,127,136,140,149,158,168,172,180,191,203,206,213,220,227,236,247,258,268,282,298,307,316,327,335,351,362,372,381,393,402,414,423,437,443,455,467,477,486,492,508,513,520,528,540,545,550,558,567,580,591,603,609,620,633,640,647,657,667,678,687,692,703,713,723,733,745,757,768,776,781,791,795,807,814,825,835,843,850,858,866,879,891,909,920,934,941,948,956,965,978,986,994,1003,1011,1017,1023,1033,1045,1055,1062,1070,1077,1089,1098,1103,1112}
Returns: 88
512
{77,480,481,482,494,483,294,387,401,366,290,416,458,342,123,89,269,31,33,287,39,123,322,495,437,313,482,143,251,304,348,252,135,189,179,307,211,48,67,392,274,202,294,195,89,202,99,347,368,92,218,101,445,356,224,509,467,103,351,340,166,34,100,196,134,244,52,7,397,368,18,465,398,65,295,242,24,226,85,389,447,132,265,155,115,281,405,77,371,338,278,319,29,28,383,313,440,79,488,159,323,475,8,97,301,301,362,331,14,332,448,112,77,399,410,246,2,222,414,350,373,480,133,44,473,411,233,189,351,182,101,503,234,199,91,146,341,204,310,194,410,97,35,38,219,40,424,28,215,308,231,202,289,387,476,402,292,498,106,245,228,378,186,341,48,265,244,181,30,427,339,464,129,415,287,232,307,56,41,507,312,118,51,293,479,223,188,124,96,10,419,205,178,289,72,100,221,457,223,57,79,404,269,172,373,169,267,370,59,244,8,31,237,500,211,99,370,511,378,503,462,413,227,257,402,434,298,455,196,486,60,81,467,508,433,506,283,190,1,446,401,362,197,133,362,403,211,189,171,250,223,12,221,242,114,287,127,388,275,42,37,464,176,278,178,233,145,5,408,190,366,77,418,396,412,239,120,485,429,21,168,293,100,308,489,285,104,265,254,135,171,473,153,484,85,300,139,104,387,111,150,412,39,487,70,445,284,185,346,200,373,476,135,188,251,74,140,180,249,253,509,20,372,214,123,330,298,488,140,113,480,106,463,357,243,482,466,222,337,303,121,131,145,371,418,272,70,256,96,277,326,26,291,310,41,363,204,333,259,499,488,343,7,358,18,180,418,226,183,216,93,95,397,354,482,276,71,307,96,214,79,28,176,351,174,378,413,319,417,319,507,111,213,183,348,77,209,181,153,39,408,430,413,109,66,464,376,306,238,292,23,139,81,96,165,311,458,58,30,235,264,208,356,155,510,225,202,308,34,412,228,326,480,259,327,365,353,248,450,97,502,383,433,21,447,498,243,376,363,105,339,15,115,234,311,504,129,195,448,397,335,421,199,118,221,45,141,432,124,478,321,441,473,420,41,274,21,409,151,489,416,221,160,486,157,274,7,238,99,90,438,224,474,143,206,338,348,186,59,159,21,252,180,443,487,103,243,448,62,141,273,329,372,292,2,89,502,320,363,495,397,414,44,509,262,410,348,27,441,389,472,10,67,98,458,436,382,315,58,111,88,179,45,206,320,197,371,407,393,64,248,286,320,491,295,177,483,3,191,384,126,57,329,1,480,76,84,419,449,482,415,373,3,350,93,48,389,278,201,37,103,136,423,113,17,495,55,506,464,510,446,225,379,360,238,294,45,68,500,160,468,147,384,421,291,132,385,40,69,389,24,374,398,413,464,85,96,24,501,188,393,54,169,275,349,269,68,386,254,189,81,441,401,172,177,323,302,131,62,376,221,98,142,254,79,486,401,215,335,383,1,247,175,456,236,421,452,419,262,473,351,303,448,351,195,478,191,374,239,87,457,111,92,47,474,457,317,274,455,323,64,342,391,377,461,191,284,165,482,422,206,386,191,179,125,324,221,470,181,64,213,89,62,234,89,364,9,138,398,237,374,77,196,210,62,19,227,273,396,228,398,427,307,181,153,287,86,196,305,109,85,239,437,379,361,222,80,225,485,54,266,192,449,176,287,411,485,78,112,28,344,187,221,229,108,356,155,168,220,455,429,82,477,277,23,261,29,345,377,112,473,274,110,301,87,90,310,179,74,161,246,162,507,334,63,50,110,145,332,501,22,39,17,57,72,505,508,211,511,8,287,89,335,79,89,140,99,9,15,490,452,33,264,326,348,82,273,427,144,29,315,195,433,402,420,135,12,143,296,14,476,313,377,272,145,22,178,455,508,375,453,451,56,189,461,389,95,82,187,174,425,290,162,257,174,497,372,379,92,489,490,105,116,99,261,384,298,36,144,437,27,501,4,487,151,490,14,315,504,369,70,108,177,196,401,103,404,77,264,479,232,47,101,482,465,297,92,481,200,219,166,249,260,410,253,12,225,477,441,148,183,177,114,244,480,390,149,152,290,48,412,50,31,16,87,249,271,220,143,254,152,213,39,94,314,223,229,358,162,318,495,148,219,439,86,191,83,288,483,445,381,398,471,87,492,186,355,368,182,132,509,2,299,253,50,432,240,201,484,144,502,349,391,11,230,269,112,191,40,212,252,418,482,293,7,446,249,76,472,389,386,353,427,199,212,286,438,288,507,395,153,506,262,229,27,276,165,236,66,234,287,62,220,334,215,356,213,18,113,202,507,433,440,499,287,162,139,254,483,280,59,426,265,214,13,273,398,275,202,121,108,325,444,174,155,295,216,465,129,102,61,405,464,227,249,378,182,431,330,490,263,157,151,419,28,132,468,356,21,306,244,402,319,373,234,250,157,393,396,235,154,227,455,347,353,315,138,510,126,155,495,213,2,42,100,16,406,126,181,471,192,346,71,265,475,197,20,464,51,485,373,140,54,240,314,144,389,332,46,209,399,245,415,226,36,268,344,73,140,199,27,403,130,434,119,371,452,186,462,146,459,91,27,215,168,483,320,95,301,466,367,407,479,503,161,129,416,318,510,398,95,209,130,35,443,156,347,98,253,25,238,160,402,473,198,399,190,43,327,32,297,497,373,454,163,470,454,253,107,458,163,165,54,244,504,297,61,302,253,51,159,117,51,311,162,184,420,9,117,254,63,331,113,500,338,174,286,395,65,149,425,413,197,6,243,78,287,146,473,53,41,74,497,65,96,446,165,469,386,390,306,131,474,496,239,133,209,509,1,287,16,271,408,236,266,120,430,316,170,332,354,426,387,478,1,339,226,157,2,49,504,30,126,131,76,425,198,109,461,194,320,125,212,204,497,267,425,58,171,59,351,121,61,179,271,312,446,506,236,147,132,268,26,32,312,399,143,268,25,207,509,241,105,184,313}
{3,6,8,12,15,19,21,23,24,25,27,29,32,33,38,39,43,45,47,50,51,52,54,57,59,62,65,67,69,73,74,75,78,82,84,85,86,88,91,93,95,99,102,103,107,109,113,119,121,122,124,126,131,135,138,142,144,151,152,153,156,158,159,160,163,164,166,169,174,176,179,180,182,185,188,189,191,194,196,198,202,207,209,211,217,221,224,229,231,233,235,239,241,243,244,248,250,254,256,257,261,264,266,269,270,273,278,282,285,288,289,292,295,296,298,302,303,305,313,315,319,321,323,330,334,337,341,342,345,347,348,350,351,353,356,359,360,364,368,371,373,375,378,380,384,386,389,390,396,398,402,404,410,413,415,417,419,421,427,428,432,433,435,437,442,444,446,449,450,453,456,458,461,465,468,469,473,478,482,485,489,490,491,492,494,497,499,502,506,510,512,514,516,518,522,523,526,532,533,535,537,538,541,544,545,547,551,553,555,559,562,565,567,568,569,571,574,576,578,579,583,585,589,594,597,601,602,605,607,610,613,616,618,621,623,625,628,631,634,638,639,641,643,649,651,653,655,657,659,662,664,666,669,673,676,679,683,687,691,696,699,702,704,706,707,710,712,713,716,717,721,722,726,728,730,735,739,740,746,749,752,754,756,759,762,766,768,769,772,775,777,780,781,783,784,787,788,793,795,799,801,805,808,812,815,819,823,825,827,831,832,833,835,840,844,848,851,854,855,857,859,860,862,865,868,869,873,875,877,881,882,884,886,889,891,893,895,896,898,899,902,904,907,908,911,912,914,918,923,926,927,929,931,937,938,941,943,947,952,954,956,957,960,961,964,967,969,971,976,978,982,985,987,988,992,994,996,1000,1004,1005,1008,1011,1015,1020,1024,1029,1032,1033,1037,1039,1042,1045,1046,1049,1051,1054,1056,1058,1061,1062,1064,1066,1068,1070,1072,1076,1080,1085,1087,1089,1092,1095,1098,1101,1103,1105,1108,1110,1111,1114,1115,1118,1123,1124,1129,1134,1138,1139,1142,1145,1146,1147,1150,1155,1159,1163,1164,1166,1167,1170,1171,1175,1177,1180,1181,1182,1184,1187,1189,1191,1192,1193,1195,1196,1200,1202,1205,1206,1207,1211,1217,1226,1227,1228,1230,1234,1236,1238,1241,1249,1251,1253,1255,1258,1262,1264,1266,1271,1275,1278,1281,1284,1288,1289,1292,1295,1296,1301,1303,1305,1307,1308,1311,1313,1315,1320,1323,1325,1327,1329,1332,1337,1339,1340,1342,1344,1347,1349,1353,1357,1358,1360,1364,1369,1373,1376,1380,1384,1386,1388,1390,1392,1396,1401,1403,1406,1408,1410,1413,1414,1415,1420,1422,1425,1427,1430,1431,1434,1437,1441,1444,1445,1448,1451,1456,1459,1461,1462,1466,1469,1471,1475,1477,1480,1482,1487,1489,1493,1496,1498,1501,1502,1507,1512,1519,1525,1527,1529,1532,1536,1539,1540,1542,1546,1552,1553,1555,1558,1560,1562,1563,1568,1571,1573,1574,1575,1577,1579,1581,1583,1589,1590,1593,1596,1597,1601,1605,1607,1608,1612,1617,1618,1622,1624,1625,1628,1630,1634,1638,1640,1645,1648,1649,1653,1657,1658,1660,1664,1669,1671,1672,1673,1675,1676,1678,1680,1681,1683,1684,1688,1692,1695,1696,1697,1699,1701,1704,1706,1709,1713,1717,1719,1721,1723,1725,1727,1729,1731,1733,1738,1740,1742,1744,1746,1748,1751,1755,1757,1763,1765,1768,1769,1773,1780,1781,1782,1786,1790,1791,1794,1795,1800,1802,1803,1806,1809,1812,1816,1818,1819,1821,1822,1825,1829,1831,1835,1837,1839,1842,1844,1846,1849,1850,1854,1859,1860,1862,1866,1867,1871,1874,1879,1880,1881,1886,1889,1891,1898,1902,1904,1905,1908,1911,1913,1914,1916,1917,1919,1923,1924,1928,1929,1930,1934,1936,1939,1944,1946,1949,1952,1954,1956,1958,1960,1964,1966,1969,1971,1973,1979,1982,1986,1989,1992,1993,1996,1999,2002,2004,2007,2010,2014,2018,2022,2024,2028,2030,2032,2036,2038,2041,2043,2048,2052,2057,2061,2063,2068,2070,2075,2078,2082,2083,2085,2086,2087,2088,2091,2093,2095,2098,2102,2103,2104,2106,2110,2112,2114,2116,2119,2122,2123,2124,2126,2128,2129,2131,2135,2136,2139,2143,2145,2148,2151,2152,2153,2156,2157,2161,2164,2165,2167,2168,2174,2176,2178,2182,2184,2188,2191,2194,2196,2198,2200,2202,2203,2205,2208,2211,2215,2216,2217,2219,2220,2221,2224,2225,2230,2232,2234,2236,2240,2242,2246,2249,2251,2254,2258,2260,2264,2271,2272,2276,2279,2282,2283,2285,2287,2289,2291,2293,2297,2300,2302,2307,2311,2313,2317,2321,2322,2326,2328,2330,2332,2334,2339,2341,2343,2344,2347,2348,2351,2354,2358,2362,2364,2366,2368,2371,2372,2374,2377,2379,2381,2385,2386,2389,2394,2397,2399,2401,2404,2406,2409,2415,2418,2420,2422,2424,2425,2427,2430,2432,2434,2437,2439,2441,2444,2447,2450,2454,2457,2459,2460,2462,2467,2468,2471,2474,2476,2477,2482,2486,2489,2491,2495,2497,2499,2503,2504,2508,2511,2514,2516,2519,2520,2523,2529,2532,2536,2540,2542,2544,2546,2547,2550,2553,2557,2560,2563,2569,2572,2579,2582,2583,2584,2588,2590,2593,2595,2597,2600,2604,2607,2609,2611,2613,2615,2616,2620,2624,2626,2631,2633,2636,2638,2640,2642,2643,2647,2648,2650,2654,2655,2658,2661,2666,2670,2673,2675,2679,2681,2683,2684,2687,2691,2694,2696,2699,2700,2701,2705,2708,2711,2713,2719,2720,2724,2728,2729,2733,2735,2740,2741,2744,2746,2750,2752,2753,2757,2759,2762,2764,2766,2770,2772,2774,2778,2780,2781,2786,2791,2792,2796,2799,2804,2805,2806,2809,2810,2811,2814,2818,2822,2825,2829,2831,2834,2837,2838,2841,2844,2847,2851,2855,2856,2859,2865,2867,2868,2870,2871,2874,2875,2878,2884,2887,2890,2891,2896,2901,2902,2906,2910,2913,2919,2922,2924,2929,2932,2934,2937,2939,2944,2946,2950,2956,2960,2961,2964,2966,2968,2970,2972,2974,2975,2976,2979,2982,2984,2987,2988,2991,2995,2996,2999,3001,3002,3003,3006,3009,3015,3016,3020,3024,3025,3028,3029,3031,3034,3036,3040,3042,3045,3048,3049,3051,3055,3057,3063,3068,3070,3072,3074,3076,3078,3080,3084,3087,3090,3092,3095,3096,3100,3102,3104,3108,3111,3116,3120,3122,3124,3126,3128,3132,3135,3137,3140,3142,3144,3147,3148,3150,3154,3157,3160,3163,3166,3167,3171,3173,3175,3176,3180,3181,3183,3185,3187,3188,3190,3193,3196,3198,3199,3204,3207,3208,3211,3215,3217,3221,3224,3226,3228,3230,3233,3235,3237,3238,3242,3245,3251,3253,3255,3260,3262,3267,3269,3275,3279,3280,3282,3284,3286,3288,3290,3293,3297,3299,3300,3303,3305,3309,3311,3314,3317,3318,3319,3320,3324,3327,3328,3330,3331,3333,3335,3336,3339,3342,3344,3346,3348,3349,3352,3355,3358,3359,3360,3361,3366,3369,3370,3373,3377,3378,3381,3382,3383,3385,3386,3388,3393,3399,3402,3405,3407,3410,3413,3415,3417,3420,3423,3424,3425,3426,3428,3430,3433,3435,3438,3440,3447,3451,3453,3457,3459,3460,3462,3467,3468,3471,3473,3479,3482,3485,3486,3487,3491,3493,3498,3502,3504,3505,3507,3510}
Returns: 926
32
{6,14,13,22,11,14,22,10,19,7,2,5,24,9,9,18,9,9,9,27,32,22,12,18,27,22,31,21,23,24,30,14,10,5,22,14,6,28,4,21,8,15,23,11,15,23,21,25,31,9,11,13,10,2,27,21,7,1,4,9,8,6,20,8,19,31,26,13,29,32,4,24,7,17,2,14,26,8,21,9,22,24,18,2,7,12,22,12,11,1,8,15,16,7,3,20,27,24,1,32,10,4,29,4,16,29,31,1,14,17,17,28,6,21,21,26,7,28,22,2,24,21,24,29,24,18,23,26,20,32,16,11,14,13,23,4,31,28,19,3,14,7,8,26,12,2,13,26,9,9,21,23,29,6,19,14,14,13,15,26,9,9,27,30,27,21,31,12,15,28,28,8,16,13,9,26,19,30,12,10,26,30,20,25,11,12,29,18,5,31,1,17,9,15,23,17,24,24,11,19,4,2,10,9,10,14,4,17,32,8,18,22,9,1,1,30,9,10,26,1,8,16,5,4,20,24,26,16,23,1,11,16,1,28,29,30,3,32,18,31,8,10,20,28,25,15,17,8,3,7,18,28,20,15,15,28,26,6,32,5,14,32,27,3,1,10,15,30,22,13,21,11,13,11,2,26,2,13,21,19,20,17,26,11,24,28,8,31,26,12,26,20,24,11,9,6,29,30,2,10,13,5,22,3,2,9,24,15,23,21,29,7,4,14,14,17,25,2,19,25,7,11,31,22,1,9,22,6,18,19,23,26,23,19,14,11,27,27,28,26,17,28,7,18,29,11,8,29,8,20,25,8,1,29,18,3,25,27,8,1,25,4,17,27,20,8,22,10,32,32,29,6,12,6,14,19,30,32,4,9,22,14,1,18,9,31,1,30,12,23,28,12,4,10,27,12,24,27,32,6,11,12,26,30,30,4,5,30,32,10,14,28,25,7,10,6,2,11,20,14,5,9,13,9,25,7,22,11,9,31,26,6,14,3,28,5,2,21,29,21,22,3,20,29,13,5,17,30,32,19,5,32,26,24,19,27,6,21,19,1,18,29,18,28,30,1,6,31,4,20,10,4,3,15,4,32,13,29}
{1,2,4,5,6,9,10,12,13,15,17,21,22,23,24,26,27,28,29,31,33,35,36,38,40,42,44,47,48,49,51,53,54,56,58,59,60,61,62,63,65,66,67,68,69,70,73,74,75,76,77,79,80,81,83,85,86,87,90,92,94,95,96,98,99,100,101,102,104,106,108,110,111,112,113,115,116,118,120,121,122,123,124,126,127,128,129,130,132,134,136,138,140,142,144,146,147,149,150,152,155,156,157,159,160,161,162,163,164,165,166,167,169,170,171,173,174,175,177,178,179,180,182,183,185,187,188,189,190,193,195,196,198,199,200,201,202,203,205,206,207,208,212,213,214,218,220,221,222,224,225,228,229,230,233,234,238,239,240,242,244,246,248,250,251,252,254,255,257,258,259,260,261,262,263,264,265,266,267,268,270,272,273,274,275,277,279,282,283,285,286,287,288,290,291,293,294,295,297,299,300,301,302,303,305,307,308,309,311,312,315,317,319,321,322,324,325,326,327,329,330,332,333,337,339,340,342,343,345,347,348,349,350,353,355,356,358,359,361,362,363,365,367,370,371,372,373,375,377,378,379,380,381,385,387,388,389,390,391,394,395,396,397,398,399,401,402,403,405,409,412,414,417,419,420,421,424,425,426,427,429,431,433,435,436,438,439,440,441,442,443,445,446,447,448,450,452,454,455,457,460,461,462,466,467,468,470,471,472,473,474,475,476,477,479,480,481,483,484,485,487,488,490,491,492,493,494,497,498,500,502,503,504,506,508,510,511,514,515,517,519,520,522,523,525,527,528,529,530,531,533,535,537,538,541,543,545,546,549,551,553,557,559,562,565,567,570,572,573,576,577,580,583,585,586,587,589,591,592,595,596,597,600,603,608,610,611,612,613,615,616,618,619,622,625,627,629,630,633,634,635,636,639,641,643,644,645,646,647,648,650,654,655,656,658,659,660,662,664,665,666,668,671,673,674,675,677,679,681,682,684,685,688,690,691,692,694,695,697,699,700,701,702,703,707,709,711,712,713,716,718,720,722,723,725,726,728,731,732,733,734,735,736,737,739,740,742,744,745,746,748,749,751,752,753,754,755,756}
Returns: 334
32
{30,16,16,12,30,5,27,22,21,4,16,1,20,32,17,20,14,24,11,29,30,20,24,9,28,1,14,25,11,10,5,18,22,3,28,23,26,12,17,23,2,20,15,9,17,1,23,2,28,30,27,3,20,11,26,5,22,29,1,27,6,19,18,10,28,13,1,30,25,17,26,20,11,18,17,5,7,13,11,25,27,15,20,6,19,32,17,8,19,22,16,9,20,20,16,31,18,23,3,11,17,32,26,14,13,23,6,25,19,16,23,19,31,11,32,13,30,6,31,9,13,16,12,5,16,25,6,30,10,17,23,21,15,26,8,32,30,14,19,12,18,16,28,25,1}
{40,69,107,137,177,208,239,270,299,329,364,389,419,444,475,509,545,572,603,635,663,688,714,747,771,794,822,855,888,917,950,978,1007,1031,1054,1083,1107,1136,1163,1189,1215,1244,1269,1301,1328,1360,1386,1416,1435,1469,1504,1533,1560,1586,1623,1642,1663,1693,1726,1759,1780,1812,1841,1877,1913,1929,1957,1987,2031,2057,2083,2108,2137,2165,2196,2223,2245,2273,2295,2316,2342,2367,2397,2415,2442,2471,2497,2518,2548,2582,2617,2632,2664,2685,2710,2729,2756,2781,2809,2826,2855,2885,2917,2941,2965,2992,3013,3034,3063,3095,3126,3154,3185,3214,3246,3269,3297,3323,3355,3388,3412,3439,3470,3491,3525,3556,3579,3597,3639,3663,3682,3709,3736,3771,3797,3828,3852,3878,3911,3933,3964,3994,4024,4047,4071}
Returns: 107
131072
{43722,49747,78737,45067,101505,97582,49979,85810,123417,82283,102524,96588,6089,113733,53984,90052,3626,123306,54742,109033,19238,42323,85323,24216,117414,50518,28907,19614,64007,53969,38250,115895,83412,5587,8054,94342,36309,125478,123064,39548,53222,115487,13198,86784,26281,9502,98000,34754,21902,37840,77663,23207,18493,111858,43462,118300,75737,112542,15015,13645,95536,94422,41289,48913,127825,36467,29689,60155,105101,49676,86670,114792,84078,54794,106447,79871,11677,81795,20226,94323,104264,126983,79712,131070,89597,60153,86979,64617,143,29350,88380,76816,15868,33197,9189,80578,122328,112109,105906,50657,17226,119440,128888,105378,90911,102240,20737,106974,49634,35843,82270,33093,15267,60999,70987,92776,99140,29471,69089,70263,99326,35445,28245,24080,7158,30333,113690,71956,66443,87961,14606,103126,8522,36495,87063,130702,1810,61208,102616,69753,57713,56702,15312,30845,48825,41580,74918,103368,114640,65674,101600,63286,98629,26641,97747,19709,55204,66813,52485,92265,120475,87283,80588,92961,1766,127643,84846,90057,109454,119912,114559,50805,66430,23971,124107,14268,102640,20656,89483,31720,105656,127571,28711,80912,92145,97794,30280,117649,117514,93173,38539,28861,89540,129558,104579,68657,110614,59761,22374,67241,104583,94792,72723,1471,10491,70002,64452,69752,96122,559,81196,34044,70898,129026,113217,35175,116860,64717,14718,96781,61993,79805,118227,16420,120014,53822,28956,95262,127724,77957,16717,112570,108316,17391,68903,117774,77079,122301,12725,102530,27863,104804,11850,20513,67022,13840,51550,35603,21709,67452,9457,115388,31611,100032,46538,112457,118030,130117,111956,130601,94232,48246,88659,57669,33305,98645,125251,69471,38333,2979,33181,52866,65873,26283,29119,72154,8060,125542,118738,89321,24756,26646,6739,87664,55420,52725,112546,5618,118246,130858,86079,65338,115559,105878,13327,18375,26232,70580,81763,96891,58388,85272,2303,13945,15232,81090,34552,104085,21892,37087,117908,96051,123506,50213,67594,10500,85536,73064,31567,67451,30020,7816,53187,57954,78912,25703,121085,12920,25566,2564,40822,43375,91391,16734,90212,120385,129226,66885,70773,85799,53070,34755,66498,6965,62257,86322,127409,60893,66905,58547,98316,77659,71715,77598,101661,116060,58922,67100,34042,6087,7451,101759,58082,124437,98719,96646,95191,76299,118237,120115,86093,32079,22686,13392,128798,16299,118666,2375,96405,70758,39829,14208,13528,79264,58121,60233,87388,103690,100678,16664,56779,117214,2223,22047,128255,25740,36817,64757,121706,26850,26425,33130,125099,26675,21011,108334,56972,130377,88066,89967,123964,83092,13121,37387,102645,86897,31370,116617,102886,43510,35537,98671,109464,74526,12612,40735,72603,131006,8878,19933,111537,20778,92582,45864,27724,16610,8618,49404,106649,31549,4488,29748,109277,23396,1090,73120,76907,89996,7111,83707,61682,58580,116135,83300,4462,12958,95794,39801,114554,30172,56075,60868,63047,29981,119484,97421,78597,32468,74555,120516,19186,23469,108028,117281,31204,59228,93310,95516,55430,88779,15596,53217,101903,84736,111295,493,17853,125106,84987,92779,46288,74976,112636,90622,21065,1872,55644,27928,116285,48233,71933,54916,2795,43062,58533,31300,48755,75019,32853,59755,47191,31900,44466,65561,105119,8957,6573,100141,51932,82788,130257,35823,970,83724,124750,47152,99548,75568,85559,75307,117104,4969,72704,60329,42492,15984,17084,125095,110047,97158,6948,17932,121138,49032,14303,98724,34393,102650,82208,58620,10117,64247,92432,120131,78088,44908,71182,35537,12709,44416,97352,94085,25265,129414,68788,41874,29250,113768,56291,129240,118321,96493,28612,5515,84786,60850,49092,89892,42951,45899,106341,53088,73558,110182,18369,124259,1565,67155,16642,99749,80720,30943,100696,117705,8995,105688,99171,37387,52989,126248,127658,115301,130729,85736,6412,91656,113076,77139,124097,120921,91337,81646,2790,33549,93010,36836,124698,72078,121363,99805,66864,27204,39951,14915,22138,36087,94081,114787,16565,30165,72979,46383,61708,50523,65594,118567,109133,69042,99291,3388,8640,112295,121620,105481,27304,76269,62050,37215,27901,65985,88550,79469,94295,103574,114198,49531,57490,92402,92313,71825,73261,56607,14222,32501,125170,40649,97802,59363,114648,94023,87310,4441,28089,74127,2224,98924,59085,114582,98769,4348,104313,21820,53513,109362,20854,65362,21534,117165,8396,101886,86990,75700,97964,84487,27676,10093,38065,81214,38391,41053,102263,48793,81272,114477,23600,127796,29818,71181,104724,95697,67025,66967,130377,91900,61921,16033,2374,51327,111077,17880,93474,14140,33687,105097,16112,55072,127888,92799,120714,103753,57615,38238,129267,115975,19082,10836,48566,36059,22180,33676,48472,39190,16885,109382,52821,72259,7754,118520,121533,13816,42157,77142,88285,114994,49153,9395,9744,89065,125537,118670,114219,54778,130074,128441,71312,75267,40824,258,49256,76646,16692,7346,90640,128270,2489,110553,5169,22288,12306,64188,113550,80357,117693,51286,70927,81475,77612,56639,54788,69973,117036,5620,130864,7521,36879,130761,19855,74637,3516,71812,102511,113628,84100,62704,39122,47379,63738,122709,94878,130724,49534,56638,42152,30527,28897,31841,20759,35636,114124,72482,15390,46660,89393,8580,64414,44304,55965,63728,57006,123576,77202,31167,30850,12256,43972,130526,75469,56495,109690,20603,92169,90112,128453,19220,90808,116306,123112,71897,105251,58282,67499,53690,33164,13322,82134,91915,81770,40600,112295,111643,63142,12327,63101,60849,98915,86584,130424,107456,111951,1053,96866,69954,69131,76902,115093,102046,124581,80184,82983,107384,82091,128684,49190,27981,31706,115432,119842,121036,98803,6154,9411,99389,81583,50316,55235,2544,38753,6987,117751,125438,98881,58567,109245,86874,23019,60376,111502,42118,71188,41051,128758,42193,44788,97055,39601,77705,40304,102035,46405,86788,75397,65658,86973,48596,60667,2348,86256,113963,73944,99742,51693,67500,102570,76234,77818,71853,56604,61848,81095,129083,72679,102137,25138,128206,21392,83019,111442,3078,26130,121519,47376,100456,81115,78970,76054,111205,21818,23641,68179,23465,10416,57946,95965,33797,22828,120945,57199,90075,67005,53418,31050,106616,14523,122781,86975,67379,130271,120406,30501,66755,21345,108367,25467,28325,408,80541,84352,11516,129304,54776,28032,76746,63965,44484,18332,53997,129670,13497,10709,53439,122650,20561,96405,72638,4971,47267,120577,112668,113289,96968,68824,67239,20827,120185,57377,76515,57040,96247,41318,93873,6333,35839,114128,94854,16609,123847,20180,94577,59924,75216,21450,59628,86570,57490,1563,101591,100749,4281,101731,104573,81416,120075,15666,17925,43737,52129,96962,97855,60544,124062,93541,43810,49999,22258,110815,131054,109641,119913,25987,98884,74830,72338,11855,108587,58899,102066,127429,30552,65524,45918,100054,113316,113438,128742,56202,72468,96787,39471,104387,111184,127252,16421,115407,1271,26478,71273,34576,80811,3375,30805,54141,59973,122185,28174,20299,113921,65702,96693,120943,64538,78641,50526,105036,65206,18524,62722,110158,89719,39194,106487,76972,66983,123363,50723,38955,2654,58298,30089,107528,110976,128955,83283,96233,126202,110902,19459,117258,78121,42720,50912,27753,103875,34832,51545,15935,57137,49055,64363,120703,17847,4702,110274,112811,38987,58289,90797,85427,110993,71500,12169,108338,73157,58270,33486,29124,84240,87267,5471,92092,38423,114028,5692,15865,21822,56345,74814,57642,48492,73360,57865,113973,49095,69931,110534,113938,55357,117550,91865,112087,54608,62012,119856,66621,129519,52377,73296,84062,54494,50745,83139,90099,45433,117024,30477,984,106049,120338,8653,49680,110102,91942,16680,29210,20866,86570,116779,46551,93687,73080,113983,40379,78180,1564,68696,72604,100616,21239,65541,37852,39653,64704,119550,102698,43444,77696,121947,91061,91080,112253,30997,18677,50613,33,1523,105966,29227,70624,130442,102933,108777,37016,106102,54712,122655,38526,24168,119561,25652,89106,122679,9656,30283,6682,72593,14654,45670,63291,4462,15026,58523,43031,20728,57189,124203,38290,100086,124419,26608,100141,88683,109708,93182,68611,116117,47578,86491,76142,29401,110078,100144,13006,38611,110911,12129,6792,82221,77295,80102,67758,11854,26087,59335,36956,50344,84206,67119,96596,6300,120260,107620,114640,103112,17440,39449,76062,9398,14947,119674,38900,121013,26174,122063,75805,63974,128022,6176,1381,70195,103781,37057,61025,35908,2784,31011,90115,124965,31652,2003,99214,74164,83756,41220,9444,75915,29784,66197,13237,6513,91209,33001,40598,84501,1101,19328,45949,10268,24242,10409,105898,27959,7849,73792,71050,80473,24604,9680,123775,85185,63646,64256,29492,45034,84813,15286,24926,4110,110050,52677,109189,74080,92598,50843,60887,28837,30710,16840,4984,90692,81119,105414,103021,75129,113196,3298,36489,61910,62865,112819,70530,66977,42104,61177,118409,35916,37580,103240,119955,54427,44816,92533,81846,3740,10890,23819,47796,76319,110792,49861,28199,89802,24126,68457,12126,26479,53824,26592,85359,35526,97575,30464,124279,76854,73684,81367,17304,118729,22117,25585,33458,15599,64599,62827,88413,48192,15576,116031,53034,85199,13973,127663,29099,7742}
{2,3,4,6,8,10,11,12,14,15,16,19,21,22,24,25,27,28,31,33,35,36,38,40,41,43,46,48,49,52,53,56,58,59,60,61,63,65,66,68,72,75,77,79,81,82,84,86,89,91,94,95,99,104,107,108,110,111,115,117,118,120,122,124,126,127,128,129,131,132,133,134,136,137,138,140,142,144,145,149,150,151,152,154,156,158,164,165,166,168,169,171,173,174,175,176,178,180,182,183,184,185,188,191,194,196,197,199,201,204,206,207,208,213,214,216,218,219,221,222,223,224,225,229,231,233,235,237,238,240,241,242,243,246,247,249,251,252,253,254,255,259,261,263,264,265,267,268,269,271,272,274,278,280,282,283,286,287,288,289,291,292,294,295,297,299,302,303,305,307,308,309,310,311,312,316,317,319,321,323,325,326,329,331,332,333,335,338,339,340,341,343,344,345,347,348,349,350,351,352,353,355,357,358,360,361,362,365,369,370,371,373,375,377,378,380,381,382,383,386,387,388,390,391,393,395,396,398,401,403,404,405,406,408,410,412,416,417,421,423,424,426,427,430,432,435,437,440,441,443,444,446,450,451,452,454,455,456,458,459,461,462,465,466,467,469,472,473,475,476,479,481,482,483,485,486,488,489,490,493,495,496,499,501,502,504,506,507,508,509,510,512,514,516,518,521,523,524,525,526,528,529,531,532,534,535,536,537,539,540,543,545,548,549,550,552,553,555,557,560,563,564,567,568,571,572,573,574,575,576,579,582,583,587,588,589,591,592,593,595,597,598,601,604,605,606,608,609,611,612,614,617,621,622,624,625,626,629,630,632,633,635,637,640,642,643,645,646,647,648,649,651,652,654,657,658,661,662,663,665,667,668,669,672,674,677,679,680,683,685,686,687,689,691,694,696,699,700,702,704,705,707,709,710,712,713,715,716,718,719,722,723,725,727,728,729,732,733,736,738,740,741,743,744,746,751,753,755,756,758,761,763,765,766,771,773,774,776,779,781,782,783,786,788,789,790,793,796,797,798,799,800,801,803,807,808,811,812,813,814,816,817,818,820,822,825,826,829,830,831,833,834,837,838,840,844,845,847,848,852,854,859,861,863,864,865,866,867,870,872,875,876,877,879,881,882,884,887,888,890,891,892,895,897,898,899,900,902,903,905,906,908,909,911,912,913,915,917,918,919,920,922,925,928,929,930,934,935,936,937,938,939,941,943,944,947,949,951,953,956,957,959,961,962,963,966,968,970,973,974,977,979,982,985,988,992,993,994,997,998,999,1001,1002,1004,1006,1007,1009,1011,1012,1013,1014,1015,1016,1018,1020,1021,1024,1027,1029,1031,1032,1033,1034,1037,1038,1040,1042,1043,1044,1045,1047,1049,1050,1051,1052,1053,1054,1056,1058,1059,1060,1064,1067,1068,1069,1072,1073,1074,1075,1077,1078,1079,1080,1081,1082,1084,1086,1089,1091,1092,1093,1096,1097,1098,1100,1102,1103,1104,1106,1107,1108,1110,1111,1113,1114,1115,1117,1118,1119,1120,1122,1123,1125,1126,1127,1129,1132,1134,1135,1136,1140,1143,1146,1147,1149,1151,1152,1155,1156,1157,1160,1161,1163,1165,1166,1168,1171,1172,1174,1175,1178,1181,1182,1184,1187,1188,1190,1192,1195,1196,1197,1199,1200,1201,1202,1203,1204,1205,1209,1212,1213,1217,1219,1220,1223,1225,1227,1228,1230,1231,1232,1233,1236,1237,1238,1239,1240,1241,1244,1246,1247,1252,1253,1255,1256,1257,1258,1259,1260,1261,1263,1264,1266,1269,1270,1272,1274,1276,1277,1279,1281,1284,1285,1286,1287,1289,1292,1293,1294,1295,1297,1298,1299,1300,1301,1302,1304,1306,1309,1310,1313,1315,1316,1317,1319,1320,1321,1325,1327,1329,1330,1331,1332,1336,1339,1341,1344,1348,1350,1352,1353,1354,1355,1356,1358,1360,1363,1364,1365,1371,1373,1376,1377,1379,1381,1384,1386,1387,1388,1390,1391,1394,1395,1396,1397,1399,1400,1402,1403,1405,1407,1408,1409,1411,1412,1414,1417,1418,1419,1421,1422,1424,1425,1426,1428,1429,1432,1434,1435,1436,1437,1440,1442,1443,1445,1447,1449,1451,1453,1454,1455,1457,1458,1461,1463,1465,1468,1470,1472,1476,1477,1478,1480,1482,1485,1486,1490,1491,1493,1494,1496,1499,1501,1502,1505,1507,1508,1509,1511,1513,1514,1518,1519,1522,1523,1524,1527,1528,1529,1530,1532,1534,1535,1537,1539,1540,1542,1543,1546,1548,1550,1552,1553,1554,1556,1557,1561,1562,1565,1567,1569,1570,1571,1573,1574,1576,1577,1578,1579,1581,1583,1584,1588,1589,1592,1594,1596,1599,1600,1601,1603,1604,1606,1609,1613,1615,1617,1618,1622,1625,1628,1629,1632,1635,1638,1641,1642,1643,1646,1647,1648,1649,1651,1652,1654,1656,1658,1660,1661,1664,1666,1669,1670,1671,1672,1673,1675,1677,1678,1679,1680,1681,1683,1684,1686,1687,1688,1689,1690,1692,1693,1694,1695,1697,1698,1699,1701,1703,1705,1707,1708,1709,1710,1711,1713,1715,1716,1717,1719,1721,1722,1723,1726,1728,1729,1730,1734,1735,1738,1740,1741,1743,1744,1745,1748,1749,1750,1752,1756,1757,1761,1765,1766,1768,1770,1773,1774,1777,1779,1781,1782,1783,1784,1786,1787,1788,1789,1791,1794,1796,1797,1798,1800,1802,1803,1805,1806,1808,1809,1810,1811,1813,1816,1818,1820,1821,1823,1825,1826,1827,1828,1829,1830,1831,1832,1834,1835,1837,1838,1839,1840,1841,1843,1847,1849,1852,1854,1855,1856,1857,1858,1859,1861,1863,1864,1867,1871,1872,1873,1874,1875,1878,1880,1882,1884,1887,1888,1890,1891,1892,1893,1895,1896,1897,1899,1902,1903,1904,1905,1909,1910,1911,1915,1918,1919,1921,1922,1923,1926,1928,1930,1933,1935,1937,1939,1944,1945,1949,1950,1952,1953,1955,1957,1960,1962,1963,1966,1969,1971,1973,1974,1978,1980,1981,1983,1984,1985,1986,1988,1990,1991,1992,1993,1995,1997,1998,1999,2001,2003,2004,2006,2008,2009,2011,2012,2014,2015,2017,2018,2020,2021,2023,2024,2026,2027,2028,2030,2031,2032,2034,2036,2037,2038,2041,2042,2045,2048,2049,2053,2055,2058,2060,2061,2064,2066,2070,2071,2074,2075,2077,2078,2080,2082,2083,2085,2086,2087,2091,2093,2095,2098,2100,2102,2103,2105,2106,2108,2110,2113,2114,2115,2116,2120,2121,2122,2123,2124,2126,2127,2131,2132,2133,2135,2136,2139,2140,2143,2146,2147,2148,2150,2153,2154,2156,2158,2160,2163,2165,2167,2169,2170,2172,2174,2177,2181,2183,2185,2187,2188,2190,2191,2193,2195,2196,2197,2198,2199,2200,2202,2203,2205,2206,2210,2211,2212,2213,2214,2217,2218,2220,2221,2222,2223,2224,2226,2228,2229,2230,2234,2235,2236,2238,2239,2240,2242,2244,2247,2248,2249,2252,2254,2257,2258,2261,2262,2263,2264,2266,2268,2269,2272,2273,2274,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2289,2290,2293,2294,2298,2299,2300,2302,2303,2305,2307,2308,2309,2310,2311,2313,2317,2318,2324,2326,2331,2333,2336,2338,2340,2341,2342,2343,2345,2347,2348,2350,2351,2352,2353,2355,2356,2358,2359,2361,2363,2364,2367,2368,2371,2373,2375,2376,2377,2378,2381,2384,2387,2388,2389,2392,2393,2394,2396,2397,2399,2401,2402,2403,2405,2408,2409,2410,2412,2413,2416,2418,2421,2423,2425,2427,2429,2430,2432,2434,2435,2438,2440,2442,2446,2447,2449,2451,2455,2457,2460,2461,2463,2464,2465,2466,2468,2470,2471,2472,2473,2476,2477,2478,2481,2483,2486,2490,2491,2493,2497,2500,2502,2504,2508,2510,2512,2515,2517,2518,2521,2523,2526,2527,2529,2530,2535,2536,2537,2538,2539,2541,2543,2544,2545,2547,2550,2553}
Returns: 1018
32768
{4017,17228,9043,10063,16616,13995,15005,15389,1232,30508,26370,31026,10230,22084,25135,15852,28634,30964,8530,23534,13877,3065,1151,4282,23898,20817,1708,15108,4222,18645,7470,20468,27598,21430,4265,29900,21881,29915,30881,25979,457,13888,9703,30905,20907,17787,12103,7819,29709,2011,32496,9731,28592,14469,11839,27468,31758,6444,12462,18228,21810,22567,17858,13683,32622,3252,25850,10005,15620,3170,21995,23197,18665,25279,27061,23421,16127,24195,21067,30389,29489,30094,24310,639,22017,13099,29902,19211,26173,31304,27853,20099,5289,8002,6264,11914,26510,15148,2320,23992,6467,7300,21612,5000,24030,24445,30148,31082,29024,509,4041,20421,2249,13761,16527,31169,15786,17683,26335,29441,3298,5295,11204,10836,1630,10124,23079,6331,21696,1899,2426,11308,20744,5912,24478,16782,26484,6531,12602,29092,10203,8926,3814,24751,29949,14119,22713,4261,25429,2951,16573,27155,31011,13869,14382,18382,9851,4690,6727,19892,30025,15437,689,13049,7774,19361,7338,27762,25012,22312,23341,19358,13632,22928,29048,13087,5819,14985,3691,29090,2551,4876,19569,10282,3699,14703,31396,22782,7163,15333,23316,22633,32583,11859,11569,22735,15530,4718,23167,12168,28675,10039,24259,14403,30269,5910,3111,26779,1492,18923,5811,13804,14573,4741,25054,25421,27827,1318,24031,9715,16074,32447,22956,18998,23242,17101,2465,9132,14027,6080,8698,5844,20295,28685,18256,29456,26501,30759,16015,8094,19745,20397,12501,20114,6686,18006,1761,31938,29265,11043,21206,32224,15847,5789,30257,12289,27640,5873,11501,12795,21815,18147,26115,7209,26622,7866,21623,17207,23530,14416,27490,30910,17566,19879,623,3490,30745,27518,12148,3635,24168,10108,29921,18495,25984,9126,15336,10069,32044,18177,11369,21424,11295,21843,21421,17483,102,30240,11850,7359,21120,17686,4224,15303,2958,13388,5011,20290,23607,23228,7628,5831,4832,16294,19925,13802,1302,19843,2394,4999,18712,21865,10735,17264,18828,28121,16982,23566,3739,32272,14700,24994,27834,28947,32544,7390,8854,22984,27372,17112,19642,17324,25208,18502,30350,410,14888,4675,30105,1670,22642,29398,9440,12768,2,32679,896,31661,17350,21878,10931,4722,2860,17134,1166,18198,13290,8609,9700,4388,18906,21538,10989,2025,31874,29751,30550,25331,27917,13389,16268,28359,9886,21381,19007,24709,3562,17328,26134,5525,21587,17623,8421,4701,32171,16868,25236,32070,20251,9795,10056,24929,2200,13407,12612,13868,6544,6404,11333,14,5273,4050,24867,22338,31983,26882,16805,16643,9176,8434,16805,2308,11003,32246,9121,12091,25592,20765,5155,2112,11426,692,10329,23705,4692,870,4476,9579,30211,3861,6074,31529,7645,26237,13409,25850,6203,16643,27735,30126,3843,14335,22744,1341,10632,20774,7608,23527,24112,5539,24949,20021,7232,20408,13458,5922,341,6349,12988,12284,23832,22002,2429,31622,6412,6400,30012,21530,12601,6308,11919,27301,17865,4534,11992,26223,27825,26733,9333,23505,19873,18452,25539,31248,14764,19468,7028,16045,23321,27907,4019,3762,18692,355,8421,19591,15765,6191,26556,23314,25764,20877,14748,31985,13264,6242,30052,8408,31797,17566,2497,29207,26855,13763,15210,28301,25773,24967,19108,20834,27765,8822,13498,21502,8987,18066,28407,7379,3658,30244,7703,11702,15193,1801,30210,16804,9765,12506,6901,19430,6914,23168,3653,12461,28685,25047,26116,22882,22847,18998,18446,29958,17847,11951,24050,1808,9194,10535,14468,23920,7545,5979,24280,8291,21115,17200,3483,27900,22363,29602,30942,19795,14157,20454,13186,26487,175,18029,13457,26203,26545,21888,19457,28183,22208,9076,13671,24309,21337,18539,22602,16616,28944,981,11000,27419,9102,21503,5557,22911,7085,1544,8554,9287,31417,22742,11770,13163,2582,13746,24974,4728,19653,19778,31571,14060,11051,6117,12587,7609,10445,19559,16660,23142,1724,22585,25602,3238,27800,16509,22836,12063,11550,4935,19966,21624,31346,13477,30539,11699,24922,23306,18204,7952,10704,31474,16765,14041,18026,12705,4477,2949,19266,29446,8154,23769,30730,22256,4659,19890,14404,24023,17073,10838,6038,26024,27960,29004,1874,19224,80,15049,30084,23597,13595,9457,7385,19647,19135,6473,8167,19936,32483,4545,29045,15663,7651,31249,16005,6470,19096,25589,1537,1156,26265,844,17670,8094,20749,18678,7676,27013,833,31130,9131,6727,26446,18303,30908,6832,7742,17634,16159,19096,18508,30261,25080,15340,17121,25055,6104,24719,13617,13640,4638,25955,11600,29934,10629,5353,31983,12183,30461,8177,30164,21157,11028,4888,7032,2003,7496,3010,22563,29351,30668,28572,16688,13858,4958,32136,30485,24888,2541,1855,13068,15052,15856,32474,7502,25623,3953,17332,5093,27230,14065,15922,7003,10012,16726,25106,18300,14300,28509,6925,956,25873,17914,30649,16305,365,27728,6827,9578,8529,1804,4626,9323,1032,6125,12792,17728,9899,913,28089,26291,15016,16027,28942,14052,8194,18036,24959,28545,3458,28945,15583,5535,16181,18990,14809,15034,21941,9142,25472,32155,1732,12798,24868,20191,23049,977,30612,17960,27319,24881,20826,8692,2337,6924,32602,23902,7500,6403,27547,7182,21951,31179,9184,1474,31715,25990,29218,2079,14713,16592,11473,22096,12459,16938,280,25453,642,695,13677,32126,15764,32326,712,7227,12515,5566,10013,26546,17666,2629,15285,28713,18373,3686,9774,2470,1219,30165,11032,15036,5942,15196,15655,12092,6082,1973,7221,9383,8940,6977,13130,20303,13059,30601,25888,17463,27284,25785,6829,1255,12894,29259,28499,24443,30750,22863,17025,28268,27001,12741,18104,8344,14469,15281,23022,21314,19849,4006,2950,11476,17318,25010,12314,4188,11346,7326,17290,11983,22412,31404,7632,27713,17644,25623,10060,1135,27591,17065,17736,4862,14018,9464,10140,24834,24897,31457,29838,6800,23392,26624,2039,21514,29463,8209,5908,4157,16247,31789,2650,17729,11502,30485,17116,12129,4009,440,18671,5712,19285,10342,3530,552,28054,19495,31260,15027,2721,17116,30611,19649,16810,1000,31613,13904,2249,7751,21721,17277,15922,4103,8242,4936,32459,13915,18393,11365,26661,28783,24346,32618,13843,13936,29511,11454,6726,20802,7531,25067,15961,3722,13256,8959,5869,16321,29231,22976,2190,2625,19600,3518,23853,2372,24351,13620,11078,497,5020,8202,5540,27849,7012,4906,13601,24255,18966,17334,2974,26512,11447,32406,4540,18927,27991,27167,18160,1355,11111,29860,9630,16,27912,11221,31519,15458,11705,26130,26026,24693,21229,22470,8249,32452,30517,25663,20118,29058,2249,12879,10756,18383,10316,19047,16605,12875,2283,17605,29148,4041,19172,21397,26039,12807,26074,15855,2021,11623,14406,11717,24982,1487,13730,1009,16363,19948,29931,15032,14496,21817,3397,14377,28311,19541,16048,20219,27050,22072,22734,3457,27485,20506,10730,24481,25661,12507,31877,29099,2985,15360,18902,12075,7700,25428,19394,10717,27602,5501,246,10789,11425,24280,492,9069,31316,11565,13768,17400,26386,13772,2573,22768,22977,28893,18528,17509,13658,21446,402,19520,19965,28576,17768,5690,20668,22498,678,13817,2361,14465,29437,18362,23122,18918,25270,10981,19756,23612,29682,3373,19487,695,12690,6109,29975,31377,24050,13870,26911,16549,26032,5272,7425,25508,16133,9763,28885,5,16915,11764,15037,30196,12025,104,31459,20637,8787,26660,7471,349,10538,22707,32541,102,31049,22879,26193,6068,2862,22558,11938,5144,28377,23923,13434,21357,13538,26477,25205,9745,10594,727,20333,15581,26199,3844,1050,25611,28492,29088,19878,5761,6184,23818,29875,1055,27965,11515,18019,30945,10922,16963,5919,10656,3437,12167,17658,18053,26753,30235,16798,21063,27801,809,20971,8309,31001,4707,31602,1072,6432,5333,1587,9168,32640,14142,2823,5413,26809,9412,15716,22774,16924,10177,31002,965,20820,21404,6909,23741,22480,28617,19810,31475,20881,27919,14216,27716,30454,17276,26941,14366,5481,12387,27122,7117,8897,26881,1246,11476,9067,30583,16811,8492,4993,7401,29562,21551,32543,15539,26122,14923,22090,457,29439,21644,19730,8298,12140,22592,16503,19333,27586,9758,9464,11824,28315,22380,29592,30417,9401,5830,24188,17058,30452,11581,20025,32097}
{1,2,5,7,9,11,12,14,15,16,17,18,19,21,23,24,25,26,27,28,30,32,33,34,35,36,38,39,40,41,42,43,44,45,48,49,50,51,52,55,57,58,59,61,62,63,64,66,67,68,70,71,72,73,74,76,77,78,79,82,84,86,87,90,91,92,93,94,95,97,98,99,102,103,105,106,108,109,111,112,113,115,116,117,118,120,122,123,124,126,127,128,129,131,132,133,137,138,140,142,143,144,145,146,148,149,150,152,153,154,155,156,157,159,160,161,162,163,164,166,167,168,169,170,171,174,175,177,178,180,182,184,185,186,187,188,191,192,193,194,195,196,197,199,200,201,203,206,207,208,209,210,211,212,214,215,217,219,220,221,222,223,225,226,227,228,229,230,231,233,234,235,236,237,238,240,241,243,244,245,248,249,251,252,253,254,256,257,258,260,261,262,263,264,265,266,267,269,271,274,275,276,278,280,281,282,284,286,287,288,290,291,293,294,295,296,298,299,301,304,306,307,309,310,311,312,313,314,315,316,317,318,319,321,323,325,326,327,328,330,332,333,334,337,340,342,343,345,346,347,348,349,350,351,352,353,355,356,357,358,360,361,363,365,366,367,369,370,371,372,373,374,376,377,378,379,380,381,382,383,385,386,388,389,391,392,393,395,396,397,398,400,403,404,405,406,407,408,410,412,413,414,416,417,418,420,421,422,423,424,426,428,429,431,432,434,436,438,439,441,442,444,446,448,449,450,452,453,454,457,458,460,461,462,463,464,467,468,470,471,472,473,474,476,477,478,479,480,481,482,483,484,486,487,488,489,491,492,494,496,497,498,499,501,502,504,506,507,508,509,511,512,513,514,515,516,518,519,521,523,524,525,526,528,530,531,532,533,534,535,536,537,538,539,540,542,543,544,545,548,549,550,551,552,555,556,557,559,560,561,562,564,565,566,568,569,570,573,574,577,580,581,583,584,585,586,587,588,590,592,593,594,595,596,597,598,599,600,603,604,605,606,607,608,609,614,615,616,618,620,621,622,624,626,627,628,629,630,631,632,633,634,636,637,638,639,641,642,644,645,646,647,649,650,651,652,653,655,659,660,662,663,666,667,668,669,671,672,675,677,678,679,680,682,684,686,687,689,690,691,692,694,695,696,697,698,701,702,703,704,706,708,709,711,712,713,714,717,718,719,720,721,722,723,726,727,728,730,731,733,734,735,736,739,742,743,744,746,747,749,751,752,753,754,755,757,758,759,760,762,763,765,766,767,768,769,770,772,773,775,776,777,778,779,780,782,783,785,787,788,789,791,792,793,794,795,796,797,798,799,801,802,803,805,806,807,809,810,814,815,817,820,821,822,824,827,828,829,831,832,834,835,836,837,838,839,841,842,843,844,846,848,850,851,852,853,854,855,856,858,859,861,863,865,867,869,870,871,872,873,874,875,876,877,880,881,882,883,884,885,887,889,890,891,893,895,896,898,900,901,902,903,904,905,906,907,908,911,912,913,916,917,919,920,922,923,924,926,928,929,930,931,932,935,936,937,938,940,941,942,944,946,949,950,951,952,953,956,957,959,960,961,962,963,964,965,967,968,969,970,971,974,976,977,978,980,981,982,983,984,985,987,988,989,990,991,992,996,997,998,999,1000,1002,1003,1004,1005,1006,1007,1009,1010,1012,1013,1014,1016,1018,1021,1022,1023,1024,1026,1027,1029,1030,1032,1033,1034,1035,1036,1037,1038,1040,1041,1043,1044,1046,1048,1050,1052,1053,1055,1057,1058,1060,1061,1062,1064,1065,1066,1067,1068,1071,1072,1073,1074,1075,1076,1077,1079,1081,1082,1083,1085,1086,1088,1091,1092,1093,1095,1096,1098,1100,1102,1104,1105,1106,1107,1108,1109,1110,1112,1113,1114,1117,1118,1119,1121,1122,1123,1125,1126,1127,1128,1129,1132,1133,1134,1136,1138,1139,1140,1143,1144,1145,1146,1148,1149,1151,1153,1154,1155,1156,1158,1160,1161,1162,1163,1164,1166,1167,1168,1170,1171,1173,1174,1175,1176,1179,1181,1182,1183,1184,1185,1186,1187,1188,1189,1191,1192,1193,1194,1195,1196,1197,1200,1202,1203,1204,1205,1206,1207,1209,1210,1211,1212,1213,1214,1215,1216,1217,1220,1222,1223,1224,1225,1226,1227,1228,1230,1231,1233,1235,1237,1238,1239,1242,1244,1246,1248,1249,1251,1252,1253,1254,1255,1256,1258,1259,1261,1263,1264,1265,1267,1268,1269,1270,1272,1273,1274,1275,1276,1280,1282,1283,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1296,1297,1298,1300,1301,1302,1303,1305,1307,1308,1309,1310,1312,1313,1315,1316,1318,1319,1320,1321,1322,1323,1324,1325,1327,1329,1330,1331,1332,1334,1335,1336,1337,1339,1340,1341,1342,1343,1345,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1358,1359,1360,1362,1364,1365,1367,1369,1371,1373,1374,1376,1377,1378,1379,1380,1381,1383,1384,1385,1386,1388,1389,1390,1391,1392,1393,1394,1396,1397,1398,1400,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1414,1416,1417,1418,1419,1421,1422,1424,1426,1427,1428,1429,1431,1433,1434,1435,1436,1437,1438,1440,1443,1444,1447,1448,1451,1453,1454,1455,1457,1460,1461,1462,1463,1464,1465,1466,1467,1468,1471,1472,1475,1476,1477,1479,1481,1484,1485,1486,1489,1490,1491,1492,1493,1494,1495,1497,1498,1499,1500,1501,1502,1503,1504,1505,1507,1508,1509,1510,1511,1513,1514,1515,1516,1517,1518,1520,1522,1523,1524,1525,1526,1527,1528,1530,1533,1534,1536,1537,1538,1539,1541,1543,1547,1548,1549,1551,1552,1553,1554,1555,1557,1558,1559,1561,1562,1564,1567,1570,1571,1572,1573,1574,1575,1576,1578,1579,1580,1582,1583,1584,1586,1587,1588,1590,1592,1594,1597,1599,1600,1601,1603,1604,1605,1606,1608,1609,1611,1613,1615,1617,1618,1619,1620,1622,1625,1627,1628,1629,1631,1633,1635,1636,1638,1639,1640,1641,1642,1643,1644,1645,1648,1650,1651,1652,1656,1658,1659,1661,1663,1664,1665,1666,1668,1670,1671,1673,1674,1676,1677,1678,1679,1680,1681,1682,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1695,1696,1697,1698,1699,1701,1702,1704,1705,1706,1707,1708,1709,1710,1711,1714,1716,1717,1718,1719,1721,1722,1723,1726,1728,1729,1730,1731,1732,1733,1735,1738,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1752,1753,1755,1757,1759,1760,1762,1763,1766,1768,1769,1770,1771,1772,1773,1774,1776,1777,1780,1781,1783,1784,1785,1786,1787,1788,1789,1792,1794,1795,1796,1797,1799,1801,1803,1804,1806,1808,1809,1810,1811,1812,1813,1814,1815,1816,1819,1821,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1836,1837,1838,1840,1841,1844,1846,1848,1849,1850,1852,1854,1855,1857,1860,1862,1864,1865,1866}
Returns: 942
4096
{534,1146,2213,581,1018,638,2243,746,3873,2107,2047,3616,566,2974,2308,1859,3405,2425,799,945,2676,1608,2910,1219,3328,3614,1592,3480,1456,1521,3078,3656,314,861,534,2870,617,2914,3621,1263,2382,3199,2696,784,3535,1265,3695,874,3350,2757,1793,3495,1833,2257,1089,2919,3136,2423,3862,1258,36,1699,3291,773,1335,3371,96,2103,123,315,74,1136,3129,2390,3913,2329,1956,1473,905,1468,3890,829,2155,2232,2812,2349,3956,763,1769,3399,3066,546,784,2366,2067,2222,2564,2514,209,363,3726,492,977,158,2696,2188,187,3006,1387,3180,1590,1834,2637,1385,893,105,2776,221,1443,794,1809,1092,559,3839,132,1953,1970,3592,668,2105,128,654,468,2936,957,3954,3996,2502,3434,1549,393,372,3880,127,4038,719,240,2559,2160,4040,2802,654,956,2948,104,1903,1969,141,3615,1687,346,1859,1777,60,1339,391,3225,1909,2293,1160,917,228,3314,1534,3587,3366,1555,1779,699,3008,1315,954,3101,784,3132,1658,3167,2513,2251,2094,1093,3935,1127,725,1210,308,3659,1770,2975,3460,913,3639,217,1334,1301,1626,2433,496,1827,1625,1210,2099,2271,1001,4005,274,1945,1788,1144,2875,3312,3227,3000,1965,1556,1239,1573,2970,1551,2849,476,1683,3416,1052,1487,586,3511,134,921,2004,709,399,335,3435,3333,124,2794,1915,2032,2377,1386,4027,521,3672,1241,3542,327,2617,2517,1598,1529,3032,2895,3440,2680,2411,3505,2056,3806,3762,414,2743,1293,3113,2567,2118,2893,1547,2901,1904,476,1034,989,1693,2736,3298,2295,4093,2520,3065,2922,3551,2240,2678,2579,3209,3792,2372,2560,1329,1713,1476,2150,3117,178,1997,1087,2995,170,1319,892,1051,2006,3160,2581,2736,530,1834,2168,217,2296,3107,550,3693,3916,1429,1409,2992,2895,3259,553,2480,3933,2011,3182,2623,3447,818,2502,3063,1071,3546,3138,613,2462,3520,2446,1670,983,29,3321,118,3478,1754,911,81,2452,1680,3408,477,3930,1237,1827,3285,2299,2772,1535,2605,2703,3365,3458,3566,498,3886,2559,3269,1943,1605,166,3261,2048,1835,3957,2298,192,1880,2580,2475,902,770,194,2802,3632,2197,2842,1945,1905,720,2381,1845,1280,2959,1044,2640,2545,2735,1442,2814,2611,1639,1086,1089,721,1220,615,3945,3595,243,4017,926,1513,585,2493,387,2125,1784,3344,745,1110,179,673,1362,515,1654,126,1272,757,3057,2518,3554,3411,1315,3426,2189,2224,2787,4077,2153,4084,3107,3220,909,2879,1807,3065,3221,2256,3326,2175,2532,1243,1197,1659,2054,3441,1793,1217,2083,372,1042,1062,3866,4013,2045,2789,3571,1548,2445,3056,264,66,1922,2496,2146,2222,3272,2075,357,1758,4013,2305,32,934,1210,1460,3354,3102,2689,1673,953,634,2366,2591,1256,1580,3836,1806,2527,2881,1879,2628,2940,3186,3285,1967,3025,2785,2362,739,2346,2819,2578,497,3054,3777,1834,1443,2916,578,2415,1994,141,2698,2615,630,2540,857,1206,311,3867,3196,3563,2253,4074,3601,2572,2298,1950,1770,512,69,2781,2204,3914,2577,1186,2420,289,3140,1416,3548,627,874,1956,2177,1491,556,2276,699,592,2929,3602,1435,2699,3493,296,1831,3655,250,3808,3882,1551,662,2294,2870,130,2859,1231,558,2335,87,193,1302,2407,3552,3447,3196,1667,3505,3192,2112,1919,3114,2325,536,659,2366,1413,664,2780,1646,2882,3124,2872,3500,824,2037,1789,1464,148,3179,3455,3464,4000,2215,2651,2521,310,699,473,3594,756,922,1684,976,3229,2279,3073,3205,903,2187,2134,2589,3661,2479,4010,3586,3183,757,534,2181,4056,3729,3840,3217,212,2619,155,224,17,646,3080,2545,1557,1961,1144,1653,2962,3164,2549,778,693,1736,3970,379,1702,1851,3966,988,1078,2225,2376,3154,3221,989,3911,3935,490,1748,432,4093,3189,271,3947,766,1735,1500,3253,2419,3983,3602,3385,289,84,3363,1639,1359,2390,3415,3635,620,1212,2917,556,891,1301,574,866,308,1556,1327,3173,2140,2392,2137,2055,1734,3308,3477,2425,1295,3363,1737,2240,1540,2100,3546,342,1106,3853,1600,1077,758,1159,1141,2692,3481,573,1087,2638,2767,236,2086,3022,1006,2419,536,784,1028,2847,3985,3991,2591,3094,591,2608,509,364,511,2020,2520,1379,2781,97,3060,3129,2508,1592,3880,460,1770,1911,2700,1338,1304,3655,3601,658,1689,622,953,1656,1348,3727,2990,943,3939,1634,133,3874,469,3573,2161,1058,921,3466,3127,80,1859,352,3368,1184,2986,322,136,1971,3657,122,51,1227,4005,1086,1618,592,3141,1169,3228,2807,917,2533,1639,1358,316,189,2192,1669,3409,3066,2577,3826,3080,1604,3270,253,3634,910,3787,1475,330,3173,626,1487,3937,3673,1228,6,1455,1663,329,3322,818,3462,1004,383,13,1988,2858,2174,560,3833,1650,423,3065,1891,1786,2251,3677,1589,3426,76,2393,3163,68,35,2872,3544,1494,705,2434,3060,1329,272,3358,3793,2805,1949,3716,2538,95,2042,1688,3664,1042,806,1300,3442,48,994,3606,1942,652,2670,1478,524,284,1643,2748,2709,1784,1846,3597,3907,1175,1824,2755,3222,2341,687,1441,1644,540,2594,2564,3021,658,2324,2257,2407,1002,3654,825,2835,3803,3142,1115,387,1291,2731,2697,3762,2484,3947,845,387,2597,2014,1002,1901,1539,2461,908,488,702,1190,3051,3271,3487,456,2442,2680,1123,2673,3449,2971,3413,2490,4025,48,1379,2443,812,539,1198,634,594,652,145,2328,1703,1594,1312,2038,3068,1886,4024,2809,1190,1952,27,1553,3040,2080,3637,1939,68,553,1947,3380,450,2023,2399,2460,1029,2571,2252,89,166,3324,2113,1524,827,3761,3128,2739,3222,3386,2101,3995,597,1357,2873,3833,3101,36,4090,3032,165,73,3600,1643,2554,3560,3781,3741,552,3218,2650,2455,1964,1600,238,2869,3060,474,3417,251,1366,3665,1983,2393,2495,1752,425,3979,1945,2198,1525,685,1833,3743,1012,3368,2029,3554,1673,187,2890,2067,3634,2856,10,657,1867,1920,2328,3219,1283,232,1264,1770,1246,3220,2873,3810,1718,657,2590,1497,2481,3841,1477,3944,3985,2054,2449,2293,1396,2011,3226,3792,2780,3618,264,3324,1701,4001,196,3097,3152,74,2356,1473,961,2178,2953,3883,368,3169,3915,1190,1447,396,438,1279,3676,1850,3496,2232,2243,2776,3501,1639,3509,2951,1013,872,3724,1741,719,1670,3864,360,884,264,3296,2166,203,2578,969,152,2041,2064,3300,783,362,3169,3351,851,2604,1596,3793,714,3935,2905,1040,1029,2957,1684,3184,2788,2227,1882,1554,972,229,3953,1953,2335,851,2076,1469,3044,928,2951,1704,671,3678,2991,1013,1,1706,1297,951,586,3767,2193,2141,3001,3932,3617,2380,1212,2414,4092,1272,2304,1800,1322,2295,465,660,376,1145,455,3512,2267,3599,2016,2825,1207,1732,730,2731,585,495,182,3019,737,841,2553,2848,145,2886,3166,357,3135,3248,3410,1031,1258,1551,453,3586,2942,1398,3672,3872,578,1459,2385,3257,2932,2312,3609,22,1916,1788,2421,1188,2187,231,3346,560,3920,2901,332,3658,2790,361,1182,800,1261,2795,350,500,2620,3495,3084,897,94,3920,1676,2428,145,1574,3944,2455,461,3085,3897,1060,1222,2513,525,1760,1716,3809,1736,3839,2599,1221,2827,1283,2045,1294,1905,2188,1521,3222,3443,687,1082,1894,1673,2562,4080,3462,671,3325,3310,671,838,1254,1854,76,119,1505,513,1390,1044,1915,2098,1018,2516,3130,2676,535,641,3739,1175,2957,2821,3603,3415,1251,2533,3969,815,691,2187,422,546,1312,181,2085,3993,364,2592,1450,881,2618,2232,2221,1968,2550,9,3469,831,623,1549,3199,1892,180,1244,523,935,3262,292,3480,2086,391,434,731,2883,2968,2997,161,3326,2617,3810,2521,52,2530,1222,3167,2125,1411,3926,1122,2278,4069,3017,784,3150,1595,2179,2894,1432,2469,1783,2104,2929,1608,3348,1594,2501,1096,1238,382,407,213,1123,2712,118,3081,1309,1309,822,877,3267,2854,2700,2133,2284,3195,914,1404,2734,81,2581,1945,3709,1408,1780,2510,2803,1559,443,82,69,303,2578,408,477,4096,866,250,942,534,2978,3235,1403,1967,3316,3151,1902,301,2356,1565,1290,3755,1674,917,1418,936,1112,426,916,4066,2267,1113,276,82,2346,64,4059,382,1829,841,3008,1794,851,2142,1934,2974,2951,435,845,180,647,310,2038,3193,2281,3891,2792,738,920,1093,518,1671,2432,3367,2176,1181,1834,3336,3077,2359,1270,3454,562,2053,795,579,3769,2245,3411,2655,3027,3745,4013,2164,79,3521,1453,2127,2206,828,1407,264,738,2265,2480,2132,2352,1978,1389,3545,221,2925,279,947,452,2451,1888,1158,1317,2444,3607,3788,2263,883,285,318,305,3543,2526,1195,562,1673,2606,3197,1810,3053,1567,228,3710,2606,1512,2914,393,480,3799,314,2901,1110,159,1554,2093,3412,2879,3250,1028,368,295,985,442,3266,278,402,1775,1601,929,119,2708,2437,308,4078,1974,2624,1704,580,2450,2868,2202,2626,2601,3341,2034,3241,291,2264,1261,2481,1563,3477,378,3723,3793,157,3972,1918,2085,3431,3121,50,3902,628,1549,322,1886,3800,346,2100,172,3669,3037,376,3119,118,1939,777,531,2712,762,2545,2105,3185,3235,3264,230,2813,4080,444,882,1644,281,120,2947,1275,3968,3081,1658,1638,3792,1310,629,475,2357,431,3652,815,1887,787,1671,820,3580,2759,2327,780,2965,557,1465,598,1473,2572,258,3345,249,965,3381,1846,803,3949,3021,2501,3711,73,2624,1903,2137,2945,3191,1432,3420,1001,2122,473,3147,345,1619,3022,3884,2547,3614,3932,767,2123,1495,1106,3677,2671,75,1401,80,825,1823,800,522,380,723,2858,34,1780,1610,3005,571,3096,2095,1183,769,3394,2481,3933,3505,2504,4031,3692,596,1555,2567,64,1597,1730,2467,1209}
{3,4,5,7,10,12,15,17,20,22,23,27,28,29,34,36,38,40,42,43,44,45,47,50,53,54,55,56,58,61,64,65,68,70,71,72,74,76,77,82,84,85,87,88,90,92,94,95,97,98,101,102,104,106,107,109,110,112,116,119,121,123,126,129,132,133,135,138,141,143,145,146,147,149,150,151,153,154,155,156,159,160,162,164,165,166,170,171,172,174,176,179,182,184,185,187,188,189,192,196,197,200,202,203,204,207,211,213,215,217,218,220,222,226,228,229,232,235,236,239,240,241,243,246,247,249,250,251,254,255,256,257,258,262,263,264,266,267,268,272,274,278,280,282,285,287,289,290,292,294,297,298,301,302,303,305,308,311,314,315,317,318,320,324,327,330,332,336,338,339,340,343,345,346,347,348,350,351,353,355,356,357,360,361,363,364,365,366,367,368,371,372,376,379,382,383,385,387,389,390,393,396,398,399,402,404,405,406,408,410,412,414,416,418,419,421,423,424,426,428,429,432,434,435,438,443,444,445,447,449,450,452,453,456,458,461,463,465,466,469,471,477,479,481,483,486,489,492,493,494,496,498,501,503,506,509,511,513,517,518,520,522,524,527,531,533,534,535,537,540,542,543,545,548,549,550,554,555,557,560,562,564,566,568,571,572,575,579,580,581,583,584,585,587,588,589,592,594,596,598,599,603,604,605,607,609,610,613,616,618,620,621,624,626,628,629,631,632,633,634,636,637,639,640,643,645,649,651,653,654,655,657,661,663,665,666,669,670,672,673,675,676,678,679,680,683,687,688,689,693,696,698,700,702,703,704,707,708,709,714,717,719,721,723,727,728,729,731,734,736,738,739,740,741,744,748,750,751,755,759,760,761,762,763,764,765,767,768,769,770,772,774,776,779,782,785,786,787,789,793,795,798,802,805,808,810,815,817,820,822,823,824,826,828,829,831,832,833,835,837,840,842,843,846,848,850,853,855,856,860,861,862,865,868,871,872,874,876,877,878,879,882,883,884,885,888,890,891,893,894,898,900,901,902,905,908,910,911,913,914,915,918,920,922,926,928,929,930,932,934,936,937,938,939,941,942,943,944,946,950,951,954,956,957,959,960,961,963,964,966,968,970,971,972,973,975,976,977,979,980,982,983,985,987,989,991,992,994,996,997,999,1000,1003,1004,1006,1009,1012,1013,1014,1016,1018,1019,1022,1024,1028,1030,1032,1033,1035,1036,1039,1041,1044,1048,1050,1052,1054,1058,1063,1066,1069,1071,1073,1074,1075,1078,1079,1080,1082,1083,1084,1086,1088,1090,1093,1095,1097,1098,1100,1104,1106,1107,1108,1110,1111,1112,1115,1116,1118,1122,1124,1126,1127,1128,1131,1133,1135,1137,1139,1140,1143,1145,1148,1150,1151,1153,1154,1157,1160,1162,1163,1164,1167,1168,1170,1172,1174,1175,1176,1177,1179,1182,1184,1185,1187,1190,1191,1192,1193,1195,1200,1201,1202,1204,1205,1206,1207,1210,1211,1213,1215,1217,1219,1221,1223,1226,1227,1229,1232,1234,1235,1239,1243,1245,1247,1249,1251,1252,1253,1254,1255,1260,1262,1266,1268,1269,1270,1271,1273,1274,1276,1279,1283,1286,1287,1288,1290,1291,1292,1294,1297,1299,1300,1301,1303,1305,1306,1309,1311,1313,1314,1316,1318,1322,1325,1326,1327,1329,1330,1332,1335,1338,1339,1342,1345,1346,1347,1349,1350,1352,1354,1355,1357,1358,1360,1362,1363,1365,1367,1369,1370,1371,1372,1374,1375,1377,1378,1382,1385,1387,1388,1390,1391,1392,1393,1395,1396,1398,1399,1401,1402,1405,1406,1409,1410,1411,1412,1415,1417,1419,1421,1422,1423,1426,1427,1429,1433,1436,1437,1439,1440,1442,1444,1445,1447,1451,1452,1456,1457,1461,1465,1467,1468,1471,1472,1477,1480,1483,1486,1488,1492,1493,1495,1496,1498,1499,1502,1504,1506,1509,1511,1513,1514,1515,1516,1517,1518,1519,1520,1524,1525,1527,1529,1531,1532,1536,1537,1539,1540,1544,1545,1548,1550,1551,1553,1554,1556,1558,1560,1561,1565,1567,1569,1571,1573,1577,1579,1580,1581,1582,1585,1587,1590,1591,1592,1595,1596,1599,1601,1602,1604,1606,1608,1610,1612,1614,1617,1618,1620,1621,1623,1626,1628,1630,1632,1636,1637,1640,1643,1645,1647,1648,1649,1650,1651,1652,1654,1657,1659,1664,1666,1668,1670,1672,1673,1676,1678,1682,1684,1685,1686,1689,1690,1691,1693,1694,1696,1697,1698,1699,1701,1703,1704,1706,1708,1712,1713,1717,1718,1722,1723,1725,1728,1731,1733,1734,1737,1738,1741,1745,1746,1747,1749,1754,1755,1758,1759,1761,1763,1764,1766,1767,1770,1773,1775,1776,1778,1779,1781,1782,1784,1785,1787,1788,1789,1791,1793,1794,1795,1797,1801,1804,1806,1808,1810,1812,1815,1816,1818,1820,1821,1822,1824,1826,1829,1831,1833,1835,1837,1841,1843,1844,1846,1847,1850,1852,1853,1855,1856,1857,1858,1860,1861,1863,1865,1866,1867,1870,1872,1873,1876,1877,1878,1880,1882,1884,1887,1888,1891,1893,1896,1898,1899,1900,1903,1905,1906,1907,1910,1913,1916,1917,1918,1920,1922,1923,1926,1928,1930,1932,1934,1935,1938,1939,1940,1941,1944,1945,1947,1949,1951,1953,1954,1956,1958,1960,1962,1964,1965,1968,1969,1972,1974,1980,1983,1985,1986,1988,1990,1991,1994,1998,2001,2002,2003,2005,2008,2010,2014,2016,2017,2019,2020,2022,2025,2026,2027,2028,2031,2035,2036,2037,2041,2044,2045,2046,2047,2050,2052,2056,2057,2058,2060,2062,2063,2064,2065,2067,2068,2072,2075,2076,2078,2079,2080,2082,2083,2085,2087,2090,2092,2093,2094,2095,2097,2101,2103,2104,2105,2107,2109,2110,2111,2113,2115,2116,2119,2123,2126,2128,2129,2131,2132,2133,2135,2136,2138,2139,2141,2145,2147,2149,2154,2155,2158,2160,2161,2165,2166,2169,2170,2173,2176,2178,2181,2183,2185,2186,2187,2188,2191,2192,2194,2195,2196,2198,2202,2203,2204,2205,2208,2210,2211,2213,2214,2216,2217,2218,2220,2222,2223,2225,2227,2228,2229,2230,2232,2233,2235,2239,2243,2244,2246,2248,2250,2252,2254,2256,2257,2259,2260,2262,2265,2266,2267,2269,2271,2273,2274,2275,2277,2280,2282,2283,2285,2286,2287,2288,2289,2292,2295,2297,2298,2299,2300,2303,2305,2307,2309,2310,2311,2314,2317,2318,2320,2322,2323,2325,2326,2327,2332,2333,2334,2336,2339,2340,2343,2344,2346,2348,2350,2351,2352,2353,2357,2359,2361,2362,2366,2368,2369,2370,2372,2373,2374,2375,2377,2379,2381,2384,2386,2389,2391,2393,2396,2397,2399,2400,2401,2403,2404,2406,2409,2410,2411,2412,2414,2415,2417,2418,2419,2421,2423,2425,2430,2432,2434,2438,2439,2442,2444,2446,2448,2449,2450,2451,2452,2453,2456,2459,2460,2464,2465,2467,2471,2473,2476,2477,2480,2481,2484,2485,2486,2487,2488,2489,2491,2493,2495,2497,2499,2501,2503,2504,2505,2509,2511,2512,2513,2515,2518,2521,2525,2527,2528,2529,2531,2534,2539,2540,2542,2544,2547,2549,2550,2553,2556,2557,2559,2562,2563,2565,2567,2568,2569,2571,2572,2573,2574,2575,2577,2581,2585,2586,2589,2590,2591,2593,2595,2596,2597,2598,2600,2602,2604,2606,2607,2612,2613,2615,2617,2618,2620,2625,2628,2630,2632,2633,2635,2636,2640,2642,2643,2644,2645,2647,2649,2651,2654,2656,2658,2659,2661,2662,2664,2665,2666,2668,2669,2671,2674,2675,2676,2677,2679,2681,2683,2685,2686,2687,2690,2691,2694,2696,2698,2703,2706,2708,2709,2711,2712,2713,2715,2716,2718,2719,2720,2721,2723,2724,2727,2729,2732,2735,2738,2739,2740,2742,2743,2745,2747,2749,2750,2751,2752,2755,2756,2758,2761,2765,2769,2771,2776,2778,2779,2781,2787,2791,2793,2795,2797,2798,2800,2801,2802,2803,2806,2807,2810,2812,2815,2818,2819,2820,2823,2825,2827,2829,2832,2835,2838,2840,2843,2845,2846,2849,2851,2853,2857,2859,2863,2866,2867,2868,2871,2873,2875,2876,2878,2879,2880,2883,2884,2887,2889,2892,2894,2897,2898,2900,2902,2904,2905,2907,2908,2910,2911,2913,2916,2918,2919,2920,2921,2922,2924,2925,2927,2929,2930,2933,2936,2938,2940,2942,2943,2944,2945,2948,2951,2953,2955,2958,2960,2961,2963,2964,2966,2968,2969,2972,2974,2976,2977,2980,2982,2984,2987,2988,2989,2991,2992,2993,2994,2996,2997,2999,3001,3003,3005,3007,3009,3010,3011,3013,3014,3015,3018,3020,3021,3023,3025,3026,3030,3032,3035,3036,3038,3039,3042,3043,3046,3047,3049,3050,3051,3053,3054,3055,3056,3058,3059,3062,3066,3070,3072,3076,3078,3079,3082,3086,3088,3090,3094,3097,3099,3102,3106,3107,3109,3111,3116,3117,3118,3120,3122,3125,3127,3130,3132,3134,3136,3139,3140,3142,3145,3146,3147,3148,3150,3153,3154,3156,3159,3163,3165,3167,3169,3171,3172,3174,3176,3178,3181,3183,3185,3186,3189,3191,3193,3194,3195,3196,3198,3202,3204,3206,3207,3208,3210,3211,3214,3215,3218,3220,3221,3222,3224,3225,3226,3227,3229,3230,3234,3235,3237,3239,3240,3241,3242,3245,3246,3248,3249,3251,3252,3254,3256,3258,3259,3260,3262,3266,3268,3269,3272,3273,3276,3278,3279,3281,3282,3284,3286,3288,3290,3292,3293,3296,3299,3301,3302,3303,3305,3307,3309,3311,3312,3314,3319,3323,3324,3329,3331,3334,3336,3341,3344,3345,3346,3347,3348,3350,3351,3352,3355,3356,3358,3359,3360,3362,3364,3365,3366,3368,3370,3372,3374,3376,3378,3380,3381,3384,3386,3387,3388,3389,3390,3392,3394,3396,3400,3404,3405,3407,3409,3411,3413,3415,3416,3418,3421,3423,3424,3425,3428,3429,3430,3432,3433,3436,3439,3442,3443,3445,3448,3450,3452}
Returns: 1264
1024
{201,801,32,565,817,393,651,449,165,584,447,589,632,495,693,828,705,974,664,98,280,582,697,314,327,408,194,252,673,331,371,571,739,401,739,790,459,667,595,649,821,884,114,64,1014,166,600,505,640,234,143,137,825,776,267,682,340,77,123,213,37,535,751,988,526,899,941,838,415,414,1019,280,721,329,138,608,510,404,405,686,989,89,453,125,441,201,153,465,748,206,362,585,241,602,232,859,366,294,926,986,524,988,275,353,93,334,8,273,177,798,400,198,366,785,507,739,353,865,14,233,616,90,88,50,763,764,106,142,90,161,814,470,94,814,448,52,393,1012,544,639,385,304,804,744,447,755,915,14,60,59,128,972,465,44,422,269,506,400,300,879,34,56,761,489,178,66,680,274,215,763,582,663,595,968,788,264,400,369,220,566,755,283,995,600,351,101,228,882,775,863,584,695,715,375,406,292,985,485,996,264,663,221,71,1020,410,635,827,904,798,827,614,692,819,1000,117,962,252,1011,348,913,314,367,1000,884,725,347,612,692,565,330,245,649,745,313,339,518,895,259,191,843,602,230,596,57,781,887,307,751,705,381,936,423,851,396,503,421,1015,379,350,668,924,857,433,581,194,568,527,951,1022,193,830,721,564,149,171,516,340,337,841,977,635,330,64,377,596,83,981,464,229,560,998,362,56,753,54,260,486,760,427,949,521,845,260,78,723,162,162,36,769,125,130,443,552,42,781,716,293,56,260,927,526,448,671,246,617,51,985,636,1008,758,492,324,933,509,56,198,221,840,760,167,405,332,699,702,894,865,1015,736,308,402,733,374,348,133,54,534,424,206,280,302,590,630,67,572,785,618,271,35,436,841,320,473,631,540,80,1023,613,397,121,743,23,930,830,267,761,535,311,858,610,326,655,827,324,1003,985,518,228,1022,252,591,182,414,562,379,853,294,404,789,125,145,561,893,556,669,60,259,781,884,221,193,736,827,736,66,494,610,165,403,811,635,739,334,389,22,768,252,903,838,827,89,413,126,624,292,571,691,212,903,125,554,740,121,291,181,941,50,831,234,888,83,400,389,71,87,830,263,420,692,625,963,463,585,341,890,719,445,534,29,668,480,178,129,601,145,454,108,388,810,2,764,787,563,631,296,893,1001,194,1013,49,24,737,279,541,475,366,684,696,764,60,31,117,269,85,673,361,437,994,785,210,590,478,486,562,657,287,868,734,747,500,824,294,249,879,700,685,982,362,35,512,487,630,791,570,863,274,190,567,743,491,405,978,416,339,819,675,56,197,695,243,190,505,680,188,954,995,1008,556,814,775,448,114,845,379,898,371,785,88,575,170,569,915,120,384,731,702,19,341,599,197,417,429,92,634,838,826,649,916,896,736,92,962,286,610,317,403,521,771,480,795,488,315,645,171,9,393,331,88,454,869,636,440,818,145,108,999,996,68,408,196,149,795,436,849,122,575,385,50,645,477,421,662,771,205,546,260,440,317,677,312,772,54,908,919,145,1003,94,692,718,812,598,266,117,678,195,811,161,802,279,671,523,691,493,519,905,375,678,335,600,383,227,340,613,125,445,222,902,254,644,413,115,70,938,684,340,313,165,775,979,95,169,402,503,166,658,376,842,92,406,256,363,439,279,643,459,595,907,680,511,310,808,230,784,820,808,769,534,488,348,602,431,536,520,468,1009,760,857,375,23,116,548,299,366,959,845,634,718,582,952,470,672,89,170,668,851,572,846,469,799,915,47,731,27,718,673,483,758,958,128,993,747,611,1001,107,283,220,859,466,29,364,62,300,581,950,148,982,526,660,699,457,21,604,252,5,302,496,764,145,357,912,100,408,531,329,664,958,440,935,704,8,1009,114,588,113,657,601,438,759,726,439,104,432,686,530,153,918,537,875,813,165,6,569,528,333,89,145,701,103,606,770,890,121,877,941,831,149,368,570,830,749,945,950,225,759,632,422,34}
{4,9,13,16,20,23,26,28,35,38,42,50,54,58,62,67,71,77,81,83,85,86,88,90,92,96,99,105,108,110,113,115,118,120,124,125,129,131,133,136,139,141,146,149,151,154,157,160,163,167,170,173,175,177,179,183,184,186,190,194,196,203,207,211,214,217,221,222,223,228,231,235,240,241,242,243,245,246,249,251,256,259,262,264,267,272,275,278,279,281,283,288,292,298,301,302,308,312,318,322,324,327,332,334,341,343,353,358,359,363,364,368,370,373,375,378,380,384,391,393,398,403,406,407,411,415,417,421,425,427,432,434,438,441,443,447,449,454,459,462,465,467,471,474,477,479,482,483,487,490,492,495,497,502,504,508,512,515,519,524,528,530,532,538,540,543,544,546,548,552,557,561,563,566,571,576,579,583,584,589,591,595,599,602,606,610,613,615,617,620,624,626,631,637,640,642,646,648,651,653,655,660,664,668,669,671,677,682,686,694,698,706,711,713,715,718,724,727,730,734,737,740,745,747,751,755,757,761,766,769,771,775,778,782,784,787,789,793,797,800,805,811,814,816,818,820,821,824,827,830,833,834,835,839,843,846,851,857,859,861,863,870,878,882,884,889,893,897,900,903,908,910,912,915,918,920,923,926,929,934,936,940,945,947,949,953,955,957,962,966,971,972,975,976,982,986,988,990,995,1000,1001,1004,1010,1014,1019,1022,1026,1031,1039,1043,1048,1052,1055,1057,1059,1064,1067,1072,1075,1076,1079,1083,1085,1093,1096,1100,1106,1107,1109,1115,1119,1120,1124,1126,1131,1135,1138,1142,1145,1148,1151,1155,1158,1160,1162,1166,1169,1171,1173,1175,1180,1184,1185,1189,1195,1198,1201,1205,1208,1210,1214,1216,1222,1225,1227,1231,1233,1237,1239,1244,1249,1251,1254,1259,1264,1266,1268,1272,1274,1275,1278,1282,1286,1292,1295,1300,1302,1307,1310,1313,1317,1321,1325,1328,1332,1337,1342,1343,1347,1349,1351,1354,1359,1362,1368,1372,1377,1380,1383,1385,1386,1389,1396,1400,1404,1405,1409,1412,1415,1419,1423,1427,1434,1437,1438,1440,1444,1446,1448,1453,1455,1460,1462,1467,1472,1475,1479,1481,1487,1490,1493,1496,1500,1501,1503,1507,1510,1516,1520,1521,1528,1531,1534,1538,1539,1542,1544,1545,1552,1556,1557,1560,1565,1570,1577,1583,1584,1589,1592,1597,1601,1604,1608,1611,1619,1623,1626,1629,1630,1633,1636,1643,1645,1647,1649,1652,1654,1660,1663,1667,1674,1676,1679,1681,1682,1688,1691,1692,1697,1700,1704,1706,1708,1709,1711,1716,1721,1726,1729,1732,1735,1736,1741,1746,1749,1751,1753,1756,1757,1761,1763,1766,1771,1775,1778,1782,1784,1785,1790,1793,1794,1800,1803,1807,1810,1812,1813,1816,1818,1823,1825,1829,1831,1834,1835,1839,1844,1847,1848,1852,1856,1857,1862,1864,1866,1870,1873,1875,1878,1882,1889,1890,1891,1894,1895,1896,1897,1900,1904,1907,1909,1913,1916,1919,1925,1931,1934,1939,1942,1947,1951,1955,1958,1960,1963,1964,1967,1969,1970,1975,1978,1980,1981,1985,1989,1990,1993,1998,2001,2004,2006,2009,2013,2018,2019,2020,2023,2025,2026,2032,2034,2036,2039,2042,2045,2047,2048,2049,2053,2055,2057,2059,2061,2065,2067,2071,2074,2077,2082,2087,2090,2095,2099,2103,2109,2111,2116,2118,2120,2126,2132,2135,2137,2142,2144,2145,2149,2152,2155,2157,2164,2169,2170,2173,2175,2178,2180,2184,2186,2190,2193,2196,2198,2202,2204,2210,2216,2219,2225,2227,2229,2230,2233,2237,2238,2241,2247,2252,2257,2263,2266,2270,2272,2275,2278,2280,2281,2283,2285,2289,2291,2296,2300,2301,2305,2307,2310,2315,2317,2320,2323,2325,2331,2335,2338,2340,2345,2349,2350,2355,2359,2363,2364,2365,2370,2373,2375,2378,2382,2386,2389,2391,2393,2397,2399,2400,2403,2406,2409,2414,2418,2420,2423,2427,2429,2432,2438,2444,2448,2450,2453,2457,2459,2462,2464,2467,2471,2473,2478,2482,2484,2490,2493,2497,2500,2502,2505,2508,2513,2516,2518,2521,2522,2525,2527,2530,2533,2536,2538,2541,2543,2545,2548,2553,2557,2559,2561,2563,2566,2567,2571,2575,2577,2579,2580,2583,2588,2590,2596,2599,2602,2603,2606,2609,2616,2617,2620,2624,2626,2631,2635,2638,2642,2645,2650,2654,2661,2667,2670,2672,2677,2680,2681,2684,2686,2689,2692,2696,2702,2706,2710,2714,2719,2722,2724,2727,2730,2732,2735,2737,2739,2741,2744,2745,2747,2750,2753,2754,2760,2765,2769,2774,2781,2784,2788,2792,2796,2801,2803,2808,2809,2813,2814,2816,2819,2821}
Returns: 612
16384
{12494,12536,1017,1375,6094,8443,1699,3475,13265,4786,11315,14132,11553,1031,8338,15865,1699,12506,664,10633,3274,6800,9950,3354,14130,7168,10338,2039,4084,6661,14745,5613,9008,763,248,12695,2801,9064,9887,4034,7983,7249,5483,4608,10003,16277,4132,14253,8288,231,7212,4018,2912,1523,9628,14957,9530,11852,9524,10771,6211,11235,14143,289,10571,14026,15085,12633,2701,2830,15457,4847,116,13718,6162,4750,10743,15606,13541,3575,1485,11585,8897,506,14199,14824,7692,2495,6767,1737,11538,7721,8087,14765,725,1387,107,14191,2911,13779,1304,9251,67,5093,11819,9127,8325,10988,2074,12297,9644,2135,1652,9554,4192,15626,15893,7742,10608,13600,12635,11152,6339,5492,7889,4015,14908,8064,8798,14938,8481,16141,15023,1078,1332,6746,10213,8246,8503,1127,7799,8365,6437,2591,12397,2103,3821,15916,6385,10859,7972,9296,414,7824,5032,11317,9862,13949,12463,3247,11658,3572,6501,887,5926,6851,9151,639,8784,11280,4029,11030,4802,16204,13536,8188,110,15178,6444,13017,12419,15891,1962,15956,13303,14362,8396,7489,9487,3966,1494,8299,7417,14384,10444,10105,7195,4543,13604,5779,9027,12721,12766,2415,8573,2416,11360,7563,8666,4279,11230,14415,3599,2463,8128,2821,9815,4468,12279,1427,15514,385,3286,10720,4203,9495,5238,1286,6912,15910,7775,14443,11725,14285,15010,13271,15363,15954,12335,2795,16082,15882,1735,11033,7613,1735,11113,9375,8177,16232,696,14299,10549,13643,863,10623,9317,9563,15120,810,16178,8340,11073,6922,15943,9191,14183,1070,13980,9061,11498,8775,8261,8894,15809,1701,160,296,6403,14670,5449,7382,8571,8205,14052,8743,6336,5779,6723,15588,11751,15769,10243,13769,14713,3119,5733,3294,3306,1375,1676,6384,6740,7529,7678,7887,6608,5332,11981,11983,13396,7364,15428,9534,8343,14066,1968,10870,1268,13516,4166,357,6646,15425,4814,5956,13222,3553,6468,7546,1117,12022,4129,16018,6755,4940,7863,14664,2602,11652,10602,6349,10649,10694,12347,8022,13659,1466,10673,2110,12209,14801,2467,2280,247,15063,5381,11211,7273,6,14201,1796,10356,12458,1222,10205,10322,9640,10279,5846,9551,1574,15545,5058,6299,13242,9734,6043,6946,14729,15655,2493,10106,721,1686,10334,626,108,9794,10238,10612,6635,11044,972,12918,3568,4369,8414,6066,16007,16147,84,14869,4430,4655,2164,14263,2108,12304,10968,2147,1799,10884,7669,10417,6674,11378,561,13518,1784,14933,7914,11928,13275,1023,10690,1866,2440,6868,689,9078,7631,5980,14687,12472,11837,4734,3161,1783,169,4708,8386,13245,7667,10364,12607,13472,3200,15788,9427,3679,13038,11096,8851,6360,8362,876,3327,1165,8465,3884,6160,3335,14038,5138,9954,15337,10361,6056,2600,4891,9136,9921,5759,10508,11439,4633,6619,14483,3903,8690,14671,7803,6855,13243,13448,14710,5961,2184,12891,7580,6296,145,4580,2900,7666,6020,1449,6627,1878,12049,14955,2219,5863,4261,14649,11892,13267,3272,5246,1246,13627,15925,470,5763,7832,14421,1650,8453,11346,3129,4600,2217,5667,5352,3026,2526,1543,9035,12528,9590,11660,11145,11279,5899,8275,354,4270,14710,10686,15975,4323,5107,13492,7358,10323,8953,3998,8823,2726,2682,7069,11582,10709,15302,3402,913,8400,14283,3609,2144,14580,14102,2241,1890,7410,9091,14334,3113,6594,13308,11808,4956,3675,8563,15573,9529,7415,5260,10190,2551,5295,5690,8650,3136,8284,14842,15039,9079,4015,9975,7898,10025,2433,5618,4382,5757,8821,3158,10629,2591,12555,4459,3473,5277,2143,4407,6973,9417,1229,6442,4456,12100,2534,5417,9685,14307,14068,12363,12258,2338,12207,15105,6204,16266,8323,14589,6365,2138,8714,15313,1448,3689,3429,13234,5406,3525,13082,9833,12690,9750,14408,1296,16004,1397,8699,9148,12966,10450,3216,8919,11855,13507,13584,10335,3839,4339,5271,6145,11224,14889,6597,2903,9178,10814,2685,8284,13784,802,2049,2700,15124,6495,4561,11225,4259,3158,14220,5387,160,3539,12351,10712,4977,4168,1438,872,6723,2676,11160,3246,16155,6361,14574,13941,13265,247,872,1437,14438,14279,8798,9362,8744,3207,3164,2447,4159,14973,10412,11740,3888,10197,956,16065,5135,15724,7491,8043,12567,2761,308,939,12403,4906,2188,7663,7957,11293,15659,3941,146,920,11232,16361,9705,13095,12786,15291,13403,14167,1916,12215,3677,13826,11774,6466,2012,13252,665,15800,6153,12395,15734,15783,5629,7098,9210,6867,14995,12157,8530,3182,8414,14686,6444,907,4028,16029,6726,2675,14869,9529,6837,13298,6237,12748,7624,7267,1290,11985,2933,3256,7861,14754,7005,8293,7609,15128,373,8584,2091,15667,2172,9035,15888,7383,13935,14606,14554,1566,14659,365,3121,15213,11836,5832,15134,6911,7225,5001,3031,11278,12669,14068,11607,13459,16227,6096,15638,12753,2732,13532,2109,2495,5357,6012,705,10435,1002,9143,8166,16067,15772,6414,15022,12361,13230,12896,4569,5072,12125,16271,543,14596,14003,556,8796,16208,7703,1802,12422,10882,1360,10519,6976,12305,7451,7803,8946,9460,8837,10117,3703,924,16219,12151,595,13111,13042,10725,11940,3311,3258,13267,16105,4439,6664,15974,16363,6121,12964,2427,2827,15336,2980,14088,13132,9627,9794,1227,12184,3171,4191,68,3758,11709,15988,4506,9282,14025,2764,1168,5117,404,7140,834,9723,3285,7148,1273,10624,15485,1384,992,5575,15089,5389,7960,5548,15968,12017,8971,14893,826,13658,2206,12480,15441,12625,5191,3459,2762,359,6332,15969,914,2315,15729,4967,7560,4828,1955,12658,6981,640,1376,16271,7367,3745,7255,11374,262,2460,8964,2111,7400,16306,4392,8332,3240,9060,15676,3737,1612,9449,1781,15829,5989,10122,15266,5917,7624,4082,12182,13959,4780,8280,14485,7289,10471,954,10128,10229,2787,1835,5306,5890,12846,4230,1909,2855,8775,9146,15414,8977,440,15361,1287,8058,8257,9336,15837,122,11846,4983,3208,4488,342,5694,9378,13674,15147,5763,2645,12421,1038,12680,4988,12000,1843,14445,11555,5228,16122,901,13312,2319,8415,1660,14605,10012,7207,2362,6139,14807,9247,4468,5060,4808,9785,8943,15936,10154,5598,2185,528,10198,9075,5683,15090,1800,398,1026,7918,7310,2785,9392,4997,10465,11529,3532,9350,6339,12270,3598,11961,13339,1772,1597,12091,4028,4261,8999,2254,5234,971,4940,13077,15009,733,8401,11312,14587,11870,6265,11197,5544,3202,6255,16093,3214,16135,1440,8029,4673,856,15521,1221,8778,7890,6917,7312,137,8282,14389,1889,8314,2635,4301,11183,566,775,1464,8899,1059,6225,8233,15285,10570,12505,3533,2143,10086,14655,15473,8962,13507,11554,8858,6098,1300,4752,6767,7212,11664,5524,16005,15831,910,11095,13344,14130,13829,16306,15493,6597,8540,11709,1826,1864,11788,9064,4157,14769,11667,4546,7184,9587,7777,12049,5165,3489,1639,5522,13592,12364,11523,12573,5173,483,10265,14233,4601,268,11569,5036,2728,232,9865,13991,1974,7746,11550,13893,5674,11480,15270,11349,14907,1104,13231,515,16042,12571,9470,9727,5680,11282,12403,9309,12194,7197,6840,12410,14657,2003,12322,11495,7668,394,14883,6875,1810,16093,14294,6701,8072,13637,3626,1160,14632,16359,14667,12800,2829,16216,12274,6858,2050,4757,8800,4457,1530,14614,2505,14896,7073,8276,6674,12423,14130,5060,5828,14328,454,15570,3393,9874,9315,6379,2357,10176,14360,1611,15728,2635,4238,1203,4679,449,10375,1519,5064,6932,459,10853,5371,7636,1557,2213,2718,12016,9389,9079,7871,1919,2136,14434,4019,12715,4974,6474,4083,16202,5093,3674,4481,4463,5937,2522,11904,3486,11767,1616,14778,1279,2449,14262,11484,7022,10619,2871,10069,10200,3270,1379,16299,5351,3029,9581,2649,14470,8341,3199,11322,10860,14228,728,5022,5457,10838,4319,2603,5142,15192,269,15073,9126,5707,16351,624,3074,13089,12768,11597,7768,2177,15406,9715,935,14944,8833,1731,5909,9099,1625,1563,10353,15589,15733,2098,1856,15178,8773,2421,7146,1293,12205,3355,7286,6662,10728,1718,5033,13659,2290,4777,15608,3606,3451,103,9550,11202,8165,12925,4160,1628,4450,11118,4799,7391,4581,899,10244,5077,10769,15032,15095,1385,1791,8963,13784,13937,9764,14915,9112,8205,12869,14389,2499,11137,9976,5071,8075,7674,5808,5271,9718,1021,14326,10084,9952,12390,10474,9026,1006,6347,9435,12809,1092,316,13860,10626,14147,872,16185}
{5,8,11,16,18,20,23,24,26,31,33,38,40,41,45,46,49,54,55,59,63,64,68,71,75,79,80,82,83,88,90,91,95,99,103,108,111,115,118,120,124,126,127,130,135,138,141,143,147,150,151,155,157,160,161,163,165,168,170,173,174,178,181,182,185,189,191,193,195,196,199,200,204,206,209,211,213,216,218,222,224,227,231,233,236,238,240,242,244,246,249,250,252,254,256,258,263,266,268,271,277,282,286,288,293,295,296,297,300,302,307,310,313,316,318,321,326,330,333,334,335,336,337,340,343,344,350,354,356,360,362,363,365,368,373,374,377,380,381,383,386,389,391,394,395,397,400,403,404,406,408,412,414,415,416,419,422,425,426,429,434,436,438,439,441,443,446,450,452,453,456,457,460,461,464,467,469,470,473,474,477,479,483,486,488,489,491,495,497,499,501,503,505,508,509,512,514,519,522,525,527,528,529,532,533,534,538,540,542,544,547,548,551,554,556,559,561,562,563,565,568,571,573,576,577,579,585,590,594,595,597,601,604,605,606,609,611,614,616,618,619,622,623,624,628,631,633,637,641,642,643,645,646,648,653,655,656,657,658,661,662,664,665,668,670,672,674,676,679,680,682,686,687,688,692,694,695,697,699,705,706,708,709,711,712,714,715,719,722,724,728,730,732,734,736,738,743,748,751,752,754,755,759,761,765,768,769,770,772,774,776,777,782,784,785,788,790,792,797,799,805,807,811,814,815,822,823,825,828,829,831,832,836,837,839,842,845,848,851,856,859,862,865,869,871,872,874,878,879,880,882,884,885,887,889,891,897,898,901,902,904,905,906,910,914,917,919,923,927,928,929,930,931,933,937,939,942,944,945,947,953,955,958,961,964,966,968,969,974,977,983,986,987,994,996,1000,1002,1005,1008,1009,1012,1013,1018,1020,1021,1023,1024,1027,1030,1032,1034,1035,1037,1038,1041,1042,1043,1046,1048,1050,1051,1054,1056,1058,1059,1065,1068,1071,1073,1078,1081,1084,1087,1090,1092,1093,1095,1101,1102,1103,1105,1109,1114,1116,1119,1124,1127,1129,1130,1131,1134,1136,1140,1142,1143,1145,1146,1152,1158,1161,1163,1164,1167,1169,1173,1175,1178,1180,1183,1185,1188,1190,1193,1196,1197,1201,1202,1204,1206,1208,1209,1217,1219,1221,1223,1224,1226,1231,1235,1238,1240,1242,1244,1246,1249,1250,1251,1254,1255,1258,1259,1262,1263,1266,1271,1273,1275,1277,1280,1282,1285,1288,1290,1296,1297,1300,1303,1304,1306,1308,1309,1313,1317,1320,1322,1323,1325,1327,1333,1334,1336,1337,1338,1341,1343,1345,1346,1349,1350,1353,1354,1356,1358,1359,1362,1363,1365,1367,1369,1372,1374,1376,1378,1381,1385,1388,1390,1392,1394,1396,1397,1399,1401,1404,1405,1406,1407,1409,1410,1414,1418,1422,1424,1428,1431,1435,1438,1440,1442,1446,1447,1448,1450,1455,1456,1458,1462,1463,1464,1466,1469,1473,1475,1477,1479,1482,1484,1488,1493,1494,1499,1502,1504,1505,1510,1511,1512,1513,1516,1518,1520,1522,1525,1526,1530,1535,1537,1540,1541,1544,1547,1549,1551,1555,1558,1561,1564,1568,1569,1570,1573,1574,1578,1581,1583,1586,1588,1590,1593,1595,1597,1601,1603,1606,1610,1612,1613,1615,1616,1619,1623,1625,1627,1628,1629,1631,1632,1633,1638,1640,1645,1648,1652,1654,1656,1657,1660,1662,1665,1668,1671,1672,1673,1675,1676,1679,1682,1684,1688,1690,1692,1693,1695,1697,1699,1700,1704,1706,1707,1711,1715,1716,1719,1720,1722,1723,1725,1727,1730,1736,1739,1740,1742,1744,1745,1748,1750,1751,1754,1755,1757,1759,1760,1764,1768,1772,1773,1776,1779,1782,1784,1786,1788,1789,1790,1793,1794,1796,1797,1799,1801,1803,1806,1810,1815,1816,1817,1820,1822,1823,1824,1826,1829,1831,1833,1838,1841,1843,1845,1846,1847,1848,1851,1854,1857,1860,1863,1867,1869,1872,1874,1877,1879,1882,1883,1887,1888,1889,1892,1895,1897,1901,1904,1906,1907,1909,1911,1912,1915,1918,1919,1921,1923,1925,1928,1932,1936,1938,1939,1944,1948,1951,1956,1959,1963,1964,1966,1970,1971,1973,1976,1979,1982,1984,1986,1989,1991,1992,1993,1995,1997,2001,2002,2003,2004,2008,2010,2011,2013,2015,2016,2018,2019,2022,2023,2027,2030,2035,2040,2042,2043,2045,2048,2050,2054,2057,2060,2063,2065,2067,2072,2073,2077,2079,2082,2084,2085,2087,2089,2090,2092,2094,2097,2099,2102,2104,2105,2107,2108,2110,2113,2118,2120,2123,2125,2127,2130,2131,2134,2136,2140,2145,2147,2151,2153,2158,2161,2165,2167,2168,2170,2173,2174,2179,2180,2181,2185,2187,2190,2191,2192,2194,2195,2196,2200,2201,2205,2208,2210,2212,2215,2216,2219,2221,2222,2224,2227,2229,2230,2233,2236,2239,2241,2244,2246,2248,2250,2252,2254,2256,2258,2260,2262,2263,2264,2266,2269,2273,2275,2278,2280,2282,2284,2287,2288,2291,2292,2294,2295,2298,2299,2300,2302,2307,2312,2314,2316,2318,2322,2323,2327,2329,2334,2339,2341,2346,2348,2353,2356,2357,2359,2362,2366,2370,2372,2374,2383,2386,2388,2391,2394,2395,2396,2398,2400,2402,2404,2407,2408,2409,2414,2417,2420,2425,2427,2428,2429,2431,2432,2435,2436,2438,2441,2448,2452,2454,2455,2458,2462,2465,2467,2470,2471,2472,2475,2477,2479,2482,2485,2489,2490,2491,2495,2497,2500,2501,2504,2507,2508,2511,2514,2515,2519,2521,2523,2525,2528,2531,2535,2537,2539,2542,2544,2545,2548,2549,2552,2555,2556,2559,2562,2563,2565,2567,2569,2572,2575,2579,2581,2582,2585,2587,2589,2591,2593,2597,2598,2599,2602,2603,2607,2610,2611,2613,2614,2615,2617,2619,2622,2625,2626,2628,2630,2635,2639,2641,2642,2644,2646,2648,2651,2655,2657,2659,2660,2662,2665,2666,2667,2668,2669,2672,2677,2678,2682,2684,2687,2689,2694,2696,2702,2704,2706,2708,2710,2715,2718,2722,2725,2726,2729,2734,2736,2738,2739,2745,2750,2754,2757,2758,2760,2762,2768,2771,2777,2778,2779,2783,2785,2789,2793,2795,2798,2803,2804,2807,2811,2812,2815,2817,2818,2821,2825,2830,2833,2835,2838,2839,2842,2843,2845,2846,2849,2851,2854,2855,2859,2863,2869,2872,2874,2879,2883,2887,2890,2895,2896,2898,2899,2900,2901,2903,2904,2906,2911,2915,2918,2921,2925,2928,2931,2933,2936,2937,2939,2941,2943,2946,2950,2951,2954,2956,2959,2963,2965,2971,2977,2978,2982,2984,2987,2988,2994,2997,3001,3003,3005,3010,3015,3017,3018,3021,3024,3026,3029,3032,3036,3037,3039,3042,3044,3051,3054,3057,3060,3063,3066,3067,3071,3074,3076,3078,3079,3081,3082,3087,3089,3092,3096,3099,3103,3106,3110,3111,3113,3115,3117,3118,3119,3121,3126,3128,3132,3134,3136,3140,3142,3144,3146,3148,3151,3154,3158,3159,3162,3163,3168,3171,3174,3176,3179,3180,3182,3184,3188,3192,3196,3197,3199,3204,3207,3210,3214,3216,3219,3220,3222,3223,3224,3227,3228,3231,3234,3237,3240,3243,3244,3247,3248,3249,3250,3252,3253,3254,3256,3258,3262,3264,3265,3266,3270,3272,3276,3279,3283,3286,3287,3289,3292,3294,3298,3301,3303,3310,3315,3318,3320,3322,3324,3325,3326,3331,3334,3337,3338,3339,3340,3342,3343,3344,3347,3349,3353,3357,3359,3360,3361,3362,3364,3367,3369,3370,3372,3373,3376,3378,3379,3382,3384,3385,3389,3391,3393,3395,3396,3399,3403,3405,3407,3408,3411,3412,3415,3417,3419,3421,3423,3427,3430,3432,3434,3438,3441,3443,3448,3452,3454,3455,3459,3461,3464,3467,3470,3472,3474,3477,3479,3480,3483,3487,3490,3491,3494,3496,3497,3499,3500,3501,3503,3508,3511,3513,3514,3515,3517,3520,3522,3525,3528,3532,3534,3536,3537,3539,3541,3542,3544}
Returns: 1015
128
{26,25,19,17,86,85,35,39,61,69,4,32,39,3,110,59,85,66,2,87,49,126,58,58,106,13,57,108,43,51,76,119,26,63,12,35,108,112,89,128,24,92,47,119,19,85,111,78,1,72,81,123,127,98,4,111,107,48,125,77,2,12,106,26,78,67,35,4,5,72,34,33,112,81,54,46,87,33,22,104,53,111,6,19,25,33,93,33,61,114,14,3,51,79,102,39,107,27,16,33,24,84,110,11,5,9,1,75,126,69,66,83,73,27,93,54,3,98,24,83,92,123,37,42,57,22,37,93,64,73,91,50,64,47,1,98,104,113,3,107,60,108,72,18,92,64,54,20,120,27,59,78,71,25,29,44,75,28,24,56,24,37,15,28,95,57,49,118,96,3,114,116,26,1,45,50,67,48,90,108,20,74,63,52,110,97,61,125,26,62,14,86,52,59,9,126,100,98,53,110,113,120,34,95,68,62,1,67,21,21,88,34,47,77,122,67,83,100,33,118,39,31,28,119,113,86,106,79,43,20,32,20,3,18,121,38,113,91,99,97,96,128,7,117,75,88,29,42,57,15,68,87,64,97,45,37,126,28,41,42,1,56,110,59,45,8,15,86,111,97,22,109,114,33,42,86,41,19,95,4,1,39,39,101,31,14,48,108,70,90,68,51,73,93,65,75,24,21,97,58,78,22,70,94,78,25,45,91,125,74,66,114,30,100,26,37,31,15,97,72,101,100,13,28,61,7,51,110,5,30,46,41,45,18,93,49,52,111,8,91,65,78,116,87,44,47,41,61,26,83,59,28,78,24,36,73,80,14,73,86,122,3,112,120,34,105,8,122,89,35,67,30,36,101,87,47,41,123,33,113,103,12,2,91,8,5,126,30,54,46,11,40,3,12,113,2,71,3,78,27,45,101,16,54,37,104,39,11,75,68,58,65,110,16,112,73,12,46,30,91,2,42,58,7,28,113,10,91,102,5,81,18,80,99,20,119,61,118,61,44,118,43,98,39,107,88,5,93,68,111,97,40,109,22,32,65,57,8,120,28,65,100,40,110,34,70,68,8,59,82,117,59,86,46,37,119,68,33,114,64,46,127,115,60,51,63,12,17,107,17,87,82,128,21,96,94,107,62,100,30,47,87,52,38,20,12,53,92,5,46,36,116,21,22,93,32,33,52,98,19,41,37,59,11,60,95,22,100,51,58,47,80,4,17,10,20,45,56,19,114,125,36,118,18,118,47,56,22,43,108,82,70,52,61,102,6,40,71,52,43,42,61,16,13,45,117,123,9,107,125,94,13,120,14,124,48,122,112,125,32,57,17,43,59,34,98,40,126,94,36,80,115,61,80,10,52,128,57,99,21,121,52,49,13,24,121,108,94,27,42,118,36,8,101,86,93,3,117,80,29,73,77,42,40,63,21,53,70,30,79,121,57,29,37,55,102,84,58,53,80,92,128,81,55,40,76,101,93,42,35,76,5,50,106,68,17,62,128,96,64,19,120,119,87,14,127,78,54,16,72,31,22,47,41,80,124,39,117,73,56,16,103,94,1,104,98,38,36,110,37,83,17,125,1,93,85,109,121,81,8,91,65,37,6,112,85,26,49,77,31,42,103,95,63,116,82,15,112,53,119,57,50,48,45,104,22,87,79,86,8,5,48,72,5,89,61,3,52,43,79,5,4,91,37,25,112,40,30,7,78,52,83,113,127,115,70,61,65,68,120,32,64,26,72,104,125,118,61,25,19,102,87,91,96,109,90,92,124,82,126,123,7,96,101,26,67,19,35,86,123,86,17,45,79,94,83,104,116,9,50,8,40,73,50,35,25,103,36,77,35,66,44,9,104,45,20,95,104,70,17,49,104,92,2,101,23,127,118,75,28,68,86,80,113,57,57,58,9,26,5,27,25,31,80,14,15,35,107,27,3,95,128,67,48,39,23,74,108,117,88,69,43,102,111,54,58,118,93,107,97,21,42,44,74,87,112,20,29,92,51,13,96,79,50,107,116,10,87,52,113,15,33,54,31,73,117,6,64,46,106,110,57,60,83,93,78,66,124,89,2,31,35,37,63,74,24,7,104,7,2,35,18,24,23,68,27,17,81,113,121,40,112,17,48,124,100,111,109,83,128,122,114,32,48,116,35,4,67,37,12,12,39,55,34,35,91,26,101,122,64,9,113,28,73,119,58,33,9,10,82,116,108,68,115,91,127,57,69,18,124,85,128,94,97,76,22,114,75,62,13,63,86,103,86,33,60,125,6,73,128,103,82,2,8,24,11,18,125,19,45,112,124,32,3,27,47,42,95,128,124,16,38,48,34,101,22,61,70,58,4,124,9,23,94,98,128,122,20,106,8,79,98,29,62,23,4,98,114,98,109,41,90,99,43,86,105,125,37,24,127,40,19,96,106,102,7,59,15,59,42,39,74,85,64,93,121,11,95,21,128,65,65,120,102,58,126,72,18,75,101,76,34,98,66,13,28,105,49,80,83,70,58,11,34,60,108,28,51,90,51,64,103,107,52,8,20,32,5,20,32,42,35,88,47,7,62,3,20,31,94,123,55,7,54,84,65,117,103,112,121,103,90,28,64,13,76,20,74,39,111,76,87,116,65,46,54,65,84,64,47,60,23,65,1,123,97,85,81,25,68,53,55,43,4,56,44,57,55,28,125,128,16,53,128,97,119,103,57,103,33,116,58,12,123,16,4,88,64,55,81,94,122,85,40,106,105,59,111,92,111,50,109,57,99,18,73,6,57,19,53,61,84,85,29,1,104,23,106,88,46,83,126,32,90,33,116,2,40,74,39,82,109,95,9,21,44,18,70,116,57,42,72,89,24,24,37,83,76,61,34,38,5,50,108,21,33,92,94,99,60,12,44,33,13,47,105,8,52,97,23,119,14,29,115,41,28,2,111,74,14,59,115,104,118,42,55,24,48,83,35,32,18,81,1,79,3,88,106,85,44,76,39,118,118,8,8,17,59,31,112,38,25,87,36,107,115,24,81,26,91,36,103,32,68,88,120,88,126,4,114,70,44,24,13,113,57,2,39,50,70,23,33,37,12,60,79,108,65,64,121,50,97,27,82,118,116,47,101,70,93,61,73,6,84,104,18,32,49,14,106,76,104,35,73,43,128,114,76,6,43,74,74,75,125,56,67,79,58,64,124,103,18,113,28,33,11,79,82,52,107,46,44,63,51,35,102,8,124,120,64,58,77,94,111,115,32,74,38,8,74,109,72,38,25,30,20,26,97,121,123,53,107,18,105,49,68,82,58,95,123,127,76,30,9,97,115,73,60,55,109,98,30,93,73,3,24,28,29,43,12,125,51,127,19,107,74,82,14,25,111,48,27,61,91,36,20,83,56,18,65,86,33,83,90,93,42,37,23,3,60,27,11,67,25,102,35,91,75,59,66,10,105,122,102,112,14,7,37,76,1,94,43,120,30,120,61,103,30,22,96,54,18,60,101,25,100,113,98,5,123,116,83,112,41,8,67,110,76,89,76,25,44,97,58,128,100,44,60,68,91,26,121,15,121,6,9,92,42,57,93,64,105,23,35,5,94,82,127,98,115,39,88,121,127,92,68,45,18,57,55,86,48,34,63,35,66,83,80,67,64,107,80,104,38,18,75,74,7,10,122,37,29,77,112,123,29,48,41,117,118,43,86,121,66,104,39,44,18,56,24,82,60,101,37,79,111,11,127,121,69,63,112,56,27,88,62,119,24,8,105,8,73,67,126,9,102,36,20,22,99,1,12,98,22,119,29,76,111,99,25,26,64,38,108,92}
{2,3,5,6,7,8,9,12,13,16,17,20,22,24,25,26,28,30,32,33,34,35,36,37,38,40,41,42,43,45,47,48,49,51,53,54,56,58,60,61,62,64,66,67,68,69,71,73,74,75,76,77,78,80,82,83,85,86,89,91,92,94,95,96,97,98,99,101,102,103,104,105,106,107,108,110,111,112,113,115,116,117,120,122,123,125,127,128,131,132,133,134,135,136,139,140,141,142,144,146,149,150,151,154,156,157,159,160,161,162,166,167,168,170,172,173,175,176,178,180,183,184,185,186,187,188,189,190,192,193,196,198,200,201,203,204,205,206,207,209,211,212,213,215,216,217,218,220,221,223,224,225,227,228,231,232,233,235,237,238,242,244,245,246,248,249,251,252,253,254,255,257,258,259,262,263,264,266,267,269,270,271,274,275,276,278,281,282,283,284,286,287,288,290,291,292,294,295,296,298,302,303,304,305,306,307,309,310,312,313,314,315,317,318,319,320,322,323,327,328,329,330,331,333,334,336,338,339,340,341,343,344,345,346,348,349,351,352,354,358,359,361,362,363,365,367,368,369,370,371,374,375,376,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,397,398,400,402,403,404,406,407,410,411,412,413,414,416,417,418,420,421,422,424,427,429,431,433,434,435,436,437,438,439,440,442,443,445,447,448,449,450,451,453,454,456,458,459,460,461,464,465,466,467,469,471,472,474,475,477,478,479,480,483,484,485,486,487,490,493,494,495,497,498,499,501,502,503,505,506,507,509,510,511,512,513,515,516,517,518,521,522,524,525,528,529,530,531,533,534,536,537,540,541,543,545,546,547,548,550,551,553,556,558,560,561,562,563,565,566,567,568,570,571,574,575,577,578,580,581,582,584,585,586,587,589,590,591,593,595,596,597,598,599,600,601,602,603,605,607,608,609,610,611,614,615,617,618,620,621,622,624,626,627,629,630,631,632,633,636,637,638,639,641,642,643,644,645,646,649,650,651,652,653,654,656,657,658,659,661,662,664,666,669,671,673,675,676,677,678,679,681,682,683,684,685,687,688,689,690,691,692,693,696,697,699,700,701,702,703,706,707,708,709,711,712,713,714,716,718,719,721,722,724,725,727,728,730,731,733,734,735,736,739,741,743,744,746,747,748,749,751,752,754,756,757,758,759,762,763,764,765,766,767,768,769,772,773,774,776,777,778,780,781,783,784,786,787,788,789,790,791,793,794,795,797,800,802,803,805,806,807,808,810,811,815,818,819,820,822,823,824,827,829,830,833,835,836,837,838,839,841,842,843,845,846,848,851,856,857,858,859,861,862,863,866,867,868,869,872,873,874,875,877,878,879,881,882,883,885,886,887,889,890,891,892,893,895,898,899,901,902,904,905,906,907,908,910,913,914,916,918,919,921,922,925,929,930,932,933,934,935,936,937,942,943,944,945,946,947,948,949,950,951,952,953,954,955,957,959,960,962,965,967,968,969,971,973,975,976,978,979,980,982,983,984,986,988,989,990,991,992,995,998,999,1000,1002,1003,1004,1006,1008,1009,1011,1012,1014,1017,1018,1021,1022,1023,1024,1026,1029,1031,1032,1036,1037,1038,1039,1040,1042,1044,1045,1046,1047,1048,1051,1053,1054,1056,1058,1059,1062,1063,1065,1066,1068,1070,1071,1072,1073,1074,1075,1076,1077,1080,1081,1082,1085,1087,1088,1089,1090,1093,1095,1096,1097,1098,1099,1100,1102,1103,1105,1106,1108,1111,1114,1116,1118,1119,1121,1122,1124,1126,1127,1128,1129,1131,1132,1133,1134,1136,1138,1140,1142,1143,1144,1147,1148,1149,1154,1155,1157,1160,1161,1162,1165,1167,1168,1169,1170,1171,1172,1173,1174,1175,1178,1180,1181,1183,1185,1187,1188,1190,1191,1192,1193,1194,1196,1197,1199,1200,1201,1202,1203,1204,1206,1207,1209,1210,1211,1214,1215,1216,1217,1219,1221,1223,1225,1226,1229,1232,1234,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1247,1250,1251,1252,1253,1254,1255,1257,1260,1261,1262,1263,1266,1267,1268,1269,1270,1271,1273,1275,1276,1278,1280,1282,1283,1284,1286,1289,1291,1294,1295,1296,1297,1298,1299,1300,1302,1303,1306,1308,1311,1312,1314,1316,1317,1318,1320,1321,1323,1324,1325,1326,1328,1330,1332,1334,1336,1337,1338,1339,1340,1341,1343,1344,1346,1347,1348,1350,1352,1354,1357,1358,1359,1361,1362,1364,1366,1367,1368,1370,1371,1373,1375,1376,1377,1378,1379,1380,1381,1382,1385,1386,1387,1388,1389,1392,1393,1394,1396,1398,1399,1400,1401,1404,1405,1406,1408,1409,1410,1411,1413,1415,1417,1418,1423,1425,1427,1428,1429,1431,1432,1434,1435,1437,1439,1440,1442,1444,1446,1448,1450,1451,1454,1456,1457,1459,1460,1464,1465,1467,1468,1469,1472,1475,1476,1479,1482,1483,1484,1486,1487,1489,1491,1492,1493,1495,1496,1497,1499,1500,1501,1503,1504,1505,1507,1509,1510,1512,1513,1514,1516,1518,1519,1524,1525,1526,1527,1528,1529,1530,1532,1534,1535,1536,1537,1538,1539,1542,1543,1545,1548,1552,1553,1556,1557,1558,1559,1561,1563,1565,1566,1567,1569,1570,1571,1572,1575,1579,1580,1582,1583,1585,1587,1588,1589,1590,1591,1593,1596,1597,1598,1599,1600,1601,1602,1604,1606,1607,1609,1610,1611,1614,1616,1617,1620,1621,1622,1623,1624,1626,1628,1630,1631,1634,1635,1637,1638,1640,1641,1642,1643,1644,1646,1648,1651,1652,1654,1655,1656,1657,1658,1659,1661,1662,1663,1666,1668,1670,1672,1674,1675,1676,1677,1679,1681,1682,1683,1684,1686,1687,1688,1690,1692,1693,1696,1697,1698,1699,1702,1703,1705,1706,1708,1709,1711,1713,1715,1716,1717,1719,1720,1722,1723,1724,1725,1726,1727,1728,1730,1731,1732,1733,1734,1735,1736,1737,1738,1740,1742,1744,1745,1746,1747,1748,1750,1751,1752,1754,1757,1759,1760,1762,1764,1765,1768,1769,1770,1772,1773,1774,1776,1777,1779,1780,1782,1783,1784,1787,1789,1790,1791,1793,1794,1796,1797,1799,1800,1801,1803,1805,1806,1807,1808,1809,1810,1813,1814,1816,1818,1819,1822,1823,1824,1825,1827,1829,1830,1831,1832,1833,1835,1836,1838,1839,1840,1841,1842,1843,1846,1847,1849,1850,1851,1852,1855,1856,1860,1862,1864,1865,1867,1868,1871,1872,1873,1874,1876,1877,1880,1881,1882,1883,1884,1885,1887,1888,1891,1893,1895,1897,1899,1901,1902,1903,1906,1908,1909,1911,1913,1916,1917,1918,1919,1920,1921,1922,1924,1925,1926,1927,1928,1929,1932,1933,1934,1935,1937,1938,1940,1942,1944,1945,1947,1949,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1965,1966,1967,1968,1969,1971,1972,1973,1974,1976,1978,1979,1980,1981,1982,1983,1984,1985,1987,1990,1991,1992,1993,1994,1996,1998,2000,2001,2003,2004,2007,2009,2010,2012,2013,2014,2016,2017,2018,2019,2021,2022,2025,2026,2027,2029,2031,2032,2035,2036,2037,2038,2039,2041,2043,2045,2046,2047,2048,2049,2050,2053,2055,2057,2060,2062,2063,2065,2066,2067,2068,2069,2070,2073,2074,2076,2079,2080,2082,2083,2084,2085,2087,2089,2090,2093,2094,2095,2096,2097,2100,2101,2102,2103,2105,2107,2108,2109,2110,2111,2113,2114,2115,2117,2118,2119,2121,2122,2123,2125,2128,2130,2131,2132,2133,2134,2135,2138,2140,2141,2143,2144,2145,2146,2147,2148,2149,2150,2151,2154,2156,2158,2160,2162,2163,2165,2167,2168,2169,2171,2173,2176,2178,2180,2181,2182,2184,2185,2186,2187,2188,2189,2190,2191,2193,2195,2196,2197,2198,2200,2203,2205,2207,2209,2211,2212,2215,2217,2219,2220,2221,2222,2223,2225,2227,2229,2230,2232,2233,2235,2236,2237,2238,2240,2241,2242,2243,2246,2247,2249,2252,2253,2254,2256,2257,2259,2261,2262,2263,2264,2266,2267,2268,2270,2272,2274,2276,2277,2280,2283,2285,2286,2287,2289,2290,2292,2295,2296,2297,2298,2300,2301,2302,2303,2305,2308,2309,2311,2312,2315,2317,2318,2320,2321,2322,2323,2324,2325,2328,2329,2331,2332,2334,2335,2336,2337,2338,2340,2341,2343,2344,2345,2346,2349,2350,2351,2353,2354,2356,2357,2358,2361,2362,2364,2365,2369,2370,2371,2372,2374,2375,2377,2380,2382,2383,2384,2385,2386,2387,2389,2390,2392,2395,2396,2398,2399,2401,2402,2403,2404,2406,2407,2409,2412,2414,2416,2418,2421,2422,2423,2424,2425,2426,2429,2430,2431,2433,2434,2435,2436,2437,2438,2439,2441,2442,2443,2445,2446,2448,2451,2454,2457,2458,2459,2462,2463,2464,2467,2469,2470,2472,2474,2476,2477,2479,2480,2483,2484,2486,2487,2489,2491,2493,2496,2498,2499,2500,2501,2502,2503,2507,2508,2509,2510,2511,2512,2513,2514,2515,2517,2519,2520,2521,2523,2524,2526,2527,2528}
Returns: 1185
128
{118,25,65,51,31,46,87,114,3,11,106,8,28,96,87,37,29,77,123,81,108,64,18,112,38,90,67,58,53,128,76,72,39,76,61,25,87,118,107,93,79,6,98,102,36,119,75,62,92,70,97,77,100,45,90,84,113,78,58,65,27,35,117,10,97,100,74,23,71,80,58,108,38,11,19,94,65,35,14,82,70,2,1,68,44,27,76,10,47,37,58,100,114,31,25,120,127,116,8,27,111,116,8,70,126,45,11,3,12,60,97,101,14,121,38,109,32,19,102,50,8,75,7,60,42,7,37,78,19,63,103,51,117,53,124,47,40,88,75,98,110,9,35,55,16,32,8,121,7,42,15,38,80,85,16,122,47,85,79,102,19,96,34,71,124,108,118,77,64,127,5,70,64,59,106,18,17,42,68,94,122,3,122,79,18,72,61,61,20,118,64,15,41,19,68,119,18,8,127,6,72,112,113,33,128,3,69,43,27,90,3,71,101,105,46,19,50,121,84,9,88,109,97,9,32,38,99,23,71,67,99,6,88,70,67,13,44,72,19,50,125,7,55,27,36,17,38,105,53,16,128,89,88,27,70,31,115,125,101,81,89,103,96,91,123,128,72,113,61,127,128,121,104,50,124,49,78,122,24,9,39,45,124,84,81,40,60,90,119,68,123,91,12,69,123,59,32,49,28,75,67,36,36,59,45,66,23,24,15,107,89,61,34,41,91,37,15,8,116,98,49,53,41,90,23,65,120,96,52,81,1,17,26,78,61,7,29,95,25,10,48,18,94,81,112,124,108,109,56,35,80,114,61,5,121,92,59,3,105,13,83,54,89,53,73,104,11,75,3,112,26,112,53,65,100,39,88,62,74,92,51,29,76,114,95,114,77,116,114,67,102,46,37,36,60,80,122,6,75,122,71,48,31,24,33,84,50,101,126,73,121,98,50,58,15,49,48,103,74,126,65,58,94,24,76,125,50,95,19,96,86,84,42,113,22,127,90,38,125,71,107,127,58,7,95,105,20,63,111,79,112,113,44,52,15,108,3,26,11,49,115,103,93,85,34,112,120,59,37,59,111,20,54,43,106,93,37,105,118,99,109,122,65,104,70,55,21,23,77,59,85,100,75,120,66,56,92,83,8,14,80,118,71,39,68,6,15,25,24,16,93,56,24,44,25,54,102,93,34,115,79,26,119,15,23,61,22,37,87,72,52,14,111,125,30,40,54,89,127,70,2,52,12,99,49,72,25,38,117,57,83,9,66,29,104,6,56,25,53,116,38,55,21,116,62,55,78,90,105,62,39,27,12,48,8,108,18,22,58,92,100,108,32,112,17,46,6,63,50,72,4,29,72,39,16,10,39,108,116,11,29,7,116,109,8,12,105,60,32,55,122,77,61,85,113,83,5,41,16,88,127,16,73,62,44,50,18,57,96,3,20,39,61,65,93,74,90,67,69,47}
{4,9,15,20,31,36,44,47,53,58,68,73,81,89,103,108,115,125,132,136,143,152,157,161,170,179,185,193,200,204,210,215,222,229,233,242,255,264,270,281,287,293,298,310,321,326,330,335,346,356,364,371,378,385,393,404,414,423,426,431,437,449,460,467,469,476,482,488,501,512,519,524,529,537,543,550,555,563,570,573,582,590,596,608,612,618,626,634,641,650,655,666,673,679,685,689,696,698,703,713,723,732,738,742,750,757,762,769,776,781,793,800,807,813,822,826,835,848,857,872,880,887,892,900,912,919,921,929,942,949,961,968,974,981,988,996,1000,1006,1017,1023,1032,1039,1044,1055,1066,1073,1078,1083,1092,1099,1108,1120,1132,1138,1143,1146,1149,1157,1164,1172,1175,1184,1194,1201,1210,1215,1217,1230,1242,1250,1259,1266,1275,1283,1294,1303,1312,1322,1327,1336,1340,1344,1349,1359,1365,1366,1375,1384,1396,1404,1411,1421,1424,1436,1445,1452,1458,1464,1476,1482,1491,1498,1509,1519,1531,1538,1547,1557,1564,1571,1578,1585,1595,1603,1610,1619,1625,1633,1644,1651,1658,1663,1671,1677,1684,1691,1701,1708,1718,1725,1733,1746,1751,1758,1768,1776,1785,1801,1816,1826,1835,1840,1846,1850,1856,1866,1869,1876,1883,1892,1896,1901,1907,1913,1916,1923,1931,1938,1941,1949,1955,1962,1967,1978,1985,1992,1999,2005,2009,2019,2026,2034,2045,2053,2058,2066,2075,2079,2088,2097,2101,2109,2115,2123,2132,2138,2145,2152,2157,2167,2174,2178,2187,2197,2205,2213,2214,2221,2233,2239,2245,2252,2262,2268,2273,2279,2289,2301,2309,2316,2327,2335,2341,2347,2354,2361,2367,2373,2382,2390,2396,2406,2412,2415,2423,2436,2443,2448,2453,2461,2466,2478,2485,2500,2506,2512,2521,2527,2531,2544,2554,2560,2564,2574,2583,2594,2601,2606,2614,2622,2628,2634,2642,2652,2657,2663,2672,2677,2686,2696,2699,2708,2714,2722,2731,2739,2750,2761,2768,2780,2786,2799,2807,2810,2815,2825,2835,2842,2850,2862,2874,2883,2892,2897,2905,2909,2914,2920,2926,2937,2947,2958,2962,2968,2975,2984,2991,2997,3005,3014,3024,3033,3039,3047,3051,3057,3063,3074,3081,3088,3093,3103,3114,3123,3131,3136,3145,3151,3159,3164,3172,3175,3186,3189,3197,3203,3211,3220,3226,3234,3241,3251,3258,3267,3278,3288,3294,3300,3307,3314,3327,3337,3343,3348,3357,3365,3374,3380,3394,3405,3412,3420,3430,3435,3443,3452,3456,3466,3477,3486,3493,3503,3509,3515,3520,3529,3533,3538,3547,3550,3556,3558,3565,3576,3586,3591,3595,3605,3610,3617,3626,3635,3646,3655,3660,3665,3670,3676,3684,3688,3699,3708,3715,3731,3733,3740,3749,3754,3761,3768,3772,3777,3783,3787,3793,3805,3811,3819,3828,3840,3852,3855,3864,3873,3880,3890,3900,3905,3912,3923,3931,3940,3951,3956,3964,3970,3978,3985,3993,4002,4006,4014,4027,4032,4037,4046,4054,4059,4066,4074,4082,4093,4104,4111,4118,4126,4131,4140,4147,4154,4166,4178,4185,4192,4199,4207,4217,4223,4228,4233,4245,4253,4264,4268,4279,4291,4299,4304,4309,4315,4318,4324,4328,4336,4343,4350,4361,4369,4373,4380,4385,4391,4398,4404,4416,4424,4431,4438,4450,4458,4465,4474,4487,4493,4502,4507,4513,4522,4526,4534,4546,4556,4564,4570,4576,4584,4594,4603,4612,4620,4628,4635,4643,4649,4660,4669,4676,4686,4696,4707,4715,4725,4730,4735,4743,4749,4754,4763,4770,4776,4785,4791,4801,4808,4814,4822,4829,4841,4853,4857}
Returns: 451
512
{362,160,198,367,337,358,351,43,142,446,239,222,61,110,172,261,301,141,478,193,191,377,375,413,275,324,24,163,18,179,235,331,28,451,503,114,106,371,368,409,132,128,452,361,398,452,306,179,429,203,20,235,313,395,64,152,284,257,60,256,329,11,122,244,509,444,335,169,63,293,466,27,474,403,125,195,264,28,26,23,476,380,47,154,414,59,503,311,71,99,472,497,120,30,282,23,131,260,196,164,340,263,101,398,101,417,217,158,83,503,285,369,4,417,162,332,249,243,200,424,473,424,138,78,252,314,476,384,361,320,423,385,378,452,484,423,320,419,253,302,394,471,49,464,384,434,144,383,437,11,205,359,186,438,50,238,72,139,440,329,357,501,105,486,280,477,302,249,166,427,77,65,420,24,509,56,434,133,456,479,294,194,418,129,398,288,21,505,145,56,64,69,359,426,220,371,244,493,287,121,74,52,212,206,347,339,201}
{29,41,61,78,93,108,123,141,159,169,183,212,231,246,258,282,298,313,334,357,376,391,420,441,455,465,488,504,512,529,551,567,579,599,618,633,646,665,681,700,716,737,751,768,782,795,809,820,836,851,872,889,910,925,944,967,982,1003,1016,1040,1050,1060,1080,1101,1113,1129,1140,1165,1188,1204,1224,1247,1262,1277,1304,1319,1334,1354,1375,1388,1413,1426,1446,1456,1477,1495,1516,1534,1550,1565,1580,1597,1615,1632,1649,1661,1679,1701,1723,1737,1758,1773,1789,1802,1819,1840,1863,1878,1900,1909,1923,1938,1957,1973,1991,2008,2024,2044,2062,2084,2103,2116,2131,2149,2159,2174,2191,2209,2224,2237,2252,2261,2275,2289,2306,2321,2338,2355,2376,2390,2404,2420,2445,2460,2472,2492,2520,2533,2550,2568,2583,2595,2609,2624,2640,2656,2675,2693,2713,2724,2745,2762,2774,2792,2809,2827,2843,2859,2872,2888,2904,2917,2939,2961,2972,2992,3010,3026,3034,3050,3062,3084,3096,3119,3133,3149,3161,3180,3199,3213,3230,3246,3263,3285,3301,3320,3334,3355,3366,3388,3399,3417,3432,3449,3466,3486,3500}
Returns: 145
4096
{2575,3078,1560,2663,2015,3229,3529,923,2722,2666,3529,985,1508,3967,4085,1645,3834,583,3319,1928,1476,955,2813,1732,3101,376,3921,2314,2165,1197,2471,3944,2585,2662,1634,639,3096,1530,4022,1151,1759,741,1255,1671,14,159,671,430,1029,2171,3988,4051,3410,1007,3461,1225,773,21,4059,1341,2183,651,3822,3627,1936,2891,2373,3483,1892,1902,736,953,2930,308,1510,578,1795,785,4053,1968,938,3297,646,856,1182,1219,313,2107,2619,1939,1798,1275,3675,2107,3553,247,1100,2224,2972,91,1442,893,3365,2910,33,2453,3944,1990,157,1299,285,3898,2690,3916,2299,191,3180,1733,149,2092,3867,49,3427,2874,1432,3263,3919,2384,2929,4015,3650,239,101,3405,1817,3098,4074,3580,903,3068,3706,311,2122,2923,3716,3600,2388,1984,905,197,3132,3,2761,1990,3760,796,3706,1416,2122,1874,658,72,1399,3865,158,3306,999,437,2849,1743,2106,2310,153,2980,2147,2366,553,1994,3720,809,2675,1564,1244,1546,1620,3197,3127,767,624,1476,1284,2360,3798,294,3136,50,1086,1929,3384,2967,3479,4017,3003,827,3079,860,641,272,2958,289,3462,1759,2808,236,2319,1513,729,2976,823,888,3272,412,1975,3809,3611,1886,3025,3887,2010,3022,785,2380,2238,2116,3301,561,1402,1921,1720,3107,3997,3725,3740,489,988,105,1858,3887,1448,1112,1859,2652,1870,1402,2954,339,1051,569,1771,166,1102,525,4033,2825,461,2280,1951,3516,4091,151,2296,3618,296,535,2777,1132,2173,2842,923,2007,2150,3697,173,2497,2799,332,2929,3646,2960,2802,2372,2767,100,143,4026,1580,994,2952,1339,3830,3976,3527,2548,675,1048,3359,3444,2482,1144,1310,470,711,3381,1313,3810,773,1122,1994,3348,1921,2902,2177,2793,393,1653,986,3454,3525,1577,2134,220,1345,4022,1574,1028,3758,1161,1570,2346,1585,842,2671,816,2649,1747,1482,3796,3534,3270,439,4020,1710,3985,1880,1958,1630,3596,2798,383,3865,1534,1683,4058,3915,3673,3576,3079,1602,495,635,425,2443,3065,3366,2120,3803,1218,700,1370,789,1611,1319,3851,1167,1747,1323,2657,3209,2448,1934,1536,546,1297,338,3622,2067,2598,4083,1612,1491,3647,1064,2287,1171,179,1985,1795,2326,874,2559,3478,3103,3284,196,2610,1191,825,181,3210,248,2017,645,3839,3607,2956,60,3758,2028,1367,2693,3953,4053,268,2959,177,849,628,870,1134,209,63,15,2907,1421,2714,2831,3720,1210,3992,3446,2419,1615,2559,995,1559,496,3634,1110,4032,2433,3149,276,2380,3644,3762,3392,4029,2825,2219,548,681,1877,481,3751,397,1623,210,1446,1680,77,2201,2944,1470,1263,3249,3913,2657,232,2187,2240,878,731,57,326,3018,2047,883,3004,2910,3129,3292,3389,707,1520,1091,1921,3206,2774,1103,1161,3291,2092,2530,819,2748,3831,1570,1065,1116,770,2818,1918,3062,609,1467,3142,2518,2722,674,1332,1219,2211,2629,1893,2720,122,2257,2843,124,962,3624,2395,743,3567,3898,1284,1487,2123,1932,522,3534,2444,3336,570,3103,4064,1928,1024,2620,1970,2496,1363,2654,3404,388,775,3811,3034,2703,891,3044,2365,91,680,3080,893,2472,3395,3028,662,728,205,3497,1958,830,3848,2978,397,3344,3185,1166,1614,1958,2814,3406,133,54,3210,201,2185,1600,756,3541,464,3696,3882,3142,3727,2206,3037,131,3405,1090,3313,2033,3778,2451,2346,3983,1289,1309,225,518,2219,1958,538,2748,1003,3232,2198,18,275,1674,1770,110,3446,2591,1289,2886,53,1816,29,466,2485,1,2006,414,3883,364,1493,1707,3175,1149,3370,621,1431,176,334,2374,2668,1360,1621,230,3233,1049,3730,1845,1177,1010,3363,2862,90,3264,2168,1885,744,996,3074,2174,3206,967,3315,2523,3884,2209,2815,1275,1530,2163,3016,2653,589,1219,1465,1462,1402,2501,1467,388,2844,4075,593,899,3400,791,1609,1479,2517,3325,1381,3871,1627,1884,1512,130,3927,3652,813,1344,1632,2694,1794,4016,809,2313,449,3362,900,3250,914,229,1882,3623,1188,21,3884,3731,1432,1567,1352,321,3484,3243,1172,2758,2136,2283,611,3086,734,3075,3192,906,1157,1158,4093,3940,3769,987,2765,2168,3425,889,3375,1921,178,990,3993,3013,2271,322,1516,3372,3125,211,2050,675,230,1190,3660,310,1249,1065,156,75,4013,2861,3365,1012,3203,2697,3598,3910,3415,603,3320,3641,2771,4071,1295,129,2254,3907,3663,1385,2806,2992,3812,3004,2559,2292,2705,2092,3818,920,2897,233,3950,3669,2657,1365,3289,4014,1322,3589,3404,1030,1687,660,3687,3629,635,249,2061,2764,3814,3184,3612,2471,3431,290,2199,803,1338,3381,729,2077,1742,4087,3093,1658,220,3143,3469,3468,1979,1147,1412,695,123,2946,286,131,2749,2284,2817,2178,1556,3119,163,845,2606,1626,3313,247,3036,2326,1018,2124,1149,3493,2320,838,1327,1869,1749,3077,2956,372,3954,1748,672,836,2614,888,2092,2242,912,619,1064,938,1160,331,3793,1406,1891,3341,2203,4019,80,2151,1667,3804,687,2290,3428,2646,3464,1666,1829,734,3199,1354,1428,2060,3522,1338,2076,1713,230,1873,869,2210,1807,1092,3175,350,280,3904,818,694,3536,834,3394,106,4075,431,2810,607,2405,1494,2123,2550,203,503,1405,164,3053,124,2652,998,825,3620,1032,3385,2309,180,1029,2984,2262,266,1521,2097,2988,1829,2267,3618,2085,777,2280,3351,3928,3620,3717,869,498,1548,2331,1296,1090,2901,1217,1443,905,3424,3143,2452,2819,3804,837,3850,962,1514,1736,1350,1942,1714,3765,3583,3313,1862,3493,1154,4028,190,2464,870,2512,2671,3274,2870,3304,2603,2725,615,3946,1652,3161,2432,3510,3740,1222,3415,544,1993,1091,3267,1791,3529,767,3915,2003,2770,296,3743,2205,527,3122,1517,3398,1572,395,1915,3566,1679,2160,782,2244,1310,1653,3607,1567,3936,1208,425,2077,1882,1687,464,1122,2665,1592,3522,3079,3483,1774,267,3076,892,544,709,1789,170,4,365,137,2602,788,2043,2457,726,2782,865,1498,3071,2389,1674,2703,133,1183,3723,130,2458,1708,2226,3141,2171,3069,2213,2608,327,2848,1468,1577,2150,3975,3173,606,3480,2970,566,3015,3634,2014,2556,1887,2719,3953,17,4027,706,3297,3760,1972,2121,1533,3624,1156,1689,2279,1328,4067,1141,2367,2750,335,3328,275,1067,3264,2900,1696,147,1229,1603,3539,1213,3657,158,2802,2571,1047,3462,663,3644,2844,2099,680,2569,1980,718,2002,2301,2211,2226,866,3584,3337,3535,3674,3483,4088,1685,2015,214,1425,2562,1835,2646,2968,2670,2911,2589,784,160,3756,3089,3574,2246,1412,2368,432,2313,3704,3207,1275,1586,3023,34,1736,3127,3267,2885,646,1590,433,1239,3616,2990,1132,2807,1526,1920,1115,1514,972,160,1222,153,1754,1028,843,218,3242,2995,3117,1566,1220,3994,2730,3665,920,525,1138,1559,1128,924,2190,2980,1398,2098,3128,2550,1531,2596,2607,3378,2545,3901,3142,2157,1276,3946,539,2352,2886,3345,3040,1414,1382,991,3201,3693,745,3071,2887,2557,1628,3476,2715,3752,1341,647,3920,2929,1647,2927,587,2046,2662,1973,3405,758,2422,208,762,3336,1587,3244,2598,927,1051,1071,1224,3884,1354,2037,997,1669,1318,3900,2851,716,2457,797,153,1520,2194,797,1996,2237,1048,3890,449,1297,1158,1873,3932,3256,3573,2225,3893,1540,1080,3535,1123,3137,1847,1911,182,903,2257,2788,547,3487,1251,2874,287,2061,3163,888,1021,619,3262,2353,2641,4022,1748,2094,2727,1357,174,857,3311,1718,2410}
{1,2,3,5,6,7,8,9,12,14,17,19,22,23,24,26,27,29,30,31,32,35,38,39,40,41,43,45,46,49,51,52,53,55,56,57,59,60,63,65,66,67,68,70,71,74,76,78,80,81,82,83,85,86,87,89,90,94,96,97,98,100,101,102,104,105,106,111,112,114,116,118,121,122,123,124,126,128,130,133,134,135,136,137,139,140,141,143,145,147,149,150,151,152,153,155,158,159,160,161,164,165,167,168,169,170,171,172,174,175,176,177,178,181,182,184,185,188,189,192,193,196,197,198,199,203,205,206,209,210,211,213,215,218,222,224,227,229,230,232,235,238,239,241,244,246,249,250,253,255,257,258,260,262,263,264,265,270,273,274,277,279,282,284,286,287,288,290,292,296,297,298,299,300,302,304,306,308,312,314,316,318,319,321,322,323,324,326,327,329,330,331,333,336,337,338,340,344,345,348,350,352,353,356,357,359,361,362,363,365,367,368,370,372,373,374,375,376,379,382,383,384,385,386,387,389,390,392,393,395,396,398,400,402,403,406,408,409,410,411,413,414,415,416,419,420,421,423,424,426,429,432,435,436,440,442,444,445,446,447,450,452,453,455,456,458,459,460,462,464,465,468,470,472,474,476,479,480,481,482,483,485,487,489,492,493,495,496,497,499,500,501,502,503,504,505,507,512,516,519,520,521,526,528,530,531,532,533,535,536,537,539,541,543,545,547,549,551,553,555,558,560,561,563,565,567,568,569,570,571,574,575,579,580,582,583,584,585,586,588,591,592,594,595,600,602,603,605,607,609,610,611,612,614,615,617,618,620,622,625,627,629,630,631,632,633,636,638,640,641,643,647,648,649,651,653,655,658,660,661,663,664,665,667,668,669,670,673,676,677,678,680,682,683,684,685,686,688,692,693,694,695,696,697,699,701,702,705,706,707,709,710,712,713,715,718,721,723,726,728,730,732,736,737,738,740,744,747,750,751,754,756,758,759,760,761,762,764,766,768,773,774,776,777,782,784,785,786,787,788,789,790,791,792,793,795,796,800,802,805,807,810,813,815,816,817,819,821,822,824,826,828,830,831,832,833,835,837,838,840,841,843,844,847,848,851,852,854,855,859,860,861,863,865,866,867,868,870,871,873,876,877,882,883,886,888,890,891,893,895,896,897,898,900,903,905,908,909,913,914,916,918,919,922,924,926,928,929,931,932,933,935,936,938,939,940,943,944,946,947,949,951,953,954,955,956,957,960,962,964,966,968,971,972,974,975,977,980,983,984,986,987,988,989,990,992,995,997,1002,1003,1004,1006,1007,1010,1012,1014,1015,1016,1017,1022,1023,1024,1026,1028,1030,1031,1033,1035,1037,1038,1039,1042,1043,1045,1047,1049,1050,1052,1053,1054,1056,1058,1059,1062,1063,1065,1066,1069,1071,1072,1074,1075,1077,1078,1079,1081,1082,1083,1085,1087,1088,1090,1092,1094,1097,1098,1101,1102,1104,1105,1106,1107,1108,1109,1111,1113,1114,1115,1119,1120,1121,1122,1124,1125,1127,1131,1133,1134,1135,1137,1138,1140,1143,1145,1146,1147,1148,1151,1152,1155,1156,1160,1161,1164,1165,1168,1169,1172,1173,1175,1178,1179,1180,1181,1183,1184,1185,1186,1188,1189,1190,1191,1193,1195,1196,1197,1199,1202,1203,1205,1207,1208,1209,1211,1213,1214,1216,1217,1218,1220,1222,1225,1229,1231,1232,1233,1236,1237,1238,1239,1241,1242,1243,1244,1246,1247,1249,1251,1253,1254,1256,1258,1259,1260,1262,1264,1265,1266,1268,1269,1270,1272,1275,1278,1280,1281,1282,1284,1286,1288,1291,1292,1296,1297,1298,1300,1302,1303,1306,1307,1308,1311,1313,1315,1316,1318,1319,1320,1322,1325,1328,1332,1334,1335,1336,1337,1338,1343,1346,1347,1348,1350,1352,1353,1354,1357,1358,1360,1362,1363,1364,1367,1369,1370,1371,1373,1376,1377,1380,1383,1387,1390,1391,1392,1394,1395,1396,1397,1398,1399,1400,1401,1404,1406,1409,1411,1413,1415,1416,1422,1424,1425,1426,1427,1430,1434,1437,1439,1442,1443,1446,1448,1449,1452,1454,1456,1458,1460,1462,1463,1464,1466,1467,1468,1471,1473,1474,1476,1477,1478,1479,1480,1481,1483,1486,1487,1488,1489,1490,1492,1493,1495,1496,1498,1499,1500,1501,1502,1505,1506,1510,1511,1513,1514,1515,1519,1522,1524,1525,1526,1528,1530,1533,1536,1537,1539,1541,1544,1546,1548,1549,1552,1553,1554,1555,1556,1557,1560,1562,1564,1568,1570,1571,1573,1574,1575,1577,1580,1582,1583,1587,1589,1590,1591,1592,1593,1595,1597,1599,1602,1604,1606,1608,1609,1614,1618,1622,1623,1625,1626,1627,1630,1631,1633,1634,1635,1638,1639,1640,1641,1643,1644,1645,1647,1648,1649,1651,1652,1655,1656,1658,1660,1661,1662,1665,1666,1668,1670,1672,1673,1674,1678,1679,1680,1682,1683,1685,1687,1688,1689,1690,1691,1692,1694,1695,1696,1697,1698,1700,1701,1702,1703,1705,1707,1708,1709,1710,1711,1713,1715,1716,1718,1720,1723,1725,1727,1728,1729,1731,1734,1735,1736,1737,1739,1740,1744,1747,1751,1752,1754,1757,1758,1759,1760,1762,1765,1767,1770,1771,1772,1774,1776,1781,1784,1785,1786,1788,1789,1791,1793,1796,1797,1799,1800,1802,1804,1805,1806,1808,1810,1811,1813,1814,1817,1818,1819,1822,1823,1824,1825,1826,1828,1829,1831,1832,1833,1835,1836,1839,1840,1841,1844,1845,1848,1849,1851,1852,1853,1855,1856,1857,1859,1860,1862,1863,1864,1866,1867,1868,1871,1873,1874,1875,1877,1878,1879,1881,1883,1886,1887,1889,1892,1893,1896,1897,1898,1899,1902,1903,1904,1905,1906,1908,1911,1912,1913,1914,1915,1917,1918,1919,1920,1921,1922,1923,1924,1927,1928,1930,1932,1933,1934,1936,1938,1940,1943,1945,1946,1948,1949,1950,1951,1953,1955,1957,1959,1961,1962,1966,1967,1969,1972,1974,1975,1976,1978,1979,1980,1982,1986,1987,1988,1989,1992,1994,1995,1996,1998,2000,2001,2003,2005,2006,2009,2010,2011,2014,2016,2018,2019,2021,2025,2026,2027,2028,2030,2032,2034,2036,2037,2038,2039,2041,2043,2044,2048,2050,2053,2055,2057,2059,2060,2061,2062,2063,2068,2070,2074,2076,2078,2081,2082,2083,2086,2089,2090,2093,2094,2097,2099,2101,2102,2103,2104,2107,2111,2113,2115,2116,2117,2119,2120,2121,2122,2124,2125,2126,2127,2128,2130,2133,2135,2137,2139,2141,2142,2144,2145,2146,2147,2148,2149,2150,2153,2154,2155,2156,2159,2161,2162,2163,2165,2167,2168,2169,2171,2174,2175,2177,2179,2182,2184,2187,2188,2190,2192,2193,2195,2196,2197,2198,2201,2202,2203,2207,2209,2210,2212,2215,2218,2219,2220,2222,2225,2227,2229,2231,2234,2237,2238,2241,2243,2247,2248,2249,2251,2254,2255,2257,2261,2262,2263,2266,2267,2268,2270,2272,2273,2275,2276,2277,2280,2282,2283,2285,2286,2287,2290,2291,2293,2295,2296,2298,2299,2302,2304,2307,2308,2309,2311,2313,2314,2316,2318,2319,2321,2323,2325,2326,2327,2331,2332,2333,2336,2337,2339,2341,2342,2344,2345,2348,2351,2352,2356,2357,2358,2359,2361,2363,2365,2368,2371,2374,2376,2377,2379,2380,2381,2382,2383,2385,2388,2390,2392,2393,2394}
Returns: 992
32768
{16410,8515,13257,32417,12385,22390,19978,16289,18334,32324,29597,15253,25340,190,4266,26116,18887,22265,5523,3308,32515,15285,21698,13779,32121,15765,23914,7900,25145,1801,32188,12291,12197,6937,32581,7623,7482,27787,31791,30674,22143,8143,23649,23305,7549,30558,7541,32728,31601,23887,180,25207,1116,13301,5738,19477,12376,4762,24040,4373,28579,21095,21965,26984,25725,21189,24635,23929,6165,9110,19130,23296,3536,20155,6591,8801,19069,18852,27601,24122,15082,10888,24704,23547,24511,5183,27512,1395,16972,26299,23560,26723,30823,8503,9667,19020,25440,1633,7876,31689,24640,31215,29819,22493,19906,14851,2002,6358,7782,1564,13769,28001,9029,30785,18855,32186,22112,19538,29186,22988,10554,3197,4640,5742,16059,6383,11541,12504,32123,17430,28784,9386,4514,17349,4123,31231,17341,696,13682,28169,31744,27948,14218,14835,24469,9783,10971,24803,12189,10962,4747,22262,28628,17031,7633,16474,23745,15599,24555,30899,24465,24125,22879,2067,30679,1080,30010,9218,386,30755,19795,22564,20370,4406,7295,29473,18961,15974,15861,22968,6169,17764,29978,27354,23735,32715,31017,11489,12203,7843,25661,3362,16660,32635,11623,4121,335,25979,16785,27046,13391,29669,7972,4603,2559,5816,3188,3274,11057,6441,6418,15789,9436,210,5728,19863,14728,24480,5058,21111,25304,11681,12019,6951,13131,24297,12595,14099,21107,20725,32272,2546,31739,22036,18611,31018,15339,5227,22708,410,6351,8538,24496,18820,30324,14630,31959,2979,14871,11749,3043,1385,6901,10188,16644,25504,4203,5163,23392,32188,30913,10079,25602,2384,25111,8543,32518,19513,20693,4962,18731,13610,30024,14450,5076,10099,31768,2513,3551,12262,894,4895,1950,17919,16671,10609,1176,11626,2751,2966,13729,331,15853,6375,16934,27568,28941,14124,30595,2229,27196,12074,2438,30242,3738,15017,1832,5441,22210,13765,737,3552,21313,24733,11761,11927,28159,23912,18984,22396,23491,6734,24029,12701,6914,7500,470,3751,27460,13239,28938,26966,23229,21999,13904,8276,23943,8983,27670,10853,23636,12184,32366,11204,18031,31889,16358,458,29932,19764,26012,2829,4933,12902,10062,10061,19327,3074,19491,9105,8763,27188,23831,1054,16692,10389,2583,24289,25777,20433,1776,15911,15030,16802,16737,19610,16576,28216,20917,22665,3853,20771,27500,3505,1668,14080,23458,6615,123,21583,20215,18860,28074,237,10468,2168,17368,31452,10887,3671,12221,26127,32523,28097,15091,22047,32762,6754,29622,2548,9184,28737,9845,8304,3521,13175,24403,28781,7197,30139,13250,21867,8755,18493,17063,11621,9860,7510,27489,29567,5515,16080,29299,22083,20447,17022,9313,24398,22275,28718,1471,15726,7254,6389,16712,350,6548,28941,19254,8270,25269,4760,6905,22180,19665,26797,27325,4212,5642,24406,7717,19540,11890,22037,18395,68,23081,30682,16314,24464,24815,17478,22865,31671,24465,17249,3285,6494,5069,3550,19074,13746,9013,2381,15031,8057,27139,28844,23319,12908,20129,32477,15158,12909,27399,20923,4450,30562,5387,24993,31292,4492,27381,12872,29710,18790,2491,12061,2235,23851,30309,30257,8066,8503,3165,10781,6571,12221,28243,15438,11156,7987,1972,32313,21895,17975,8376,10564,30196,26257,24361,29202,10447,12361,19002,9543,1503,26811,1988,14520,20998,8426,3461,11595,23951,18732,26880,4811,5051,6069,3267,30763,11762,8807,16904,4036,3847,15256,29106,20543,290,5250,28622,24572,27422,24402,20711,8682,4123,9660,4237,18394,3666,18509,29864,24462,6198,7597,8485,25785,19745,28731,15340,31617,9447,9087,20701,5118,5060,6675,23042,22633,25150,1989,26630,27872,11964,13015,25422,12429,11425,16982,15874,23909,30438,5808,13236,5273,12886,19653,23337,6926,17808,29403,23330,16981,6980,8680,787,14256,13577,7399,23733,13260,19322,19178,964,19215,21057,22473,11529,26467,29946,637,17978,16788,987,7995,31781,361,19776,5777,15577,207,2894,12787,30607,1935,23314,20772,27713,12816,9346,13100,20730,5854,28942,20639,27388,9163,26732,23548,30235,5267,2426,22605,21656,21019,14132,21759,1572,31350,22487,16730,19612,18179,3674,28887,12629,32540,1206,21743,19935,8921,20309,8183,20285,31395,10321,30674,8906,15721,6977,5705,6159,2137,14430,12327,750,28743,2054,15132,3498,1495,15792,11706,29319,15059,4999,7147,16560,12303,17936,7515,8286,4208,22857,14967,15948,16076,9950,12240,7818,16749,12075,11947,4888,32550,17647,23766,29334,3869,28050,13529,28577,3423,13875,2745,6536,7080,18334,24777,6929,28351,12696,25329,15437,1541,14307,19990,117,27608,25008,15461,28927,8877,9756,18015,17200,11201,20126,9131,1433,24958,2662,30154,26372,12480,13241,10734,28799,4429,29313,26204,14404,30442,13696,17106,9077,20911,28037,6809,16551,5425,3144,6651,7536,9073,681,16391,13627,24932,22567,26782,14283,10305,30594,4591,27132,14247,29357,29601,19295,16909,19013,9474,30604,9682,13016,31445,27133,25231,25744,29762,24462,23376,14277,447,2246,31632,11057,10184,7202,24034,28337,31341,6125,8280,12143,11730,9986,9183,10415,31462,9298,2261,26198,24238,9412,21598,13476,17833,16263,18160,27267,1004,187,3546,4618,3512,2736,7829,27895,15208,26107,13247,28908,32446,24778,4335,6505,20136,8707,25456,21420,12740,15571,19284,21142,14085,7552,20795,18184,22259,6226,19044,19226,10029,14266,28099,17628,31983,7873,8665,8005,4723,28960,21591,30258,32320,12893,31112,13432,19057,29048,8895,10504,15694,24277,28696,17023,27519,5674,31481,28253,30576,30297,13289,2928,28793,21818,3945,29954,6028,13711,17064,26248,26199,24917,14841,21929,4294,27369,24609,25232,22554,7051,16047,9399,27079,15834,29874,25663,11144,32551,31280,15963,16661,21106,9219,17696,18235,21546,23738,24934,13046,9685,3168,6009,31363,5348,12811,19806,10603,8223,16207,21432,16280,4919,22207,14430,16066,30749,9170,21466,4253,2546,7067,4401,31532,9584,4833,8543,10237,26329,14159,8754,22002,15763,7821,14897,9357,14787,18215,18794,692,14397,5218,4384,10765,21863,32555,6774,13120,14250,27500,11852,13937,20032,19003,24233,5752,4420,28283,29731,1153,9237,14993,2036,31941,29484,4880,11604,29771,685,19260,19217,10921,9004,3458,10313,4583,9751,4878,13674,466,29571,21203,17574,29448,3867,10614,13126,18769,10774,22705,30529,17382,21582,7634,6844,32085,13958,1079,26921,31737,31814,431,28640,12027,13217,22481,30243,21246,28016,9854,14005,7351,20669,4315,28462,11994,8200,20279,18279,19402,24432,1390,9609,25286,24242,13941,14651,2883,25133,13029,25279,14418,570,27002,6349,26914,6204,3465,4649,23220,13551,6319,15880,16895,9121,16890,129,23794,27171,7695,13924,13256,1365,14533,13804,13142,22097,6663,22501,23570,19569,19628,3849,6327,21598,10059,12635,27262,29869,17438,22919,30744,17534,17938,11363,12198,4300,15976,22708,4878,4417,16210,21936,28970,32100,25874,13975,15748,10043,24678,24592,27461,30852,20974,1539,10061,19405,4006,5812,2164,6860,14940,6710,19459,24473,23157,4920,30651,20050,4157,6256,16831,14606,15675,11255,27112,32760,26907,18454,16157,25502,1496,12053,24186,26528,7170,17868,20762,12300,20741,7886,2195,25535,9866,24092,22843,8811,17187,17293,29817,1238,2449,29716,3210,27183,15626,2112,13869,1354,28205,30836,19431,12522,27957,13676,2451,2592,844,5580,20008,11305,15860,16265,27823,10521,9350,22062,13454,32497,16646,32025,23660,20660,31390,9943,16901,5984,22819,14603,31869,20110,26177,15960,3522,21743,511,13779,4814,20643,9572,2511,10660,25559,14137,21966,24323,24055,17385,26002,21752,23061,6851,15718,30350,25370,2018,1507,29693,17046,6961,25460,28117,3860,10775,5162,9419,25341,31366,9320,14057,23854,19250,9513,27134,10387,13803,3251,15954,18467,13860,19638,957,18644,28379,12015,28265,17193,8247,13179,12174,16926,5697,31311,25029,13671,14169,13101,10105,2308,14855,9675,11585,21578,28430,7633,22794,20163,30103,25748,18950,22835,7329,29821,27793,27994,9680,14401,18485,12055,4860,29208,21833,9661,8426,21835,4761,21617,3770,28325,17088,31923,21198,11840,11251,20002,25315,16265,27677,8916,15969,23098,28241,10155,30436,22866,19886,29731,1086,11037,29946,7504,17968,6022,4434,15312,12130,26643,31088,11414,12822,12018,31277,2204,10321,16586,3065,26535,5709,28404,19505,32347,20256,11767,12361,2072,12458,5714,18428,12571,23806,5011,1712,23954,3218,8204,29568,13933,19882,6504,19042,21718,17043,3251,2056,14671,12629,20050,3407,29614,31927,19646,32260,32053,26497,19144,14864,17974,20489,4198,20269,23743,25418,10025,1116,23055,7108,24963,10110,28801,14756,14922,4253,1006,16062,3045,23926,10875,23052,13503,15118,19471,4992,30905,10804,21160,29221,19827,1770,32266,17294,16744,14815,28988,7379,21492,24115,30863,8807,24188,19689,21234,7481,7439,27273,31095,24752,30467,17046,29714,1588,24094,28559,17095,2070,29949,1380,16002,20165,11177,12134,5385,20580,9021,29115,10125,29677,28605,442,7052,32320,14685,28529,22974,26743,19592,26082,1798,7208,23079,5794,14180,13114,32699,30857,13080,32282,10503,22620,8760,15437,31525,21880,21296,8297,15097,17300,5280,27045,1822,3557,17237,4690,18308,7929,14617,19376,25379,31708,14668,15537,7720,12304,19523,14935,31045,23348,12965,30075,1243,10275,13832,25341,22732,12444,7211,28762,17408,20362,26225,26600,19619,10037,20269,15619,17508,10170,8851,20892,517,11586,8502,9150,17340,23727,3614,12977,21488,14437,25242,20637,17444,32294,24088,32397,28621,14837,18546,24041,31521,6438,16687,13214,10219,27613,24173,28218,9381,27227,10801,6522,26671,16024,15629,9930,16021,460,18728,29563,24973,20659,24771,31347,20817,20565,8087,10312,8385,30829,7783,21987,2491,14205,15445,32460,25798,2013,20895,23935,2375,21531,19345,12586,10649,5174,408,3450,28807,23629,18289,13847,31667,10385,22705,11424,18617,2370,13786,16687,18635,27861,27515,8781,4315,9552,32721,6839,600,26917,27554,24602,21184,30442,3850,3924,1626,11885,823,12222,17568,24789,32268,22576,25306,19571,13530,21916,7096,12354,18304,31767,10425,7685,15688,6279,21597,12587,289,18942,8758,5045,4811,24374,21530,16778,20170,11653,25023,17830,16136,13291,27215,15328,23080,15844,15740,13548,28600,7883,21457,12687,15248,1996,27682,17661,15032,26472,1544,3459,24690,12991,6023,5562,12801,28158,9752,22450,7160,16974,22897,1663,1030,27875,12417,29158,11833,21464,14133,19148,1257,4774,30157,18020,11927,22830,20617,6404,7453,1377,12469,219,26050,28851,5667,7091,14817,32702,6736,2603,17363,7014,31891,28142,31782,22575,191,8058,16143,12642,16355,2886,591,25302,1242,32032,1998,5459,27769,15303,18775,16028,17257,13791,7679,18260,439,9354,16858,15876,20050,28402,29905,6089,8930,17761,21882,15395,31313,22892,28925,23205,27335,19466,14639,20053,9645,24934,11826,7076,5800,17786,2291,25374,15479,11144,6182,29684,23775,21948,18768,32446,24258,6488,961,16855,25556,16092,2896,26105,11615,11492,5364,8879,28068,8037,3925,10125,24994,17467,23979,12289,27925,28922,25418,5345,29857,17720,16997,8167,22604,28532,6332,23132,14968,29213,20714,2424,11707,12570,20307,2039,30220,16263,21927,11678,16349,22631,28718,31356,2522,9255,7208,17631,31788,26602,5791,13820,2615,31453,26427,29338,479,24748,17098,25071,5542,12186,19756,7733,31970,29614,4777,14218,30621,3988,17575,4793,22938,12030,24045,21199,14939,13653,20160,25959,1505,11988,12610,30398,27702,10513,19095,17339,5068,31563,17787,30024,31985,28118,7966,26976,12975,23329,12053,2923,14225,21511,1928,7833,4836,1044,8873,8708,32051,2485,28371,16281,26834,12618,19122,974,1387,313,26357,27986,25529,18507,19267,14620,2199,26285,26671,10286,3265,21782,12310,22970,22728,31926,9468,13632,8902,17847,8572,17802,3479,22808,24360,20073,10087,28162,23734,21581,1934,6563,19078,15846,29150,31699,3116,11549,12170,18928,10695,9689,15378,9314,15366,5663,30366,21106,29172,21568,15980,29489,18341,11491,15103,26963,24846,9183,3827,17150,15491,6133,22122,7594,5191,2714,6182,2392,20210,25122,14995,13697,19045,5569,7189,15671,7484,20462,8208,14119,7877,13527,22599,16683,7591,8129,27724,5726,10622,21307,32468,22948,13275,17722,4852,7637,4392,24910,22860,22465,2598,20544,22384,19828,15042,3468,2521,16697,27436,20547,29398,1531,25665,3600,32552,24015,30826,9254,17122,31348,5688,31502,20368,13026,14890,18279,18032,32756,31015,23232,20479,5506,9550,19696,19447,29748,15085,8002,23333,7078,21380,22562,22153,4979,20699,30435,23905,21733,19032,1159,24016,13876,738,28515,23032,21324,19882,19650,11665,3908,19571,3244,15872,11455,23042,8490,18739,8860,16239,4980,30107,15731,849,32408,22461,19852,13765,26709,22506,5108,5250,30184,15589,22718,15919,982,7751,3902,27776,13482,9113,11403,20620,7145,15170,22378,13585,16264,24196,24602,30311,17237,1496,31084,12312,11999,8998,31709,13332,24473,19833,3683,30649,24065,17372,26584,7925,30138,2884,30461,11742,7606,11637,7739,11617,28299,1289,21349,14235,6757,3267,23249,27823,4830,22163,82,16639,18036,8376,8123,27098,8238,30121,407,26039,14680,23922,2057,14677,30264,25948,25297,31521,5079,9442,147,10865,32263,27916,13986,6199,6653,31069,8118,21237,2799,18363,32000,6117,21315,11968,29782,16204,5634,24598,22805,29239,8551,16013,17596,13271,21612,19914,7981,26867,24183,909,21946,3052,18761,26773,25409,9230,12941,16758,29361,25316,4971,26012,20616,31365,29117,32014,3799,21467,22414,4990,12960,17432,29367,18773,30814,15502,18313,27058,14537,12394,28313,20013,13797,4049,26336,16287,7088,16382,6771,27911,18110,25659,19801,8185,28240,7063,19198,2062,7811,2910,18425,19680,603,9855,4867,4189,21633,7728,22773,10561,26820,18473,27898,8107,8050,2833,14100,23543,14031,2489,8271,511,22028,20980,3338,8499,22584,17393,13034,13291,19675,15142,22840,24225,22248,14836,22359,31164,2553,30015,28269,11983,8390,7549,26669,21564,26380,9899,13837,14428,29707,6374,8482,14182,23067,8031,29742,17762,15031,7073,26193,1964,15802,30505,28203,12195,15754,17795,2609,558,4349,1316,29731,22015,14109,28032,8899,21635,18374,15567,28141,28577,28545,24639,7789,18552,25570,7494,11263,12665,10489,4884,26887,2137,12151,32538,23745,23150,17982,10204,4510,8247}
{1,2,3,4,5,6,7,8,11,13,14,16,17,18,20,21,22,23,24,26,27,30,33,34,37,38,40,41,42,43,44,45,47,48,49,50,51,52,53,54,57,58,60,62,63,64,66,68,70,71,72,73,74,75,77,78,79,82,84,85,86,88,90,93,95,96,98,99,100,101,102,104,105,107,108,109,110,112,113,114,115,116,118,119,120,121,123,124,125,126,127,128,130,131,132,134,136,139,140,141,143,144,145,147,148,149,150,151,152,154,155,157,159,160,161,162,163,164,165,166,167,169,170,172,173,174,175,176,177,178,179,180,181,183,184,185,186,187,188,190,191,192,193,195,196,197,198,199,200,202,204,205,206,209,210,211,212,213,214,216,217,219,220,222,223,224,226,227,228,229,231,232,233,234,235,238,240,241,242,243,246,248,249,250,251,253,254,255,257,258,260,261,264,266,267,269,270,272,273,274,276,278,279,280,282,284,286,289,290,291,292,294,295,297,298,299,300,301,303,304,305,307,308,310,314,315,316,317,318,320,321,323,324,325,328,329,330,332,333,334,335,336,338,340,342,343,344,345,347,349,350,351,353,355,356,358,359,360,361,362,363,364,365,366,368,370,372,373,375,376,377,379,380,382,384,385,387,388,389,390,391,393,394,395,397,399,400,401,402,404,405,406,408,410,411,412,413,414,415,416,417,419,421,423,424,426,428,430,432,433,434,435,436,437,438,440,441,443,444,445,447,448,449,450,452,453,454,455,456,457,458,459,460,461,462,463,465,466,467,468,469,470,471,472,473,475,476,478,480,483,485,487,490,491,492,493,494,495,496,497,498,502,503,504,505,507,508,509,510,511,512,513,514,515,516,517,519,521,523,524,526,527,528,529,530,532,533,534,536,538,539,540,541,542,543,544,545,546,549,551,552,554,556,557,559,560,562,563,564,565,566,567,569,571,572,573,574,575,576,577,579,580,581,582,583,584,585,587,589,590,591,592,593,596,597,598,599,600,601,603,605,606,608,610,612,614,615,616,617,618,620,621,622,624,627,628,629,632,634,636,637,639,640,642,643,645,646,647,648,649,651,653,655,656,657,658,660,661,662,663,665,666,669,670,672,673,675,676,677,681,683,684,685,686,687,688,689,691,692,693,694,695,696,697,698,699,700,703,704,705,707,708,709,710,712,713,714,715,716,718,719,720,722,723,724,727,729,730,731,732,733,734,736,737,738,739,740,741,743,744,745,746,747,748,751,752,753,754,755,757,759,760,761,763,764,766,767,769,771,772,774,775,776,777,779,783,784,785,786,788,789,791,792,794,797,799,801,804,806,807,808,810,812,814,817,818,819,820,821,823,824,825,826,828,829,831,832,833,834,835,836,837,838,840,842,843,846,848,850,851,852,853,855,856,858,859,860,861,862,863,864,865,867,868,869,870,873,874,875,877,879,880,882,883,884,888,889,890,891,892,893,894,896,897,898,899,901,903,904,907,908,910,911,914,915,916,918,919,920,921,923,924,926,927,928,929,930,931,934,936,937,939,940,941,943,944,945,946,947,948,949,950,952,953,954,956,957,958,959,960,961,965,966,967,968,969,971,972,973,974,977,978,980,982,983,984,987,988,989,990,991,993,994,995,996,999,1000,1002,1004,1005,1007,1008,1009,1010,1012,1013,1014,1015,1017,1019,1020,1022,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1036,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1053,1054,1055,1056,1059,1061,1063,1064,1066,1067,1069,1070,1071,1072,1073,1074,1077,1078,1079,1080,1082,1083,1084,1085,1086,1087,1088,1089,1090,1092,1095,1096,1097,1098,1100,1101,1102,1103,1104,1105,1106,1107,1109,1110,1112,1113,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1132,1133,1136,1137,1138,1140,1141,1142,1143,1144,1146,1147,1148,1150,1152,1153,1154,1156,1157,1158,1160,1161,1162,1163,1164,1165,1166,1168,1169,1172,1174,1175,1177,1179,1180,1181,1184,1185,1186,1187,1188,1189,1190,1191,1195,1196,1197,1198,1200,1202,1203,1205,1206,1207,1208,1210,1211,1212,1213,1214,1215,1216,1217,1219,1220,1223,1224,1227,1228,1229,1231,1233,1235,1236,1237,1239,1240,1242,1243,1244,1246,1247,1248,1249,1250,1251,1253,1254,1255,1256,1258,1260,1261,1262,1264,1266,1268,1269,1271,1273,1274,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1293,1294,1295,1296,1298,1299,1300,1302,1303,1307,1308,1310,1315,1316,1317,1318,1319,1321,1322,1323,1326,1328,1330,1332,1334,1336,1338,1339,1341,1345,1346,1347,1348,1350,1351,1352,1354,1355,1356,1358,1359,1360,1361,1362,1363,1364,1365,1367,1368,1369,1370,1371,1373,1374,1376,1377,1378,1381,1382,1384,1385,1386,1387,1388,1389,1391,1394,1396,1397,1399,1400,1401,1404,1405,1407,1408,1409,1410,1411,1412,1414,1415,1416,1417,1418,1419,1421,1422,1424,1425,1426,1427,1428,1430,1431,1433,1434,1435,1436,1437,1438,1440,1442,1443,1445,1446,1447,1448,1451,1453,1454,1455,1457,1460,1461,1462,1463,1465,1466,1467,1469,1470,1471,1472,1473,1474,1475,1476,1478,1479,1482,1483,1484,1485,1486,1487,1488,1489,1491,1492,1495,1496,1498,1500,1502,1504,1506,1507,1508,1509,1510,1512,1513,1515,1517,1518,1519,1521,1522,1523,1524,1525,1526,1527,1528,1530,1531,1532,1533,1535,1536,1537,1539,1540,1541,1543,1544,1546,1547,1549,1550,1551,1552,1553,1554,1555,1558,1560,1562,1564,1568,1569,1571,1572,1573,1575,1577,1578,1579,1580,1581,1582,1583,1585,1586,1588,1589,1590,1592,1593,1595,1597,1599,1600,1601,1602,1605,1607,1608,1609,1610,1611,1612,1615,1616,1618,1619,1620,1621,1624,1625,1628,1629,1630,1631,1632,1635,1637,1638,1640,1641,1643,1645,1648,1649,1650,1651,1654,1655,1656,1657,1658,1659,1662,1663,1664,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1679,1680,1682,1683,1684,1685,1686,1687,1688,1689,1691,1692,1693,1694,1696,1697,1698,1699,1701,1702,1703,1704,1705,1706,1708,1709,1710,1711,1712,1713,1715,1716,1717,1718,1719,1720,1721,1724,1725,1726,1727,1728,1730,1731,1732,1734,1735,1736,1737,1738,1740,1741,1742,1743,1744,1746,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1760,1761,1762,1763,1764,1765,1767,1768,1769,1770,1771,1773,1774,1776,1777,1778,1779,1780,1781,1782,1783,1784,1787,1788,1789,1790,1791,1792,1793,1795,1797,1798,1801,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1824,1826,1828,1830,1831,1832,1833,1834,1835,1836,1837,1839,1841,1842,1843,1844,1845,1847,1848,1849,1851,1854,1855,1856,1857,1858,1859,1860,1862,1864,1865,1866,1867,1868,1869,1870,1871,1872,1874,1875,1876,1877,1878,1879,1881,1882,1883,1884,1885,1886,1888,1890,1891,1892,1893,1895,1898,1901,1902,1903,1904,1905,1906,1907,1908,1910,1911,1913,1916,1917,1918,1921,1922,1924,1925,1926,1927,1929,1930,1933,1934,1935,1937,1939,1940,1941,1942,1944,1945,1946,1947,1948,1950,1952,1954,1956,1957,1958,1961,1963,1964,1965,1966,1967,1968,1970,1973,1974,1976,1978,1979,1981,1982,1983,1984,1985,1987,1988,1990,1991,1993,1994,1995,1996,1997,2000,2001,2003,2004,2005,2006,2007,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2020,2022,2023,2024,2026,2027,2028,2029,2030,2031,2032,2033,2034,2037,2038,2039,2040,2042,2043,2044,2045,2047,2049,2051,2055,2056,2057,2058,2059,2061,2062,2063,2065,2067,2068,2069,2070,2071,2072,2073,2076,2077,2080,2081,2082,2084,2086,2088,2089,2090,2092,2093,2095,2096,2097,2099,2100,2101,2103,2104,2105,2106,2107,2108,2110,2111,2112,2114,2115,2116,2118,2119,2120,2121,2122,2124,2125,2126,2128,2129,2130,2132,2133,2135,2137,2138,2140,2141,2142,2143,2144,2146,2147,2149,2150,2151,2153,2154,2155,2157,2158,2160,2161,2162,2163,2164,2165,2166,2167,2168,2170,2171,2172,2174,2175,2177,2178,2179,2181,2182,2183,2184,2185,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2198,2199,2200,2203,2205,2206,2207,2208,2209,2211,2214,2215,2216,2217,2218,2219,2220,2221,2222,2224,2228,2229,2230,2231,2232,2236,2237,2238,2239,2240,2241,2243,2244,2245,2246,2248,2250,2251,2252,2253,2254,2258,2259,2260,2261,2262,2264,2265,2267,2268,2269,2270,2271,2272,2274,2275,2276,2277,2279,2281,2282,2284,2288,2289,2290,2291,2292,2295,2297,2298,2299,2302,2304,2305,2307,2308,2309,2310,2312,2313,2314,2316,2317,2319,2321,2322,2323,2324,2325,2327,2328,2329,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2345,2346,2347,2348,2349,2350,2352,2353,2354,2355,2356,2357,2358,2359,2361,2362,2363,2364,2365,2366,2369,2370,2371,2373,2374,2375,2376,2377,2378,2379,2381,2383,2385,2387,2390,2392,2394,2397,2398,2399,2400,2401,2403,2404,2407,2409,2412,2413,2415,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2428,2429,2430,2431,2432,2434,2435,2436,2437,2438,2439,2440,2442,2443,2445,2446,2448,2450,2451,2452,2454,2455,2456,2458,2459,2460,2462,2463,2464,2465,2468,2469,2470,2471,2472,2473,2475,2476,2478,2481,2482,2483,2484,2486,2487,2489,2490,2491,2492,2493,2494,2495,2496,2498,2500,2502,2503,2504,2505,2507,2509,2511,2512,2513,2514,2517,2518,2519,2520,2521,2524,2525,2527,2528,2529,2530,2531,2532,2533,2534,2536,2537,2538,2540,2542,2545,2546,2548,2549,2550,2551,2552,2554,2555,2556,2557,2558,2560,2561,2562,2564,2566,2567,2568,2569,2570,2571,2572,2574,2576,2578,2580,2581,2582,2583,2584,2586,2587,2588,2589,2591,2594,2595,2596,2598,2599,2600,2602,2603,2604,2605,2606,2607,2608,2610,2612,2613,2616,2617,2618,2620,2621,2625,2626,2627,2628,2629,2631,2632,2633,2634,2635,2636,2638,2640,2641,2643,2644,2646,2647,2649,2650,2652,2653,2655,2656,2658,2660,2661,2662,2663,2665,2666,2667,2668,2669,2670,2671,2673,2674,2676,2678,2679,2680,2681,2682,2683,2685,2686,2687,2688,2690,2691,2694,2695,2696,2698,2699,2701,2702,2704,2706,2708,2709,2710,2711,2713,2715,2716,2717,2718,2720,2721,2722,2725,2726,2727,2728,2729,2730,2731,2733,2734,2736,2740,2741,2744,2745,2747,2748,2749,2752,2754,2756,2757,2758,2759,2760,2762,2763,2764,2767,2769,2770,2771,2774,2775,2776,2778,2779,2780,2781,2783,2784,2785,2786,2787,2788,2790,2793,2795,2796,2797,2798,2799,2800,2802,2803,2804,2805,2807,2808,2809,2810,2811,2813,2814,2815,2816,2818,2819,2820,2821,2823,2824,2825,2826,2827,2829,2830,2831,2832,2833,2834,2835,2837,2839,2842,2843,2845,2846,2848,2851,2852,2853,2854,2855,2857,2859,2860,2862,2864,2865,2866,2867,2868,2869,2872,2873,2874,2875,2876,2877,2878,2880,2882,2883,2884,2886,2887,2889,2890,2891,2893,2895,2896,2898,2901,2902,2903,2904,2906,2907,2908,2909,2911,2913,2915,2916,2917,2918,2919,2920,2922,2923,2924,2925,2926,2927,2928,2929,2930,2933,2934,2935,2936,2937,2938,2939,2940,2943,2944,2946,2947,2949,2950,2951,2952,2954,2956,2957,2958,2959,2960,2961,2962,2963,2964,2965,2966,2968,2970,2971,2972,2973,2974,2976,2977,2978,2981,2983,2984,2985,2986,2987,2988,2990,2991,2992,2993,2994,2996,2997,2999,3001,3003,3005,3006,3008,3009,3010,3012,3013,3014,3016,3017,3018,3019,3020,3021,3022,3024,3026,3027,3029,3030,3032,3033,3036,3037,3038,3039,3040,3041,3042,3043,3044,3045,3046,3047,3048,3049,3051,3053,3054,3055,3056,3057,3058,3060,3061,3062,3063,3064,3066,3067,3068,3070,3072,3074,3076,3077,3079,3081,3082,3083,3084,3085,3087,3089,3090,3091,3093,3096,3098,3099,3100,3101,3103,3104,3105,3106,3107,3108,3109,3110,3112,3115,3116,3117,3118,3119,3120,3122,3123,3124,3125,3127,3128,3129,3130,3132,3133,3135,3136,3137,3138,3139,3140,3141,3143,3144,3145,3146,3151,3152,3154,3155,3156,3157,3158,3159,3160,3161,3162,3164,3166,3167,3168,3170,3171,3172,3175,3176,3178,3179,3181,3183,3184,3185,3186,3187,3189,3190,3191,3192,3193,3194,3195,3196,3197,3198,3199,3201,3203,3204,3205,3206,3207,3208,3210,3212,3213,3214,3215,3216,3217,3218,3219,3220,3221,3222,3223,3225,3226,3227,3228,3229,3231,3232,3233,3234,3238,3240,3242,3243,3244,3245,3247}
Returns: 1711
256
{35,91,78,182,102,125,3,2,39,172,18,216,109,94,233,208,168,255,127,21,243,217,9,105,119,152,33,217,80,209,107,143,213,253,253,66,113,240,50,120,4,141,8,107,244,162,96,165,229,256,42,153,128,200,200,59,105,119,150,137,9,210,11,22,182,223,109,54,40,59,186,45,69,212,254,196,203,161,9,6,79,79,19,131,219,243,172,76,83,191,17,38,154,106,189,195,149,101,245,160,208,77,217,52,215,7,100,71,34,178,199,9,166,96,82,50,19,182,79,180,8,214,256,241,138,235,37,16,96,84,94,12,240,241,4,104,211,111,250,241,44,105,96,206,139,21,20,63,28,214,70,214,145,120,143,136,82,1,90,9,52,254,183,10,42,252,2,132,34,86,53,244,134,225,47,159,173,7,145,41,203,215,96,152,239,26,38,167,224,19,181,147,178,169,106,4,83,198,69,117,91,128,228,149,226,56,14,93,62,21,58,68,11,143,30,215,23,127,51,38,96,234,219,245,136,60,144,70,202,214,141,245,227,230,20,76,235,87,128,36,160,40,52,234,86,246,112,30,54,147,45,53,73,141,10,152,70,39,132,80,19,216,188,93,80,175,53,33,114,240,33,47,87,66,7,229,113,55,180,155,50,134,212,219,158,105,165,18,112,142,185,99,174,207,249,192,6,106,124,75,210,194,80,256,55,197,149,32,91,7,240,89,103,39,187,181,124,177,1,107,201,181,208,78,45,132,9,61,25,139,138,14,154,26,26,199,214,256,80,147,146,50,80,178,167,124,11,246,225,253,115,165,229,169,229,129,146,60,235,151,108,34,78,216,119,150,107,7,60,247,170,117,126,115,223,8,128,158,131,161,177,50,150,125,251,39,46,83,224,169,184,11,20,214,44,161,90,42,118,125,213,110,203,166,53,127,135,184,180,210,194,10,3,161,223,121,247,205,196,153,248,28,186,102,244,34,93,138,223,94,99,68,156,53,135,96,106,94,75,86,256,229,199,148,166,105,99,39,195,126,192,111,176,247,203,94,161,205,151,185,251,208,56,65,145,175,144,37,172,250,195,28,26,197,183,176,234,28,233,168,222,17,139,72,45,95,241,34,129,161,240,119,221,252,11,195,102,159,234,236,218,241,218,167,239,92,227,24,170,157,48,114,42,55,116,58,118,48,58,55,42,109,3,144,27,54,108,106,114,48,163,144,221,168,201,232,39,169,7,82,144,69,127,92,253,169,130,144,83,46,218,139,5,55,82,241,25,246,13,83,220,66,194,127,159,158,85,95,226,26,213,106,163,70,114,223,111,143,138,150,98,119,133,202,42,190,236,135,175,79,180,119,17,241,126,166,69,252,71,141,188,42,179,242,11,74,5,160,235,45,131,167,108,53,10,249,134,46,82,90,23,188,102,85,113,99,180,161,168,108,45,171,7,53,197,67,25,90,222,50,4,204,27,124,4,146,52,69,53,28,153,239,15,27,207,217,66,207,152,43,9,35,84,164,83,154,43,244,147,252,221,33,126,227,137,187,90,233,225,32,41,194,209,228,68,243,245,128,220,199,170,199,13,61,5,69,41,13,139,160,57,150,231,54,161,132,165,195,86,54,99,148,2,121,165,205,251,242,31,190,29,199,235,180,245,71,256,187,13,56,211,225,142,18,240,252,203,5,54,189,240,207,24,219,54,113,70,89,249,182,2,168,22,248,82,24,20,24,58,66,190,145,60,141,225,191,76,135,65,232,143,231,196,77,74,50,110,173,135,166,169,201,49,214,1,67,126,110,138,220,214,30,181,118,142,53,150,116,53,126,58,10,90,38,243,199,71,242,38,60,72,232,134,230,196,138,105,145,174,54,58,109,103,211,232,135,170,230,169,242,157,91,52,9,180,208,50,62,194,231,140,183,24,68,196,124}
{5,7,15,22,25,29,38,44,52,63,68,75,80,86,96,99,106,112,120,127,133,139,143,149,154,163,168,174,180,183,190,196,204,210,217,225,232,234,238,243,251,253,257,261,270,278,282,287,290,294,297,305,312,314,320,327,332,335,337,345,350,355,360,368,371,374,382,386,392,398,407,413,419,422,427,436,441,443,450,462,467,471,475,486,489,497,503,510,513,518,525,528,530,534,540,547,553,558,566,570,572,577,582,586,589,593,596,604,610,618,625,628,632,640,650,658,663,666,672,677,682,689,694,698,702,709,714,721,725,730,742,747,750,755,761,767,770,774,783,787,796,802,807,814,817,821,825,830,838,846,848,852,859,865,867,874,879,884,892,896,901,903,910,915,921,925,931,938,945,948,951,958,962,967,973,981,989,995,1000,1006,1011,1019,1025,1028,1031,1036,1040,1045,1050,1056,1063,1068,1072,1077,1085,1091,1101,1109,1112,1116,1122,1128,1141,1146,1148,1155,1158,1161,1165,1169,1173,1183,1189,1196,1201,1209,1214,1224,1226,1234,1239,1242,1246,1254,1261,1264,1270,1278,1283,1291,1296,1297,1306,1308,1316,1324,1333,1338,1345,1353,1361,1368,1376,1379,1386,1394,1402,1410,1416,1422,1428,1436,1441,1452,1458,1461,1466,1471,1474,1485,1486,1491,1497,1507,1513,1518,1522,1530,1534,1541,1548,1558,1569,1578,1583,1588,1593,1600,1610,1615,1621,1627,1630,1635,1644,1652,1656,1662,1667,1672,1676,1680,1685,1693,1695,1700,1706,1709,1718,1723,1726,1729,1735,1741,1747,1752,1755,1762,1768,1775,1782,1788,1791,1793,1799,1807,1814,1818,1822,1828,1831,1836,1843,1849,1855,1861,1866,1870,1877,1880,1885,1890,1894,1899,1906,1910,1916,1919,1925,1932,1941,1947,1951,1956,1963,1969,1973,1978,1986,1992,1996,2002,2007,2015,2021,2023,2028,2031,2035,2043,2048,2053,2058,2061,2066,2074,2082,2087,2091,2097,2104,2108,2113,2122,2129,2133,2140,2146,2152,2157,2163,2169,2173,2182,2187,2195,2207,2210,2220,2227,2234,2237,2241,2247,2252,2257,2266,2272,2277,2279,2287,2293,2296,2301,2309,2312,2316,2325,2331,2340,2347,2356,2363,2369,2374,2378,2383,2387,2396,2401,2406,2411,2418,2423,2433,2442,2445,2452,2457,2465,2471,2479,2487,2491,2496,2500,2509,2516,2523,2527,2531,2539,2547,2557,2567,2578,2585,2593,2599,2607,2610,2615,2620,2628,2630,2635,2639,2643,2647,2652,2659,2666,2672,2677,2684,2690,2697,2702,2711,2718,2724,2729,2738,2747,2752,2754,2760,2763,2768,2776,2780,2783,2789,2793,2799,2803,2811,2816,2822,2826,2832,2839,2844,2850,2855,2863,2870,2872,2879,2882,2890,2897,2906,2910,2914,2919,2920,2921,2926,2933,2938,2946,2956,2959,2964,2971,2976,2986,2994,3000,3005,3014,3023,3030,3036,3046,3052,3061,3069,3074,3079,3088,3096,3103,3107,3112,3117,3124,3132,3141,3145,3151,3153,3157,3166,3171,3173,3177,3182,3188,3193,3200,3204,3211,3217,3222,3226,3234,3238,3244,3251,3256,3262,3269,3274,3282,3287,3293,3300,3305,3311,3316,3325,3332,3340,3343,3347,3353,3354,3361,3366,3372,3377,3382,3388,3392,3397,3406,3409,3414,3420,3426,3431,3437,3441,3447,3453,3458,3464,3468,3474,3479,3486,3490,3495,3499,3507,3512,3522,3527,3530,3536,3540,3544,3546,3554,3558,3563,3570,3574,3582,3589,3592,3596,3602,3610,3615,3619,3622,3628,3634,3643,3648,3652,3656,3661,3665,3668,3676,3681,3688,3692,3696,3703,3708,3714,3721,3725,3731,3740,3745,3754,3764,3767,3775,3780,3787,3794,3798,3804,3809,3819,3821,3828,3835,3837,3844,3855,3863,3868,3879,3882,3885,3892,3900,3904,3912,3917,3922,3927,3934,3937,3941,3949,3955,3961,3965,3970,3976,3980,3985,3992,3996,4002,4007,4017,4018,4023,4026,4033,4041,4047,4053,4061,4065,4070,4074,4080,4085,4090,4098,4105,4110,4118,4119,4123,4129,4131,4137,4141,4145,4150,4153,4160,4165,4170,4176,4184,4194,4200,4205,4217,4219,4225,4227,4232,4237,4250,4256,4265,4268,4273,4278,4283,4287,4292,4298,4301,4305,4309,4312,4315,4321,4328,4332,4339,4349,4356,4365,4371,4376,4381,4386,4392,4397,4401,4406,4414,4418,4421,4428,4436,4444,4451,4457,4463,4473,4475,4481,4485,4492,4495,4500,4507,4512,4521,4524,4527,4531,4534,4537,4545,4551,4553,4560,4568,4574,4578,4585,4589,4595,4603,4612,4616,4622,4626,4632,4639,4649,4658,4664,4669,4674,4679,4682,4690,4692,4700,4703,4709,4714,4722,4727,4734,4742,4746,4751,4757,4763,4772,4774,4781,4793,4798,4806,4811,4819,4823,4827,4833,4836,4842,4851,4858,4866,4874}
Returns: 595
4
{2,1,3,2,4,4,1,4,2,3,4,2,2,1,2,3,1,4,3,4,2,3,1,2,2,4,3,4,1,4,1,2,4,3,2,3,3,1,1,2,4,1,3,4,4,1,4,4,4,2,1,1,4,3,1,1,4,3,3,1,1,2,2,1,4,3,1,1,4,4,2,1,4,2,3,2,2,2,2,2,3,2,3,2,2,2,2,4,2,3,3,2,1,3,2,3,1,3,1,2,2,2,1,1,3,4,1,4,1,1,3,1,3,1,1,4,3,2,1,2,1,1,2,4,4,1,3,1,2,1,3,1,4,3,2,4,1,2,4,2,3,4,3,1,4,3,2,3,3,4,2,1,4,3,1,1,3,1,2,1,3,4,1,3,4,2,1,4,4,2,1,2,1,1,1,3,1,2,2,3,4,1,1,2,4,3,1,1,2,1,1,4,4,3,2,4,2,1,3,1,3,4,3,2,4,3,4,3,1,2,2,2,4,4,1,4,4,4,4,4,3,4,3,3,4,2,4,4,4,1,4,4,3,4,4,3,3,3,3,3,4,3,1,4,1,1,4,3,2,2,3,4,3,3,2,2,2,2,3,3,3,3,3,4,3,2,2,1,3,4,3,2,4,3,4,4,1,3,2,1,2,3,3,2,4,4,4,2,2,1,4,1,1,2,3,3,1,2,1,3,4,4,1,4,1,3,2,1,4,1,2,3,1,2,1,2,1,1,3,2,2,1,4,3,1,3,4,3,1,1,3,2,4,3,3,3,3,3,4,4,1,4,4,4,3,4,2,3,2,4,4,3,2,3,4,3,2,4,4,1,1,1,1,2,3,4,1,3,4,3,1,3,2,1,4,1,3,2,3,1,3,4,1,2,2,4,3,2,4,2,2,2,1,2,4,3,3,1,2,3,2,4,4,2,1,3,2,2,4,2,1,3,4,2,1,1,2,1,1,4,3,4,4,2,1,4,2,1,2,1,1,4,4,1,4,3,1,3,2,3,4,4,1,4,1,1,4,4,2,2,3,4,4,2,2,4,3,2,1,1,1,2,1,3,4,2,3,3,2,2,4,1,1,4,2,1,3,2,1,1,3,1,3,1,4,1,3,4,1,4,3,4,4,3,2,3,4,4,1,2,4,3,4,2,3,4,2,1,4,1,2,1,4,1,2,3,1,4,1,4,1,1,3,3,2,3,2,1,1,3,3,1,2,4,4,4,3,2,4,4,3,4,2,1,1,1,3,2,3,1,3,4}
{6,8,11,15,16,20,22,24,28,29,30,31,34,35,36,39,41,43,46,47,50,51,52,53,54,57,58,59,61,64,66,69,73,75,78,80,83,86,87,91,92,95,99,102,106,110,112,114,117,121,126,127,131,132,136,137,140,141,143,145,150,152,155,156,158,159,160,162,163,165,166,167,170,171,173,177,180,182,185,187,189,190,191,195,197,198,199,202,206,207,210,211,215,219,221,222,225,226,229,232,233,237,241,245,247,251,254,256,259,261,263,264,267,268,269,270,274,277,279,281,287,288,289,292,297,302,304,306,308,310,311,313,315,317,320,322,325,328,331,335,338,340,346,347,350,351,353,354,357,359,360,363,365,370,373,374,375,378,381,382,384,385,388,389,391,394,398,400,403,404,407,409,411,415,416,418,423,427,429,431,434,441,442,445,447,448,450,454,457,460,462,466,467,472,476,477,481,483,485,486,487,488,491,494,497,500,502,505,508,514,515,517,518,520,524,528,529,531,532,537,540,544,548,549,554,556,558,560,561,563,566,569,573,575,577,579,581,583,586,588,594,599,600,603,605,609,610,613,616,618,621,622,628,630,633,636,638,639,642,643,646,647,650,651,652,655,656,662,666,667,672,675,676,679,683,686,690,692,695,698,701,705,708,710,715,716,718,721,723,725,727,729,730,731,734,736,738,742,746,747,748,751,754,757,758,761,765,769,770,772,775,776,780,781,783,785,787,788,789,791,795,798,800,803,805,807,810,811,814,817,820,822,824,826,829,832,835,836,838,843,844,847,850,851,852,853,855,857,860,862,863,866,867,870,872,873,877,878,881,884,887,889,892,893,895,896,901,904,906,908,909,911,914,916,919,922,924,927,930,934,935,936,940,941,943,944,946,950,953,954,956,958,959,961,962,966,968,970,973,974,978,979,981,984,985,987,991,993,997,999,1001,1003,1006,1008,1013,1016,1018,1021,1023,1025,1028,1031,1034,1035,1038,1040,1043,1048,1050,1054,1055,1058,1060,1065,1066,1067,1069,1071,1073,1075,1078,1080,1082,1085,1087,1090,1093,1096,1099,1100,1103,1104,1107,1110,1117,1118,1120,1123,1126,1127,1128,1131,1133,1136,1139,1141,1143,1144,1146,1150,1154,1157,1162,1165,1168,1173,1174,1177,1179,1182,1184,1188,1192,1194,1199,1201,1205,1207,1210,1212,1214,1217,1220,1223,1225,1227,1230,1231,1234,1235,1239,1241,1243,1245,1247,1249,1251,1253,1254,1256,1258,1259,1261,1263,1270,1274,1276,1278,1282,1285,1290,1293,1296,1301,1307,1311,1313,1322,1325,1326,1328,1330,1334,1336,1341,1345,1347,1348,1350,1351,1353,1354,1356,1362,1364,1367,1368,1369,1371,1374,1377,1379}
Returns: 347
8192
{4141,7515,7179,1388,719,2147,5699,6495,2035,6516,422,3045,2844,3412,5186,3362,5251,3708,274,665,286,2237,6226,1245,7083,7634,5047,714,4251,4262,475,8031,7695,2507,6165,3095,2370,3302,5798,2024,3106,5532,245,2547,6153,6623,4699,5871,5608,40,4033,4492,6242,4514,7979,8164,433,4811,2049,817,3445,6317,2484,6924,7632,1351,4661,614,7023,4943,2644,659,2445,8182,3106,8124,273,4330,1525,504,6494,3412,3249,6042,6555,533,4236,7919,646,5136,2438,4357,5939,5853,846,2782,591,6844,5223,3992,3563,2608,211,5141,7394,7738,3743,5051,3965,1943,2363,5589,6131,3089,6253,3151,8173,99,2163,3677,7513,6586,2729,1242,4896,3438,4298,2562,6578,6676,4295,859,2958,644,7130,6794,4914,6675,322,4334,6717,162,5126,6617,7360,5590,6818,4173,2057,7208,4240,7964,4479,7992,4915,3432,6256,5141,5757,5507,3301,5890,4503,6423,7678,8055,6228,3010,7034,484,3143,3101,109,7724,5867,7003,2154,2627,5672,5267,7337,531,3408,3821,5119,2067,1622,6361,3786,3532,6653,5780,1832,4041,4423,818,7730,3628,8048,387,44,4499,4444,4386,3039,7036,7744,7163,7342,6639,1291,2497,2851,6062,4833,6320,3352,3263,4285,1546,5326,1694,2340,5334,1429,7170,6783,7769,3325,1418,8098,3544,2229,848,7591,6193,7074,3793,7462,2029,4069,6441,7313,5989,8170,7978,576,3241,7625,3928,7822,7639,3739,6507,2330,4259,3752,871,4133,3277,5013,3580,3503,5969,777,2137,975,799,5771,4895,143,5185,2193,6853,6466,6977,2841,803,3646,4298,3417,6261,6514,5218,7260,7602,3420,1362,4553,7320,7526,6564,3100,4418,3507,7505,5413,2505,7685,685,1465,6624,2629,1321,223,4836,4850,4243,3323,2667,2180,2296,7903,7141,3745,4698,6349,7512,5830,4993,3792,5094,3518,1044,4646,4657,1067,1108,5788,4444,6153,972,5926,1241,5111,7234,4661,440,6343,8028,2704,5071,5794,1878,3788,1409,7400,1606,8128,4722,6810,4960,1424,6680,3328,4796,6979,3199,3834,2615,4637,6711,308,1257,2084,2015,6716,3805,2230,1615,5441,5034,2585,6625,3859,1166,6256,3565,2735,7627,7341,3338,4486,3825,3423,6967,3932,3819,6024,7310,1653,640,3835,2480,1666,4914,6126,4772,3997,1093,7885,6493,6726,7391,6046,7873,7750,20,899,5988,1028,1776,307,232,3760,1114,5276,7504,364,2024,6674,3883,1638,6822,695,4119,5269,4062,553,633,6044,7177,176,4095,5411,5368,4471,8160,5029,2164,6574,4733,161,6512,929,7006,7865,4133,2106,1859,54,7738,2452,6497,7962,1623,2691,4479,449,7544,370,7199,2494,7233,6126,1669,2713,4056,7378,4559,5791,2963,1042,2806,4599,2040,1409,264,3788,8077,838,3973,6456,5871,6362,6200,3684,5063,3281,5761,19,5411,6626,3459,7314,2010,7923,4925,6885,4749,573,1027,941,3839,4304,7289,6448,6516,542,5019,7069,2753,1644,4844,4718,5862,1877,6273,166,2029,724,1291,5976,999,2968,6035,6328,7389,7315,311,3526,4760,4653,3228,4446,4146,147,3944,1343,2647,1293,8107,2169,5938,6023,4981,6748,1558,2465,1695,6620,726,2574,291,1831,4083,3391,8187,5097,6834,1935,4880,1670,7479,4487,7214,7514,3289,7186,7584,6368,5600,2227,4721,7754,472,2338,7949,20,6871,6668,1612,1695,3045,7635,5552,4326,1514,3737,2803,5121,4208,4636,3509,8192,1708,3621,6541,368,4897,4514,8005,6309,1893,7374,6038,4767,4472,2562,7768,4926,3367,4386,4708,5426,1568,6356,1349,2518,3623,771,7429,6662,4895,7538,2867,4268,389,7012,1423,4249,6649,6836,8071,255,5020,5375,7929,5814,4335,7343,2937,3107,4597,1584,1193,5767,3189,7847,739,5399,2569,5123,1240,5423,7172,5453,5495,5797,7653,5797,1750,7169,352,2404,6509,1089,6623,8015,2678,3713,4473,5883,4315,7089,7785,6094,1425,1864,5634,3407,4807,1458,6456,7111,3313,7661,3812,4981,2332,2991,4297,5081,7579,17,6824,7675,7324,4268,3445,696,945,4018,5370,2442,4090,900,4905,7273,1032,223,607,5824,4912,2210,1775,1976,5508,6387,2129,2892,46,321,852,4618,8048,6519,6337,1149,6684,7797,1757,1455,6622,2240,67,3931,4136,5618,4005,6856,5435,4732,3559,623,3363,5849,8002,760,5685,573,5104,7505,1272,1167,2579,6112,6927,553,2175,6703,6438,1487,7443,7336,1924,4078,5471,1359,5462,7693,3419,2710,7264,546,3579,5840,3387,3915,3176,2288,2020,27,2753,4776,3270,2701,1097,6186,1052,5748,4325,6938,5093,7409,1754,162,76,6744,5588,2480,7902,4013,803,7401,6781,5545,5455,2791,1130,6389,7168,8150,5745,7731,6502,165,6831,1019,820,7783,1778,512,7016,6045,7237,7711,1027,3501,1730,6901,3315,957,3657,8061,4212,3275,1586,969,46,8140,4291,3301,3166,6965,6793,4240,3693,5202,2656,6507,6486,844,1126,5337,1086,4587,2228,5553,3764,2417,2597,2467,538,4909,5654,762,4270,6079,2941,3365,2247,562,3652,2111,461,1655,7019,7846,4247,1525,735,3917,4542,2382,5523,118,4766,921,2288,6173,5297,4537,3110,4654,4861,1978,4231,6275,5727,7757,4998,7498,879,5105,3997,1611,989,5992,6321,5722,7456,5278,4439,4590,3917,300,6048,7363,6414,2851,716,8189,6308,4857,3768,2903,5618,168,7777,5981,3727,3210,5223,5059,749,7564,7925,633,678,2245,7190,1803,3591,2473,3039,2444,5123,5743,8073,5413,7594,376,5880,5145,7016,1749,2514,5597,1076,5198,3517,1978,3078,2714,2287,5398,1219,1981,1719,617,1042,7358,4928,1179,2134,1096,7232,5716,4161,1019,5606,7561,2665,6012,3530,5483,3401,6827,2363,901,3118,8092,2249,709,6802,5441,4209,980,1394,7416,599,2036,6439,1920,4488,4724,4713,3341,4799,5229,6678,4243,6836,3940,1385,7062,3078,5421,1877,7707,4689,1571,3007,7591,3219,6824,6739,7778,5767,411,7363,4854,5914,2868,6986,446,6595,5780,4664,4462,230,2052,3204,4959,4381,3777,4402,1842,4004,4828,3231,6542,4558,1694,4747,1834,2000,2706,768,5518,730,6179,531,7227,5342,7308,4493,826,4101,5264,5024,1874,7240,4432,3785,122,4925,5959,5381,5201,5275,578,4998,3261,4502,1020,3126,6679,422,3777,3890,6281,4335,2628,6295,419,7908,3760,7666,1351,4975,4256,5796,6291,2381,2200,937,7539,3568,4414,3357,6920,423,6526,5891,5436,5752,6763,4793,2326,2161,1163,4007,3025,4072,3323,931,993,7317,2219,4790,3418,8180,6823,1472,5773,3578,577,178,7641,1172,3740,764,5903,7441,1804,4073,7423,1533,4676,2209,4884,2189,4708,1678,6953,2642,2167,758,1297,4685,8171,3992,8075,6178,313,5158,5535,3252,6865,3462,1987,7381,4108,3502,5444,2425,4043,5684,4324,5162,5909,7003,712,2846,6119,2769,542,5611,287,5888,6713,544,6726,1824,6430,5866,3235,1039,4281,1806,2809,2851,88,4722,4594,6681,2359,2715,5387,2635,7995,6475,5806,3449,5691,7384,1502,4949,7312,2918,2201,3370,1236,5286,6146,3050,4879,2404,499,5371,5343,2190,926,813,84,4873,376,6971,2736,4633,652,1615,7754,4027,2081,2304,3662,7365,7753,2635,7995,1593,5843,5149,5207,2493,1503,1514,3222,4255,3588,6657,5300,6519,4575,7986,4245,474,6545,635,6967,5187,1165,5980,6877,6572,6863,6567,1609,4878,7271,2163,6208,3172,2826,6156,4032,4440,5918,4023,7600,2915,6273,6160,1026,6539,2845,2037,3741,915,2055,8169,5021,1246,1490,7893,3782,3821,3439,3881,4955,4040,1216,6243,6055,7732,5332,1787,1812,3137,1926,7123,4519,2041,7917,3131,6977,734,260,3252,6433,4630,6782,2702,6529,7149,5548,7083,8041,4790,3349,1925,3108,4529,7462,468,8175,3602,1319,7430,3312,5348,1394,495,2459,7670,6064,6658,799,5266,7573,4722,1162,6209,4991,4270,7388,631,5631,7077,1092,4459,7228,330,6211,5380,3271,7398,7826,69,1886,6316,6155,4120,981,5178,1802,4098,7449,406,2056,1447,1832,2878,6019,5560,1916,4114,7561,1876,4430,5287,5494,1639,460,5598,2005,2617,1068,3432,3211,4797,583,5906,3267,1509,5185,7330,7766,5534,107,7714,5550,8128,3195,5499,3964,2730,478,5712,6344,7149,6335,1534,582,2501,35,7109,4866,5327,3398,1570,5857,3291,295,6226,3744,587,2291,544,4431,3311,1249,3094,6804,492,6325,807,3381,2972,4617,2324,7883,6413,2598,417,4014,1573,5148,4332,391,4631,887,5148,3889,5946,1218,3004,6622,7692,7896,5632,4537,5252,697,5996,5007,2926,3953,2342,2374,7470,99,5735,4156,2977,7690,7553,7905,5751,7193,3308,6712,2039,5011,4582,1072,7026,7268,1057,1271,3958,3990,2342,3031,3357,4667,4595,8021,3714,4292,5766,4263,6118,2912,3317,966,2437,7602,3274,7122,3008,1801,7002,6797,7093,1010,736,567,3047,1769,5150,2600,806,2963,2393,6384,887,7871,4498,6659,2859,1349,5066,2356,5109,3206,7258,5019,3658,295,303,5054,6884,2929,7684,5672,4289,1134,5761,7116,5003,7109,4701,6395,7378,7166,1676,6617,529,440,5781,162,4598,4632,2609,7740,7427,1400,7524,4861,1,5440,5170,5045,4718,1653,5956,7773,3959,1652,5026,6694,3498,7179,1508,4046,21,3287,32,6525,2802,1467,6642,7347,3777,5361,4863,5379,3568,5373,608,3017,7164,2472,6250,3869,6231,731,7232,4538,5100,7429,3010,5560,1457,2935,6745,7515,303,7927,6708,5987,6520,4487,916,6067,7051,2082,3777,2381,5286,5126,3936,1017,2975,1767,4812,3649,4048,2076,3895,5009,1206,1218,5714,5818,7923,4467,7243,2624,7637,536,6886,6710,3095,6924,2206,5801,6961,3741,1180,4581,7640,6842,6787,2865,289,3178,7156,1233,1797,4451,453,2940,4528,5106,5114,7597,1143,547,7546,2698,7668,5852,4001,2643,5673,627,4536,7590,7231,2047,2445,3366,2254,3450,5180,4165,7254,5772,2410,4211,3309,3226,7983,3305,6854,4748,6625,5094,186,3945,288,5942,7291,6359,6750,5190,6577,5418,2389,6998,947,3227,4025,5505,813,4588,6044,7874,6010,3226,7919,8002,3850,369,7848,1695,7868,6716,1273,1046,7545,495,4150,4032,6178,4243,1780}
{3,4,5,6,7,8,9,11,12,13,14,15,16,17,20,26,29,30,32,34,35,36,37,39,40,42,43,46,48,49,50,51,52,55,57,58,60,61,63,64,65,66,67,68,69,71,73,74,75,77,79,80,81,83,84,85,86,87,88,90,92,96,98,99,100,101,102,105,106,108,112,114,116,117,119,121,122,123,125,126,127,129,133,135,136,139,141,142,143,144,146,150,155,156,157,158,161,162,163,164,165,167,169,170,172,173,174,175,176,177,178,180,181,183,184,186,188,189,190,192,193,194,196,198,199,200,201,202,203,205,206,207,209,212,213,215,217,218,220,222,223,225,226,229,231,232,234,235,236,237,239,241,243,244,245,246,248,249,252,254,256,257,258,261,262,264,265,266,268,271,272,274,275,277,278,280,282,283,284,285,286,289,291,293,294,296,297,298,299,300,303,304,306,307,308,309,311,314,315,318,319,320,321,322,326,327,328,329,330,331,332,333,334,335,337,340,343,345,347,349,351,354,356,359,362,363,364,365,366,367,368,369,370,372,373,375,376,377,378,379,380,382,383,384,385,386,387,389,391,392,393,394,396,397,400,401,403,404,405,406,407,408,409,411,413,417,418,420,421,422,423,425,426,427,428,429,431,433,434,436,437,438,439,442,444,446,447,449,450,451,454,456,457,460,461,462,463,465,467,470,473,475,476,477,478,479,481,482,483,484,485,491,492,494,495,496,499,501,503,505,509,513,514,516,519,521,522,523,525,528,529,531,533,534,535,537,539,540,541,543,544,546,547,548,550,552,553,555,556,557,558,559,560,562,563,566,567,568,570,571,572,573,574,575,578,579,581,583,584,585,588,589,590,594,596,597,599,600,601,603,605,607,609,610,613,615,616,618,619,620,622,623,624,625,627,628,630,632,635,636,638,640,643,644,645,646,647,649,650,651,653,654,655,656,657,658,661,662,664,666,667,669,671,674,677,679,681,682,684,685,687,689,691,692,693,695,697,699,700,701,703,705,706,707,709,710,711,713,714,717,718,721,723,724,726,728,729,730,732,736,738,741,742,743,744,745,746,748,750,751,753,754,757,758,760,764,765,767,768,769,770,771,772,774,776,777,779,780,782,784,785,788,791,792,795,796,797,799,800,801,802,803,805,807,808,810,812,813,814,818,819,820,822,823,824,825,828,829,832,834,835,836,837,839,842,843,844,845,846,848,849,850,851,852,853,855,856,858,860,862,865,866,868,872,874,876,877,883,884,885,887,888,890,892,894,897,899,900,901,902,903,906,907,909,910,911,913,915,917,918,920,921,922,923,927,930,931,933,935,936,937,938,940,944,945,946,947,948,950,952,953,954,957,958,959,962,965,967,970,972,974,978,979,981,982,983,985,986,987,988,990,993,995,997,1000,1001,1002,1004,1005,1008,1009,1012,1013,1014,1015,1016,1017,1019,1021,1023,1025,1026,1027,1028,1029,1031,1033,1034,1035,1036,1038,1039,1040,1041,1043,1045,1047,1048,1049,1050,1051,1052,1053,1055,1058,1060,1061,1062,1063,1064,1065,1067,1069,1071,1072,1073,1074,1076,1080,1081,1083,1084,1086,1088,1091,1094,1096,1097,1099,1104,1105,1106,1108,1109,1111,1112,1113,1116,1119,1122,1123,1124,1125,1127,1129,1133,1134,1136,1137,1139,1140,1141,1143,1144,1145,1147,1148,1150,1154,1156,1157,1159,1160,1161,1162,1164,1165,1169,1171,1172,1173,1174,1176,1178,1180,1183,1184,1185,1187,1188,1189,1191,1193,1194,1195,1196,1197,1198,1200,1202,1204,1206,1207,1209,1210,1211,1213,1214,1215,1216,1217,1218,1219,1221,1222,1224,1225,1226,1227,1229,1230,1232,1233,1234,1235,1237,1239,1240,1241,1242,1245,1248,1249,1250,1251,1254,1256,1258,1260,1261,1262,1266,1269,1271,1272,1276,1279,1280,1281,1282,1285,1286,1287,1289,1292,1293,1294,1296,1297,1298,1300,1301,1303,1304,1305,1306,1309,1310,1311,1312,1314,1318,1321,1322,1324,1325,1327,1328,1329,1332,1334,1335,1336,1338,1339,1341,1342,1344,1347,1348,1349,1350,1352,1354,1357,1358,1359,1360,1363,1365,1366,1367,1369,1371,1372,1373,1374,1375,1377,1379,1382,1384,1386,1387,1390,1392,1393,1395,1396,1399,1400,1403,1405,1406,1407,1408,1410,1412,1414,1418,1420,1422,1423,1424,1427,1429,1430,1431,1434,1435,1436,1438,1439,1441,1442,1444,1445,1446,1449,1450,1451,1454,1456,1457,1458,1459,1461,1463,1464,1465,1469,1470,1472,1474,1475,1477,1478,1479,1481,1485,1486,1488,1490,1491,1494,1495,1497,1498,1501,1502,1503,1505,1507,1509,1511,1512,1513,1514,1515,1517,1519,1520,1522,1525,1526,1527,1530,1532,1536,1539,1541,1542,1545,1546,1547,1548,1549,1550,1551,1554,1557,1558,1559,1560,1562,1565,1566,1568,1570,1572,1574,1575,1576,1578,1580,1583,1586,1587,1590,1592,1593,1594,1595,1596,1597,1598,1599,1600,1602,1603,1604,1605,1606,1607,1608,1609,1611,1613,1615,1616,1617,1618,1620,1621,1623,1628,1629,1630,1631,1634,1637,1638,1639,1641,1642,1643,1644,1645,1648,1649,1651,1652,1653,1654,1655,1659,1661,1663,1665,1666,1667,1668,1669,1671,1672,1673,1674,1676,1678,1679,1682,1683,1685,1686,1687,1688,1690,1692,1693,1695,1697,1700,1701,1702,1704,1705,1707,1708,1709,1710,1711,1713,1716,1717,1719,1720,1721,1724,1726,1729,1731,1733,1735,1736,1737,1738,1739,1741,1743,1745,1746,1747,1749,1751,1752,1753,1754,1757,1759,1760,1761,1764,1765,1766,1769,1770,1771,1772,1773,1774,1776,1777,1780,1781,1783,1784,1786,1787,1788,1789,1791,1792,1794,1796,1798,1799,1800,1801,1802,1804,1807,1808,1809,1812,1813,1814,1815,1816,1818,1821,1822,1824,1826,1828,1830,1831,1832,1834,1837,1838,1840,1841,1845,1846,1848,1850,1851,1852,1854,1855,1856,1858,1862,1864,1866,1869,1870,1872,1873,1874,1875,1876,1878,1879,1880,1883,1884,1886,1887,1888,1891,1892,1895,1897,1898,1900,1901,1902,1903,1904,1906,1907,1908,1910,1912,1914,1916,1917,1919,1920,1921,1922,1924,1926,1927,1929,1930,1931,1932,1934,1936,1938,1939,1940,1941,1943,1944,1946,1948,1950,1951,1953,1954,1956,1957,1960,1962,1964,1965,1967,1968,1970,1973,1975,1977,1979,1981,1982,1983,1985,1987,1990,1991,1993,1995,1997,1999,2000,2001,2003,2004,2005,2008,2009,2010,2011,2012,2013,2016,2017,2020,2021,2023,2025,2027,2029,2030,2031,2032,2034,2039,2042,2043,2044,2046,2050,2051,2052,2053,2056,2057,2058,2061,2062,2063,2064,2066,2068,2071,2074,2076,2077,2079,2080,2081,2083,2084,2086,2088,2091,2093,2095,2096,2097,2098,2100,2101,2104,2105,2107,2109,2110,2112,2113,2114,2117,2120,2122,2123,2124,2126,2128,2131,2132,2133,2134,2135,2136,2138,2139,2141,2143,2145,2146,2148,2149,2150,2151,2152,2154,2157,2158,2160,2163,2164,2166,2167,2170,2172,2174,2175,2176,2179,2181,2183,2185,2187,2188,2189,2191,2193,2194,2195,2197,2198,2200,2202,2204,2205,2207,2208,2209,2211,2212,2214,2215,2217,2218,2221,2225,2226,2227,2230,2234,2236,2237,2238,2242,2244,2246,2248,2249,2251,2252,2254,2255,2257,2258,2260,2263,2264,2267,2270,2273,2274,2276,2278,2279,2280,2283,2285,2287,2288,2289,2291,2292,2294,2296,2298,2299,2301,2303,2304,2308,2309,2311,2312,2315,2316,2318,2319,2321,2324,2325,2326,2327,2328,2331,2332,2334,2337,2338,2339,2340,2343,2344,2345,2347,2348,2350,2351,2352,2354,2355,2356,2357,2358,2361,2362,2363,2365,2367,2370,2373,2374,2375,2376,2377,2378,2380,2381,2382,2383,2384,2385,2387,2388,2389,2390,2391,2392,2393,2395,2397,2398,2399,2402,2403,2405,2406,2409,2411,2412,2414,2416,2418,2419,2420,2422,2423,2425,2426,2429,2431,2432,2433,2434,2435,2437,2438,2439,2441,2443,2446,2447,2448,2450,2451,2453,2454,2455,2457,2460,2461,2463,2465,2467,2469,2470,2471,2472,2475,2476,2477,2479,2480,2482,2484,2485,2486,2487,2490,2492,2496,2497,2498,2499,2500,2501,2502,2503,2504,2506,2508,2509,2511,2513,2515,2516,2517,2518,2520,2521,2523,2524,2525,2526,2527,2529,2531,2532,2533,2534,2535,2536,2537,2538,2540,2541,2544,2545,2548,2550,2553,2554,2556,2558,2561,2562,2563,2565,2567,2569,2571,2574,2575,2576,2578,2581,2582,2583,2586,2588,2589,2590,2591,2595,2596,2597,2599,2602,2604,2605,2607,2608,2609,2610,2613,2614,2615,2616,2617,2619,2622,2624,2626,2629,2630,2631,2632,2633,2634,2638,2640,2641,2643,2644,2646,2647,2648,2650,2652,2653,2654,2655,2658,2659,2661,2662,2663,2664,2666,2669,2670,2671,2673,2675,2677,2679,2680,2681,2682,2683,2684,2685,2688,2689,2693,2695,2696,2697,2698,2699,2700,2701,2704,2706,2708,2709,2711,2712,2713,2715,2717,2719,2721,2723,2724,2727,2728,2729,2730,2731,2734,2736,2737,2739,2742,2743,2744,2745,2748,2749,2751,2752,2753,2754,2755,2756,2758,2760,2761,2762,2763,2764,2765,2768,2769,2772,2774,2776,2777,2778,2779,2782,2786,2787,2789,2790,2791,2793,2796,2797,2799,2800,2801,2803,2805,2808,2809,2810,2811,2814,2816,2817,2818,2819,2821,2823,2825,2826,2827,2829,2830,2831,2832,2836,2838,2839,2841,2842,2844,2845,2846,2849,2851,2853,2854,2855,2856,2857,2858,2859,2860,2861,2864,2866,2867,2868,2869,2870,2871,2872,2873,2875,2877,2878,2880,2881,2883,2884,2885}
Returns: 1276
64
{39,19,50,36,57,64,35,60,61,26,25,6,9,56,46,16,61,63,1,60,53,36,61,43,54,23,53,44,8,25,28,17,9,35,62,10,16,6,41,28,46,7,6,45,62,63,58,48,33,3,52,4,56,59,57,35,31,37,51,7,8,35,18,60,63,22,60,46,1,12,33,42,53,45,30,63,35,15,21,43,25,4,58,9,52,10,38,33,38,17,39,57,58,13,27,2,54,40,47,17,38,38,48,39,64,5,24,13,2,48,63,20,6,35,62,6,23,44,7,33,23,36,10,24,46,2,24,50,46,38,64,56,15,52,56,19,54,44,52,14,56,13,9,54,31,27,19,52,17,64,48,27,37,20,51,64,3,13,42,54,29,62,42,36,62,17,43,50,59,56,64,37,14,50,18,26,22,24,37,17,22,33,42,17,60,33,30,28,5,25,50,25,36,39,42,35,42,29,54,25,10,33,50,44,33,14,20,21,29,38,55,51,40,58,36,34,34,10,22,61,36,5,41,36,22,13,9,42,24,18,53,10,33,57,21,23,35,23,63,47,46,40,46,43,55,28,45,48,39,5,35,8,53,2,2,8,12,31,49,5,1,40,2,38,53,50,63,36,34,41,38,18,41,39,50,60,20,52,12,24,43,21,13,37,5,10,30,27,10,25,21,15,11,12,6,40,1,54,30,29,36,7,58,16,3,46,29,29,44,1,24,57,39,38,47,17,62,27,17,30,50,45,34,1,14,37,38,55,24,16,17,38,18,33,22,48,64,51,51,17,24,38,47,9,21,62,22,51,23,12,54,26,16,53,11,16,45,42,56,3,21,33,20,33,50,47,30,25,3,21,57,8,61,8,51,61,30,62,56,64,26,49,18,11,36,54,27,21,59,7,11,50,16,42,53,27,55,25,38,59,40,36,10,22,58,55,25,61,27,45,51,62,53,6,8,27,19,53,28,16,51,18,4,34,40,36,37,13,19,53,50,26,54,2,14,55,41,49,12,48,39,27,30,1,30,57,33,42,19,26,14,46,64,18,62,52,27,34,11,49,44,9,1,26,21,10,47,35,43,45,24,10,64,17,45,11,6,51,25,42,52,34,45,42,18,21,10,47,51,18,52,27,16,43,41,39,35,14,46,50,9,54,50,61,55,16,35,52,28,63,10,11,53,38,7,56,7,19,49,41,57,58,11,50,3,39,2,35,9,31,63,19,36,31,63,38,50,31,19,31,33,59,27,52,40,42,31,2,33,36,16,10,4,26,31,42,27,61,37,44,47,48,54,14,50,59,61,26,60,42,52,5,8,24,6,13,40,5,41,51,14,10,62,25,14,11,6,22,38,37,51,43,52,56,4,25,13,43,43,57,42,55,1,14,45,43,47,27,30,17,11,22,62,1,5,24,30,58,61,13,45,42,56,59,64,53,10,64,20,63,14,22,5,31,43,55,21,19,1,42,21,50,52,2,9,37,41,57,2,49,42,19,57,23,15,24,28,52,50,18,25,33,64,46,17,32,28,15,3,36,41,8,33,37,5,21,43,45,1,22,25,45,33,32,45,45,38,36,32,46,30,46,31,19,16,46,29,63,11,59,26,45,23,13,16,42,3,64,4,43,31,3,41,4,1,45,57,47,5,55,54,52,42,18,45,60,49,8,33,52,25,17,17,11,17,59,53,48,33,41,54,34,8,45,9,33,29,24,13,55,43,2,30,39,51,3,38,8,60,29,50,44,9,63,52,4,27,33,57,31,19,15,5,47,60,4,29,6,53,15,38,39,58,6,18,9,62,62,1,16,62,49,3,22,60,7,59,63,39,30,64,40,52,16,21,61,14,1,26,39,3,23,45,28,53,15,48,19,28,64,62,32,24,48,53,5,9,3,39,3,25,36,34,42,63,45,44,7,12,45,37,20,18,22,28,59,9,14,54,38,49,24,64,61,52,11,56,31,27,63,61,9,32,25,40,35,19,43,12,52,54,5,54,40,41,58,64,8,45,54,20,1,61,14,33,6,61,24,61,28,36,37,2,29,19,59,45,58,8}
{1,5,7,11,12,16,18,20,21,23,24,27,31,34,35,37,40,41,43,47,49,51,55,57,60,62,65,67,68,70,71,74,77,79,83,86,90,93,96,97,102,107,110,111,114,115,116,119,121,124,129,131,133,134,138,141,143,144,145,148,153,162,163,166,169,173,175,179,181,183,186,190,193,196,200,203,206,208,210,215,218,220,222,223,225,227,229,231,232,234,236,238,241,243,245,246,247,248,252,256,260,263,265,266,267,269,272,275,279,283,286,289,291,296,297,298,299,301,305,306,310,313,317,321,325,326,328,333,336,337,341,344,347,352,353,354,356,359,362,364,366,367,369,375,378,380,384,385,387,392,395,396,398,400,402,406,409,411,414,418,421,423,427,428,431,433,437,443,447,453,457,460,462,463,464,467,470,473,476,478,481,482,486,489,491,497,499,502,504,506,509,512,515,516,519,521,523,525,528,530,533,537,542,544,546,547,549,551,555,557,558,561,564,568,570,574,578,581,583,587,590,593,595,597,599,604,607,613,615,617,619,622,625,628,633,635,636,640,641,643,646,650,653,658,662,665,667,670,672,677,682,685,687,691,694,696,698,699,701,704,707,708,711,713,716,718,723,724,726,731,734,735,736,741,744,747,749,753,754,756,758,762,764,767,770,772,775,778,781,782,786,787,791,794,798,804,806,809,810,811,815,817,820,821,824,827,828,829,832,833,837,838,841,847,849,851,855,858,862,863,866,872,875,877,880,881,882,883,885,890,893,897,900,902,907,908,912,915,918,923,925,927,928,932,934,937,940,945,946,947,949,954,957,960,962,965,967,968,970,971,973,977,981,985,989,991,992,994,998,1002,1006,1009,1010,1011,1012,1018,1020,1022,1024,1027,1031,1034,1039,1042,1045,1047,1049,1052,1055,1058,1060,1062,1066,1067,1071,1074,1078,1082,1086,1087,1088,1090,1095,1099,1104,1109,1113,1117,1119,1121,1124,1126,1130,1133,1136,1139,1142,1145,1149,1150,1152,1156,1157,1164,1168,1170,1176,1179,1183,1184,1187,1192,1195,1198,1200,1204,1206,1210,1214,1218,1219,1223,1226,1231,1235,1240,1244,1247,1251,1255,1257,1260,1262,1265,1272,1277,1279,1282,1284,1288,1290,1297,1300,1303,1307,1310,1312,1314,1316,1321,1322,1324,1326,1331,1332,1337,1339,1343,1344,1345,1347,1349,1350,1353,1357,1358,1359,1363,1368,1370,1375,1378,1381,1384,1387,1389,1392,1395,1398,1400,1403,1406,1407,1409,1412,1413,1417,1419,1423,1425,1428,1430,1432,1434,1435,1437,1441,1444,1447,1450,1453,1456,1458,1459,1463,1467,1469,1472,1474,1476,1477,1480,1485,1488,1492,1493,1495,1499,1500,1503,1506,1510,1512,1515,1518,1519,1522,1523,1526,1527,1531,1532,1533,1535,1540,1543,1545,1548,1552,1557,1559,1563,1566,1569,1571,1575,1581,1582,1585,1588,1592,1594,1598,1601,1604,1609,1610,1616,1619,1624,1625,1626,1629,1631,1634,1636,1639,1642,1643,1645,1648,1650,1653,1655,1658,1659,1663,1665,1667,1671,1673,1674,1677,1679,1680,1681,1684,1686,1690,1692,1693,1696,1699,1702,1705,1709,1713,1717,1718,1721,1724,1728,1731,1734,1736,1738,1741,1743,1747,1748,1750,1755,1759,1761,1765,1767,1771,1776,1778,1782,1784,1786,1788,1791,1793,1795,1799,1801,1804,1809,1813,1819,1820,1822,1826,1827,1828,1830,1832,1834,1840,1841,1842,1844,1846,1848,1849,1851,1852,1855,1858,1861,1863,1868,1871,1873,1877,1879,1882,1884,1887,1891,1897,1903,1905,1907,1911,1913,1914,1917,1919,1921,1924,1927,1929,1932,1934,1937,1939,1941,1945,1946,1948,1952,1953,1960,1962,1968,1969,1971,1976,1980,1982,1986,1989,1990,1998,1999,2004,2007,2010,2012,2015,2017,2020,2021,2024,2027,2028,2030,2032,2036,2039,2041,2044,2047,2050,2055,2057,2060,2062,2064,2067,2070,2075,2076,2080,2083,2088,2092,2093,2095,2101,2105,2106,2108,2110,2115,2118,2121,2123,2126,2128,2130,2132,2134,2139,2143,2147,2150,2151,2156,2158,2161,2164,2168,2170,2173,2176,2178,2182,2183,2188,2189,2190,2192,2196,2199,2200,2201,2204,2206,2211,2213,2215,2219,2221,2224,2226,2227,2230,2231,2234,2235,2238,2241,2242,2244,2247,2248,2252,2254,2259,2262,2264,2266,2267,2269,2270,2272,2276,2281,2283,2285,2289,2294,2297,2303,2305,2308,2310,2312,2313,2314,2316,2317,2323,2326,2329,2330,2336,2339,2340,2341,2342,2345,2346,2348,2353,2355,2358,2360,2362,2364,2370,2373,2375,2377,2380,2381,2383,2386,2389,2393,2398,2404,2408,2413,2415,2417,2422,2423,2425,2426,2429,2434,2437,2440,2444,2445,2450,2454,2458,2462,2464,2467,2470,2476,2479,2481,2485,2487,2490,2493,2497,2500,2501,2508,2509}
Returns: 614
32
{1,12,28,5,20,12,13,4,19,30,9,5,25,2,10,30,10,22,16,27,5,27,11,16,25,9,8,22,16,27,5,12,8,7,5,11,7,20,8,21,24,22,23,28,18,27,8,8,7,9,28,11,28,20,20,19,30,31,28,4,32,24,5,10,26,5,21,20,19,28,3,20,29,5,29,6,31,10,16,4,19,32,4,28,27,6,16,6,10,5,2,29,5,26,2,18,15,15,29,29,17,27,4,17,4,21,30,25,14,5,14,19,24,29,31,16,30,31,27,10,18,17,15,25,12,12,9,22,32,32,15,4,27,16,28,25,30,6,7,15,32,18,10,31,13,7,17,3,9,32,21,27,21,28,13,25,15,12,27,16,5,26,25,16,6,8,18,30,4,23,7,31,4,29,26,19,31,7,14,26,20,8,12,21,6,18,28,6,1,5,28,4,29,15,12,4,10,12,26,4,7,28,26,8,8,24,18,28,18,20,26,32,14,29,22,8,14,9,27,31,20,15,17,32,27,12,31,32,21,19,11,21,27,32,15,28,4,30,5,11,26,27,1,1,22,15,15,16,10,6,27,9,21,32,31,5,27,8,11,32,30,1,9,30,17,4,4,25,22,9,14,10,21,30,4,19,20,15,5,20,1,5,19,7,5,22,22,32,2,6,30,9,5,9,14,22,25,19,28,2,4,30,21,11,9,16,32,9,28,29,2,21,11,11,4,1,31,26,32,31,4,20,3,31,29,27,29,7,7,18,8,11,3,22,14,19,19,29,15,7,24,23,8,22,29,30}
{7,15,29,40,54,66,80,90,100,110,122,134,144,159,172,187,199,212,221,231,247,259,268,279,287,301,310,318,329,341,359,373,390,401,412,426,440,449,458,470,482,494,501,517,529,543,554,564,582,592,600,615,624,636,647,656,664,677,684,690,697,713,728,737,747,762,776,787,804,811,835,846,857,872,879,891,911,927,936,948,961,976,986,995,1006,1013,1026,1040,1048,1058,1072,1082,1090,1105,1124,1139,1156,1172,1189,1200,1206,1224,1231,1245,1257,1270,1287,1294,1305,1314,1327,1339,1348,1356,1368,1375,1393,1401,1407,1420,1429,1436,1452,1460,1470,1479,1493,1502,1514,1524,1533,1547,1557,1567,1578,1595,1607,1622,1629,1643,1657,1666,1681,1696,1712,1723,1733,1742,1751,1761,1773,1782,1793,1807,1817,1829,1843,1855,1863,1873,1887,1905,1911,1927,1940,1950,1957,1970,1981,1991,2002,2019,2026,2031,2041,2051,2063,2077,2096,2109,2122,2133,2141,2151,2159,2168,2176,2191,2205,2216,2231,2240,2257,2270,2279,2289,2303,2325,2335,2347,2354,2368,2384,2395,2399,2406,2420,2426,2439,2450,2461,2470,2486,2500,2507,2517,2523,2540,2550,2563,2577,2585,2594,2611,2620,2627,2644,2656,2665,2675,2692,2704,2714,2724,2738,2748,2758,2771,2784,2796,2805,2819,2826,2836,2842,2851,2860,2873,2885,2900,2909,2918,2933,2941,2952,2963,2972,2978,2988,3004,3018,3030,3039,3052,3063,3076,3093,3106,3121,3134,3151,3162,3170,3183,3190,3205,3215,3224,3241,3254,3264,3271,3283,3296,3305,3316,3326,3332,3347,3355,3366,3382,3392,3406,3414,3429,3438,3446,3461,3467,3478,3487,3498,3510,3525,3539,3553,3566,3576,3583,3596,3609,3614,3623,3633,3650,3668,3679,3692,3699,3712,3722,3728,3735,3747,3761,3768,3782,3792,3806,3820,3829,3845,3852,3857,3870,3879,3893,3902,3913,3924,3934,3944,3957,3967,3980}
Returns: 236
128
{8,34,27,107,124,95,66,90,33,128,92,100,117,28,17,5,76,12,37,113,67,75,80,103,104,19,4,71,59,119,111,37,19,62,117,120,49,68,53,127,91,34,123,78,11,81,42,3,90,46,37,11,7,11,76,105,64,90,77,100,59,76,111,18,122,125,115,59,6,89,61,31,40,120,80,47,79,98,127,113,90,89,65,83,121,71,94,77,8,101,86,96,48,23,4,24,121,109,128,98,53,74,17,66,77,17,91,10,3,93,7,13,30,44,68,94,74,29,95,128,49,56,13,41,69,9,56,115,100,44,59,45,38,77,1,74,19,101,78,50,123,9,83,20,106,89,84,63,97,39,43,76,15,99,2,82,57,32,93,70,100,53,74,18,2,79,76,64,18,102,110,55,45,96,115,87,73,122,86,68,110,56,6,50,55,36,82,15,5,51,127,67,98,65,82,12,79,66,31,62,27,42,20,126,97,28,117,120,126,11,117,76,36,57,42,108,121,34,51,94,20,13,117,109,2,85,11,128,66,3,42,4,67,69,66,110,125,110,3,56,27,4,68,71,14,35,107,8,124,84,39,71,37,57,18,2,78,102,119,76,28,109,89,30,17,49,104,70,120,82,44,116,47,11,6,75,8,27,6,39,119,124,64,59,74,99,117,1,113,37,50,110,57,1,49,59,69,96,59,12,105,4,63,53,29,82,16,80,86,48,3,94,15,75,23,26,8,92,125,78,34,99,109,80,50,52,67,20,69,111,55,34,50,19,76,106,14,13,84,11,90,57,68,46,79,30,82,85,21,62,85,121,33,28,1,47,38,89,76,124,42,115,56,117,84,21,72,64,3,10,125,103,106,73,46,42,70,94,84,43,54,47,45,38,93,30,33,41,35,47,103,16,103,108,59,83,90,125,78,17,11,106,63,30,76,86,108,45,64,3,8,18,66,75,2,14,55,83,54,102,42,14,110,6,24,81,56,90,108,11,127,2,17,119,49,120,70,109,96,63,35,50,84,53,61,30,22,44,100,35,75,97,87,49,108,21,107,69,33,10,123,101,128,52,85,31,92,30,92,16,39,14,104,125,29,25,25,83,128,127,115,7,44,82,42,34,57,10,43,97,125,122,17,73,34,27,123,9,89,25,36,54,67,15,57,69,124,89,20,112,88,111,108,38,20,57,107,72,53,115,110,45,41,40,66,96,31,120,66,81,26,107,58,97,102,61,39,55,7,18,58,63,16,87,21,35,4,8,51,18,29,109,92,39,48,106,56,51,122,105,82,93,78,74,94,95,89,115,12,113,64,90,1,78,94,40,87,5,58,111,21,67,9,18,29,120,76,4,100,65,1,34,50,85,101,120,38,36,6,110,1,60,32,108,9,22,83,48,61,61,66,66,96,95,128,9,97,67,3,86,78,47,115,69,93,61,57,62,86,69,35,106,123,112,71,100,123,65,8,2,29,81,50,5,12,53,54,51,17,22,97,48,1,33,56,87,113,46,76,7,90,25,118,95,7,117,72,35,11,9,112,120,84,31,118,24,60,15,97,119,19,121,90,69,31,42,75,83,6,42,53,26,88,111,67,97,32,96,19,80,18,63,75,92,46,77,79,128,105,122,53,51,59,30,65,59,9,98,52,99,29,23,33,114,107,109,84,29,52,52,7,126,80,111,52,49,106,73,95,78,39,52,123,76,82,52,106,94,54,28,46,56,56,88,119,60,122,12,34,118,53,68,30,105,76,37,86,17,88,119,100,46,11,58,76,84,68,81,102,117,30,52,104,125,9,2,33,109,46,53,27,70,89,51,54,91,81,79,57,59,32,117,12,15,56,111,106,98,105,9,96,46,70,12,97,107,72,56,110,127,8,124,18,57,117,15,5,45,16,68,55,54,38,6,105,108,125,109,54,123,114,27,24,53,120,22,111,7,35,32,23,74,27,124,63,79,121,25,30,107,90,99,10,21,10,26,6,57,36,112,79,29,115,62,3,102,9,19,94,112,84,123,103,126,97,84,113,118,8,32,39,20,6,95,126,98,75,115,30,104,86,97,68,118,13,23,8,28,77,94,48,89,83,97,126,62,50,65,83,74,52,2,31,125,106,26,68,32,15,114,110,26,34,1,115,41,60,71,90,39,38,100,127,31,42,21,53,88,94,94,83,115,93,76,78,83,126,48,97,114,128,124,46,100,35,59,1,67,63,25,122,89,49,56,128,127,102,125,39,35,95,124,47,37,39,123,82,61,24,26,64,99,83,127,36,59,75,6,110,67,40,83,79,62,22,72,31,105,44,63,82,117,54,32,29,56,23,93,76,30,79,112,97,75,106,36,88,125,69,124,87,79,127,42,104,106,121,48,71,126,108,115,94,63,93,34,20,112,79,15,47,121,119,77,47,83}
{1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,61,63,64,65,66,67,68,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,152,153,154,155,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,365,366,367,368,369,370,371,372,373,374,375,376,377,378,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,536,537,538,539,540,541,542,543,544,545,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,666,667,668,669,670,671,672,673,674,675,677,678,679,680,681,682,683,684,685,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,799,800,801,802,803,804,805,806,807,808,809,810,811,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,948,949,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088}
Returns: 758
65536
{12151,5458,55018,14482,483,65061,35929,63300,10471,37971,42228,55892,3200,22407,31340,13862,25634,64857,850,36172,49829,49618,25353,41472,53913,14361,19628,57148,32829,43195,55111,15628,634,31075,6640,54782,45226,4071,26251,32208,55046,8465,16982,52158,18428,24963,19335,13598,15588,7566,5015,1808,13481,21244,38396,18569,58242,34305,23416,53236,62153,45286,35392,8753,17523,23588,7057,692,43484,8954,12171,63226,33231,42678,89,25008,32267,14656,17924,17447,58528,21912,62583,9991,65013,21340,7570,9554,1098,41097,26964,38693,54780,13054,1653,25553,57337,53641,11770,38199,12818,19061,21665,24699,29467,44000,60714,31363,30487,6246,11994,14543,36305,57542,43967,45473,15529,8619,41623,51331,64110,17074,57428,54941,45195,23122,46507,26739,14581,43085,64810,23798,52351,3776,28334,35834,22941,45062,34133,64649,1967,40442,3370,40357,48986,54607,1584,26203,27799,38416,60049,48214,54120,34935,36364,581,15472,942,48367,14784,62166,14897,31022,46731,35110,1490,13419,64339,7971,35765,44550,64083,28359,63136,11390,7803,15052,5262,41398,46075,54660,47712,59899,33110,56044,28423,48592,42080,58664,1438,7894,4291,63198,31803,100,24570,37663,43888,44200,64722,65242,4302,61258,5862,62455,17626,24325,13476,8867,31557,14256,44242,14700,49758,5772,51876,53550,38151,37622,57803,34294,47274,7612,8744,47702,20217,51645,36079,65241,31083,41103,1912,56201,60107,61005,10758,50619,18760,32731,4920,24712,20958,10030,15100,49854,17405,63857,64046,24859,15059,41745,15935,26655,49049,56840,43647,50389,3774,36599,15108,55379,16356,19938,22327,54741,48890,10141,9328,6066,19177,13631,54093,19345,64677,16174,38044,12957,44956,399,56569,54941,33470,53304,41099,33069,4017,18534,14969,30335,25572,30432,50683,29028,48523,22842,51506,8830,36034,59751,13338,32994,16216,62173,57408,36479,60434,51424,61475,20257,2121,38341,42841,5340,61776,25407,38622,61743,14582,11278,17194,3652,21260,16282,48128,61428,30685,73,63488,8353,19933,36280,10357,39411,13074,15366,41964,19968,52477,53732,30858,37269,56322,26408,12598,52344,11656,26109,56060,49401,61033,41214,57928,61471,36187,43218,61929,7235,54118,35866,38890,45047,54942,62655,5805,56178,61870,9716,29425,36590,63722,46728,33173,5305,31728,839,29258,61907,283,15751,5766,57441,52812,43579,61035,11096,191,7690,55161,28449,27646,848,4906,50965,63021,16137,15847,48144,60965,6667,47344,56463,9792,60431,64531,49923,29868,42600,15968,29511,39092,33908,59191,25730,27228,6165,17231,16580,43049,41170,2970,24631,44304,7268,26157,18860,54983,51141,11140,3811,27405,55316,25806,11990,22668,2791,10780,50393,18046,19916,16791,12140,1077,9498,8997,1532,36886,43618,19983,10500,39891,62218,12450,62525,43471,28651,15315,7882,40451,24321,8029,41380,58072,47236,38128,4258,4291,6386,37714,11994,23964,2535,15520,11093,63221,46031,23806,57139,53494,29378,55659,39621,24957,291,144,35651,13698,60111,18861,34585,19722,50157,45063,6898,45081,11958,33661,1532,48511,5057,14627,61462,19048,37036,33020,2259,51202,2348,43083,27279,19124,30429,6660,37119,31915,35934,41296,61165,15291,32916,60480,45856,57565,24343,44816,6287,62913,35628,45729,12894,27457,47828,2821,82,14773,4031,44353,48306,45665,7238,40369,49341,44936,37537,64157,4408,16106,5389,14580,41137,22684,7574,832,39296,45717,15535,19777,36257,51038,64980,22729,16105,46256,39389,39610,52808,44292,16067,43350,34042,21835,7414,40750,5869,36456,39560,43101,12737,55307,1232,49660,26652,45331,55625,3544,3385,6046,18115,32478,24818,37213,55360,3298,32943,62169,21245,4238,60902,29377,45455,58037,7985,29811,52755,23641,32019,56136,48593,24331,24569,42599,6362,8081,8461,2845,26744,34528,5093,16893,49029,40932,19251,49481,4079,45726,24299,44400,10504,24471,1678,56971,27251,51370,16023,63550,8117,38566,56362,46938,10436,30034,59018,50973,3116,29125,51704,9736,53130,33063,31739,24715,64389,22602,62774,44556,131,42674,63813,19213,51646,47605,342,16748,44152,34962,17002,11787,2420,9632,13422,31055,59124,43262,45993,58961,33241,43478,53798,21165,21690,33707,45840,65337,23537,49218,22066,49197,28170,11025,3601,370,22546,17682,30537,41502,3487,2589,11299,18539,42153,15152,7072,62869,1399,43838,24410,20335,12100,24171,42996,19380,45662,42461,56338,42830,35036,50297,20996,55827,51002,4917,8338,1475,46695,3555,24485,46407,51490,11150,54712,8042,34477,59350,31560,1689,62769,60643,29100,15719,18015,57303,34578,19924,35106,60385,9614,49062,60278,51796,38763,64,42927,45143,57138,64718,4304,15655,65053,5566,20913,15866,26588,12488,23320,57070,36590,21768,11530,43680,59641,27377,8173,35924,34501,28690,4685,58062,24555,44277,26703,37941,48715,16793,39471,64947,51661,43846,42831,35751,4377,48327,9142,49544,4155,57401,48643,31469,8802,24585,3124,14667,41,58059,9666,25675,59432,15361,4604,31978,54191,12804,22938,26038,42478,57244,6888,3273,6119,58883,55321,63094,16372,47699,55188,25008,63427,63404,22089,420,4086,50565,64616,37403,13552,4089,64768,56970,42087,34305,2406,11761,22458,4082,51560,26604,4927,46762,55728,45466,57074,49732,27088,45875,51519,11587,29668,12671,30935,26498,12227,10365,65216,51811,54314,7916,36365,3590,61533,64654,15109,34180,43288,18255,42889,58997,60395,19879,36624,58943,15430,28392,30860,1519,5578,25670,28924,31654,65464,10195,38301,18133,21898,55484,24796,8901,30980,50808,8589,14657,39515,40634,49175,11590,33593,37986,63861,21530,55733,14257,33878,47415,8335,41593,10431,55247,21065,36127,44773,51961,21725,56218,44596,5043,44090,13248,45481,64080,49609,14494,56073,65282,53136,6303,10889,50068,64968,14013,54515,22147,35319,55565,40554,52747,57052,61780,1090,45015,23747,18045,7334,47207,12819,32791,30454,13156,3116,55107,62475,15459,39122,31392,33251,60902,51423,1334,57944,47751,34012,49761,10454,60072,3270,56121,26442,32532,35875,62468,5816,34655,33819,12965,9248,20746,36184,8480,11964,45729,39867,24982,28841,7261,24133,45920,65423,1551,36285,23330,36568,51273,64741,39430,41355,60697,1363,33390,9689,35526,31811,8916,51439,18788,45800,45480,60839,18984,9757,8025,5401,17885,27010,13800,46128,56797,35404,14243,58824,18793,40560,49395,9456,16209,29929,35666,16220,14906,25650,37343,64540,64504,1092,532,34595,33484,14765,21922,36422,31097,22416,60542,8351,35200,18076,32897,52624,56572,36698,54866,13528,35809,56908,8543,13660,42659,6345,43808,11440,3719,24982,28663,17789,21019,31894,36435,42812,21154,55585,38649,30201,36192,10962,1944,62745,33322,57574,31491,52286,54934,64621,25781,25045,33711,48632,32650,31466,37395,25469,29117,54346,42705,46995,35487,13581,59777,33617,59556,36620,39510,3177,51355,7667,1328,43330,14661,6609,23790,7482,61609,32371,28802,57160,35513,40160,6543,42409,2880,43199,47746,37205,5926,14216,8320,7260,64376,46012,41880,32374,17118,6805,28161,37723,19522,63193,26985,28339,4085,28619,28567,45492,650,28523,471,26295,53037}
{6,10,15,21,26,29,31,35,38,41,44,47,51,56,60,62,68,71,82,85,88,92,97,101,104,108,110,117,122,124,126,133,139,144,148,151,154,158,163,166,169,172,177,182,187,192,195,196,200,205,212,215,219,220,224,227,231,235,237,240,247,249,251,255,262,264,271,276,280,285,292,294,298,301,303,310,316,320,325,333,336,341,343,346,348,351,352,355,361,369,372,375,380,388,395,402,405,410,414,419,423,432,438,442,445,452,455,463,465,469,471,476,479,482,485,489,495,501,502,505,510,513,517,522,529,534,536,540,548,550,552,553,556,565,569,572,578,583,589,593,597,603,609,613,618,624,625,631,634,636,641,644,648,651,654,656,658,662,666,668,675,678,681,684,691,695,700,703,704,706,710,715,720,722,727,732,735,739,742,747,749,753,757,759,762,766,770,776,778,780,786,793,799,804,805,808,812,814,818,823,830,832,841,845,851,856,861,863,868,874,877,882,891,895,900,904,906,910,914,917,919,924,929,931,934,940,943,948,953,958,963,967,973,981,986,987,993,994,1000,1001,1004,1008,1011,1013,1016,1018,1019,1022,1025,1028,1037,1041,1044,1048,1051,1056,1059,1061,1065,1068,1072,1076,1080,1084,1091,1093,1097,1099,1104,1110,1113,1117,1121,1123,1128,1132,1136,1142,1144,1149,1153,1158,1163,1168,1171,1176,1181,1185,1188,1194,1197,1201,1208,1212,1219,1224,1228,1234,1238,1244,1250,1253,1257,1262,1265,1268,1270,1273,1277,1280,1285,1288,1292,1296,1304,1309,1314,1319,1324,1326,1330,1334,1340,1344,1348,1352,1353,1357,1366,1374,1379,1384,1387,1390,1395,1399,1404,1407,1409,1416,1418,1425,1429,1435,1439,1446,1450,1454,1456,1459,1465,1470,1473,1477,1481,1489,1492,1496,1498,1503,1507,1515,1520,1525,1531,1533,1538,1541,1545,1548,1553,1557,1562,1565,1571,1575,1578,1582,1583,1590,1592,1597,1601,1609,1616,1618,1622,1627,1631,1635,1639,1642,1648,1652,1658,1661,1665,1670,1673,1678,1680,1685,1689,1690,1692,1696,1701,1702,1709,1712,1721,1723,1724,1728,1729,1732,1738,1742,1746,1750,1754,1761,1764,1768,1770,1776,1777,1782,1785,1791,1794,1798,1803,1807,1815,1817,1819,1824,1827,1830,1836,1843,1846,1850,1851,1854,1860,1866,1872,1875,1878,1882,1883,1884,1889,1895,1897,1902,1906,1909,1915,1919,1922,1923,1927,1931,1935,1938,1946,1951,1955,1964,1966,1969,1973,1977,1983,1987,1990,1992,1997,2001,2007,2010,2011,2014,2019,2028,2031,2034,2038,2043,2048,2053,2059,2066,2068,2073,2076,2082,2086,2091,2097,2102,2105,2110,2115,2120,2123,2125,2130,2135,2139,2141,2145,2150,2155,2158,2163,2166,2174,2175,2181,2183,2184,2190,2194,2197,2201,2205,2210,2216,2221,2223,2228,2229,2232,2237,2242,2245,2251,2253,2256,2259,2263,2270,2274,2278,2280,2281,2284,2290,2295,2299,2302,2306,2311,2317,2322,2325,2326,2332,2334,2337,2343,2347,2350,2353,2358,2363,2368,2372,2374,2378,2383,2386,2388,2391,2394,2396,2401,2404,2407,2411,2413,2415,2417,2423,2430,2435,2437,2442,2446,2447,2451,2455,2460,2464,2469,2472,2475,2477,2480,2484,2489,2491,2495,2501,2506,2509,2511,2515,2519,2521,2523,2528,2531,2533,2539,2542,2544,2546,2554,2558,2566,2570,2573,2574,2581,2585,2589,2592,2593,2595,2599,2604,2608,2612,2614,2617,2621,2628,2633,2636,2641,2644,2645,2650,2655,2657,2659,2666,2671,2673,2678,2682,2687,2688,2693,2697,2703,2709,2712,2716,2718,2721,2726,2729,2730,2741,2747,2751,2757,2759,2767,2771,2775,2781,2783,2786,2789,2792,2796,2800,2805,2809,2816,2822,2828,2834,2838,2843,2848,2851,2858,2863,2867,2869,2877,2880,2883,2887,2891,2895,2900,2906,2909,2911,2914,2915,2921,2925,2928,2931,2938,2941,2943,2947,2954,2959,2963,2968,2973,2980,2985,2991,2994,2999,3003,3009,3010,3016,3019,3024,3028,3032,3035,3039,3043,3048,3051,3056,3059,3062,3067,3068,3074,3078,3082,3086,3087,3090,3096,3100,3101,3104,3108,3112,3119,3125,3129,3133,3136,3143,3151,3156,3160,3164,3167,3172,3175,3177,3179,3180,3184,3188,3192,3195,3200,3203,3208,3216,3222,3224,3230,3233,3238,3241,3244,3245,3250,3253,3261,3263,3270,3276,3284,3288,3291,3295,3298,3302,3307,3312,3315,3319,3321,3323,3328,3337,3341,3347,3349,3354,3359,3360,3364,3370,3377,3378,3382,3386,3392,3400,3403,3410,3416,3418,3421,3423,3427,3433,3435,3440,3443,3448,3456,3463,3469,3471,3475,3479,3483,3488,3494,3499,3501,3508,3510,3515,3519,3522,3526,3528,3532,3535,3537,3539,3546,3550,3554,3558,3565,3568,3571,3577,3580,3583,3586,3591,3592,3598,3607,3610,3611,3613,3617,3624,3628,3634,3636,3641,3645,3647,3652,3657,3662,3666,3667,3671,3675,3680,3686,3694,3696,3698,3700,3703,3708,3711,3714,3717,3720,3721,3727,3730,3736,3743,3748,3750,3757,3760,3763,3765,3770,3774,3779,3784,3788,3792,3798,3799,3803,3805,3812,3817,3820,3826,3831,3833,3836,3840,3848,3850,3852,3858,3860,3863,3866,3869,3872,3873,3876,3883,3887,3889,3894,3896,3897,3903,3906,3910,3915,3919,3925,3927,3931,3933,3935,3938,3939,3943,3947,3952,3958,3961,3964,3967,3969,3971,3973,3976,3984,3990,3995,3999,4001,4007,4009,4013,4017,4021,4024,4029,4033,4037,4040,4050,4057,4062,4065,4073,4075,4081,4085,4090,4096,4103,4105,4111,4113,4117,4122,4125,4130,4132,4133,4136,4141,4142,4144,4146,4147,4152,4157,4162,4167,4169,4174,4180,4187,4190,4195,4200,4206,4209,4214,4220,4227,4229,4234,4238,4244,4248,4253,4254,4257,4259,4262,4266,4269,4273,4276,4277,4281,4284,4286,4288,4291,4298,4303,4306,4310,4316,4321,4324,4327,4332,4334,4340,4348,4352,4357,4360,4362,4369,4373,4380,4384,4388,4396,4397,4400,4402,4404,4408,4411,4415,4418,4425,4428,4429,4435,4437,4441,4444,4446,4449,4455,4459,4467,4474,4477,4481,4484,4488,4494,4497,4505,4512,4517,4520,4525,4526,4532,4539,4543,4546,4547,4550,4553,4561,4564,4568,4573,4575,4577,4582,4587,4590,4593,4595,4598,4603,4608,4614,4619,4622,4632,4638,4644,4645,4651,4657,4663,4670,4674,4678,4681,4687,4693,4694,4697,4701,4706,4709,4714,4720,4722,4725,4729,4732}
Returns: 811
256
{88,250,160,118,121,87,83,48,133,154,253,109,127,208,95,12,67,197,61,7,152,196,124,157,233,121,256,44,38,156,197,228,11,97,66,132,249,177,188,135,237,147,118,59,134,81,160,92,2,105,241,20,41,89,72,109,122,33,48,135,162,79,82,51,61,51,216,229,28,4,125,61,188,139,143,221,136,11,141,160,124,39,251,188,25,157,20,204,89,185,136,78,26,186,236,168,201,67,208,71,132,143,76,37,170,228,182,134,245,133,194,137,100,65,147,166,4,112,124,56,108,60,10,165,254,201,157,193,101,236,97,169,147,240,159,91,121,4,120,11,10,215,240,50,164,28,171,77,230,149,74,37,2,144,76,155,46,199,123,214,101,219,120,238,186,188,153,39,197,176,123,3,45,205,218,148,63,50,247,180,135,104,136,247,201,3,147,109,128,158,202,169,199,33,226,183,6,85,63,23,28,177,184,50,143,85,157,45,124,63,53,93,43,217,209,58,7,15,45,11,121,103,95,48,115,131,180,115,237,6,233,89,85,177,248,41,10,33,46,238,72,182,189,121,127,162,231,38,11,90,11,222,77,42,66,161,200,13,247,177,95,89,245,89,39,95,139,42,62,148,34,103,226,110,69,92,202,196,130,83,230,241,156,205,30,238,145,193,90,222,147,186,17,175,184,158,253,204,70,77,237,233,168,51,185,148,239,56,84,54,96,190,99,209,230,123,122,252,160,110,256,59,120,98,16,25,178,229,14,12,183,230,158,153,209,164,155,217,149,8,30,232,158,251,59,159,226,211,22,104,94,105,23,223,9,28,137,112,255,126,177,23,166,39,120,8,19,177,22,229,77,203,201,243,68,188,138,172,19,200,210,221,245,105,6,139,196,79,221,173,9,232,247,233,204,3,97,103,6,34,29,5,57,247,200,23,28,134,138,56,102,90,243,160,176,95,10,212,49,235,236,130,124,173,126,225,205,88,94,226,108,247,244,29,142,41,203,110,192,173,132,235,69,218,163,220,22,10,53,54,6,59,163,50,118,127,137,101,115,77,44,6,112,28,82,213,226,33,113,104,238,151,8,156,249,111,174,41,85,190,187,102,151,252,206,168,251,145,84,188,40,250,39,104,39,83,199,16,176,237,53,4,29,48,102,79,60,217,130,85,222,113,116,221,126,175,33,211,166,58,173,52,176,73,94,142,87,90,101,147,40,102,153,67,74,173,96,115,27,119,108,104,73,10,164,172,130,47,139,56,157,203,203,129,38,29,250,25,116,97,163,254,56,222,153,231,14,131,36,103,12,140,22,244,120,234,255,139,200,131,191,207,194,174,94,89,49,184,215,43,230,176,134,247,212,24,88,102,239,167,126,51,70,189,70,151,250,186,245,42,56,245,8,28,35,192,238,92,130,89,100,15,139,147,5,155,129,121,10,36,244,8,83,147,99,223,219,197,170,119,48,193,40,102,85,131,177,242,105,43,142,38,195,38,117,139,180,48,35,127,42,236,116,77,85,43,50,242,15,209,149,190,97,222,72,221,132,228,48,31,2,210,135,79,33,8,243,181,161,19,1,118,225,169,42,207,248,16,214,109,241,53,25,89,67,122,204,100,245,112,103,46,60,95,151,111,94,241,204,122,134,234,20,103,184,91,135,216,169,134,31,186,35,25,74,10,227,70,212,22,87,197,150,107,77,201,91,53,226,105,199,120,35,20,143,83,134,81,71,29,71,255,35,4,220,30,146,152,37,57,24,115,180,67,38,35,168,14,154,68,193,42,109,178,240,89,171,162,157,163,60,122,212,90,29,51,37,99,150,27,136,103,212,249,193,167,157,130,223,146,70,91,23,74,5,248,250,217,174,218,57,232,107,243,114,106,128,51,85,207,84,137,51,10,238,244,109,224,205,175,174,193,172,183,166,164,222,152,15,62,59,147,46,47,83,232,145,172,86,123,209,153,138,128,52,216,99,149,174,42,74,37,90,237,249,183,182,126,205,71,33,45,213,170,216,54,135,153,110,80,218,205,10,16,85,87,10,143,242,65,143,102,26,86,67,115,237,194,49,114,240,76,237,242,175,182,70,230,125,221,195,118,82,60,187,165,21,99,108,200,5,47,128,176,168,129,186,21,217,106,3,152,176,242,228,119,181,190,171,7,161,35,190,172,38,113,105,49,141,138,75,6,218,50,225,58,245,207,26,160,214,206,184,235,4,44,76,108,210,41,9,57,168,168,59,179,65,47,31,123,73,14,30,6,239,211,213,99,14,180,28,198,68,70,89,246,244,137,171,190,129,246,38,47,32,251,54,123,164,22,108,9,59,148,100,82,173,165,76,14,185,133,110,70,125,61,140,182,89,93,107,71,147,48,176,36,70,176,132,102,68,169,163,29,164,120,107,11,78,214,83,62,107,89,136,70,216,92,241,200,223,43,192,184,58,160,182,151,20,102,199,198,38,145,89,6,48,82,87,1,15,6,162,232,121,35,196,244,221,237,193,206,77,86,208,207,83,194,78,62,149,252,167,160,180,32,33,165,91,200,104,254,146,94,106,20,137,14,181,106,193,127,171,24,254,10,25,200,241,252,136,66,120,17,70,170,93,26,144,51,20,151,130,88,140,219,101,44,73,27,187,203,32,201,243,140,171,103,19,7,39,14,153,185,227,190,247,139,106,179,114,77,158,225,240,192,176,238,33,155,90,252,216,163,250,206,210,208,106,242,29,15,19,201,78,88,131,149,51,93,28,216,81,60,177,182,107,85,218,69,146,161,136,47,203,139,231,70,18,176,239,61,159,173,38,2,180,113,223,216,211,110,6,178,48,120,224,230,99,242,116,234,221,112,59,94,100,3,153,60,236,199,20,214,112,110,177,200,11,40,234,254,130,60,164,105,134,121,56,7,129,189,38,142,103,125,39,247,23,153,143,246,41,103,146,112,127,73,173,215,243,238,215,103,117,185,56,41,131,184,36,197,115,252,189,35,37,33,64,11,215,69,21,23,123,195,12,83,183,148,198,74,217,55,41,90,99,204,230,103,135,249,140,111,235,33,89,173,42,106,238,107,43,9,124,7,34,85,76,6,38,48,167,149,168,115,6,69,182,13,10,100,230,214,62,192,235,26,208,89,114,55,122,255,130,212,146,145,198,134,199,60,98,254,128,179,178,69,203,55,9,200,213,242,228,132,136,236,74,228,97,208,244,143,200,105,204,161,96,207,149,154,97,256,51,139,215,157,229,253,219,154,215,62,36,120,243,220,33,240,119,92,151,202,238,58,65,221,78,215,34,72,163,211,107,32,116,5,137,2,52,82,180,51,117,36,162,55,48,166,71,24,133,73,121,228,118,152,10,63,187,232,131,86,137,221,233,220,62,102,30,51,74,84,64,92,72,100,24,205,37,29,36,210,107,181,240,181,67,186,119,127,135,53,20,204,65,118,18,208,75,231,77,93,113,171,103,128,58,27,14,250,196,185,109,180,144,117,115,30,194,188,187,51,128,40,11,217,67,84,20,33,158,176,199,254,201,12,227,219,113,219,164,164,166,57,73,205,140,256,240,228,95,91,216,120,163,157,56,43,233,79,22,235,103,201,67,150,175,241,79,111,69,46,172,28,137,233,110,47,51,123,250,127,21,203,216,9,48,122,68,85,7,201,119,233,47,72,200,157,111,146,124,72,121,81,3,161,17,43,136,186,216,9,47,51,62,214,58,159,7,147,40,116,205,86,87,100,53,196,53,180,51,29,4,244,171,55,45,36,195,62,216,45,213,96,226,96,156,46,165,139,54,202,232,17,229,165,80,97,29,2,16,32,46,48,25,63,17,202,46,79,66,74,22,108,78,147,11,26,176,9,218,149,213,112,143,69,205,166,131,10,209,234,137,121,12,141,153,49,105,104,164,198,210,165,151,18,62,39,106,249,62,245,234,21,26,228,103,32,126,246,208,91,170,178,205,159,161,24,98,74,55,168,36,172,20,90,171,56,181,98,246,50,35,247,163,81,176,115,117,76,63,131,95,15,213,81,136,238,214,10,223,253,51,87,209,107,2,246,66,135,102,216,134,232,97,220,69,24,76,120,48,240,206,121,97,206,249,48,180,181,216,108,226,109,4,184,55,177,50,139,204,126,102,66,186,193,108,215,116,161,132,192,128,214,182,100,15,148,29,25,163,230,133,206,174,108,53,5,104,188,78,252,94,3,56,134,40,185,184,84,106,165,230,37,246,205,243,159,241,98,208,102,73,15,29,66,80,176,109,50,80,215,218,134,19,46,17,16,194,60,138,22,107,186,78,112,68,81,205,249,94,42,142,116,195,139,45,144,46,87,226,233,88,37,41,129,172,84,93,90,133,113,4,139,114,243,124,124,251,107,247,155,58,248,103,81,39,246,190,177,216,160,18,202,56,160,165,115,118,85,136,194,97,214,116,102,41,186,232,146,131,216,236,52,3,98,227,174,136,227,199,136,30,230,183,241,21,97,71,80,106,39,1,151,98,17,225,117,27,234,220,14,87,108,147,96,6,49,43,14,71,207,213,215,95,222,1,176,222,34,84,5,145,161,133,109,29,4,220,189,33,50,202,58,125,185,19,81,237,79,110,55,151,87,253,123,30,19,6,147,224,1,98,64,161,139,159,167,87,34,140,208,26,168,222,114,65,237,253,180,122,244,136,225,75,170,12,224,208,163,128,157,165,138,144,123,233,233,116,79,243,4,251,102,216,175,216,131,49,254,159,222,140,17,231,168,224,63,241,190,244,56,188,204,12,244,8,62,105,130,197,31,25,60,170,51,88,11,35,75,85,8,172,48,95,251,178,58,195,200,110,15,95,73,213,216,165,169,185,174,59,183,57,214,162,104,88,2,48,65,39,154,170,245,19,195,17,91,47,204,227,102,3,69,213,147,41,49,73,12,91,80,51,130,223,199,194,140,20,13,68,53,228,81,220,95,33,77,102,87,106,195,117,33,35,198,214,212,15,65,247,120,170,22,192,207,248,169,242,157,140,148,180,3,198,197,67,183,224,74,194,254,27,169,256,149,154,163,177,205,203,238,235,139,226,163,17,255,252,167,27,95,153,183,20,28,186,91,24,165,177,103,116,248,202,96,168,239,66,142,216,121,201,87,251,163,130,213,116,185,224,176,253,113,16,137,217,164,134,108,243,176,47,38,53,110,56,137,183,25,237,23,115,137,17,213,50,168,72,142,252,243,154,9,223,168,204,114,16,10,96,99,133,35,74,202,233,56,7,63,104,52,149,32,46,36,251,63,164,13,111,186,96,67,238,26,117,158,1,190,76,235,193,32,146,43,166,125,164,75,154,254,243,74,203,149,80,226,40,100,145,23,43,155,32,103,107,130,9,138,200,120,218,41,128,147,41,66,59,184,232,96,65,218,210,67,97,105,11,6,184,207,185,95,110,78,227,18}
{1,2,3,5,6,7,8,9,10,11,12,14,16,17,18,20,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,51,52,53,54,55,56,57,58,59,60,61,62,63,65,66,67,68,69,70,71,72,73,74,76,78,80,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,99,100,101,102,103,104,105,106,107,108,109,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,128,129,130,131,132,133,134,135,136,138,139,140,141,142,144,145,146,147,148,149,150,151,153,154,155,156,157,158,159,160,161,162,163,165,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,205,206,208,209,211,212,213,215,216,217,218,219,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,237,238,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,257,258,259,260,261,262,263,264,265,266,267,269,270,271,272,274,275,276,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,313,314,315,316,317,318,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,339,340,341,342,343,344,345,347,348,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,367,368,370,371,372,373,374,375,376,377,378,380,381,382,383,384,385,386,388,389,390,392,393,394,395,396,397,398,399,400,401,403,404,405,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,432,433,434,435,436,437,438,439,440,442,443,444,445,446,447,448,451,454,455,457,458,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,499,500,501,502,503,504,505,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,529,530,531,532,534,535,536,537,538,539,540,541,542,543,544,545,546,548,549,551,552,553,554,555,556,557,558,559,561,562,563,564,565,566,567,568,569,571,572,573,574,575,576,577,578,579,580,582,584,586,587,588,589,590,591,592,593,594,595,597,598,599,600,601,602,603,604,605,606,607,608,610,612,613,614,615,616,617,619,621,623,625,626,628,629,630,631,632,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,650,651,652,654,655,656,657,658,659,660,661,662,663,665,666,667,668,669,670,671,673,675,676,677,678,679,680,681,682,683,684,686,687,688,689,690,691,692,694,695,696,697,698,699,701,702,703,704,706,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,740,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,772,773,774,775,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,804,805,806,807,808,809,810,811,813,814,815,816,818,819,820,821,822,823,824,825,826,828,829,830,831,832,833,835,836,837,838,839,840,841,842,844,845,846,847,848,849,850,851,852,853,854,855,856,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,877,879,880,881,882,884,885,886,887,888,889,890,892,893,894,895,896,897,898,899,900,902,903,904,905,906,909,910,912,913,914,915,916,917,918,920,921,922,924,925,926,927,928,930,931,932,933,934,935,936,937,938,940,941,943,944,946,947,948,949,950,951,952,953,954,955,956,958,961,962,963,964,965,966,967,968,969,971,972,974,975,977,978,979,980,981,982,983,984,985,987,988,989,990,991,993,994,995,996,997,998,999,1000,1002,1003,1004,1005,1006,1007,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1023,1024,1025,1026,1029,1030,1031,1032,1033,1034,1035,1036,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1052,1053,1054,1055,1056,1057,1059,1060,1061,1062,1063,1064,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1089,1090,1091,1092,1093,1094,1095,1096,1097,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1140,1141,1142,1143,1144,1146,1147,1148,1149,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1177,1179,1180,1181,1182,1183,1184,1185,1187,1188,1189,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1214,1216,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1232,1233,1234,1235,1236,1237,1239,1240,1241,1242,1244,1245,1246,1247,1248,1249,1250,1251,1252,1254,1255,1256,1257,1259,1262,1263,1264,1265,1266,1267,1268,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1282,1284,1285,1286,1287,1288,1289,1291,1293,1294,1295,1296,1297,1298,1299,1301,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1321,1322,1323,1324,1325,1326,1327,1329,1330,1331,1332,1333,1335,1336,1337,1338,1339,1340,1341,1342,1344,1345,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1364,1365,1367,1368,1369,1370,1371,1372,1373,1374,1375,1377,1378,1379,1380,1381,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1426,1427,1429,1430,1431,1432,1433,1434,1435,1436,1438,1439,1440,1442,1443,1444,1445,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1467,1468,1469,1470,1471,1473,1474,1475,1477,1478,1479,1480,1481,1482,1484,1486,1487,1488,1489,1491,1492,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1519,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1554,1555,1556,1557,1559,1560,1561,1562,1563,1564,1565,1567,1569,1570,1571,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1602,1603,1604,1605,1606,1607,1609,1610,1613,1614,1615,1616,1617,1618,1619,1620,1621,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1666,1668,1669,1670,1671,1672,1673,1674,1675,1677,1678,1679,1681,1682,1684,1685,1686,1687,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1706,1707,1708,1709,1711,1713,1715,1716,1717,1718,1719,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1743,1744,1745,1746,1748,1749,1750,1751,1752,1753,1754,1755,1756,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1774,1775,1777,1778,1779,1780,1781,1782,1783,1784,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1829,1830,1832,1833,1834,1835,1836,1837,1838,1839,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1867,1868,1869,1870,1871,1872,1874,1875,1876,1878,1879,1880,1881,1883,1884,1885,1887,1888,1889,1890,1892,1893,1894,1895,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1927,1928,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1941,1942,1943,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,2000,2001,2002,2003,2004,2005,2006,2007,2008,2010,2011,2012,2013,2014,2015,2016,2017,2018,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2049,2050,2051,2053,2055,2056,2057,2058,2059,2061,2062,2063,2065,2066,2067,2068,2071,2072,2073,2075,2076,2077,2078,2079,2080,2081,2083,2084,2085,2086,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2104,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2132,2133,2134,2135,2136,2138,2139,2140,2141,2142,2143,2144,2145,2146,2148,2149,2150,2151,2153,2155,2156,2157,2158,2159,2160,2161,2162,2164,2165,2166,2167,2168,2170,2171,2172,2173,2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2201,2203,2204,2205,2206,2207,2208,2210,2211,2212,2213,2214,2216,2217,2218,2219,2220,2221,2222,2224,2225,2226,2228,2229,2230,2231,2232,2233,2235,2236,2237,2238,2239,2241,2242,2243,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2257,2258,2260,2261,2262,2263,2264,2265,2266,2268,2269,2270,2271,2272,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2293,2294,2295,2296,2297,2298,2299,2300,2301,2302,2303,2304,2305,2306,2307,2308,2309,2311,2312,2313,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2341,2343,2344,2345,2347,2348,2349,2350,2351,2352,2354,2355,2356,2357,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2380,2381,2382,2383,2385,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2408,2409,2410,2411,2412,2413,2415,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2450,2451,2452,2453,2454,2456,2457,2458,2459,2461,2462,2463,2464,2465,2466,2467,2468,2470,2471,2472,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2489,2490,2491,2492,2493,2494,2495,2496,2497,2499,2500,2501,2502,2503,2504,2505,2506,2507,2508,2510,2511,2513,2514,2516,2517,2518,2519,2520,2521,2522,2523,2524,2526,2527,2528,2529,2530,2531,2532,2533,2534,2535,2536,2537,2538,2539,2540,2541,2542,2543,2544,2545,2546,2547,2548,2549,2550,2551,2552,2553,2554,2555,2557,2558,2559,2560,2562,2563,2565,2566,2567,2568,2569,2570,2571,2573,2574,2575,2576,2578,2579,2580,2581,2582,2584,2585,2586,2587,2588,2589,2590,2592,2593,2594,2595,2596,2597,2598,2599,2600,2602,2603,2604,2605,2606,2607,2608,2609,2611,2612,2613,2614,2615,2616,2617,2618,2619,2620,2621,2622,2623,2624,2625,2626,2627,2628,2629,2630,2631,2632,2633,2634,2635,2636,2637,2638,2639,2640,2641,2642,2643,2644,2646,2647,2649,2650,2651,2652,2653,2654,2655,2656,2657,2658,2659,2660,2661,2662,2664,2666,2667,2668,2670,2671,2673,2674,2675,2676,2677,2678,2679,2680,2681,2682,2683,2684,2686,2687,2688,2690,2691,2693,2694,2695,2696,2697,2698,2699,2700,2702,2705,2706,2707,2708,2709,2710}
Returns: 1705
512
{369,204,469,161,470,269,106,142,71,327,68,418,99,476,87,465,313,473,164,48,190,401,25,504,383,401,498,296,448,293,61,499,55,510,44,441,497,507,363,19,246,147,426,40,512,225,311,100,136,8,176,144,90,302,169,43,508,296,72,269,60,431,492,66,115,219,57,350,282,374,265,157,231,485,47,121,408,309,51,433,349,299,221,281,512,69,135,268,423,480,60,204,120,254,185,207,66,398,165,366,456,122,414,88,93,66,229,434,10,112,263,222,169,473,26,413,281,63,478,314,242,436,108,143,254,209,241,160,288,209,109,199,329,374,109,152,177,150,321,238,141,92,98,222,53,309,73,176,482,444,354,138,231,275,384,469,188,367,139,39,245,268,61,496,483,251,265,272,381,503,141,274,228,196,371,195,489,82,467,151,460,394,510,380,155,361,479,377,380,447,236,464,412,498,62,68,361,237,313,395,73,102,476,274,33,458,488,154,411,16,440,172,90,17,239,309,277,28,485,58,230,462,301,286,249,167,112,407,97,52,348,39,185,14,125,186,480,176,115,196,346,381,43,329,119,325,109,504,448,14,147,453,504,489,221,71,379,95,379,98,409,237,333,9,309,262,243,504,512,301,468,462,61,185,415,46,92,279,209,28,336,409,203,61,260,39,329,67,306,379,3,105,71,280,457,153,30,399,103,167,228,320,85,200,428,81,97,366,484,98,53,391,311,279,251,65,45,126,316,368,339,301,130,484,163,459,83,313,368,216,158,207,47,376,468,30,304,291,169,210,365,99,156,423,396,475,347,378,98,337,329,160,76,408,405,298,264,225,407,383,246,60,109,375,510,462,73,242,189,192,304,453,308,161,150,486,377,440,153,413,222,127,139,186,75,112,215,212,396,301,80,490,246,259,171,489,165,239,196,243,383,70,70,443,303,355,99,168,39,251,276,506,288,247,492,204,77,26,47,107,30,294,174,289,344,162,427,378,238,16,247,183,296,457,356,284,365,159,408,193,44,242,142,382,361,200,486,169,427,334,429,397,291,27,53,418,345,383,298,467,209,317,314,144,442,45,320,168,240,363,326,365,373,233,96,320,442,431,205,507,37,309,469,409,147,484,40,4,436,42,202,443,184,39,268,491,469,394,100,355,269,490,155,202,438,425,45,394,337,41,400,483,111,12,123,468,402,271,108,426,334,294,256,94,305,381,27,289,389,10,66,253,321,450,7,205,339,379,285,348,161,261,252,268,318,68,20,17,147,404,230,510,102,293,143,279,310,176,456,468,394,331,198,186,408,265,227,193,205,170,392,124,467,369,389,69,211,34,394,479,494,3,363,37,62,457,118,437,223,80,298,456,299,65,111,220,383,439,404,313,179,127,308,504,450,398,392,411,265,478,146,43,255,312,25,320,327,226,106,329,166,212,403,56,124,402,224,134,297,405,47,141,8,198,2,306,373,381,13,495,483,71,131,365,452,135,68,283,467,54,455,361,288,493,404,433,301,125,499,45,358,175,413,462,306,457,294,360,31,245,17,272,148,481,419,77,248,110,470,363,314,441,264,508,315,87,134,108,474,51,338,121,2,67,322,67,362,216,219,445,406,332,70,85,271,132,259,208,175,455,307,392,397,83,438,385,248,41,134,289,465,446,139,434,160,51,287,352,162,324,154,446,343,14,345,432,19,386,208,507,372,378,419,159,446,285,226,474,171,425,258,101,356,92,415,424,26,245,119,317,504,479,456,113,508,11,184,335,439,66,296,511,483,166,48,114,79,293,22,399,182,147,441,130,178,102,29,25,87,3,245,400,157,257,241,470,316,230,467,428,118,354,367,228,201,348,269,138,126,427,204,412,451,502,62,460,245,171,179,411,175,205,80,294,326,260,377,246,102,295,484,42,189,91,35,425,445,454,381,499,496,229,96,440,389,122,1,379,80,80,324,261,193,37,109,474,21,328,467,103,351,206,49,48,247,410,304,502,64,478,50,373,224,317,136,283,498,311,210,261,24,311,380,343,470,56,7,269,264,434,50,343,28,95,212,185,22,297,198,63,343,411,54,76,201,273,66,459,255,257,483,502,420,216,483,37,182,244,465,162,227,170,449,275,162,115,506,117,166,458,172,110,423,420,81,349,405,245,338,95,221,62,335,72,404,423,372,120,11,259,27,113,160,417,85,274,383,462,428,95,86,153,22,266,21,124,230,244,328,118,45,78,184,305,30,315,423,241,432,64,313,306,249,70,344,12,163,377,200,488,18,211,1,301,503,227,220,57,95,248,43,339,115,176,494,204,201,173,254,319,307,54,447,104,228,85,178,233,244,40,407,2,55,295,67,55,473,310,307,176,14,424,381,326,484,397,465,4,63,245,237,306,201,71,271,20,480,50,461,187,89,65,4,183,336,457,125,164,302,90,353,38,402,206,155,63,464,418,482,412,361,314,71,236,257,125,235,286,288,76,175,15,97,47,421,8,124,207,102,319,296,229,348,129,189,380,174,293,273,172,138,121,304,74,300,487,66,101,71,344,300,487,48,122,332,49,137,498,268,279,24,205,265,343,488,250,502,67,216,284,123,45,91,115,254,503,336,348,353,250,159,364,132,399,105,25,191,351,180,380,327,473,153,176,253,64,50,75,286,490,226,316,466,183,459,420,456,233,208,288,180,269,468,336,197,21,411,404,252,311,28,69,430,199,235,10,362,234,489,352,246,170,99,217,319,437,368,55,395,252,375,263,422,43,142,308,77,6,417,155,145,418,294,154,193,156,407,345,198,131,482,138,260,483,117,67,326,433,189,187,346,23,141,194,207,11,275,244,96,419,475,234,146,382,417,1,321,63,185,154,491,449,301,301,500,85,471,512,310,287,317,243,474,386,293,67,130,112,166,8,461,348,409,455,329,423,70,78,250,82,140,489,239,272,181,495,127,220,421,151,35,419,82,296,73,450,232,153,488,405,354,499,18,197,264,3,366,126,174,304,512,339,124,162,116,310,350,365,209,419,123,197,86,478,369,500,6,241,355,339,146,280,153,310,255,16,159,126,474,497,471,67,122,43,168,256,380,126,158,361,106,482,39,72,323,431,220,154,146,403,465,98,139,348,429,192,222,7,270,287,441,7,280,419,229,337,505,65,450,97,411,122,132,19,465,279,510,260,225,463,20,498,360,118,243,374,368,476,277,130,421,96,325,484,421,247,213,90,169,320,141,427,201,60,250,170,175,296,49,285,406,274,96,502,41,482,267,406,510,165,329,352,324,323,244,342,134,261,62,22,336,413,1,296,4,4,423,336,296,175,397,85,277,118,122,382,39,505,464,493,283,243,262,2,457,477,303,218,278,451,310,295,114,346,248,200,303,12,79,155,135,220,448,109,58,247,156,309,344,241,14,23,270,465,483,322,503,76,135,36,511,229,57,281,137,249,340,333,333,295,260,69,295,289,235,338,476,327,182,494,481,68,242,258,511,357,35,488,490,65,105,300,182,242,241,510,149,32,212,109,34,239,263,486,285,236,149,102,141,290,378,126,221,397,291,345,468,361,478,424,507,251,82,435,377,207,373,127,293,187,104,385,75,120,45,43,358,493,286,74,215,283,473,13,436,492,80,106,138,23,162,152,54,458,390,332,458,465,19,126,486,151,9,166,478,381,198,144,402,211,440,294,499,240,269,248,475,487,332,400,278,409,409,296,61,268,319,483,365,81,402,39,431,391,262,112,389,21,2,408,499,142,215,367,268,87,282,36,300,453,158,28,191,508,47,156,444,434,360,202,481,185,500,397,268,2,226,6,27,224,208,390,73,14,295,307,249,82,468,213,171,118,405,442,249,416,308,3,336,318,462,61,99,276,448,191,332,71,160,469,199,440,329,403,236,135,258,479,119,253,100,269,468,238,479,352,455,39,128,432,505,68,468,365,98,292,450,100,13,503,156,178,411,228,145,426,123,45,99,138,235,478,331,93,106,7,413,175,144,486,284,307,256,362,168,263,132,234,338,207,330,61,224,391,173,195,315,158,7,377,346,186,408,185,233,323,194,227,501,481,386,471,481,465,105,233,506,62,28,446,279,414,484,107,502,376,442,5,48,229,450,228,258,431,353,220,124,256,142,457,42,46,364,7,159,381,478,141,302,81,298,474,76,461,178,280,62,141,56,82,18,461,40,301,243,44,258,243,429,497,43,396,302,184,25,137,451,80,26,55,271,152,214,111,132,79,11,452,450,217,511,387,288,310,430,23,316,189,463,344,141,103,110,354,439,497,302,228,121,129,214,220,8,263,110,52,496,298,468,250,137,39,90,331,413,462,238,425,208,131,238,224,29,2,241,335,214,387,391,8,337,222,311,5,213,315,225,115,34,267,13,235,369,29,428,366,176,451,338,496,127,120,278,50,338,388,220,252,264,187,275,182,357,454,185,466,440,511,187,159,340,356,475,146,379,230,391,110,461,512,66,317,108,315,201,401,152,304,52,287,458,366,305,124,507,160,156,377,46,345,165,98,39,253,280,342,424,94,332,186,152,486,210,233,509,345,275,304,474,416,426,342,435,359,394,283,173,466,464,68,294,269,93,44,495,277,93,295,328,439,326,100,328,385,491,147,82,17,197,1,259,281,225,138,258,73,369,125,9,317,356,278,431,426,53,70,367,243,396,287,208,416,70,331,396,67,249,482,314,161,49,263,260,364,323,466,183,507,446,293,186,306,365,104,51,14,271,97,39,3,229,167,303,243,450,465,499,59,281,194,167,14,360,295,344,72,324,462,37,402,296,286,297,494,121,206,41,373,217,423,16,110,138,272,417,473,108,7,460,464,196,42,161,362,246,373,9,20,54,138,264,182,296,365,420,399,376,497,72,507,396,333,485,50,141,443,6,371,342,354,395,503,506,344,445,158,286,8,53,328,147,481,24,397,334,2,257,143,39,20,319,424,165,416,487,183,386,179,438,4,393,230,432,236,242,405,15,435,405,328,273,72,201,91,32,288,290,36,452,186,512,20,230,504,290,408,289,239,389,467,209,410,34,477,43,365,325,114,160,154,452,450,367,439,134,139,399,74,129,360,447,172,422,488,501,482,2,232,301,488,458,99,27,308,242,258,63,109,409,139,356,371,382,116,449,341,134,246,143,281,116,285,62,450,205,416,55,100,318,143,120,487,168,313,331,108,407,52,230,339,463,197,427,346,64,417,159,338,223,109,409,190,148,62,165,151,175,232,318,391,326,488,260,512,38,348,482,415,281,166,440,173,431,19,280,425,236,31,459,44,462,242,139,493,226,482,408,508,239,264,410,491,254,57,434,48,265,288,123,151,9,401,78,365,23,434,275,454,9,299,435,261,256,278,56,462,35,47,159,112,268,355,141,205,59,200,4,499,94,459,169,433,281,353,38,158,161,491,195,362,121,180,380,121,357,475,129,351,193,454,72,26,75,120,58,146,191,357,94,351,391,435,321,391,62,360,265,414,471,340,378,359,188,51,382,509,375,275,231,352,33,437,206,317,36,357,100,461,438,384,208,185,201,222,309,282,72,16,496,215,476,144,434,243,169,498,81,432,8,65,418,188,132,492,319,312,303,482,407,203,433,440,88,147,88,37,231}
{2,3,4,5,6,7,8,10,11,12,13,14,16,17,18,19,21,22,24,26,28,29,30,33,35,37,38,39,40,43,44,46,47,48,50,53,55,56,58,60,62,64,65,66,67,69,71,72,73,75,77,79,81,82,83,85,88,89,92,93,94,95,96,97,98,99,102,105,106,108,110,113,115,116,117,120,122,123,126,127,130,132,137,138,139,140,142,143,146,148,150,151,152,154,156,157,158,162,166,167,168,169,172,175,176,177,180,183,185,187,188,190,192,194,195,196,197,198,200,201,202,204,205,206,208,210,212,213,215,216,218,219,221,224,227,228,229,230,231,232,233,235,236,238,239,240,244,245,246,247,250,251,253,256,257,258,259,262,264,265,266,267,268,269,270,271,274,275,278,279,281,283,284,285,286,287,289,290,291,292,294,295,296,298,299,300,303,304,305,307,309,310,312,313,314,315,316,317,318,319,320,321,323,324,325,326,327,328,330,333,335,337,338,339,340,341,342,343,346,347,349,350,352,353,354,356,357,359,360,361,362,363,364,365,366,367,370,372,373,374,376,378,381,382,383,384,385,386,389,390,392,393,394,395,396,398,401,403,404,405,406,407,408,410,411,413,414,416,418,419,420,421,422,424,426,429,431,433,434,435,436,437,438,441,442,445,446,447,449,450,451,452,454,455,456,457,458,460,461,465,467,468,470,471,472,473,474,476,477,479,481,482,484,485,486,487,489,491,492,494,495,496,497,498,500,503,504,505,506,507,508,509,512,513,514,515,518,519,521,523,524,525,526,527,528,530,532,534,536,538,540,542,544,545,548,549,550,551,552,553,554,556,558,559,560,562,567,568,572,574,575,577,578,580,581,582,584,587,588,590,592,593,594,596,600,602,604,605,607,609,610,611,612,613,616,617,618,619,620,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,641,642,643,645,646,647,648,649,651,652,654,656,657,658,661,663,664,665,666,667,669,670,672,673,676,678,680,681,682,683,684,685,686,688,691,692,694,695,697,698,700,701,702,703,705,707,708,710,711,713,714,717,718,719,720,721,723,725,726,727,730,731,732,733,735,736,738,739,740,742,743,744,745,747,748,751,752,754,755,757,758,759,761,763,765,767,769,770,771,772,773,774,775,777,778,780,782,783,784,785,787,788,789,791,792,793,794,795,797,798,799,800,801,803,806,808,809,810,811,812,813,815,816,818,819,821,824,826,827,828,829,831,832,834,835,836,837,838,839,841,842,843,844,846,848,849,850,851,852,853,855,856,858,859,860,861,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,881,882,883,884,885,886,887,888,889,890,891,892,893,895,896,897,898,900,901,903,904,905,906,907,909,912,913,915,917,919,921,923,925,926,928,930,931,932,934,936,937,939,942,944,947,948,951,952,953,954,955,956,959,960,961,963,965,967,968,969,970,971,972,974,975,976,977,978,979,981,983,984,985,986,987,988,991,994,996,997,998,1000,1002,1003,1004,1005,1008,1010,1012,1013,1014,1016,1019,1020,1022,1024,1026,1029,1030,1031,1033,1035,1038,1040,1041,1042,1043,1045,1046,1048,1049,1051,1052,1053,1054,1056,1057,1058,1060,1062,1063,1065,1067,1069,1071,1072,1073,1074,1075,1076,1079,1081,1083,1085,1086,1087,1088,1089,1090,1093,1095,1096,1097,1099,1101,1102,1104,1106,1109,1110,1112,1113,1114,1115,1117,1118,1120,1121,1122,1123,1124,1126,1128,1129,1130,1132,1134,1135,1137,1140,1142,1144,1145,1146,1148,1149,1150,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1164,1165,1168,1169,1170,1172,1174,1175,1176,1177,1178,1181,1184,1186,1188,1189,1190,1191,1193,1195,1196,1198,1200,1201,1202,1203,1204,1206,1208,1209,1210,1212,1213,1215,1216,1217,1219,1220,1222,1224,1226,1227,1228,1229,1230,1231,1233,1234,1235,1237,1241,1242,1244,1245,1247,1251,1252,1254,1256,1257,1258,1260,1261,1262,1263,1264,1267,1268,1270,1271,1272,1274,1275,1276,1277,1278,1281,1283,1286,1287,1292,1293,1294,1296,1297,1298,1299,1301,1302,1304,1305,1306,1308,1309,1310,1311,1312,1313,1315,1316,1317,1318,1319,1320,1321,1323,1324,1328,1329,1330,1333,1335,1336,1337,1338,1339,1340,1342,1343,1346,1347,1348,1349,1350,1351,1353,1354,1355,1356,1358,1360,1362,1364,1365,1367,1369,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1386,1388,1389,1390,1394,1395,1396,1401,1402,1403,1404,1405,1406,1409,1411,1412,1414,1415,1416,1417,1418,1419,1421,1422,1423,1424,1427,1428,1429,1430,1432,1434,1435,1436,1438,1441,1442,1444,1445,1447,1448,1449,1450,1451,1452,1453,1455,1456,1457,1461,1463,1464,1466,1467,1468,1469,1470,1472,1473,1474,1475,1477,1478,1479,1480,1481,1483,1484,1486,1487,1488,1489,1491,1493,1494,1495,1496,1497,1499,1501,1503,1505,1506,1508,1510,1511,1513,1515,1518,1519,1521,1523,1524,1525,1526,1528,1529,1530,1533,1536,1538,1539,1540,1541,1543,1544,1545,1546,1547,1548,1549,1550,1551,1553,1555,1557,1558,1559,1561,1563,1564,1565,1567,1570,1571,1574,1576,1578,1579,1581,1582,1583,1584,1585,1586,1587,1591,1593,1594,1596,1599,1601,1602,1605,1607,1608,1609,1612,1614,1615,1618,1619,1620,1623,1626,1627,1628,1629,1630,1632,1633,1634,1635,1636,1638,1639,1641,1644,1645,1646,1648,1649,1651,1652,1653,1654,1655,1656,1657,1659,1661,1662,1663,1664,1666,1668,1670,1672,1674,1676,1679,1680,1681,1684,1685,1687,1688,1689,1690,1691,1692,1693,1694,1695,1697,1698,1700,1702,1703,1704,1706,1708,1709,1712,1713,1716,1718,1719,1722,1724,1725,1727,1728,1730,1731,1732,1734,1735,1736,1737,1739,1741,1742,1745,1746,1747,1748,1749,1750,1752,1754,1756,1757,1759,1760,1761,1762,1763,1766,1767,1769,1770,1772,1775,1777,1778,1779,1780,1781,1782,1785,1786,1787,1789,1790,1793,1794,1797,1798,1800,1803,1805,1806,1807,1809,1810,1812,1814,1816,1817,1818,1820,1821,1822,1823,1824,1825,1828,1830,1831,1832,1833,1834,1835,1836,1838,1840,1841,1842,1844,1846,1848,1849,1851,1852,1854,1855,1856,1858,1859,1860,1861,1863,1864,1865,1866,1867,1868,1869,1871,1873,1874,1876,1877,1878,1881,1884,1886,1887,1889,1890,1892,1893,1896,1897,1898,1901,1902,1904,1905,1907,1909,1910,1912,1913,1914,1915,1917,1920,1921,1923,1924,1925,1927,1928,1930,1933,1936,1940,1943,1944,1947,1948,1949,1951,1952,1953,1954,1955,1956,1957,1958,1959,1961,1962,1964,1966,1968,1970,1971,1973,1976,1977,1979,1980,1982,1986,1987,1988,1989,1991,1995,1996,1998,1999,2002,2004,2006,2007,2008,2010,2012,2013,2014,2015,2016,2019,2020,2022,2023,2025,2026,2028,2029,2031,2033,2036,2037,2039,2041,2042,2044,2045,2046,2048,2049,2050,2051,2052,2053,2054,2055,2057,2058,2062,2063,2065,2067,2068,2069,2070,2071,2073,2074,2075,2078,2079,2080,2081,2083,2084,2085,2086,2087,2088,2090,2091,2093,2094,2096,2097,2099,2100,2102,2103,2105,2108,2110,2111,2113,2115,2116,2117,2118,2119,2123,2124,2125,2127,2128,2130,2131,2133,2135,2136,2137,2138,2139,2140,2141,2142,2144,2147,2149,2150,2151,2153,2154,2156,2157,2158,2160,2161,2163,2165,2167,2170,2172,2173,2176,2178,2179,2180,2184,2186,2188,2190,2192,2194,2195,2196,2198,2199,2201,2202,2203,2204,2205,2207,2209,2211,2212,2213,2216,2217,2218,2220,2221,2223,2224,2225,2226,2228,2229,2230,2231,2233,2235,2236,2237,2239,2240,2242,2245,2249,2250,2251,2255,2256,2257,2258,2259,2260,2263,2264,2266,2268,2269,2270,2271,2273,2276,2277,2279,2281,2284,2286,2288,2289,2291,2292,2293,2295,2296,2298,2299,2300,2301,2303,2305,2306,2307,2309,2310,2312,2313,2314,2315,2317,2318,2319,2322,2324,2325,2327,2330,2331,2333,2334,2335,2336,2337,2340,2341,2342,2344,2345,2346,2347,2348,2350,2351,2352,2353,2354,2356,2357,2358,2359,2360,2362,2365,2367,2369,2371,2373,2375,2378,2379,2382,2383,2385,2387,2388,2389,2390,2391,2393,2394,2395,2397,2398,2400,2401,2402,2403,2404,2405,2406,2407,2408,2409,2411,2412,2413,2416,2417,2419,2420,2423,2424,2425,2427,2428,2429,2430,2432,2434,2435,2437,2438,2440,2442,2443,2445,2446,2447,2448,2449,2451,2452,2453,2455,2456,2457,2458,2460,2461,2462,2463,2464,2467,2469,2470,2472,2473,2475,2477,2479,2480,2481,2482,2484,2485,2486,2487,2488,2489,2492,2493,2497,2499,2502,2503,2505,2506,2507,2508,2509,2510,2511,2512,2513,2516,2517,2520,2522,2524,2526,2528,2530,2531,2532,2533,2535,2536,2537,2540,2542,2544,2546,2547,2548,2550,2551,2553,2556,2558,2559,2561,2563,2564,2565,2567,2568,2569,2570,2573,2574,2575,2576,2578,2579,2581,2582,2583,2584,2586,2589,2590,2592,2593,2594,2595,2597,2599,2601,2602,2603,2604,2605,2607,2609,2611,2614,2616,2618,2619,2620,2621,2623,2624,2625,2627,2628,2630,2632,2633,2635,2637,2639,2640,2643,2644,2646,2648,2650,2651,2653,2654,2655,2656,2657,2661,2662,2663,2665,2667,2668,2670,2674,2675,2678,2680,2681,2684,2685,2686,2689,2690,2691,2693,2695,2696,2697,2698,2700,2701,2702,2704,2705,2706,2707,2708,2709,2712,2713,2714,2715,2716,2717,2718,2720,2721,2722,2724,2726,2728,2729,2730,2731,2732,2734,2737,2738,2740,2741,2742,2743,2744,2745,2747,2749,2750,2751,2753,2754,2755,2757,2760,2761,2762,2763,2764,2766,2767,2770,2771,2772,2776,2778,2779,2780,2781,2782,2785,2786,2788,2789,2790,2791,2792,2793,2794,2795,2796,2798,2799,2801,2802,2803,2805,2806,2807,2809,2810,2811,2812,2814,2815,2817,2818,2820,2821,2824,2825,2826,2829,2831,2833,2835,2836,2839,2840,2841,2842,2843,2844,2846,2847,2848,2852,2853,2854,2855,2858,2859,2861,2862,2863,2864,2865,2867,2868,2870,2871,2872,2876,2878,2879,2880,2883,2884,2885,2886,2887,2889,2891,2892,2894,2896,2898,2900,2902,2903,2904,2907,2908,2909,2911,2913,2914,2916,2917,2918,2920,2921,2922,2924,2925,2930,2932,2934,2935,2936,2938,2939,2941,2944,2945,2946,2949,2952,2954,2955,2956,2957,2958,2959,2960,2961,2963,2964,2965,2967,2968,2969,2971,2972,2973,2975,2976,2977,2978,2979,2982,2983,2984,2985,2986,2989,2990,2991,2994,2996,2997,2998,2999,3001,3002,3003,3004,3005,3006,3007,3008,3010,3011,3012,3014,3015,3016,3018,3019,3020,3021,3022,3025,3026,3027,3028,3029,3031,3032,3033,3034,3036,3038,3040,3041,3042,3045,3047,3049,3050,3051,3052,3054,3057,3059,3060,3061,3062,3063,3064,3066,3071,3073,3075,3076,3078,3079,3080,3084,3085,3086,3087,3090,3091,3093,3096,3097,3098,3100,3101,3102,3103,3105,3107,3108,3110,3112,3113,3114,3115,3117,3118,3120,3121,3122,3123,3124,3126,3127,3128,3130,3131,3133,3134,3135,3137,3139,3141,3143,3144,3146,3149,3153,3154,3155,3156,3158,3160,3161,3162,3165,3167,3168,3169,3172,3174,3176,3177,3178,3179,3180,3181,3182,3183,3186,3191,3193,3194,3196,3197,3199,3201,3202,3203,3205,3207,3208,3210,3213,3214,3215,3217,3218,3220,3221,3222,3223,3224,3227,3228,3230,3231,3232,3233,3234,3235,3236,3237,3239,3240,3241,3243,3244,3246,3249,3250,3252,3255,3256,3257,3260,3264,3267,3268,3270,3271,3272,3274,3275,3277,3279,3281,3282,3284,3287,3288,3289,3291,3294,3295,3296,3298,3299,3300,3301,3302,3303,3304,3305,3307,3308,3309,3312,3314,3315,3316,3317,3318,3320,3321,3322,3324,3325,3327,3329,3332,3334,3335,3338,3341,3342,3343,3344,3346,3348,3349,3352,3354,3355,3356,3358,3361,3362,3363,3365,3366,3367,3369,3370,3371,3373,3374,3376,3378,3379,3380,3381,3384,3386,3388,3389,3391,3392,3394,3395,3396,3397,3398,3399,3400,3401,3403,3404,3405,3406,3408,3410,3411,3412,3413,3414,3415,3419,3420,3421,3422,3423,3424,3425,3426,3429,3430,3431,3432,3433,3434,3435,3438,3440,3441,3442,3444,3445,3447,3448,3449,3451,3453,3454,3455,3457,3458,3459,3460,3461,3462,3463,3464,3465,3466,3468,3469,3470,3471,3472,3473,3474,3476,3477,3479,3480,3481,3482,3484,3485,3486,3487,3489,3490,3491,3492,3495,3496,3497,3498,3499,3503,3504,3508,3511,3512,3514,3516,3517,3520,3521,3522,3524,3525,3526,3527,3528,3529,3531,3533,3534,3535,3537,3538,3539,3542,3544,3545,3549,3550,3551,3552,3553,3554,3557,3559,3561,3563,3565,3567,3568,3571,3573,3575,3576,3578,3579,3580,3582,3584,3586,3587,3589,3592,3593,3595,3596,3599,3600,3603,3604,3606,3607,3608,3610,3611,3613,3615,3616,3618,3619,3620,3622,3624,3625,3627,3628,3629,3630,3631,3633,3635,3637,3638,3639,3640,3641,3644,3645,3646,3648,3651,3653,3655,3657,3659,3660,3662,3663,3665,3666,3668,3669,3672,3674,3677,3678,3680,3681,3685,3686,3687,3689,3690,3693,3696,3698,3699,3701,3702,3703,3704,3705,3707,3708,3710,3715,3718,3719,3720,3721,3723,3724,3725,3727,3728,3730,3733,3734,3735,3737,3738,3739,3741,3742,3743,3746,3747,3749,3750,3753,3754,3757,3759,3760,3761,3764,3767,3768,3769,3771}
Returns: 1787
32
{8,16,25,7,16,26,10,8,24,27,15,5,12,25,32,20,23,23,3,18,32,9,13,15,26,19,31,11,6,31,14,32,31,29,16,7,11,7,22,24,12,24,16,25,2,32,29,8,31,5,23,8,31,31,17,2,9,23,28,6,25,10,13,28,24,11,3,14,13,4,19,21,30,23,31,6,2,15,9,21,17,4,29,13,10,27,21,7,20,2,29,31,18,30,17,28,24,1,29,6,18,6,7,8,8,1,7,10,32,9,20,23,8,24,19,27,22,3,27,27,3,22,17,11,27,31,17,23,10,12,32,11,27,9,29,18,7,23,4,11,7,15,10,8,25,32,30,16,18,17,9,32,13,31,15,12,4,1,1,31,28,9,27,10,3,10,17,9,5,31,5,31,6,28,10,23,12,4,5,10,3,16,23,3,31,9,1,22,18,32,26,1,14,22,4,6,10,13,2,31,29,24}
{26,43,59,74,100,124,148,164,183,195,219,236,262,278,298,316,341,365,388,410,426,443,464,491,512,527,552,582,604,625,645,660,674,695,715,730,746,762,784,804,823,841,858,874,896,924,944,958,980,1000,1019,1038,1056,1080,1109,1126,1145,1165,1189,1216,1243,1262,1284,1309,1328,1343,1365,1386,1407,1428,1447,1474,1496,1518,1547,1569,1591,1605,1624,1644,1667,1692,1717,1738,1757,1776,1798,1814,1827,1855,1870,1891,1921,1946,1968,1993,2016,2031,2054,2076,2092,2114,2137,2161,2176,2198,2214,2240,2262,2285,2313,2338,2354,2371,2389,2409,2433,2454,2474,2493,2509,2525,2549,2575,2594,2616,2644,2667,2681,2705,2725,2750,2775,2795,2818,2832,2845,2864,2882,2899,2917,2938,2957,2978,2995,3013,3031,3047,3067,3093,3113,3134,3156,3174,3192,3215,3242,3260,3277,3296,3315,3336,3360,3384,3410,3428,3445,3463,3478,3505,3530,3552,3570,3598,3616,3636,3652,3676,3704,3723,3735,3754,3778,3809,3826,3847,3867,3882,3902,3926,3951,3984,4012,4041,4059,4073,4100,4115,4138,4154,4181,4208}
Returns: 143
2048
{1590,1149,435,548,1283,1854,1466,586,728,1331,774,318,266,25,689,1173,1143,1487,1551,789,1755,1522,7,1043,1514,592,1651,286,1249,1338,1598,1068,344,1371,583,1754,1175,368,667,1140,1904,1846,1913,1890,1924,62,393,1062,522,1208,1835,1952,433,42,1319,1073,721,1516,2044,390,808,925,529,1317,121,1585,592,1666,1019,784,1638,67,1790,421,915,377,101,802,278,1271,387,1431,1942,660,1160,1374,379,1544,1615,978,237,295,327,1151,339,963,1907,654,889,496,1502,1777,1293,621,1189,1207,1543,522,924,1123,135,1597,1227,113,550,199,876,1316,51,42,2005,908,806,1221,1685,1057,188,221,848,1971,1883,643,1613,1597,289,253,1625,553,155,1217,1956,987,1377,43,862,1228,782,235,841,853,424,1525,72,52,845,990,689,1328,37,513,1930,172,1756,1361,1584,1232,1392,703,1694,472,1036,543,389,634,414,998,134,1724,64,1991,1639,1375,1542,1,1216,1545,1454,1379,1677,1680,436,612,1359,1116,915,93,207,1923,169,182,79,75,1519,1324,1751,273,980,1394,931,1527,975,1637,749,411,487,1688,837,514,1312,1634,1896,820,756,1497,1216,1426,807,453,852,1152,764,396,1111,1867,150,810,452,296,337,1963,619,1770,82,583,869,156,1274,1569,411,861,998,702,982,1008,2048,1470,57,1305,1204,249,1611,1431,1471,1798,382,114,1259,1354,1802,2000,577,559,1323,1477,1858,1941,320,128,677,1432,1531,1845,1679,2013,703,836,157,2033,393,1486,47,490,293,1162,1293,1393,1569,447,1628,1111,1531,627,1997,344,1291,914,356,1364,338,581,1186,1790,473,1553,218,351,1122,824,1891,1985,320,684,1984,570,1979,359,875,1309,1019,1060,179,1645,642,1448,1090,40,1102,1349,289,916,599,281,1958,456,1702,885,1177,1994,1367,1318,730,224,2023,1764,814,116,463,721,1894,1476,1508,1054,2047,1707,292,1537,1326,1085,150,1230,1777,930,1399,940,513,1879,1169,1912,656,321,910,913,159,1110,327,2026,1335,1335,1166,89,826,1031,1938,1089,627,1762,1281,740,1923,963,1827,1069,1974,575,197,1924,1089,356,842,594,1369,1073,1368,1523,643,1904,427,396,763,1645,1554,1742,1648,214,1887,463,1097,844,2007,855,1468,1385,795,638,1316,971,964,1612,979,630,1219,497,1605,1033,610,1682,1457,1208,1310,1022,1370,1148,742,1676,383,746,519,839,1443,55,1028,1236,2043,587,1474,789,29,636,1509,1319,1957,82,499,394,1088,2023,1722,593,971,1758,180,1009,1107,373,1411,979,885,562,106,246,621,445,135,1051,1581,494,200,1669,1306,1678,1804,1541,1736,109,406,809,1200,845,2001,643,1555,1460,1477,1189,1132,588,2008,278,400,1350,1875,1933,1090,1397,1795,4,1069,43,640,1466,645,118,530,753,274,1634,241,839,1627,209,893,185,645,1304,1844,1013,1552,516,1736,844,231,220,307,1201,1608,1570,961,1618,2020,1314,1066,1801,289,1298,324,868,451,1116,1686,1624,1603,1744,249,1179,766,1514,171,113,1777,1762,1964,69,521,309,488,1418,792,358,1969,643,363,1840,561,1342,1642,990,1258,920,1058,1423,1823,96,1678,1568,1003,947,1630,253,2023,362,1390,420,2009,1786,1695,1427,1149,1882,1181,1912,1134,1700,1328,1755,1646,181,247,1826,964,1498,545,680,1016,1666,1894,707,355,835,936,1035,2031,264,1519,1709,1565,480,268,1451,750,526,1527,1232,572,1567,20,1226,1130,614,1756,1578,1423,1499,1280,61,1053,662,473,1686,1757,1047,1828,161,1628,90,588,314,1605,825,1558,274,2022,1227,1884,1503,16,661,1423,434,1952,249,1548,369,1927,1539,2031,1859,1754,183,1212,1542,836,83,386,1305,668,1382,811,147,1690,870,128,182,645,1158,1019,1209,1421,678,2002,76,958,2010,1724,217,743,1729,1198,1916,145,1752,913,1729,500,845,253,1927,1840,831,872,1854,1898,314,1711,586,1057,1173,477,209,1800,716,491,323,1769,72,1987,983,1389,2016,562,1003,380,1620,1889,102,1979,852,1148,684,1265,1047,1390,1071,1156,1101,591,1470,4,317,967,163,905,39,992,298,1534,1129,1276,940,986,984,1347,324,1643,1920,423,1853,477,1421,177,1255,79,1356,674,1534,189,329,496,1194,1335,1097,1310,1386,1230,1360,218,106,723,1115,1964,1938,1655,1309,803,1635,906,1856,298,224,1812,957,1858,298,151,1408,1215,20,880,68,1194,967,569,920,1992,208,334,303,1858,1337,1148,1348,222,751,1939,1399,1579,1720,289,1686,229,757,657,1056,2019,489,307,1189,315,480,2,1290,1987,1625,714,433,1036,1186,56,1991,738,1927,392,619,1483,1416,1034,1869,1137,1725,597,1074,228,988,259,823,894,1550,1259,1557,1704,9,1892,371,1608,940,1961,87,629,1151,1912,1293,268,1778,1096,65,1590,1457,1473,253,103,614,1518,11,301,1379,1939,1951,339,2025,807,1186,1045,1951,916,438,697,1657,84,1303,1975,398,950,440,1717,699,271,378,1237,1153,46,555,896,1427,277,233,1688,372,1258,2012,1560,1571,1845,163,628,845,1309,696,675,1636,1743,2011,653,46,604,529,157,945,1651,1562,426,1030,1749,786,718,1668,1048,1022,442,204,1073,562,1310,1714,389,16,2037,652,670,609,1096,869,1379,893,925,1957,1428,1737,1392,41,1936,1163,1647,1905,1486,1498,1448,585,298,1651,1988,940,532,1651,882,968,751,137,1391,724,584,491,1596,832,1632,91,1880,983,587,1992,483,496,74,1196,1263,1356,1092,485,1610,820,1320,252,1379,1159,965,466,1279,709,500,880,1469,719,1377,567,266,244,1502,228,481,247,55,258,1759,1592,912,1254,1904,941,249,294,1143,333,602,1385,931,1209,2042,1205,942,1324,512,1016,1829,1929,1478,539,727,1580,1413,46,1257,310,977,323,409,1936,923,314,781,1636,198,1902,540,1218,1330,1594,1748,823,500,648,141,914,1196,1847,1717,933,1390,1723,1280,1717,580,648,1940,1143,609,777,1468,464,1077,1111,1055,1842,1824,962,497,600,787,47,1895,1342,1661,909,1770,658,1280,1593,1446,140,2027,1489,959,1516,1056,7,90,513,2038,1871,389,16,1780,681,1180,2038,150,940,26,482,783,1499,1236,268,749,174,381,445,1204,528,193,418,1516,520,1997,1586,2026,288,235,1075,1903,613,1004,1177,387,1902,1143,1764,1879,138,1229,1709,170,1335,635,651,1579,338,386,1166,884,487,448}
{2,3,6,7,10,11,12,15,17,20,21,22,23,25,27,28,30,35,37,39,43,45,48,50,51,54,58,61,63,65,68,70,75,77,78,80,82,86,89,90,92,95,96,97,99,102,104,105,106,109,112,113,116,117,119,122,123,125,126,129,131,136,137,140,141,142,144,147,149,151,154,156,158,162,164,166,169,171,173,174,176,178,180,182,183,186,188,191,196,198,199,200,201,202,205,208,210,211,214,215,216,217,219,224,227,229,233,234,235,237,238,241,243,246,247,248,250,253,254,258,259,260,264,265,266,269,270,271,273,275,276,279,282,284,287,288,289,292,294,297,298,300,303,306,308,309,312,313,315,320,324,325,326,329,332,333,335,338,340,342,344,346,351,352,355,357,359,361,362,364,365,367,369,371,372,374,376,377,379,382,383,384,386,387,390,391,394,397,398,402,404,409,410,414,416,419,420,421,423,426,427,429,431,432,436,438,440,443,444,447,449,451,454,457,459,460,462,463,465,468,470,473,475,478,480,481,482,484,486,487,489,490,494,497,498,499,503,504,505,507,508,511,514,515,518,520,522,523,524,525,528,531,534,535,536,537,538,539,542,545,548,550,553,557,561,563,564,565,566,568,569,570,572,574,576,577,581,583,585,588,589,590,591,592,595,596,597,598,601,604,605,606,607,610,611,612,615,616,617,619,620,621,625,628,629,632,634,637,643,645,647,648,650,651,652,656,657,658,663,665,669,673,675,679,682,684,687,689,690,692,695,698,701,705,706,708,713,716,719,720,721,722,724,728,729,731,732,735,736,737,739,741,743,744,746,749,750,753,755,756,758,759,761,763,765,766,767,769,770,771,772,773,774,776,779,781,785,788,790,793,796,800,801,804,805,809,810,811,813,814,819,822,823,825,827,828,831,833,835,836,839,842,844,845,847,850,852,853,854,856,858,861,863,864,867,870,872,873,876,877,879,880,882,884,885,887,888,890,893,897,900,904,905,907,909,912,914,916,917,918,921,922,924,928,930,931,932,933,934,936,939,940,942,944,946,949,951,954,959,962,964,967,969,971,972,974,975,977,981,982,985,989,991,996,998,1001,1003,1008,1009,1012,1013,1014,1015,1018,1020,1022,1026,1027,1028,1031,1033,1037,1039,1041,1044,1045,1046,1048,1050,1051,1054,1058,1061,1064,1066,1067,1068,1070,1072,1074,1076,1079,1081,1083,1085,1087,1090,1093,1095,1096,1101,1102,1103,1105,1107,1109,1112,1114,1117,1120,1121,1123,1124,1125,1126,1130,1132,1134,1137,1140,1141,1142,1145,1148,1149,1150,1151,1152,1154,1158,1159,1161,1164,1168,1170,1173,1176,1180,1181,1182,1183,1184,1185,1190,1192,1196,1197,1198,1201,1203,1204,1205,1208,1209,1211,1213,1215,1216,1217,1219,1221,1223,1224,1227,1228,1231,1235,1238,1239,1241,1246,1247,1250,1252,1253,1255,1256,1258,1261,1263,1265,1266,1270,1272,1273,1275,1276,1279,1282,1286,1287,1289,1290,1293,1297,1299,1302,1304,1306,1308,1310,1312,1313,1317,1318,1323,1325,1326,1328,1331,1333,1335,1336,1338,1340,1344,1347,1348,1350,1354,1357,1359,1360,1362,1363,1367,1368,1369,1372,1373,1374,1377,1378,1379,1381,1384,1385,1387,1390,1391,1392,1393,1395,1397,1399,1402,1404,1406,1409,1410,1413,1414,1418,1422,1423,1424,1427,1429,1431,1434,1436,1437,1439,1440,1443,1446,1447,1448,1449,1453,1456,1457,1459,1462,1463,1467,1471,1474,1476,1478,1481,1482,1483,1484,1485,1486,1490,1491,1492,1495,1498,1500,1501,1503,1505,1509,1510,1513,1515,1516,1517,1519,1520,1523,1524,1526,1528,1530,1533,1535,1537,1538,1539,1541,1543,1544,1548,1553,1555,1556,1557,1560,1562,1565,1566,1567,1571,1573,1575,1576,1577,1578,1581,1582,1583,1586,1588,1593,1596,1597,1600,1601,1604,1606,1608,1609,1612,1615,1619,1621,1624,1625,1628,1629,1631,1634,1636,1638,1639,1641,1643,1645,1647,1649,1651,1652,1654,1656,1658,1660,1662,1664,1669,1675,1678,1680,1682,1684,1690,1693,1696,1699,1700,1701,1704,1705,1708,1709,1712,1715,1716,1718,1719,1720,1722,1724,1728,1730,1735,1737,1739,1741,1743,1744,1745,1747,1748,1750,1754,1757,1758,1760,1763,1765,1767,1769,1770,1772,1773,1774,1776,1781,1782,1784,1787,1790,1792,1794,1796,1799,1800,1801,1802,1805,1806,1808,1810,1812,1816,1817,1820,1822,1825,1826,1828,1829,1831,1833,1834,1835,1839,1840,1843,1844,1846,1848,1850,1851,1852,1854,1856,1857,1859,1861,1862,1863,1866,1869,1871,1872,1873,1875,1877,1879,1880,1881,1883,1886,1887,1888,1889,1890,1892,1893,1895,1898,1901,1902,1903,1908,1910,1911,1915,1918,1919,1920,1922,1924,1926,1928,1929,1930,1931,1935,1937,1939,1942,1943,1946,1947,1949,1951,1952,1955,1957,1960,1963,1966,1968,1971,1975,1976,1981,1982,1983,1985,1986,1988,1989,1990,1991,1996,1998,2000,2002,2003,2004,2006,2007,2008,2010,2013,2014,2015,2018,2020,2021,2022,2023,2026,2028,2029,2031,2034,2038,2039,2040,2042,2043,2044,2046,2047,2049,2051,2055,2057,2059,2060,2065,2066,2067,2068,2069,2071,2073,2075,2076,2080,2083,2085,2086,2089,2091,2094,2095,2097,2100,2102,2104,2105,2106,2107,2110,2113,2114,2116,2120,2122,2124,2125,2127,2129,2132,2135,2138,2141,2142,2146,2149,2153,2154,2155,2157,2160,2162,2164,2166,2167,2168,2171,2172,2177,2178,2184,2186,2188,2189,2193,2199,2202,2204,2205,2208,2211,2213,2215,2216,2218,2219,2220,2224,2226,2228,2229,2230,2232,2234,2235,2239,2240,2241,2243,2246,2248,2249,2250,2253,2256,2257,2259,2261,2264,2266,2267,2270,2274,2276,2279,2281,2284,2285,2286,2287,2288,2290,2292,2296,2298,2300,2302,2305,2307,2309,2311,2314,2315,2316,2321,2323,2327,2330,2331,2333,2335,2338,2340,2341,2343,2345,2347,2349,2351,2353,2354,2358,2361,2363,2369,2373,2375,2377,2379,2380,2381,2385,2386,2388,2392,2393,2397,2401,2403,2406,2407,2408,2410,2412,2415,2418,2420,2425,2427,2430,2431,2433,2435,2438,2444,2445,2448,2450,2453,2456,2458,2462,2463,2464,2467,2470,2471,2475,2477,2478,2480,2482,2484,2486,2488,2491,2492,2493,2494,2499,2501,2506,2508,2510,2512,2513,2514,2515,2517,2519,2521,2525,2527,2529,2531,2532,2536,2539,2540,2543,2546,2549,2552,2554,2557,2558,2559,2561,2562,2564,2567,2569,2574,2576,2577,2580}
Returns: 870
128
{24,44,21,33,38,49,84,65,99,72,44,76,46,94,61,65,76,28,111,15,32,10,115,105,33,59,51,127,86,3,50,43,15,62,82,16,20,20,51,89,58,122,28,109,53,74,125,6,77,42,125,76,118,122,20,45,78,8,65,5,37,66,52,53,9,36,77,12,44,70,62,64,36,66,106,63,23,19,88,29,121,66,63,6,53,49,16,122,4,36,92,103,68,6,66,6,57,99,31,68,127,96,112,76,91,4,50,52,60,1,99,64,102,64,22,106,56,61,25,15,91,2,60,79,124,81,34,85,82,73,107,20,62,56,21,28,85,110,40,23,90,114,18,11,32,34,38,23,21,48,57,76,32,94,51,106,1,38,63,114,122,103,95,91,119,57,87,26,55,63,35,38,55,127,80,61,43,16,114,12,102,12,100,71,92,17,73,30,63,66,76,37,90,38,94,119,103,93,99,20,121,34,75,92,2,61,43,33,36,7,13,46,46,79,54,119,3,120,121,83,76,109,7,30,87,6,66,95,121,81,56,123,29,48,103,82,89,36,39,17,10,29,113,116,96,31,71,3,59,16,16,112,116,113,24,12,96,112,65,94,84,40,11,70,8,18,72,60,100,19,47,33,27,106,115,50,8,22,45,46,73,29,41,98,107,42,19,86,98,46,116,107,24,62,82,106,3,59,88,17,21,114,41,96,88,21,89,2,17,47,9,103,30,124,72,89,25,62,23,110,93,10,124,37,53,47,111,124,80,79,71,75,9,121,32,65,44,117,15,77,43,81,77,121,127,22,26,17,14,110,19,74,23,125,70,107,96,120,116,110,106,34,88,71,3,17,28,31,43,93,123,120,85,124,10,84,81,111,83,74,12,14,37,117,109,13,110,26,40,48,18,108,93,82,75,75,16,92,18,104,121,4,116,45,1,21,112,128,6,84,38,88,55,21,26,78,71,69,74,98,53,101,31,92,64,15,112,38,66,83,113,92,72,12,85,66,93,80,101,41,36,46,104,85,105,83,17,83,43,72,10,69,22,22,62,123,87,118,80,113,18,19,87,121,128,44}
{4,5,8,13,14,17,18,19,21,23,25,27,31,35,39,40,42,43,45,46,48,51,54,56,59,61,63,64,66,69,71,73,77,81,84,86,88,91,95,99,102,104,106,108,113,115,117,121,126,128,132,133,137,139,141,144,146,148,151,153,156,158,160,161,164,166,172,175,179,182,187,189,192,194,196,203,206,212,214,218,220,221,222,223,224,226,228,230,233,235,237,241,243,248,251,253,256,257,260,261,264,265,268,269,271,273,277,281,285,287,289,290,292,293,296,300,302,305,307,310,313,317,321,323,324,327,328,330,332,336,340,342,347,350,352,353,356,358,359,362,363,364,366,367,370,372,373,376,378,382,384,387,388,390,392,394,395,399,401,404,406,409,410,413,417,419,420,425,427,431,432,433,437,439,445,446,449,451,452,455,457,458,459,462,466,468,470,471,473,475,478,480,481,482,487,491,496,497,499,502,504,508,513,516,517,520,521,522,525,529,532,535,536,538,540,541,542,545,546,548,549,553,554,559,563,565,571,573,576,578,581,583,585,587,588,594,597,603,606,608,612,613,617,619,621,624,629,631,634,638,642,644,647,649,652,653,655,658,661,665,667,671,672,674,676,681,682,683,686,692,695,697,698,699,701,703,707,709,711,715,716,718,720,721,722,725,726,728,730,732,734,735,739,740,741,744,747,750,753,755,756,758,763,765,767,768,771,772,774,776,779,785,788,791,792,795,799,802,804,805,810,812,813,815,818,821,823,824,827,829,832,836,839,842,844,846,849,850,853,856,860,863,866,868,870,873,874,875,877,878,879,880,883,885,888,889,891,895,897,899,903,906,910,912,917,919,921,923,925,928,929,932,934,936,938,940,941,943,946,948,954,956,958,960,961,964,967,968,970,975,977,978,982,985,987,992,993,994,995,996,999,1004,1006,1007,1010,1011,1014,1015,1018,1019,1020,1022,1023,1024,1027,1028,1032,1034,1035,1040,1043,1046,1048,1049,1050,1051,1057,1061,1063,1065,1069,1072,1076,1077,1078,1082,1086,1089,1094,1096,1100,1102,1104,1107,1109,1110,1113,1117,1122,1125,1127,1129,1131,1132,1134,1137,1139,1141,1143,1145,1148,1150,1152,1154,1157,1160}
Returns: 329
64
{27,37,29,33,31,38,60,56,37,57,13,35,30,17,58,9,64,22,31,42,22,15,35,11,61,58,47,29,49,63,63,59,30,27,9,3,12,5,42,20,27,54,57,6,31,2,15,35,64,20,13,61,19,3,56,4,57,18,4,52,15,9,63,32,7,20,24,6,42,6,5,24,38,15,63,61,26,24,31,22,56,35,34,4,57,55,56,28,32,37,26,57,13,6,10,21,58,45,60,3,19,16,54,61,1,22,57,39,38,11,10,38,48,5,49,19,5,15,29,31,10,33,20,12,11,43,43,39,63,16,39,59,48,44,60,4,48,50,21,64,5,45,31,16,45,5,12,28,51,22,40,51,17,48,40,53,44,57,16,63,50,18,12,42,28,49,20,58,44,15,18,32,24,54,6,54,31,23,14,16,47,43,13,36,63,54,42,42,12,20,57,24,57,15,55,48,40,58,46,17,37,46,33,63,27,27,56,29,39,64,59,11,31,5,56,5,29,38,47,31,10,32,60,5,21,36,46,6,35,44,48,13,16,59,8,19,53,63,12,58,41,21,40,20,52,61,17,36,2,31,59,39,34,59,21,1,52,50,35,3,57,13,14,50,3,56,24,59,31,41,12,11,45,10,54,41,15,50,33,4,1,35,1,40,18,58,8,24,37,55,60,51,28,45,48,24,38,50,58,52,13,17,34,4,18,12,34,30,54,50,60,48,23,15,50,27,22,62,18,23,10,44,34,64,8,27,37,55,50,16,1,40,51,61,16,12,19,49,28,13,24,62,62,30,57,54,31,32,45,27,46,18,40,1,38,34,6,45,44,26,61,37,21,5,21,40,59,9,21,50,53,15,36,23,29,24,41,58,36,32,55,4,31,56,64,29,56,41,16,23,6,15,26,33,41,42,37,63,1,60,15,60,25,17,41,30,63,5,23,4,46,60,25,20,27,54,57,57,37,19,59,17,29,53,10,3,3,29,55,47,40,43,54,9,28,44,15,2,48,47,33,62,2,20,52,29,54,43,26,60,46,49,50,18,60,14,53,39,20,26,2,59,19,32,8,15,22,23,25,63,25,44,16,42,38,20,52,15,36,46,24,57,44,29,5,17,15,45,61,28,32,41,42,41,14,53,22,61,12,33,59,47,18,9,53,64,9,27,36,39,14,34,44,48,63,2,4,33,63,42,27,15,49,8,41,63,38,45,44,9,46,3,61,40,60,11,15,30,6,40,22,52,50,23,1,35,25,47,45,20,19,44,16,1,40,43,59,12,20,34,2,10,33,62,49,40,50,2,61,13,52,33,32,44,17,1,44,58,10,64,39,56,40,1,30,22,10,61,30,3,54,2,62,41,27,5,54,26,4,35,10,16,4,32,30,12,56,58,58,61,42,16,15,22,52,5,28,40,46,2,38,39,25,26,8,26,16,64,15,32,4,62,1,3,49,27,18,11,9,24,6,19,7,6,22,17,29,25,18,51,53,59,26,6,15,51,43,46,44,22,5,52,38,59,18,15,64,17,5,32,37,16,38,26,45,35,44,8,34,48,41,12,12,37,38,4,32,58,8,44,30,15,30,25,46,43,13,43,16,13,6,17,21,43,40,13,55,46,60,15,9,34,39,46,10,1,28,52,61,2,26,61,54,61,30,21,42,39,35,41,55,58,47,28,20,7,24,55,51,40,58,52,43,21,64,16,18,44,4,7,10,14,6,47,14,64,33,5,3,1,3,31,54,5,62,35,26,49,30,57,21,16,64,26,9,56,53,13,16,13,62,4,61,43,63,61,6,15,57,59,23,5,59,14,52,12,63,52,1,3,37,31,62,61,56,28,45,7,62,32,61,12,47,20,64,29,57,45,18,25,40,42,44,7,47,44,17,35,3,26,54,25,25,5,11,2,29,8,35,38,16,45,53,29,6,29,50,28,44,62,18,50,34,41,40,5,37,48,2,38,41,1,56,27,50,12,59,35,1,32,64,8,38,23,36,27,9,45,43,32,36,37,64,17,34,64,32,21,21,53,5,26,54,40,47,9,10,32,34,30,48,57,51,39,31,43,57,50,55,55,24,61,38,25,44,30,15,8,58,38,19,40,28,29,1,38,8,37,13,11,44,62,25,28,49,13,48,27,48,21,58,25,35,15,33,49,5,18,48,23,20,18,6,15,34,46,38,59,42,33,47,28,51,3,12,63,35,41,35,2,38,16,36,61,47,51,49,17,53,33,47,6,5,59,42,21,37,57,19,52,54,44,58,27,31,22,6,13,48,60,34,2,7,26,4,1,33,24,53,39,16,61,50,55,43,60,47,44,24,60,29,29,24,61,37,16,28,19,12,58,21,14,22,44,62,4,1,48,54,27,42,56,12,31,60,60,8,43,23,64,19,57,44,6,44,61,4,19,29,28,27,48,3,52,24,54,4,49,18,19,50,45,38,60,14,41,34,2,45,37,48,54,34,56,51,21,44,55,61,56,47,61,34,63,28,45,49,8,48,33,55,6,23,20,18,13,4,19,16,15,59,52,29,62,36,23,53,41,49,32,21,63,30,40,16,40,52,7,33,19,38,11,13,39,43,57,6,36,19,41,29,21,50,56,41,51,62,47,35,13,9,42,12,27,39,54,46,53,43,23,7,58,8,6,50,15,25,62,35,34,17,23,50,15,8,44,47,16,19,4,64,58,20,35,3,7,59,63,16,29,12,3,7,11,2,5,45,31,20,46,12,53,17,10,59,46,28,55,15,42,28,10,28,46,56,49,59,42,21,1,12,61,8,24,18,11,32,30,56,23,22,57,35,60,63,29,46,28,51,7,57,7,4,51,27,11,34,18,32,13,30,19,12,30,58,50,41,9,54,40,9,8,35,62,33,11,10,23,30,9,2,4,61,63,20,18,15,10,24,47,32,32,26,47,40,13,61,54,7,15,23,34,56,6,42,43,52,52,34,57,33,9,18,18,55,40,57,17,33,2,24,1,21,17,54,5,16,4,14,25,7,18,27,46,43,61,40,35,52,38,64,28,5,5,39,28,4,27,17,46,8,55,15,9,5,43,17,33,15,27,9,55,39,3,59,28,28,3,38,1,37,26,6,31,17,58,1,58,7,6,8,16,16,62,20,11,41,19,40,38,16,21,39,61,23,37,54,2,35,10,1,29,11,16,38,37,29,6,41,29,2,11,10,40,56,50,63,45,7,7,5,12,1,52,23,32,19,52,5,41,29,22,2,47,10,26,36,36,56,10,13,15,58,47,4,35,21,54,6,19,28,53,2,60,60,35,35,38,23,33,41,3,23,12,10,54,24,59,24,3,23,21,51,6,47,33,48,44,14,7,52,22,27,34,34,54,4,41,40,59,27,26,64,57,19,11,12,54,5,23,18,4,30,41,45,1,36,5,55,1,34,31,37,8,51,28,45,2,19,50,23,30,31,35,42,4,21,22,20,4,7,40,3,11,51,5,49,59,50,24,32,16,5,42,26,8,43,64,40,61,54,39,13,20,17,64,5,20,6,18,33,34,33,20,56,33,35,4,47,39,49,35,16,43,2,8,29,38,13,18,27,41,54,21,58,52,50,44,48,16,37,14,16,43,18,4,35,28,24,17,1,4,48,56,25,14,56,31,45,22,32,29,29,24,28,34,20,61,29,37,38,26,4,34,22,14,28,19,61,5,25,33,43,60,56,3,24,41,35,2,5,55,52,43,64,29,55,21,29,64}
{3,6,10,12,15,17,21,25,27,29,30,32,34,37,38,39,41,43,46,48,50,51,53,55,59,63,67,69,71,73,74,76,77,79,85,87,90,92,94,96,98,101,103,104,105,106,107,110,112,115,119,122,124,125,128,134,137,141,142,145,146,148,150,151,155,159,161,162,168,170,174,176,179,181,183,184,185,186,188,190,192,195,197,200,202,207,209,211,213,217,219,222,223,226,227,229,230,232,233,236,238,242,243,245,246,249,251,253,256,258,259,261,262,267,270,272,274,276,277,279,281,285,286,289,291,294,295,298,301,302,304,308,309,310,313,314,315,316,319,323,324,325,327,331,333,334,337,340,342,343,344,348,350,351,353,354,355,358,365,368,373,377,381,385,387,390,391,394,395,398,399,400,404,406,409,410,412,413,415,419,424,428,432,435,439,441,442,443,444,445,446,447,448,449,450,451,452,453,455,457,461,462,464,466,468,469,472,478,481,483,485,491,492,495,497,499,500,505,507,510,513,515,517,522,524,527,528,529,530,532,538,540,542,545,546,550,551,554,556,558,559,561,562,565,566,569,572,575,577,582,583,585,591,595,598,601,603,607,611,613,618,620,623,625,628,630,633,635,637,638,640,643,644,646,647,652,654,656,658,661,663,666,668,669,672,676,679,681,685,687,690,691,694,696,698,699,703,706,709,713,716,718,720,724,728,733,736,739,742,746,750,751,753,755,759,760,763,767,769,771,775,777,778,780,782,784,785,787,789,793,796,798,800,801,802,808,811,812,818,821,826,830,832,835,836,838,840,843,846,847,849,851,853,855,857,860,863,864,865,868,870,873,878,880,881,885,887,889,890,893,895,899,902,904,910,911,915,917,918,923,924,925,927,929,931,933,936,939,941,945,948,950,953,954,956,963,966,972,973,977,978,983,985,988,991,993,995,997,999,1003,1004,1006,1008,1010,1013,1015,1017,1021,1023,1025,1027,1029,1030,1032,1033,1034,1037,1039,1041,1043,1046,1047,1048,1051,1055,1058,1060,1061,1063,1065,1066,1070,1072,1075,1077,1080,1082,1085,1086,1087,1091,1093,1095,1097,1098,1099,1100,1104,1105,1110,1112,1117,1119,1121,1124,1126,1127,1129,1132,1136,1137,1139,1140,1142,1146,1150,1152,1155,1157,1158,1162,1164,1167,1174,1176,1178,1182,1184,1187,1188,1192,1194,1196,1197,1198,1200,1202,1205,1207,1209,1213,1215,1218,1221,1227,1229,1231,1232,1235,1238,1240,1246,1248,1251,1253,1256,1258,1262,1267,1271,1273,1276,1279,1281,1284,1287,1291,1293,1295,1297,1298,1301,1305,1307,1309,1310,1312,1316,1320,1323,1325,1326,1329,1335,1337,1341,1342,1345,1347,1348,1350,1353,1356,1358,1362,1365,1368,1369,1371,1372,1374,1377,1380,1382,1385,1387,1389,1392,1395,1397,1399,1402,1407,1409,1411,1413,1418,1422,1427,1432,1434,1436,1438,1441,1445,1446,1449,1450,1454,1455,1458,1462,1466,1467,1468,1469,1472,1474,1478,1480,1483,1488,1490,1491,1493,1496,1498,1499,1502,1503,1505,1510,1514,1515,1516,1518,1520,1523,1525,1528,1529,1536,1538,1540,1542,1543,1547,1552,1553,1555,1558,1562,1563,1567,1568,1570,1572,1574,1578,1581,1582,1586,1587,1590,1591,1594,1598,1599,1605,1607,1610,1614,1615,1618,1619,1623,1626,1631,1633,1635,1638,1639,1640,1642,1644,1646,1649,1651,1653,1655,1657,1658,1659,1660,1662,1663,1665,1666,1669,1672,1675,1679,1680,1682,1685,1686,1688,1691,1693,1695,1699,1704,1706,1708,1713,1715,1717,1719,1722,1726,1729,1730,1734,1736,1738,1739,1740,1742,1747,1750,1754,1757,1759,1762,1764,1765,1766,1769,1770,1772,1774,1777,1779,1781,1782,1783,1786,1788,1791,1795,1796,1799,1803,1804,1806,1808,1811,1813,1814,1818,1820,1822,1823,1825,1827,1829,1831,1834,1837,1839,1841,1846,1847,1849,1852,1854,1855,1857,1858,1859,1860,1862,1863,1864,1868,1871,1875,1880,1884,1886,1888,1890,1892,1895,1898,1899,1901,1903,1905,1908,1911,1914,1916,1918,1920,1923,1926,1930,1932,1933,1935,1937,1939,1941,1943,1946,1949,1952,1954,1957,1962,1964,1966,1967,1974,1976,1982,1984,1985,1987,1989,1993,1997,2000,2001,2004,2006,2009,2011,2014,2015,2018,2021,2024,2028,2030,2032,2033,2036,2039,2043,2047,2052,2055,2056,2059,2060,2062,2064,2069,2071,2074,2079,2080,2082,2083,2086,2088,2091,2094,2098,2099,2102,2103,2104,2106,2109,2111,2114,2117,2120,2124,2126,2127,2130,2133,2135,2137,2139,2141,2143,2147,2153,2156,2159,2162,2163,2165,2169,2171,2173,2175,2179,2183,2185,2189,2190,2194,2197,2201,2203,2208,2210,2212,2214,2217,2222,2225,2229,2230,2231,2233,2238,2239,2240,2244,2248,2249,2252,2257,2262,2267,2269,2271,2274,2275,2279,2281,2283,2285,2289,2291,2293,2294,2298,2299,2303,2305,2311,2315,2318,2322,2324,2326,2329,2330,2332,2335,2336,2339,2343,2344,2348,2351,2353,2355,2357,2359,2362,2365,2369,2372,2375,2379,2380,2382,2383,2385,2389,2390,2393,2395,2396,2397,2399,2402,2403,2405,2406,2408,2411,2413,2414,2416,2418,2420,2423,2425,2428,2429,2432,2436,2438,2439,2441,2442,2444,2447,2450,2453,2457,2459,2462,2465,2466,2468,2470,2472,2476,2480,2481,2483,2484,2485,2487,2491,2494,2497,2499,2504,2506,2507,2508,2511,2512,2515,2517,2521,2524,2526,2527,2530,2535,2536,2537,2540,2541,2544,2548,2550,2551,2554,2555,2560,2561,2563,2566,2568,2569,2572,2573,2575,2579,2582,2583,2585,2587,2591,2592,2594,2595,2597,2599,2603,2605,2610,2612,2614,2616,2619,2620,2622,2624,2626,2628,2631,2634,2636,2639,2641,2644,2647,2649,2654,2657,2659,2660,2664,2669,2672,2673,2676,2680,2681,2682,2685,2687,2691,2696,2701,2702,2704,2706,2708,2711,2713,2715,2717,2719,2722,2726,2727,2730,2734,2736,2739,2747,2749,2750,2752,2753,2754,2756,2758,2762,2767,2768,2769,2772,2774,2776,2777,2779,2782,2785,2787,2789,2790,2793,2795,2800,2804,2805,2808,2811,2816,2818,2820,2821,2825,2827,2829,2830,2833,2836,2838,2839,2840,2844,2845,2849,2851,2854,2858,2862,2863,2867,2869,2871,2873,2875,2878,2880,2882,2884,2887,2889,2892,2896,2899,2901,2905,2906,2908,2909,2911,2912,2914,2915,2918,2919,2920,2921,2924,2929,2930,2932,2934,2937,2941,2945,2946,2950,2952,2954,2956,2959,2961,2963,2965,2967,2970,2973,2974,2977,2979,2982,2986,2988,2989,2993,2995,2999,3002,3004,3006,3008,3011,3013,3015,3016,3019,3024,3027,3030,3034,3038,3043,3047,3049,3051,3055,3058,3059,3062,3063,3065,3069,3071,3073,3075,3079,3082,3086,3087,3088,3091,3095,3098,3099,3100,3102,3103,3106,3107,3112,3113,3116,3118,3119,3122,3123,3125,3128,3130,3131,3134,3135,3139,3142,3147,3151,3154,3155,3157,3158,3160,3163,3164,3168,3172,3173,3174,3177,3179,3182,3185,3186,3188,3190,3193,3194,3197,3199,3201,3202,3205,3209,3211,3214,3217,3223,3226,3228,3230,3233,3234,3236,3238,3242,3245,3249,3252,3253,3254,3255,3261,3262,3265,3270,3271,3274,3278,3283,3284,3285,3289,3292,3295,3297,3300,3303,3306,3310,3314,3316,3320,3321,3324,3325,3326,3327,3331,3335,3336,3338,3339,3341,3344,3346,3348,3351,3353,3355,3359,3360,3361,3363,3366,3369,3373,3376,3379,3381,3383,3386,3388,3391,3392,3395,3399,3400,3403,3405,3406,3409,3412,3414,3417,3419,3425,3427,3428,3429,3432,3433,3435,3438,3440,3441,3442,3444,3446,3448,3452,3454,3457,3458,3460,3461,3462,3465,3470,3471,3473,3478,3479,3482,3485,3488,3491,3496,3500,3501,3503,3505,3507,3509,3513,3517,3519,3521,3523,3525,3528,3530,3531,3533,3535,3536,3538,3541,3543,3546,3552,3553,3556,3559,3561,3562,3563,3568,3570,3573,3575,3576,3578,3583,3585,3588,3590,3593,3596,3599,3601,3603,3606,3607,3609,3611,3612,3614,3616,3617,3618,3621,3624,3626,3631,3632,3633,3635,3637,3640,3642,3643,3646,3649,3651,3653,3655,3657,3660,3663,3664,3666,3668,3674,3678,3681,3682,3683,3687,3688,3691,3692,3695,3696,3700,3703,3705,3707,3708,3709,3711,3713,3715,3718,3719,3720,3721,3724,3726,3728,3730,3733,3734,3737,3739,3742,3745,3747,3749,3750,3753,3754,3755,3760,3763,3767,3768,3771,3775,3778,3782,3783,3785,3787,3789,3792,3795,3797,3801,3803,3804,3806,3807,3809,3812,3815,3817,3822,3825,3828,3832,3833,3835,3836,3840,3842,3846,3848,3850,3851,3853,3854,3856,3860,3862,3866,3867,3869,3870,3874,3877,3879,3881,3882,3883,3885,3887,3892,3894,3896,3898,3899,3903,3905,3909,3911,3915,3920,3923,3924,3927,3929,3933,3934,3935,3936,3939,3941,3942,3944,3948,3952,3955,3959,3962,3965,3967,3969,3971,3975,3977,3978,3981,3983,3985,3990,3992,3994,3999,4001,4003,4005,4008,4009,4013,4016,4017,4020,4022,4024,4025,4029,4031,4034,4039,4041}
Returns: 1149
8
{2,8,5,6,4,3,1,4,3,2,6,4,5,1,5,3,5,7,5,2,7,4,6,5,8,2,8,3,8,6,8,3,2,4,5,1,6,4,7,5,8,7,8,5,2,1,8,5,2,4,4,2,7,8,2,3,6,5,8,1,6,2,4,5,2,1,4,4,7,5,2,4,3,7,8,1,8,2,7,1,6,1,4,4,1,6,1,5,4,3,6,5,4,6,5,8,5,6,4,6,3,6,4,5,6,5,8,5,5,2,4,8,8,8,7,8,5,7,8,7,3,1,4,8,8,4,1,1,2,7,8,3,2,6,5,1,5,7,3,2,5,8,2,4,3,5,1,7,2,1,3,5,5,6,6,2,7,5,1,5,8,7,1,1,7,5,3,5,8,5,2,3,4,4,1,6,4,8,3,4,3,8,1,3,5,8,6,7,2,6,4,4,1,5,1,4,2,2,2,1,6,3,1,2,1,2,2,2,8,2,1,3,4,8,1,1,8,7,3,1,5,5,3,3,8,4,3,4,4,7,2,1,6,2,4,6,8,1,4,7,1,3,3,7,8,8,4,3,8,3,4,1,4,5,2,8,3,8,3,6,6,2,2,5,8,5,4,5,2,1,8,1,3,1,6,3,7,4,3,7,5,8,5,1,2,5,2,3,8,3,6,8,1,7,8,2,6,4,2,7,8,1,6,6,7,2,6,3,6,1,2,6,3,1,8,4,2,2,1,7,1,4,4,2,4,6,2,7,2,6,6,1,1,5,7,2,1,2,8,2,5,1,8,2,3,1,4,2,5,1,2,3,5,4,5,7,8,2,2,4,7,2,4,1,1,4,5,4,5,8,1,5,8,4,2,4,7,4,1,4,4,8,7,8,1,3,4,8,6,4,8,8,8,4,5,1,8,3,6,7,6,6,4,1,4,5,5,7,7,2,6,7,2,6,2,8,4,2,5,1,5,5,6,5,1,4,8,8,3,1,6,2,2,4,1,5,7,4,1,4,3,3,6,1,6,2,2,1,6,2,4,2,1,1,5,3,8,2,8,1,3,5,4,1,6,2,7,1,6,7,1,1,2,1,8,8,5,7,3,5,7,8,6,5,7,5,4,8,3,2,7,1,7,6,6,8,2,1,2,7,2,2,3,8,2,1,1,3,7,8,5,8,8,6,8,4,5,1,2,6,5,3,3,8,5,2,6,6,5,2,6,1,1,8,8,4,2,3,3,1,2,5,7,7,7,7,6,5,1,2,6,6,7,3,1,4,8,7,8,4,3,5,7,8,8,7,4,4,6,1,3,1,7,3,4,1,8,2,2,2,2,8,1,5,4,6,8,2,5,7,6,4,2,4,7,1,8,3,6,2,1,4,6,6,1,4,5,4,8,8,1,2,5,4,1,8,7,6,4,4,5,4,3,5,6,1,8,2,7,7,8,3,8,8,5,7,2,7,1,7,1,7,8,2,4,8,6,8,3,3,6,5,7,7,8,1,8,8,2,7,8,6,4,2,6,7,5,7,1,6,1,2,6,1,1,8,5,6,1,7,2,4,5,3,4,1,6,7,4,5,2,4,7,3,1,4,2,4,2,1,5,4,8,8,2,2,5,5,4,2,5,2,6,7,1,4,6,4,4,2,2,2,3,2,2,3,2,6,8,2,8,3,8,8,2,8,6,2,8,6,1,3,3,8,1,8,3,3,2,5,5,8,4,2,4,7,3,1,6,1,6,5,4,6,4,6,7,4,1,6,5,3,1,4,6,4,7,6,7,6,1,5,6,5,2,7,5,1,8,4,3,7,5,7,2,7,6,1,1,8,8,8,3,4,4,1,5,4,2,2,7,6,2,7,5,6,8,7,5,1,7,4,6,4,8,5,7,7,2,4,6,1,4,3,2,4,4,6,7,7,2,4,7,8,8,2,2,8,1,7,8,5,8,3,1,2,3,4,4,5,2,2,4,2,4,1,4,5,3,1,5,3,1,8,1,6,2,6,4,6,6,2,8,6,4,3,4,3,2,3,7,8,4,7,1,1,5,8,8,5,5,4,8,4,5,5,8,8,4,8,7,8,3,6,2,5,6,8,2,2,8,3,7,1,8,4,8,4,2,4,3,8,4,6,6,2,3,6,8,8,7,4,1,8,5,2,3,6,8,7,6,1,3,5,6,8,1,8,4,4,5,2,2,1,2,2,7,7,6,3,2,4,5,5,7,4,5,2,4,3,6,3,7,7,1,5,1,4,5,5,6,6,2,7,4,3,3,7,5,2,8,5,6,8,2,3,7,1,3,8,7,5,4,2,2,8,6,6,8,8,2,2}
{1,5,7,8,11,13,15,17,20,21,24,25,27,29,32,33,36,38,39,40,42,43,44,45,48,50,51,53,54,55,56,58,60,63,64,66,67,68,69,76,78,79,81,82,84,86,88,90,92,94,96,98,100,104,107,108,109,112,113,114,115,117,119,120,123,125,127,130,133,134,136,137,139,140,142,144,145,147,148,149,152,153,155,156,158,160,162,164,165,166,170,172,174,178,180,181,182,183,185,186,187,188,192,193,194,195,199,200,201,205,206,208,209,211,213,215,216,218,219,220,221,222,224,225,227,229,230,231,234,235,237,238,239,240,242,244,247,248,249,251,252,254,256,257,258,260,262,263,266,268,269,270,271,273,274,276,278,280,283,284,287,288,290,293,294,295,296,298,301,302,304,305,307,309,310,312,314,315,316,318,321,323,325,326,328,330,334,335,338,340,342,343,345,347,349,354,356,358,359,360,361,362,365,366,367,370,371,375,378,380,381,383,384,385,386,387,388,390,391,392,394,398,400,401,403,405,406,407,408,411,414,417,418,419,421,426,427,429,430,431,433,435,439,444,445,446,447,449,451,452,453,454,455,456,458,459,460,462,463,464,466,468,471,473,475,478,480,482,484,485,486,488,491,494,495,497,498,501,504,505,508,512,513,515,516,517,519,520,523,525,527,528,531,533,535,537,540,541,543,544,546,548,549,551,554,555,557,559,561,562,564,567,568,570,573,575,578,579,581,584,585,587,589,590,592,594,598,599,600,601,605,606,609,611,613,616,620,622,624,627,628,630,631,633,634,637,638,639,640,641,643,645,646,649,652,654,655,657,658,661,663,666,668,670,672,674,676,677,682,684,686,689,691,693,694,695,699,700,703,705,706,708,710,711,712,715,717,718,719,721,723,725,728,729,730,732,733,737,738,740,742,743,745,747,749,750,753,754,756,758,759,762,765,767,768,769,771,775,776,777,778,781,783,784,786,787,790,791,792,794,795,798,801,806,808,812,815,816,817,819,820,822,826,827,829,830,831,834,835,839,840,842,844,846,850,851,852,854,856,857,860,861,863,864,866,868,869,871,872,874,875,877,878,879,881,883,885,887,889,891,892,896,899,902,904,907,908,909,910,913,914,916,920,921,922,925,927,928,929,930,932,933,935,936,939,940,942,944,946,949,950,951,952,954,956,958,960,963,964,965,966,967,970,971,973,974,975,976,982,983,984,986,988,990,991,994,996,997,998,1001,1003,1004,1006,1007,1010,1012,1013,1015,1018,1020,1023,1026,1028,1029,1030,1033,1035,1036,1037,1038,1039,1041,1043,1045,1046,1049,1050,1051,1052,1054,1056,1058,1060,1061,1063,1065,1066,1069,1070,1072,1073,1077,1078,1079,1081,1082,1083,1085,1087,1088,1091,1092,1093,1094,1097,1098,1099,1102,1104,1106,1108,1112,1113,1114,1117,1120,1122,1124,1127,1130,1132,1134,1136,1137,1138,1141,1142,1143,1145,1148,1149,1150,1151,1152,1154,1157,1160,1163,1165,1167,1169,1170,1171,1175,1177,1178,1179,1181,1183,1186,1188,1192,1193,1197,1201,1202,1204,1206,1208,1209,1210,1211,1213,1215,1217,1219,1220,1222,1223,1224,1227,1228,1229,1231,1232,1234,1236,1238,1240,1242,1244,1246,1248,1251,1253,1254,1255,1256,1258,1261,1263,1264,1266,1268,1269,1270,1274,1276,1279,1281,1282,1284,1286,1290,1294,1297,1299,1302,1305,1308,1310,1311,1312,1313,1316,1317,1318,1319,1321,1323,1325,1326,1328,1329,1330,1332,1333,1336,1338,1340,1343,1344,1346,1347,1348,1351,1353,1356,1359,1363,1365,1367,1371,1373,1374,1375,1378,1380,1381,1383,1384,1386,1389,1390,1392,1394,1396,1399,1401,1402,1404,1405,1408,1410,1413,1416,1417,1419,1421,1423,1425,1427,1428,1430,1432,1433,1435,1436,1438,1441,1443,1444,1446,1448,1450,1454,1455,1457,1458,1460,1462,1463,1465,1467,1468,1469,1471,1474,1475,1477,1478,1479,1481,1482,1483,1484,1488,1492,1493,1495,1496,1498,1500,1502,1504,1505,1508,1509,1510,1511,1513,1515,1517,1518,1521,1524,1528,1529,1530,1532,1534,1537,1539,1541,1544,1545,1547,1548,1550,1552,1554,1555,1557,1558,1560,1563,1564,1565,1568,1569,1572,1574,1576,1578,1579,1581,1583,1584,1587,1590,1591,1592,1593,1594,1597,1600,1602,1605,1608,1610,1612,1614,1617,1621,1623,1626,1629,1631,1632,1633,1634,1635,1638,1640,1641,1643,1646,1647,1648,1649,1653,1656,1659,1662,1663,1665,1666,1667,1668,1671,1674,1675,1676,1678,1680,1682,1686,1688,1690,1691,1694,1698,1700,1702,1704,1705,1709,1711,1712,1714,1717,1719,1720,1722,1724,1726,1728,1729,1730,1733,1734,1736,1737,1739,1741,1742,1744,1746,1747,1748,1750,1751,1754,1755,1758,1760,1761,1763,1765,1767,1769,1770,1773,1776,1778,1780,1781,1783,1784,1786,1787,1788,1791,1793,1795,1797,1798,1799,1800,1801,1804,1805,1806,1808,1809,1812,1814,1816,1817,1818,1819,1821,1822,1828,1830,1831,1833,1836,1838,1840,1842,1844,1846,1847,1849,1850,1854,1856,1857,1858,1861,1862,1864,1866,1867,1868,1872,1874,1877,1879,1881,1884,1886,1887,1888,1889,1890,1892,1893,1894,1895,1897,1901,1903,1905,1906,1907,1908,1909,1911,1913,1915}
Returns: 683
4
{1,2,4,2,2,3,1,3,2,3,1,4,3,4,3,3,2,3,3,2,2,1,3,4,3,4,1,4,1,3,1,2,1,3,3,1,2,3,4,2,2,3,2,3,1,3,3,3,2,2,1,4,3,3,2,4,1,4,4,2,2,3,3,3,1,1,1,4,2,2,2,3,4,4,3,1,1,1,1,2,4,2,4,2,2,2,3,1,4,1,1,1,1,3,3,2,2,3,4,1,4,3,3,4,1,1,1,2,3,3,3,2,4,4,1,1,2,4,4,3,3,3,2,1,1,1,4,4,4,1,3,4,3,1,3,4,3,4,4,2,3,3,3,4,3,1,4,1,4,1,4,4,3,4,1,2,1,3,4,4,4,1,4,2,2,1,2,3,2,3,4,4,1,2,1,3,3,1,4,1,2,2,1,4,4,3,3,4,4,4,2,1,1,2,1,1,2,2,2,3,4,4,4,1,4,2,2,2,1,2,4,3,3,1,3,1,4,2,2,3,1,2,4,2,2,3,2,1,3,2,2,4,4,2,4,1,4,1,1,2,1,3,1,3,3,1,2,2,1,3,1,2,3,2,3,3,2,4,4,4,1,2,1,3,2,2,1,4,4,1,1,3,2,4,3,1,2,3,2,2,2,3,2,4,2,4,2,1,4,1,4,2,1,2,4,4,2,1,4,3,2,4,3,2,4,3,2,1,2,2,3,2,4,4,3,1,3,4,4,1,1,3,4,4,1,4,2,1,2,2,2,4,3,1,3,2,4,3,4,2,2,1,3,2,2,1,4,3,2,3,3,2,4,3,3,3,1,1,4,4,2,4,1,3,3,3,4,3,1,4,1,2,4,4,3,4,1,3,1,1,1,4,3,4,2,1,4,2,4,4,3,3,1,1,1,4,3,1,3,2,4,2,4,2,2,4,2,3,1,2,3,1,3,1,3,2,3,2,2,1,1,2,1,2,1,2,4,2,3,3,2,4,2,2,1,3,2,4,1,2,4,1,3,2,2,1,1,1,2,3,1,4,2,2,4,2,2,2,4,2,2,4,3,4,2,2,3,1,2,4,1,1,1,3,3,4,4,1,4,2,1,2,3,4,2,1,3,4,4,3,3,1,4,1,3,2,4,4,3,3,3,4,2,2,4,2,3,1,4,2,2,1,2,4,1,3,3,3,1,4,3,2,1,4,1,1,3,1,3,4,4,2,1,4,4,3,2,4,4,4,4,1,3,1,4,4,1,4,3,4,2,4,2,3,4,4,3,3,3,4,3,2,1,3,4,1,4,3,4,3,4,2,3,2,3,2,1,4,3,4,3,2,1,3,3,1,2,4,3,2,1,3,3,2,1,1,4,1,2,1,4,4,4,4,1,2,4,3,4,3,4,3,2,2,1,2,3,2,4,1,4,3,3,4,2,4,2,4,1,4,4,2,4,2,1,2,3,2,1,1,1,2,1,4,3,3,2,4,1,2,3,4,3,1,3,4,1,4,2,3,3,2,3,4,2,4,1,2,3,1,1,4,3,1,3,2,4,1,3,1,1,3,2,2,3,3,4,3,1,2,2,3,2,2,1,1,1,1,4,4,3,4,1,3,1,1,3,3,4,1,3,1,1,4,3,1,3,1,4,4,3,4,3,1,1,1,3,4,1,4,3,1,2,3,2,3,1,2,3,4,3,2,4,4,2,1,3,3,1,3,2,2,1,3,3,3,4,3,2,1,1,4,4,3,4,1,1,3,3,2,4,1,1,1,4,3,1,3,1,3,3,3,3,1,1,4,1,3,3,3,2,4,2,1,3,3,1,4,4,1,4,1,3,1,1,2,4,2,4,3,2,4,2,3,1,1,3,3,3,1,4,2,2,3,3,2,4,2,1,3,1,4,3,4,3,1,3,4,3,3,1,1,2,3,2,2,2,2,3,2,4,1,2,4,3,4,1,2,2,4,3,4,4,1,1,1,2,1,3,4,4,2,4,3,3,4,1,3,1,1,3,2,1,1,1,2,1,4,3,3,4,1,3,1,1,3,2,3,3,2,1,3,1,3,3,4,1,3,2,1,3,2,3,3,4,1,2,3,1,3,1,1,1,2,1,3,1,2,2,1,4,2,3,3,3,1,3,2,4,2,3,4,3,4,2,3,2,4,3,4,4,1,1,1,1,1,4,3,2,4,1,3,1,3,2,4,4,1,4,4,1,1,2,3,1,4,3,1,1,3,2,1,4,3,2,4,2,1,4,2,4,3,2,2,3,1,1,4,2,4,2,1,2,3,3,3,2,1,4,4,2,3,1,4,1,1,2,4,2,1,3,4,3,3,2,3,2,1,3,1,1,4,1,2,3,2,2,1,1,2,2,4,4,4,3,4,4,4,1,1,3,1,3,2,2,1,3,4,3,1,1,1,2,1,1,1,4,3,1,1,4,3,3,1,2,2,2,2,1,4,2,3,1,2,3,3,1,2,2,1,1,1,1,1,4,2,1,2,2,4,3,2,2,4,3,3,2,4,3,2,1,4,1,2,4,2,2,4,1,1,3,4,3,1,2,3,2,1,4,1,4,3,2,1,1,1,4,4,1,4,1,2,2,1,4,2,3,2,3,3,1,2,2,4,4,4,1,2,1,4,3,4,1,1,4,4,2,3,2,2,2,4,1,4,4,2,4,4,2,3,2,2,4,4,4,4,3,4,4,1,3,4,4,3,3,4,2,4,3,2,4,3,2,2,1,1,2,1,2,2,1,1,1,2,3,4,4,2,1,1,2,1,2,3,2,4,4,4,2,2,3,2,3,1,3,3,2,1,3,3,4,4,3,1,4,2,2,2,4,2,1,3,1,1,4,4,4,3,4,4,1,4,4,4,4,3,3,1,1,4,2,2,2,1,2,2,4,3,3,4,1,3,1,1,2,3,3,4,1,2,4,4,3,4,4,4,3,3,2,3,4,3,1,3,4,3,4,3,2,3,2,2,2,2,2,2,4,4,1,1,2,4,3,3,2,4,2,3,2,3,1,1,2,4,2,2,3,2,1,1,4,1,1,2,1,1,3,3,2,1,1,2,1,3,1,4,1,1,3,1,4,1,4,1,3,3,2,2,1,2,3,3,4,3,4,1,2,1,2,4,2,1,4,3,3,1,1,1,4,3,4,3,3,1,3,3,1,3,1,4,2,2,4,4,1,3,1,2,3,4,2,3,2,3,4,1,3,3,3,1,1,1,4,4,1,3,1,4,2,2,1,3,3,4,3,3,2,1,4,2,4,2,4,3,1,4,1,1,3,4,3,3,3,2,4,1,3,1,4,1,3,1,3,1,3,4,1,4,3,4,2,1,4,1,1,4,1,1,2,4,1,1,1,4,1,3,2,2,4,1,1,4,2,4,1,3,3,2,1,4,2,4,3,2,1,3,4,4,4,2,1,1,1,1,3,4,4,1,1,4,3,1,2,2,3,1,2,3,2,2,1,4,4,1,4,3,1,3,1,3,1,4,4,4,2,1,1,3,3,1,1,4,2,3,3,2,4,1,2,3,2,3,3,2,2,2,1,1,3,2,1,3,4,4,1,2,1,3,2,1,2,2,1,3,2,2,1,2,2,3,2,3,3,1,3,2,4,4,4,4,3,4,1,4,1,3,2,3,1,2,3,1,3,1,1,4,2,2,2,4,1,3,1,4,2,3,2,1,2,1,2,4,4,2,3,1,4,1,1,2,1,3,1,2,2,4,3,2,1,2,1,2,1,3,3,2,2,4,2,3,1,4,1,3,1,3,4,3,3,4,4,4,2,2,3,4,4,4,3,1,3,2,1,2,3,4,4,3,2,4,1,3,1,1,2,4,4,2,1,4,3,2,3,1,2,4,1,2,3,1,3,1,2,3,2,3,2,2,2,4,4,2,1,3,1,3,2,1,1,2,2,3,1,2,1,2,4,3,2,1,1,1,2,4,3,4,4,4,2,2,2,4,4,4,1,1,3,3,2,3,2,3,3,4,2,2,3,2,3,4,1,1,3,4,1,2,1,3,1,2,1,2,1,1,1,4,4,4,1,2,1,1,4,1,4,1,4,3,3,4,1,4,2,3,4,1,2,2,3,1,1,3,3,4,2,3,4,3,1,4,2,4,2,4,1,3,2,4,4,3,2,3,1,2,1,2,3,2,4,2,2,2,1,4,4,1,3,4,4,4,4,3,2,4,1,1,1,1,1,1,3,4,3,1,1,1,2,1,1,4,2,2,1,4,3,2,1,3,3,1,1,4,4,2,4,1,3,3,4,1,2,3,1,2,1,1,3,2,4,4,1,1,1,2,2,1,2,1,4,2,2,1,4,4,3,1,3,2,1,4,2,1,1,3,3,1,3,3,4,4,3,1,4,2,4,1,4,3,1,1,1,2,2,4,1,1,4,4,2,1,2,4,3,3,4,3,2,2,3,2,2,2,4,3,3,4,1,3,3,4,3,4,1,4,4,3,3,3,1,3,1,4,3,2,2,4,2,4,3,4,2,3,1,1,1,3,4,4,3,1,3,3,1,4,3,2,3,1,2,2,1,1,3,3,3,2,2,4,3,3,4,4,1,4,4,1,3,2,3,3,1,1,2,1,4,3,2,1,1,3,2,1,4,3,4,4,1,4,2,1,4,2,1,4,3,4,3,3,3,3,4,1,4,1,3,1,4,4,1,1,4,2,3,2,3,2,3,1,1,4,1,4,1,4,1,3,2,4,1,3,3,2,2,3,2,4,3,2,1,1,1,2,3,3,1,3,3,2,2,1,2,2,1,2,4,1,2,4,3,2,2,4,4,2,2,1,3,3,4,3,2,2,1,4,3,3,1,2,1,1,1,3,2,3,1,2,1,4,3,1,3,4,4,3,2,3,3,4,1,4,2,2,3,4,3,4,3,2,2,3,4,2,2,3,2,1,1,1,2,4,4,2,3,4,2,2,2,2,2,2,4,4,3,1,1,3,2,3,4,4,3,4,2,4,1,2,3,1,4,3,1,4,2,4,2,2,3,2,3,3,4,2,1,4,3,2,1,4,1,2,1,4,1,1,2,3,1,2,3,1,1,2,2,4,2,3,2,4,1,4,3,2,3,2,1,1,1,2,3,2,2,4,3,4,2,1,2,1,2,1,1,1,2,2,1,2,2,4,2,2,1,3,1,4,2,3,4,3,2,2,3,3,3,4,3,1,4,2,3,2,3,2,3,1,1,2,1,2,4,3,3,1,4,4,3,2,2,3,2,3,2,4,2,4,4,2,1,2,4,3,4,1,3,3,3,2,2,4,1,3,3,1,4,4,3,2,3,4,3,4,3,1,4,4,2,3,2,1,2,1,1,4,2,3,2,2,2}
{2,3,5,6,7,9,10,12,13,14,16,17,19,20,21,22,23,24,25,26,27,28,29,31,32,33,34,35,36,38,39,40,42,43,44,45,48,50,52,53,54,56,57,59,60,63,64,66,68,69,71,73,76,77,78,79,80,81,82,83,85,86,87,88,89,90,91,92,93,95,96,97,99,100,102,104,105,106,107,109,110,111,113,115,117,121,122,123,124,125,128,129,130,132,135,136,137,138,139,140,142,143,145,146,147,149,151,152,153,154,155,157,158,161,162,164,165,166,167,168,169,171,172,173,174,175,177,178,179,180,182,184,186,187,188,189,190,192,193,196,197,199,201,202,203,205,207,208,209,210,211,214,215,216,217,218,219,220,222,224,226,228,229,231,233,235,236,237,239,241,243,244,245,246,247,249,251,252,253,255,258,259,260,261,262,263,264,265,266,268,270,271,273,274,275,278,280,281,282,284,285,287,288,289,290,293,294,295,296,297,298,299,302,304,306,307,308,309,310,312,313,315,316,317,318,319,320,321,322,324,325,327,329,331,332,333,335,336,337,338,340,341,342,343,344,345,346,347,348,349,350,352,354,355,357,358,359,360,361,363,365,367,368,369,370,371,373,374,375,376,378,379,382,383,384,385,387,388,389,391,392,393,395,397,398,399,401,403,405,406,407,409,411,412,413,414,415,416,417,419,420,421,422,423,424,425,426,427,428,429,430,431,432,435,436,439,440,442,443,444,447,449,451,452,453,454,456,457,459,460,462,463,464,465,466,467,469,471,472,473,474,475,477,478,479,482,483,485,486,487,489,490,491,492,493,494,495,499,501,504,506,508,509,510,511,512,513,514,516,517,518,520,522,523,524,525,527,528,530,531,533,534,535,536,537,538,539,541,543,544,545,546,547,549,550,551,552,554,555,556,557,558,559,560,562,565,566,567,568,571,572,573,574,576,577,578,581,582,583,584,585,586,587,588,590,592,594,596,597,599,600,601,602,603,605,606,607,610,611,614,615,617,619,620,621,622,623,624,625,628,629,630,631,633,634,638,639,642,643,646,647,648,649,650,652,654,656,657,658,660,661,662,664,666,667,671,673,675,676,678,679,680,681,682,684,685,686,687,690,692,693,694,696,697,698,699,700,701,702,705,706,707,708,709,710,713,715,716,717,719,720,725,726,728,729,730,731,732,734,735,737,738,739,741,742,743,744,746,747,748,749,750,752,753,754,755,756,758,760,761,763,764,765,768,769,770,771,772,774,777,778,779,780,781,785,786,787,788,790,793,795,796,797,798,800,802,804,805,807,808,809,810,812,813,816,817,818,820,821,822,823,824,825,826,827,828,829,831,832,834,837,838,839,841,843,844,846,847,850,852,853,856,860,861,863,864,865,867,869,870,873,874,875,876,877,878,881,883,884,886,888,889,890,891,892,893,894,897,899,900,901,902,903,904,906,907,908,909,911,912,914,916,917,919,921,923,925,926,928,930,932,933,934,936,938,939,941,943,944,946,947,948,949,950,951,952,953,954,955,956,959,960,961,962,963,965,966,967,968,969,970,971,972,973,974,976,977,978,979,981,983,985,988,989,991,992,993,994,995,996,997,999,1000,1001,1002,1005,1008,1009,1010,1012,1014,1016,1017,1018,1019,1021,1022,1023,1024,1025,1026,1027,1029,1030,1031,1032,1035,1036,1037,1038,1040,1041,1043,1044,1045,1048,1051,1052,1053,1055,1056,1059,1061,1062,1063,1065,1068,1069,1070,1071,1073,1074,1075,1076,1078,1081,1082,1083,1084,1087,1088,1089,1090,1091,1092,1093,1095,1096,1097,1098,1100,1101,1102,1104,1107,1108,1110,1111,1113,1114,1115,1116,1117,1119,1121,1122,1123,1125,1126,1127,1128,1129,1131,1132,1133,1136,1138,1140,1141,1143,1144,1146,1148,1150,1151,1153,1154,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1167,1169,1170,1171,1173,1174,1177,1178,1179,1180,1181,1182,1183,1185,1186,1187,1189,1191,1192,1193,1194,1195,1196,1198,1200,1202,1204,1206,1208,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1221,1222,1223,1224,1225,1226,1228,1230,1231,1233,1234,1236,1237,1238,1240,1241,1242,1245,1247,1249,1250,1251,1252,1253,1255,1256,1257,1258,1260,1261,1263,1264,1265,1266,1267,1269,1270,1271,1273,1274,1275,1276,1277,1279,1280,1281,1283,1284,1286,1287,1288,1289,1291,1292,1293,1294,1295,1296,1297,1298,1300,1301,1302,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1316,1317,1318,1320,1322,1324,1325,1326,1328,1329,1331,1332,1334,1335,1337,1338,1339,1343,1344,1345,1346,1347,1349,1351,1352,1353,1354,1355,1356,1358,1359,1361,1362,1364,1365,1366,1367,1368,1371,1374,1375,1376,1378,1379,1380,1381,1382,1383,1384,1385,1387,1388,1389,1390,1391,1393,1394,1395,1396,1397,1398,1399,1400,1401,1403,1405,1406,1407,1408,1409,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1424,1426,1427,1428,1429,1430,1433,1435,1437,1438,1439,1440,1442,1443,1446,1447,1450,1451,1452,1453,1454,1456,1457,1459,1461,1462,1463,1464,1465,1466,1468,1469,1470,1471,1472,1474,1475,1477,1478,1479,1481,1482,1485,1486,1487,1488,1490,1492,1493,1495,1497,1499,1500,1501,1503,1505,1506,1507,1509,1510,1512,1514,1515,1516,1517,1518,1520,1521,1522,1523,1524,1525,1527,1528,1529,1531,1533,1534,1535,1537,1538,1539,1541,1543,1544,1545,1546,1547,1548,1550,1551,1552,1553,1555,1556,1557,1558,1560,1561,1562,1565,1567,1568,1569,1570,1572,1573,1574,1577,1578,1580,1581,1582,1583,1584,1585,1586,1587,1588,1591,1592,1593,1594,1596,1597,1599,1601,1602,1603,1604,1605,1606,1607,1608,1610,1611,1613,1614,1616,1617,1618,1619,1621,1623,1624,1626,1627,1629,1631,1632,1634,1636,1638,1639,1641,1642,1643,1644,1646,1647,1649,1651,1652,1655,1656,1657,1658,1659,1660,1663,1664,1665,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1678,1679,1681,1682,1683,1684,1686,1688,1689,1690,1691,1692,1694,1695,1696,1698,1701,1702,1704,1706,1707,1708,1710,1712,1713,1715,1716,1717,1719,1721,1723,1725,1727,1728,1729,1731,1733,1734,1735,1737,1738,1739,1740,1741,1742,1744,1745,1748,1749,1750,1751,1752,1753,1755,1756,1757,1758,1759,1760,1762,1763,1764,1766,1767,1768,1771,1773,1774,1775,1777,1778,1780,1781,1782,1784,1785,1787,1788,1789,1791,1793,1794,1795,1797,1798,1799,1800,1802,1805,1806,1807,1809,1810,1811,1812,1813,1814,1817,1818,1819,1822,1824,1825,1826,1829,1830,1832,1833,1834,1836,1837,1839,1840,1842,1843,1844,1845,1846,1847,1849,1851,1852,1853,1854,1855,1857,1859,1860,1861,1863,1866,1867,1869,1871,1872,1874,1875,1877,1879,1880,1881,1882,1883,1884,1886,1887,1888,1889,1890,1891,1892,1893,1895,1896,1897,1899,1901,1902,1904,1905,1906,1908,1910,1912,1913,1914,1916,1917,1918,1920,1921,1922,1923,1924,1926,1927,1928,1930,1931,1932,1933,1934,1937,1939,1940,1941,1942,1943,1945,1946,1949,1950,1951,1953,1955,1956,1957,1958,1960,1962,1963,1964,1965,1966,1968,1970,1972,1973,1974,1975,1977,1978,1979,1980,1983,1984,1985,1986,1987,1990,1991,1992,1993,1994,1997,1998,1999,2000,2003,2005,2006,2008,2012,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2025,2027,2028,2029,2030,2032,2034,2036,2037,2038,2039,2040,2042,2045,2047,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2060,2061,2064,2065,2066,2067,2068,2070,2071,2072,2073,2077,2078,2079,2082,2084,2085,2086,2088,2090,2091,2092,2093,2094,2097,2098,2099,2100,2102,2104,2105,2107,2108,2110,2111,2113,2114,2115,2117,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2131,2133,2134,2135,2136,2137,2138,2139,2140,2141,2143,2144,2145,2146,2147,2148,2149,2151,2153,2154,2155,2156,2158,2159,2160,2162,2163,2165,2167,2169,2171,2172,2173,2174,2175,2177,2178,2179,2180,2182,2184,2187,2189,2191,2192,2193,2194,2195,2197,2199,2200,2202,2205,2207,2210,2211,2213,2217,2219,2221,2223,2224,2225,2227,2228,2229,2230,2231,2234,2237,2238,2240,2242,2243,2244,2245,2246,2247,2248,2250,2251,2252,2254,2256,2257,2259,2260,2261,2262,2263,2264,2265,2266,2268,2269,2271,2272,2274,2275,2276,2277,2279,2281,2283,2284,2285,2286,2288,2289,2291,2293,2294,2295,2299,2300,2301,2302,2303,2304,2306,2307,2308,2309,2311,2312,2315,2317,2318,2319,2320,2321,2322,2323,2326,2327,2328,2330,2331,2333,2335,2336,2338,2339,2341,2342,2343,2345,2346,2348,2351,2352,2353,2354,2355,2357,2359,2361,2363,2364,2365,2366,2367,2368,2369,2370,2371,2373,2374,2375,2376,2377,2379,2380,2381,2382,2384,2386,2387,2390,2391,2392,2393,2395,2396,2398,2399,2400,2401,2402,2403,2405,2408,2409,2410,2412,2413,2414,2416,2417,2418,2419,2420,2422,2423,2425,2426,2427,2428,2430,2431,2432,2433,2434,2437,2438,2439,2440,2442,2444,2445,2449,2450,2452,2454,2455,2456,2457,2458,2460,2461,2462,2463,2464,2465,2466,2467,2469,2470,2472,2473,2474,2475,2477,2478,2480,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2492,2493,2494,2496,2498,2499,2500,2502,2504,2506,2507,2509,2510,2511,2512,2513,2514,2516,2517,2520,2521,2522,2525,2527,2529,2531,2532,2533,2534,2535,2537,2539,2541,2542,2543,2545,2548,2549,2550,2552,2555,2557,2558,2560,2562,2564,2565,2568,2572,2574,2575,2576,2577,2578,2579,2580,2581,2582,2583,2585,2586,2588,2589,2590,2592,2593,2594,2595,2596,2598,2599,2601,2602,2605,2607,2608,2609,2610,2611,2613,2614,2615,2616,2617,2618,2619,2621,2623,2624,2625,2627,2628,2629,2631,2632,2634,2635,2637,2638,2640,2641,2642,2644,2645,2646,2647,2648,2650,2651,2652,2653,2654,2656,2658,2659,2661,2662,2663,2666,2667,2668,2669,2670,2671,2674,2676,2677,2680,2681,2682,2685,2686,2687,2688,2689,2691,2693,2694,2695,2696,2698,2699,2702,2703,2704,2705,2706,2707,2710,2713,2714,2715,2717,2718,2719,2720,2722,2724,2726,2727,2728,2729,2730,2731,2732,2733,2734,2736,2737,2740,2742,2743,2745,2747,2750,2753,2754,2755,2757,2758,2759,2760,2761,2762,2763,2765,2766,2767,2768,2769,2770,2772,2773,2774,2775,2776,2777,2778,2779,2780,2781,2782,2783,2785,2786,2787,2788,2791,2793,2794,2795,2797,2798,2799,2802,2803,2804,2805,2807,2808,2809,2810,2811,2812,2814,2815,2817,2819,2820,2821,2823,2825,2827,2829,2830,2833,2834,2835,2836,2839,2840,2841,2842,2843,2845,2846,2847,2848,2849,2850,2852,2853,2855,2856,2857,2858,2859,2860,2861,2862,2864,2865,2868,2870,2871,2873,2874,2875,2876,2877,2878,2879,2881,2884,2885,2886,2887,2889,2891,2892,2893,2895,2896,2897,2898,2899,2900,2902,2903,2904,2905,2906,2907,2908,2909,2911,2912,2913,2914,2915,2917,2918,2919,2920,2921,2922,2924,2925,2926,2928,2930,2932,2934,2935,2936,2937,2938,2939,2940,2941,2943,2944,2945,2948,2950,2951,2952,2954,2956,2957,2959,2961,2962,2963,2964,2965,2966,2967,2968,2969,2970,2971,2972,2973,2975,2976,2977,2978,2980,2983,2984,2986,2988,2989,2990,2992,2993,2994,2996,2997,2998,2999,3001,3002,3003,3004,3008,3009,3011,3013,3014,3016,3017,3019,3020,3021,3024,3025,3027,3028,3029,3030,3032,3033,3034,3035,3036,3037,3038,3039,3041,3044,3045,3047,3049,3051,3052,3053,3054,3055,3056,3057,3058,3060,3061,3062,3063,3065,3066,3067,3068,3070,3072,3073,3074,3075,3077,3078,3080,3081,3085,3087,3089,3090,3091,3092,3093,3095,3096,3097,3099,3100,3101,3102,3104,3106,3107,3109,3110,3111,3114,3115,3116,3117,3120,3121,3122,3123,3124,3125,3126,3127,3128,3129,3130,3131,3132,3133,3135,3137,3139,3141,3143,3144,3145,3146,3147,3148,3149,3150,3151,3152,3153,3154,3155,3156,3158,3161,3164,3165,3167,3168,3169,3171,3173,3174,3176,3177,3178,3179,3181,3182,3184,3185,3187,3188,3189,3191,3193,3194,3195,3196,3198,3199,3200,3202,3203,3204,3207,3208,3209,3212,3216,3217,3219,3220,3221,3224,3225,3226,3227,3229,3230,3231,3232,3234,3235,3236,3237,3239,3240,3241,3243,3244,3246,3248,3249,3250,3253,3254,3255,3256,3257,3260,3262,3264,3268,3269,3270,3271,3272,3273,3276,3277,3278,3280,3281,3282,3284,3285,3287,3288,3289,3291,3292,3293,3294,3295,3296,3298,3300,3301,3303,3304,3305,3307,3309,3310,3311,3312,3313,3314,3315,3317,3318,3320,3321,3322,3323,3325,3326,3327,3329,3332,3333,3334,3335,3337,3338,3339,3340}
Returns: 1510
1024
{857,471,217,145,53,297,896,177,377,692,968,617,802,663,830,221,625,11,649,216,431,369,248,340,555,558,969,325,224,671,145,148,672,925,48,889,318,284,949,888,943,728,767,219,24,613,278,466,895,911,196,550,1006,683,142,797,770,65,1002,783,33,624,84,816,774,636,1015,56,207,45,167,966,874,220,294,205,255,434,16,207,754,746,814,579,512,471,927,619,835,13,761,386,31,40,845,105,391,923,15,499,412,305,989,57,316,323,885,978,504,774,108,818,956,489,708,33,143,699,772,11,1007,532,838,417,656,94,111,885,709,34,465,830,331,33,137,175,481,343,292,331,740,85,356,1021,779,491,410,1009,99,226,112,492,999,331,482,566,308,465,500,824,632,159,396,516,265,915,39,586,1004,702,812,659,565,181,15,37,58,446,223,912,881,398,910,933,541,820,735,118,291,925,197,774,987,342,267,110,791,822,28,123,633,24,265,37,190,795,829,979,452,629,984,1007,748,693,41,3,197,242,656,430,801,123,211,116,802,926,786,719,351,837,94,778,226,662,630,967,647,527,91,184,817,321,1000,891,598,760,327,909,393,359,971,490,237,757,641,540,999,58,994,650,256,262,780,288,876,144,565,950,155,107,342,330,10,590,396,393,914,670,331,16,694,75,812,925,914,672,252,871,159,691,693,510,740,63,278,336,247,291,459,712,987,782,887,279,970,150,607,700,1013,398,792,294,365,581,850,76,698,596,418,343,775,427,70,365,335,436,987,671,436,199,579,410,204,921,840,520,718,701,25,622,597,578,50,451,216,516,549,566,253,874,98,79,407,64,588,228,623,663,971,655,721,746,494,183,109,39,372,685,69,236,146,283,542,455,989,695,600,601,784,767,307,494,282,734,499,91,1022,807,1007,267,5,37,813,132,805,965,516,7,168,387,293,934,705,970,860,179,829,575,693,335,585,853,196,476,509,388,93,527,915,410,901,408,766,1012,263,952,10,422,496,369,114,320,23,932,189,115,981,284,637,136,83,66,270,925,762,346,751,894,35,1009,197,293,135,418,28,294,178,102,841,425,378,67,293,540,619,685,705,875,275,405,746,314,606,254,744,407,338,1005,489,143,275,113,78,35,633,744,602,901,67,455,471,431,935,442,184,24,519,366,809,460,888,292,532,514,255,978,1003,783,203,694,90,968,489,47,110,328,159,1014,1001,642,65,264,437,340,774,296,170,582,93,597,887,223,589,62,500,537,652,682,1013,382,61,424,389,850,964,349,614,906,653,421,721,322,348,221,434,538,134,433,221,791,596,360,590,641,215,699,520,721,438,300,756,694,928,451,488,310,660,12,255,779,442,398,655,931,790,544,553,144,835,256,894,415,319,288,634,659,100,724,376,280,193,461,547,654,102,78,917,294,651,913,8,769,16,392,700,71,892,361,709,636,344,770,480,993,205,63,750,347,861,282,563,4,428,1001,587,390,712,778,921,839,655,214,213,160,893,27,679,925,976,417,319,515,431,671,611,533,505,174,964,756,344,366,275,95,872,738,775,115,24,373,93,1016,941,436,967,771,643,512,508,1000,573,933,290,467,726,884,846,757,763,848,61,947,40,254,764,299,10,563,770,295,530,759,258,158,388,337,707,19,458,149,609,588,139,727,138,590,714,137,695,259,56,224,455,401,496,310,767,302,1014,652,312,26,811,551,455,363,957,371,189,626,690,344,538,211,970,697,486,941,974,13,863,210,567,967,1017,659,48,964,378,376,532,1000,826,788,996,251,361,39,119,219,561,101,738,608,934,377,264,392,695,303,568,13,661,81,141,757,407,54,985,901,57,242,260,172,110,213,285,518,898,1017,955,673,680,954,218,979,613,562,766,980,853,321,833,46,789,788,465}
{4,5,6,9,12,18,19,23,26,27,29,31,33,37,38,41,42,44,45,47,48,51,54,57,60,63,67,72,73,74,77,82,84,87,88,91,96,98,101,104,107,110,113,116,118,122,124,128,133,135,138,143,147,149,151,155,157,160,161,164,165,167,171,174,176,178,181,183,185,187,191,194,196,200,205,210,212,216,219,222,226,230,232,236,239,241,243,247,255,262,265,268,269,273,275,278,282,284,289,291,294,296,298,301,304,305,306,308,312,314,316,317,319,322,326,327,330,332,334,338,341,345,346,350,352,354,359,363,364,366,368,371,373,374,376,377,381,386,387,388,391,392,394,396,400,403,405,406,408,409,413,418,420,424,425,427,430,432,433,435,437,440,441,444,447,449,451,454,456,461,463,464,468,471,473,476,478,481,483,485,491,493,496,499,502,504,508,509,512,515,517,521,523,526,527,529,534,536,539,541,544,548,550,554,557,559,561,565,566,570,573,575,576,577,579,581,584,587,589,591,595,598,600,602,603,604,605,607,608,610,611,613,615,617,619,620,624,627,628,631,633,637,639,640,642,645,648,652,655,656,658,660,661,663,665,667,670,673,674,677,679,682,685,686,687,688,691,694,697,700,704,706,709,711,714,716,720,722,723,728,729,731,733,736,737,739,741,743,744,749,752,754,756,757,759,761,764,765,768,771,775,777,778,779,782,784,785,789,794,795,797,799,802,804,805,809,811,813,815,816,817,818,823,824,825,826,827,830,832,833,835,837,839,844,847,850,852,854,859,861,864,866,868,872,874,878,882,883,884,887,891,893,894,898,902,906,909,913,915,919,920,924,925,928,931,934,937,939,940,942,943,948,950,952,954,958,959,962,964,966,967,970,972,974,978,983,984,986,989,991,994,997,999,1003,1006,1007,1008,1010,1012,1015,1020,1021,1022,1025,1026,1028,1029,1030,1033,1034,1036,1040,1041,1044,1047,1049,1051,1054,1056,1057,1058,1060,1064,1066,1068,1072,1077,1079,1080,1086,1091,1093,1095,1098,1101,1102,1103,1105,1110,1111,1113,1116,1117,1118,1119,1121,1124,1126,1128,1132,1133,1136,1137,1140,1144,1146,1148,1153,1159,1163,1167,1169,1172,1174,1175,1177,1180,1182,1184,1188,1190,1192,1196,1199,1201,1203,1207,1209,1212,1215,1217,1219,1223,1225,1226,1228,1230,1232,1234,1236,1238,1241,1243,1246,1247,1252,1255,1257,1258,1260,1264,1267,1270,1273,1274,1277,1279,1281,1285,1289,1294,1296,1299,1300,1301,1304,1306,1308,1309,1312,1319,1320,1323,1324,1327,1329,1330,1331,1334,1336,1337,1342,1344,1346,1349,1352,1355,1357,1360,1363,1367,1368,1371,1372,1374,1377,1380,1382,1386,1389,1392,1394,1399,1401,1404,1406,1407,1410,1413,1415,1417,1418,1421,1425,1428,1429,1430,1435,1438,1441,1443,1445,1447,1452,1453,1455,1458,1462,1466,1469,1472,1475,1477,1478,1479,1481,1483,1487,1489,1491,1493,1496,1499,1501,1504,1506,1511,1514,1517,1521,1525,1527,1530,1533,1537,1539,1542,1545,1547,1549,1551,1553,1554,1557,1560,1562,1564,1566,1569,1572,1574,1576,1579,1583,1585,1586,1587,1588,1589,1591,1592,1594,1596,1597,1598,1601,1603,1604,1606,1607,1608,1610,1612,1615,1619,1621,1624,1626,1629,1633,1634,1636,1639,1641,1643,1647,1651,1653,1655,1656,1658,1659,1660,1661,1663,1666,1669,1672,1673,1678,1680,1683,1687,1689,1691,1693,1695,1698,1702,1707,1710,1711,1713,1716,1718,1719,1720,1722,1725,1729,1731,1734,1738,1744,1745,1748,1751,1755,1759,1762,1765,1766,1768,1772,1773,1776,1778,1779,1782,1784,1787,1788,1792,1794,1798,1800,1801,1803,1804,1806,1811,1812,1815,1817,1819,1820,1823,1825,1827,1828,1832,1834,1835,1840,1843,1844,1847,1849,1851,1853,1855,1858,1859,1860,1863,1865,1867,1868,1871,1874,1875,1879,1883,1886,1889,1892,1894,1895,1899,1903,1905,1906,1908,1911,1913,1915,1922,1924,1926,1931,1932,1935,1938,1942,1946,1948,1950,1952,1955,1958,1960,1966,1968,1972,1975,1977,1979,1980,1982,1985,1988,1991,1994,1998,2001,2004,2007,2009,2012,2014,2019,2020,2022,2025,2030,2032,2035,2039,2042,2046,2051,2052,2057,2059,2063,2066,2069}
Returns: 567
256
{112,164,246,152,163,230,56,82,111,147,112,216,172,251,141,251,162,207,173,97,154,14,126,49,70,236,169,55,26,60,231,36,43,193,5,242,66,39,156,31,227,105,95,207,154,200,5,205,151,132,124,178,180,6,178,97,85,64,165,161,46,152,102,76,216,207,209,111,84,9,79,94,18,55,107,161,186,230,102,127,16,181,212,196,143,114,48,73,233,43,255,193,121,110,80,61,216,47,181,230,53,192,182,104,188,204,97,174,92,12,80,151,136,22,122,123,247,155,132,126,120,248,229,213,202,15,228,121,1,10,238,224,133,195,215,189,212,64,163,17,60,227,53,33,122,186,184,103,208,138,6,224,74,27,67,156,62,127,229,239,204,25,242,26,231,88,187,212,209,62,140,182,82,28,206,15,190,252,218,102,251,179,89,130,226,157,79,132,45,178,46,121,212,161,15,78,255,88,16,40,46,153,30,173,225,201,202,208,29,156,228,139,110,217,45,216,164,208,81,37,90,1,128,148,133,179,64,48,175,61,11,130,47,28,233,192,198,246,196,48,38,29,143,64,153,57,68,36,186,59,175,241,94,224,152,98,24,174,74,187,153,99,138,135,239,153,57,71,5,129,112,119,70,104,133,173,253,244,179,32,60,205,52,40,89,219,131,228,195,253,24,172,217,150,119,131,155,56,127,59,149,50,19,188,29,174,214,89,17,179,97,239,147,78,160,18,224,206,40,116,53,28,82,79,5,215,107,119,3,10,251,138,115,18,50,138,22,130,184,19,91,146,208,66,36,12,108,106,42,87,37,131,75,209,56,123,108,104,143,99,89,217,164,174,237,8,132,187,59,63,126,15,210,72,25,203,50,207,218,27,128,150,218,151,2,180,190,222,148,15,189,212,59,54,85,126,50,170,38,142,76,168,209,83,121,143,50,230,6,5,59,46,234,34,187,133,179,232,227,124,246,162,229,176,248,201,57,68,28,91,12,12,24,195,47,82,64,202,108,133,86,55,122,4,27,63,233,238,135,32,79,116,255,207,174,65,22,230,111,17,70,161,179,157,15,255,160,218,33,242,60,93,234,182,232,196,164,91,251}
{2,6,10,14,16,22,25,27,29,32,36,41,44,48,50,54,58,60,68,73,76,78,80,81,82,84,87,90,91,93,95,98,100,104,110,113,117,119,120,123,126,129,133,138,139,141,145,147,151,153,159,160,163,166,169,171,178,180,183,185,188,193,196,199,201,204,207,211,215,218,221,225,227,230,232,237,240,245,247,252,256,259,262,265,268,269,271,273,275,277,279,283,285,291,295,298,301,304,305,307,308,311,313,316,319,320,323,325,327,331,334,337,340,346,349,353,355,358,363,364,366,370,372,376,379,381,386,389,393,398,400,402,404,406,408,412,414,418,424,427,429,432,437,439,441,445,448,449,452,453,456,458,461,463,467,470,473,476,482,486,490,492,498,501,505,508,513,516,519,522,525,529,532,534,540,541,544,547,550,551,554,558,563,569,572,577,579,580,583,585,587,588,591,594,596,599,601,604,608,610,612,614,618,623,626,628,630,631,633,635,638,640,641,649,652,653,656,663,669,672,674,676,678,679,683,687,690,693,694,697,702,706,709,713,716,718,722,727,732,734,736,743,745,749,754,758,759,763,767,769,774,775,779,783,785,787,790,795,797,801,806,807,810,814,817,821,823,827,830,831,832,834,835,839,840,843,847,851,853,854,857,860,864,868,870,875,878,880,883,886,888,892,895,898,903,908,909,914,917,922,925,928,934,938,939,941,944,948,950,952,955,956,959,962,969,970,975,977,979,981,983,986,990,991,993,994,997,999,1003,1005,1009,1011,1013,1016,1020,1024,1029,1034,1037,1042,1045,1047,1049,1054,1059,1064,1068,1071,1075,1077,1078,1082,1086,1087,1088,1091,1097,1102,1104,1111,1113,1117,1121,1124,1125,1127,1128,1131,1133,1136,1141,1145,1147,1149,1151,1157,1161,1166,1168,1170,1171,1175,1177,1180,1181,1183,1186,1191,1193,1198,1201,1205,1207,1210,1212,1215,1218,1222,1227,1232,1233,1237,1239,1241,1243,1246,1247,1249,1252,1257,1259,1261,1268,1271,1274,1277,1281,1286,1288,1291,1294,1297,1301,1305,1312,1315,1318,1323,1324,1326,1331,1337,1339,1341,1347,1349,1353,1354,1356,1358,1362,1367,1369,1371,1375,1377,1381,1385,1388,1392,1394,1397,1401,1405,1406,1409,1414,1418,1421,1424,1426,1429,1430,1434,1435,1437,1442,1444,1445,1449,1452,1458,1463,1467,1470,1473,1477,1481,1483}
Returns: 337
65536
{63494,10656,57040,11108,1627,19713,8609,22815,33389,5779,22611,64282,20688,21240,48206,5013,59301,6346,37396,45858,11896,32043,47770,14184,21025,33142,35662,17481,5005,24748,49096,5945,21133,51108,63085,15600,55312,12070,20362,57766,44390,33629,29850,60560,41073,32867,33738,55123,61162,44999,6644,47755,29969,48973,64401,22716,9844,64848,43883,2358,2477,9084,37904,17604,27190,15574,18237,15924,30131,24638,48341,24847,1119,11483,26902,51468,56943,29230,30746,50456,27290,12724,31449,16643,21538,13384,22593,33046,24829,49602,25354,62274,25348,42366,2926,63895,59728,36529,49626,31285,6425,2013,17991,45293,57284,46258,52698,14138,33278,16939,7900,30549,26117,30915,337,51077,55688,11529,10406,15078,32178,24306,2360,52568,63059,46244,58046,61510,29500,41391,42708,42614,44338,63452,18725,19741,64038,21269,29949,59607,11904,52731,39485,19792,7085,45378,49662,48812,40534,23524,41308,48133,22732,30381,61223,31383,26793,41427,6030,14685,41133,12162,1778,64825,4680,10904,60272,30209,64631,56575,31453,50418,34751,17751,33081,40299,4487,28637,14811,49396,11036,29391,15323,10226,56071,58033,36977,16525,8605,61222,57431,36256,15336,64860,33649,38851,41536,33073,42024,37575,19017,2684,38495,21033,17968,63562,63449,10076,30009,2009,11895,3320,39971,421,24251,4629,58846,6884,852,20855,32658,15913,58563,57419,48390,21035,20034,2200,62678,49611,908,54179,3605,64737,43309,24808,35633,25973,1909,50806,47196,8539,52792,16309,34223,37990,17904,16383,32722,56219,43256,38530,19442,32288,46568,12628,1584,44247,27217,13756,58342,54738,47959,5137,34161,1297,36856,62895,30030,34892,14068,25567,27835,36770,4251,20167,6205,4469,11023,43946,16548,3030,7591,47631,28534,23105,34444,40870,24546,47751,11196,29427,53153,18482,59141,64791,36185,43451,12983,29516,62583,26456,25353,10459,24723,26442,22130,49835,33991,22489,44425,50614,64921,58243,26901,29163,58972,59382,9058,47976,46379,36059,63512,56322,8916,924,37902,26498,28266,60824,54504,1310,56909,57974,54903,61697,64213,21641,18982,12542,41213,7551,31470,63404,46517,20922,28312,2453,62642,38175,11084,6198,4076,4146,18099,61166,5928,20680,35370,65063,59683,54706,42445,18771,16982,49431,41551,64644,55137,12662,65526,63164,52110,3447,14126,26174,48642,41729,40304,11389,39562,22096,34713,8039,21784,49639,57549,26172,47454,5296,21391,8228,33318,12186,37041,15147,65093,127,13872,57965,41804,56383,22072,12930,4191,9781,42195,62343,11723,26505,57603,61505,18502,5390,9288,8776,16627,42639,25056,21298,11666,20177,34096,799,3703,38832,19747,23862,37431,25098,14471,49887,14621,19826,38295,65232,36050,22482,3403,33095,35548,39280,53530,7921,53967,24088,59461,44127,41814,32831,63450,30741,13178,55152,18175,5511,32699,48993,44859,9108,13554,14693,40656,47443,64779,60984,20821,60481,5122,25163,59676,29482,46532,768,8744,49486,42968,20379,60844,5548,56298,17604,25441,57964,60070,24019,7212,41169,61563,62308,14292,40500,10280,31441,1493,36572,31042,11926,34698,48086,4869,62401,51248,28930,5653,58606,21892,59656,16928,51069,64004,21732,38507,54250,14351,50492,54978,42629,60262,43965,61537,57854,58577,25366,19635,2407,18926,44133,14880,23469,357,22826,46379,1722,31243,26891,1699,56479,43436,47870,56751,53655,13958,4534,50919,60856,23735,37708,9171,2454,18202,7313,4218,41279,16732,47243,63194,17743,24384,19698,60018,46588,62314,5310,18493,32863,30226,53798,33219,2656,19076,47490,27672,22005,10326,63242,58879,26804,52127,22883,10871,12506,62899,7005,44918,62789,46627,65397,652,55817,27138,61404,44987,51099,56755,7729,57537,3775,33734,11808,3469,30636,49559,20116,51384,1815,59592,17727,27941,43035,37573,22663,13353,5673,47578,46137,1509,54904,6557,23939,10147,52392,5813,2841,50798,64129,44083,16000,15924,18187,41736,52204,59420,48491,42581,38438,11510,36916,40351,42093,37598,21036,5151,57409,32636,16800,23222,47491,29306,14287,32836,42872,36387,51732,12907,64883,24115,28353,5873,53837,61264,987,13399,51685,29645,59952,36437,26713,58500,885,12618,13988,18178,18014,34262,26839,33885,18398,60461,58917,1613,3337,19676,35684,41596,46409,33538,16591,46624,4298,16969,1045,46664,872,24847,22545,58239,43131,15765,41919,16797,34872,19241,59948,28411,54183,45708,60817,30806,34889,22308,16333,20757,37111,32940,64234,10694,30101,57193,56426,30977,61349,40752,18041,11530,50642,50092,14940,9938,42231,5816,47001,53575,18766,34759,3013,25091,11958,63894,34550,4808,11082,8637,47413,28011,52144,19395,54652,38403,1246,34780,5911,22931,54076,2928,3706,43388,43869,20487,35545,5738,13503,52039,28185,53138,41791,61727,6376,42345,10299,36676,17681,37169,24718,30615,5214,19725,22749,56630,53915,39522,48603,48676,27011,61124,4752,12778,52663,25024,21166,31640,48135,57389,15252,19443,63139,56281,37507,46812,53766,59596,8989,64790,18855,64360,56648,29202,1232,17690,28143,29535,44059,65401,59994,40410,45172,53238,43521,10964,11441,53364,14099,42420,56073,45954,21033,63698,12296,60673,25036,9875,36040,16993,19140,57865,8836,42973,39532,41100,37341,55890,8293,44064,34910,46988,37244,13476,40710,61756,37261,23546,34056,22765,36540,49104,4590,44437,11355,4511,13004,34232,38970,58380,50768,43818,2385,62155,25518,65501,54004,53406,47327,52568,60428,5410,42135,12997,34293,55927,28913,16285,21258,39169,39871,11131,26875,13758,27115,1424,16243,26110,7010,10423,10151,24954,62838,47935,48610,14851,33201,33740,16928,5731,20342,26355,31033,64528,16137,62331,46158,51670,56512,32081,57453,33697,39798,27050,3211,5615,52638,30947,43109,17848,5229,3331,56028,38846,40206,42506,45779,39054,60372,3947,41394,5298,9677,1098,41744,32480,49481,25198,45351,63508,17946,24065,43527,11241,20143,35456,38343,31153,19277,63359,21013,45308,41217,4648,987,65195,40482,30342,21497,34237,26210,24085,26672,34146,26838,58151,48578,56332,10873,58122,34672,11662,12286,58123,62661,61569,39436,65210,54513,11634,38694,36887,23439,51359,9953,62591,27159,50493,51763,35712,42216,3995,42213,52989,50982,391,17548,11831,7371,724,47502,10148,50863,24051,61186,63421,28784,40675,13966,5395,27758,39166,52608,40033,48719,32348,47299,49514,30904,18915,46461,21465,63279,6950,9318,26995,59747,2482,50737,18759,55603,25471,55180,50618,53568,16511,39829,19864,3565,54179,43993,7807,12039,59325,29978,11603,13435,34071,8329,35733,44250,53943,51506,19139,57498,58516,17842,8480,28987,20022,65169,23945,55246,65434,16839,2615,27280,10301,17470,30864,5503,39593,35438,53868,48683,28920,49499,46952,24357,33047,10634,24375,17360,34244,38333,13314,29041,49040,42897,23110,14021,14177,25663,9679,3966,47673,29733,3501,34147,7237,24540,19274,32003,20339,58865,62210,26666,24597,5267,65244,11405,30794,10953,30289,10589,41280,25859,38956,43704,6013,49423,44547,17950,44480,30165,64208,3951,59444,21338,2204,21008,12285,32743,29535,32307,48471,3941,12643,18044,40152,49721,17390,32349,33413,53565,44270,9723,62417,3230,33004,13422,44978,48056,61072,7590,8798,39993,8034,50524,8301,5932,59308,36034,7003,17071,21911,27878,32705,36716,20974,39930,62371,4396,44830,4078,47555,10761,13668,19736,38092,35,30012,21457,9151,36310,27517,11329,55047,19669,19647,33737,19464,29872,8174,3001,4899,34203,10800,52559,41585,24715,36984,29476,32185,32245,64878,40067,27237,60613,35985,43861,56435,41822,46505,8602,42919,21686,30200,36761,26240,27615,32451,18505,63154,2188,49953,36233,57637,55148,22809,43579,33216,26982,17556,31836,18808,15621,27813,17804,33651,1462,44577,13513,39992,56467,47252,61,2087,61155,9478,4699,36050,61074,46,16825,57054,310,54250,51033,15490,10875,5681,11096,60123,14080,50636,11306,17053,64756,59274,14565,18139,24593,35016,62269,38648,59071,58990,21036,60143,54890,22985,27255,12160,48499,46814,38532,50693,2356,55836,45863,25064,50936,15757,27500,31752,63230,36839,6521,23171,59586,29222,38679,14767,61502,45699,29808,14657,25558,38395,28692,20198,15127,955,46948,42445,54928,45079,27361,32997,29020,46834,7684,60371,32045,28593,36506,17633,45540,42789,39897,61542,59930,54789,39319,21611,65044,23771,30806,37263,44807,18578,57119,19563,23735,42226,16475,16634,44989,60606,10003,18372,39703,47441,30291,60109,6074,28117,6307,42646,50519,15488,43454,31133,11148,36469,63749,29487,44824,35108,57172,34955,28406,9821,50996,5522,9558,5726,29339,5255,55513,28059,64936,18093,41626,61962,55822,15792,3545,46627,33571,29743,40541,37357,63168,27102,56017,62663,37744,1537,53442,31931,55431,22861,26625,47764,43316,13924,899,35847,8102,65137,56840,32662,45501,28082,18732,51223,25859,10722,30109,24566,5074,21193,45979,7835,20956,23422,11021,44173,21135,271,58042,30023,20477,18844,36479,61383,21822,5410,1162,55634,64386,61299,27130,18427,40248,33068,8038,52445,48915,13209,13871,14367,62149,23000,49046,62258,17330,30640,38664,20444,21002,3307,24855,40185,40187,41516,22780,19476,8430,45699,11961,62782,23290,29512,43043,37050,63246,27128,61296,53354,60021,13849,31249,7452,32942,62309,15092,24087,60615,7877,25462,23436,17842,63183,20129,16078,28729,59103,21121,28013,23961,43507,7070,48802,12765,30952,59139,54433,22910,50619,26432,13751,20977,48115,24926,39777,60696,64593,5819,53159,9157,53356,24881,23414,8133,24795,65297,15052,547,20230,60618,50646,3732,29143,53832,114,20800,23241,31328,35747,34902,46880,736,34537,5928,38727,62473,51603,3246,9362,46737,65145,54201,21492,61307,22197,63278,45652,8526,47683,33050,32162,37520,38821,57198,56264,57732,46586,58808,10017,56713,46870,30509,63000,13991,18827,41162,47620,21532,25801,28534,36725,11006,19360,39508,8327,15936,31720,11716,18408,2482,9230,49073,31134,63937,12739,23091,54484,47650,36643,13731,10274,5526,44528,36777,8218,55680,4823,26848,20006,12284,11468,46864,46044,43944,26345,42541,1393,53332,3438,54922,58343,15428,20690,8947,58903,46534,27627,23978,26051,18736,46252,40800,44093,21414,10506,14267,18532,53026,56302,2821,3576,29860,32858,11517,31873,20886,13081,54526,4697,15793,36267,23534,24203,14079,65342,53405,31384,2492,25321,54169,62289,53822,52338,55188,3682,55073,36704,38880,51258,62039,38429,37543,56403,16359,14687,39125,43059,4463,59954,4582,49030,13757,11073,26125,38452,31756,34892,7520,47959,64190,29917,42751,48751,2459,15788,26470,65088,4087,33360,41314,20261,16185,65306,2379,40159,4785,51516,22159,27159,62907,33199,62374,22045,49538,27994,238,40869,56324,54143,15138,61819,41498,32119,64090,42119,28311,46376,27333,2177,223,43482,21654,13110,15729,46405,17608,19537,17224,38148,44224,18922,39202,20165,39655,39010,50677,8157,709,13898,50,35621,10045,25434,49049,21053,40418,8120,58818,59795,36514,24336,57756,49376,18207,323,43641,35819,62859,22700,44935,37308,25301,17469,57516,60068,53363,43509,50739,32694,45619,27766,13518,37015,55487,52406,35772,32451,50638,34583,37676,40880,20272,57686,308,57703,27180,19754,25564,8064,62676,14724,44835,8346,38746,10937,62977,22198,25466,14358,58817,42771,44164,39839,29509,45174,44715,5889,51707,16626,142,36591,62629,61086,30251,25721,59450,4309,4278,49677,37236,43492,54008,18488,17897,11080,54839,17501,33193,24798,51151,57828,10956,14755,3056,38053,44144,38640,7736,20889,6921,50501,27920,2307,15359,50199,55568,15263,47878,3123,13765,29333,4012,5792,42399,55351,38399,32802,28400,11709,9551,18364,62507,57497,105,20698,52701,4107,21211,1019,41232,59917,36622,41736,12543,58570,59722,43183,22369,42,56314,21614,684,26931,6591,22314,5639,36670,37411,28277,2789,63813,13818,40680,32874,61393,63702,43050,31005,24124,9472,16281,58259,9304,30700,39066,12032,28594,42263,50194,6372,39420,52672,31377,38218,30811,13305,63262,44866,64919,61417,41666,33683,36726,46676,29492,971,30149,53176,2380,1067,22474,14219,52757,13077,54053,31613,34733,64759,54624,23224,8522,3045,34742,21897,44046,1611,19147,22004,61574,27764,30300,23040,17146,63697,20263,37095,44782,45877,60299,44126,63607,64372,36267,16280,25669,11293,20492,58835,45443,6722,57326,37502,13048,41841,26356,56657,32502,44902,46020,21724,49172,34584,10165,57966,19139,10006,60870,4701,48670,16240,34136,41983,41127,59275,47485,7410,7112,43176,46035,15224,13107,26108,63534,3068,38808,54684,48276,5657,65085,45473,16207,36270,47462,34108,29464,46291,10163,64947,38808,41919,29380,62313,6847,31736,65498,62324,28099,42070,59209,61029,20145,2992,49637,54589,26087,38980,7618,22974,64751,55852,62970,48011,634,53110,39747}
{3,5,8,10,14,16,18,21,23,26,28,30,33,37,39,41,44,46,47,49,53,57,60,62,63,64,66,68,72,75,76,77,79,83,85,88,89,91,92,96,99,102,104,110,112,116,118,120,123,125,127,129,132,134,136,138,139,143,145,146,147,149,151,153,158,161,165,166,169,172,175,176,178,182,186,190,191,192,197,202,206,208,209,211,214,216,220,225,228,230,231,234,238,241,242,243,244,247,251,252,256,257,259,262,263,264,265,266,270,271,272,273,276,278,279,280,283,287,289,292,296,301,302,303,304,307,311,313,316,320,322,323,326,328,330,332,333,334,335,338,339,341,343,345,346,347,348,351,353,356,358,359,361,364,366,368,369,372,374,376,379,383,385,388,391,393,396,397,399,403,404,406,408,410,412,416,419,420,424,429,432,435,437,441,447,451,454,458,459,460,462,464,467,469,471,473,477,479,481,485,486,489,494,496,497,502,504,507,509,513,515,519,521,523,524,527,530,532,535,537,542,544,545,547,549,553,554,556,557,559,560,561,564,566,568,569,575,576,578,581,584,585,586,590,594,595,599,602,603,607,609,611,613,615,618,621,625,630,632,633,637,638,639,642,644,645,647,651,652,656,659,661,663,666,669,672,675,676,679,682,683,685,686,689,692,694,695,698,700,702,705,708,710,713,714,716,719,723,727,728,730,732,734,737,741,743,745,748,750,751,752,753,757,759,762,766,769,771,772,775,778,780,781,784,786,791,794,797,799,800,802,804,807,808,809,811,812,814,818,819,821,824,825,827,829,831,834,835,837,839,840,843,846,850,851,852,854,855,857,858,862,867,868,871,872,873,875,878,881,884,885,887,890,891,896,899,902,906,910,912,914,921,922,924,926,928,931,934,938,941,942,944,946,947,948,950,952,953,954,955,959,961,965,968,971,973,976,979,987,991,993,996,998,1001,1003,1005,1008,1011,1013,1015,1016,1019,1022,1024,1028,1034,1036,1038,1041,1043,1047,1049,1051,1052,1055,1058,1061,1066,1068,1069,1071,1074,1076,1080,1083,1087,1089,1092,1094,1099,1100,1102,1106,1109,1110,1114,1115,1120,1121,1123,1124,1129,1130,1132,1135,1139,1141,1142,1143,1145,1147,1150,1151,1153,1157,1159,1160,1162,1166,1171,1174,1176,1179,1183,1185,1187,1189,1191,1193,1196,1197,1200,1203,1206,1208,1210,1213,1215,1217,1219,1222,1224,1226,1228,1230,1232,1238,1242,1245,1246,1248,1249,1252,1255,1256,1258,1260,1261,1263,1265,1267,1268,1270,1273,1277,1281,1282,1284,1285,1288,1291,1293,1295,1297,1300,1301,1303,1305,1306,1307,1311,1313,1319,1321,1326,1328,1333,1334,1335,1338,1340,1342,1343,1345,1347,1349,1351,1353,1354,1357,1361,1363,1368,1370,1372,1375,1378,1380,1381,1383,1384,1385,1386,1389,1390,1393,1395,1397,1398,1402,1406,1409,1412,1414,1416,1419,1422,1423,1426,1428,1429,1430,1433,1436,1438,1440,1442,1445,1448,1450,1453,1456,1457,1458,1459,1462,1466,1467,1468,1472,1475,1481,1483,1485,1487,1488,1489,1493,1498,1502,1505,1506,1509,1511,1513,1516,1519,1520,1523,1529,1530,1531,1534,1535,1539,1542,1545,1547,1549,1550,1551,1556,1558,1559,1562,1563,1566,1567,1570,1574,1575,1577,1580,1583,1586,1589,1593,1595,1599,1602,1603,1605,1607,1610,1613,1615,1618,1621,1622,1623,1624,1627,1629,1631,1633,1637,1640,1641,1643,1645,1647,1650,1651,1656,1657,1661,1664,1666,1670,1672,1674,1676,1678,1680,1682,1686,1688,1689,1695,1697,1698,1702,1704,1706,1709,1712,1714,1718,1720,1721,1724,1725,1727,1728,1729,1731,1734,1737,1739,1740,1743,1745,1750,1752,1753,1757,1760,1763,1765,1767,1768,1769,1773,1775,1778,1779,1780,1782,1783,1786,1788,1790,1791,1794,1798,1801,1804,1806,1808,1810,1812,1814,1818,1819,1821,1822,1824,1826,1828,1830,1831,1833,1835,1837,1840,1841,1842,1845,1848,1849,1851,1854,1856,1857,1859,1861,1863,1864,1867,1871,1872,1873,1874,1876,1879,1881,1884,1888,1891,1894,1897,1900,1901,1902,1905,1908,1912,1916,1918,1923,1928,1930,1934,1937,1938,1939,1942,1944,1946,1948,1952,1953,1954,1960,1962,1963,1966,1968,1969,1971,1973,1976,1977,1980,1982,1984,1989,1992,1994,1997,1998,2001,2003,2006,2009,2014,2017,2020,2023,2025,2028,2029,2033,2034,2037,2040,2044,2046,2048,2051,2053,2055,2057,2060,2062,2063,2065,2068,2070,2073,2076,2079,2080,2083,2085,2086,2090,2092,2095,2097,2098,2103,2104,2110,2112,2116,2118,2120,2121,2122,2124,2125,2128,2130,2131,2134,2137,2138,2140,2141,2143,2146,2149,2150,2153,2154,2158,2159,2161,2162,2164,2166,2169,2172,2173,2174,2176,2179,2181,2184,2187,2188,2191,2194,2197,2198,2199,2203,2206,2208,2209,2212,2214,2217,2223,2227,2231,2234,2235,2238,2240,2242,2244,2249,2250,2254,2256,2258,2261,2265,2267,2272,2275,2276,2277,2279,2282,2285,2288,2291,2294,2295,2297,2300,2303,2305,2307,2312,2315,2318,2319,2320,2322,2325,2326,2328,2329,2330,2332,2336,2337,2338,2339,2342,2343,2345,2347,2351,2354,2355,2356,2359,2362,2363,2365,2367,2369,2373,2375,2376,2377,2379,2380,2381,2382,2386,2388,2393,2396,2399,2401,2404,2407,2409,2411,2415,2417,2420,2422,2423,2425,2428,2431,2433,2436,2439,2440,2441,2442,2444,2445,2446,2448,2453,2459,2461,2462,2465,2468,2472,2474,2476,2478,2480,2482,2484,2487,2488,2490,2491,2494,2496,2498,2500,2502,2505,2506,2508,2511,2515,2517,2519,2521,2523,2524,2525,2526,2529,2530,2531,2532,2535,2539,2543,2545,2547,2548,2550,2555,2558,2561,2562,2563,2567,2569,2571,2572,2574,2576,2578,2582,2583,2585,2587,2590,2594,2595,2599,2601,2602,2603,2607,2611,2613,2615,2616,2618,2620,2623,2625,2626,2627,2630,2635,2638,2639,2640,2643,2647,2649,2653,2655,2656,2657,2659,2661,2663,2665,2667,2669,2671,2672,2675,2677,2681,2685,2688,2690,2692,2695,2697,2700,2701,2703,2708,2711,2713,2716,2721,2722,2725,2726,2729,2734,2735,2736,2738,2740,2743,2746,2749,2751,2753,2754,2755,2757,2761,2767,2768,2772,2775,2777,2779,2781,2783,2786,2789,2792,2793,2794,2796,2801,2804,2807,2810,2811,2812,2813,2819,2820,2824,2830,2831,2836,2839,2842,2843,2845,2848,2849,2852,2853,2856,2859,2864,2867,2869,2872,2874,2876,2879,2882,2884,2885,2887,2889,2892,2895,2897,2900,2902,2903,2906,2909,2912,2915,2918,2920,2922,2925,2930,2932,2936,2940,2941,2943,2946,2947,2949,2952,2954,2956,2957,2960,2963,2966,2968,2970,2971,2975,2976,2977,2979,2980,2984,2985,2987,2989,2991,2992,2994,2996,2999,3005,3006,3009,3011,3012,3014,3017,3020,3022,3024,3025,3028,3031,3034,3035,3037,3040,3041,3044,3045,3047,3049,3050,3052,3056,3058,3059,3060,3061,3066,3067,3068,3070,3072,3075,3077,3081,3085,3086,3088,3089,3092,3093,3095,3099,3100,3102,3106,3107,3110,3112,3116,3120,3123,3125,3126,3128,3132,3133,3135,3137,3140,3141,3145,3149,3151,3154,3158,3159,3162,3164,3165,3167,3169,3172,3173,3177,3179,3181,3184,3185,3186,3189,3193,3194,3195,3197,3200,3203,3204,3206,3209,3212,3218,3219,3221,3225,3229,3231,3234,3235,3236,3240,3242,3243,3244,3246,3247,3249,3252,3256,3257,3260,3261,3263,3267,3269,3272,3274,3277,3281,3283,3287,3289,3293,3294,3295,3297,3300,3301,3303,3306,3309,3311,3314,3317,3321,3322,3324,3325,3328,3330,3333,3337,3341,3343,3344,3345,3347,3348,3349,3351,3354,3358,3360,3363,3366,3368,3370,3372,3374,3377,3381,3384,3387,3390,3394,3396,3399,3405,3407,3411,3412,3413,3415,3417,3420,3422,3425,3426,3428,3432,3435,3437,3439,3440,3444,3445,3448,3451,3452,3453,3455,3461,3462,3466,3469,3470,3472,3475,3480,3481,3483,3485,3486,3488,3490,3494,3498,3501,3505,3507,3509,3510,3511,3512,3513,3515,3519,3521,3523,3524,3527,3528,3529,3530,3533,3534,3535,3537,3541,3544,3545,3546,3549,3551,3553,3555,3558,3559,3562,3564,3566,3568,3572,3574,3577,3578,3580,3582,3584,3585,3589,3591,3593,3596,3599,3603,3606,3609,3611,3612,3615,3616,3618,3622,3626,3629,3632,3636,3637,3638,3640,3643,3646,3647,3649,3652,3653,3657,3660,3662,3663,3664,3667,3669,3670,3674,3676,3679,3681,3682,3687,3688,3689,3692,3695,3699,3701,3704,3706,3709,3712,3715,3716,3720,3723,3728,3731,3732,3735,3737,3739,3742,3745,3746,3747,3749,3750,3751,3755,3758,3759,3761,3764,3769,3772,3774,3775,3781,3785,3788,3789,3794,3799,3802,3805,3809,3812,3813,3814,3815,3817,3820,3825,3827,3829,3830,3831,3834,3835,3836,3837,3839,3843,3845,3848,3851,3852,3854,3856,3857,3859,3863,3866,3868,3870,3875,3877,3878,3880,3881,3884,3885,3887,3891,3893,3895,3897,3900,3903,3905,3909,3912,3914,3916,3918,3921,3926,3928,3930,3933,3934,3939,3941,3942,3943,3944,3946,3947,3951,3953,3955,3957,3958,3960,3963,3964,3966,3969,3971,3973,3974,3977,3979,3981,3982,3984,3990,3992,3994,3997,3998,4000,4004,4006,4008,4011,4014,4016,4019,4022,4024,4027,4030,4033,4036,4038,4041,4043,4044,4047,4049,4051,4052,4054,4055,4057,4060,4063,4066,4068,4070,4072,4075,4078,4080,4082,4086,4088,4091,4093,4095,4098,4101,4103,4104,4106,4109,4111,4114,4116,4119,4121,4123,4124,4125,4127,4130,4132,4133,4135,4138,4141,4142,4144,4146,4149,4152,4153,4156,4157,4161,4165,4169,4172,4174,4177,4178,4181,4186,4189,4191,4193,4195,4197,4199,4201,4202,4204,4209,4210,4212,4214,4215,4217,4218,4221,4224,4226,4230,4232,4235,4237,4239,4241,4243,4245,4247,4250,4253,4255,4257,4261,4263,4265,4267,4269,4271,4275,4276,4278,4280,4282,4284,4285,4287,4289,4292,4294,4299,4302,4303,4304,4308,4310,4311,4313,4314,4316,4318,4322,4327,4328,4329,4333,4335,4337,4339,4341,4342,4345,4346,4348,4352,4353,4354,4357,4358,4361,4364,4366,4368,4371,4373,4374,4375,4377,4380,4382,4387,4391,4394,4395,4397,4399,4404,4406,4407,4408,4410,4413,4414,4417,4419,4420,4422,4424,4429,4432,4434,4435,4437,4438,4439,4441,4444,4445,4448,4451,4453,4455,4457,4459,4462,4465,4468,4472,4473,4475,4477,4478,4479,4480,4483,4488,4493,4494,4498,4499,4500,4502,4504,4507,4509,4511,4513,4516,4517,4520,4525,4526,4527,4528,4533,4537,4539,4541,4544,4547,4549,4552,4556,4559,4562,4564,4565,4570,4573,4575,4576,4577,4578,4579,4580,4584,4588,4592,4596,4600,4601,4604,4607,4609,4612,4615,4618,4622,4625,4626,4629,4632,4634,4638,4641,4642,4644,4646,4648,4651,4653,4654,4656,4660,4663,4665,4668,4670,4672,4674,4680,4682,4684,4685,4687,4691,4695,4698,4702,4704,4705,4707,4708,4712,4714,4716,4717,4718,4720,4722,4723,4728,4730,4734,4736,4738,4740,4742,4743,4747,4750,4752,4754,4758,4759,4760,4764,4765,4766,4769,4772,4774,4775,4777,4780,4782,4785,4787,4792,4793,4795,4797,4799,4802,4804,4808,4810,4813,4816,4821,4823,4828,4829,4832,4835,4836,4837,4838,4840,4843,4847,4850,4852,4856,4857,4859,4861,4863,4865,4868,4870,4871,4872,4874,4876,4878,4882,4885,4887,4892,4895,4897,4899,4902,4903,4906,4908,4912}
Returns: 1443
2
{2,2,1,2,1,1,2,1,1,1,2,1,2,1,2,1,1,1,1,2,1,2,1,1,1,2,1,1,1,2,2,1,2,1,1,2,2,2,1,1,1,2,2,2,2,2,1,1,2,1,1,2,1,2,1,2,1,2,1,2,2,2,1,1,2,2,2,2,1,1,2,1,1,2,1,1,2,2,1,1,1,2,2,1,2,2,2,2,1,1,2,1,1,2,2,2,1,2,2,1,1,1,1,1,2,1,2,1,1,1,2,2,1,1,2,2,2,2,2,1,2,2,2,2,2,1,1,1,2,1,1,2,1,1,2,1,2,2,1,1,2,2,1,1,1,1,2,2,2,1,2,2,2,2,2,2,1,1,2,1,2,2,2,1,2,2,1,2,2,2,2,2,1,2,1,1,1,1,1,1,2,1,1,2,1,2,1,2,1,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,1,1,2,1,2,1,1,1,1,1,1,1,2,2,1,2,1,2,2,1,1,1,2,2,2,1,1,1,2,1,1,2,2,2,2,1,2,2,1,1,1,2,1,1,2,2,1,1,2,2,2,2,1,2,2,2,2,2,1,2,1,2,2,1,1,1,2,2,1,2,2,1,1,1,1,1,2,2,2,2,1,2,1,2,1,2,1,1,2,1,1,2,1,1,1,2,1,1,1,1,2,2,1,2,1,1,2,2,2,2,2,2,2,1,2,1,1,1,2,1,1,1,1,2,1,1,2,1,1,2,1,1,1,1,2,2,1,2,2,1,2,1,2,1,1,2,1,1,2,2,2,2,1,2,2,1,1,1,1,1,1,2,1,1,1,2,1,2,1,2,1,1,2,2,1,1,1,2,1,1,1,1,2,2,1,1,1,2,1,2,2,1,2,2,1,2,2,1,1,1,1,1,2,2,2,2,2,1,2,1,2,1,2,2,2,1,2,1,1,2,1,2,1,2,2,1,1,2,2,2,2,1,2,2,2,2,1,2,1,2,1,1,1,2,2,2,2,1,2,2,2,2,2,1,1,1,2,1,2,1,2,2,1,2,2,1,1,1,1,1,2,1,1,1,1,1,1,1,2,2,1,2,1,1,2,1,2,1,1,1,2,1,1,2,1,1,1,1,1,2,2,1,1,1,1,2,1,1,1,2,1,2,2,2,1,2,1,2,2,1,2,2,2,1,2,2,2,2,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,2,2,2,1,1,2,2,2,2,1,2,1,1,2,2,2,2,1,1,2,1,1,2,1,1,1,2,1,2,2,1,2,2,2,1,2,1,2,1,1,1,1,2,1,1,1,1,2,1,1,2,1,1,1,1,1,1,2,1,1,1,1,2,2,1,2,1,2,2,2,2,2,1,2,1,2,1,1,2,2,2,2,2,1,1,1,1,1,1,2,1,1,2,2,1,1,2,1,1,1,2,2,1,2,2,2,1,1,1,1,1,1,1,2,2,2,2,1,2,2,2,2,2,2,1,1,2,2,1,2,2,2,1,1,2,2,2,1,2,2,2,1,1,1,2,2,2,2,2,1,1,1,2,1,1,1,1,2,2,1,1,2,2,2,1,1,1,1,2,1,1,1,1,2,1,2,2,2,1,1,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,1,1,1,1,1,2,1,1,2,1,2,1,2,1,1,1,1,1,1,2,2,2,2,2,1,1,1,2,2,1,2,2,2,1,2,1,2,2,1,1,1,1,1,2,2,2,2,1,1,2,2,1,2,1,2,1,1,2,2,2,2,2,1,2,1,1,1,2,1,1,1,1,2,2,1,1,2,2,1,2,2,2,1,1,2,2,2,1,1,2,2,2,1,1,1,1,2,1,2,1,1,2,2,2,1,1,1,2,2,2,2,2,2,2,1,1,1,1,2,2,1,2,2,2,2,1,1,2,2,1,1,2,2,1,2,1,1,2,1,2,1,1,2,1,1,1,1,2,2,1,2,2,2,2,2,2,2,2,1,1,1,1,2,1,1,1,2,1,1,2,2,1,1,2,2,1,2,1,1,1,1,1,1,1,1,2,1,2,2,2,2,1,1,2,1,1,2,1,2,1,2,2,2,2,1,1,2,1,2,2,1,2,1,2,2,1,2,1,1,1,1,2,2,1,1,2,2,1,1,1,1,1,1,2,1,2,1,2,2,2,2,2,2,1,2,1,2,2,1,1,1,1,2,1,1,2,2,2,2,2,1,2,2,1,2,2,2,2,1,2,1,1,2,1,1,1,1,1,1,2,1,2,2,1,2,1,2,1,1,1,1,2,2,1,1,1,2,1,1,1,1,1,2,1,2,2,1,2,2,1,1,1,1,2,1,1,2,1,1,2,1,2,2,1,1,2,2,2,2,2,2,1,2,2,1,1,1,2,1,2,1,1,1,2,1,2,2,1,1,1,1,1,1,2,1,2,2,1,2,2,2,1,2,1,2,1,2,2,1,1,2,1,1,1,2,1,1,1,1,2,1,1,1,1,2,2,2,2,1,1,2,2,2,1,2,1,1,1,2,2,2,1,2,2,1,1,2,2,1,2,1,1,1,1,1,2,2,2,1,1,2,2,1,2,1,2,2,1,2,1,2,1,2,1,1,1,2,1,2,1,1,2,2,1,2,1,1,2,2,2,1,1,2,2,1,1,2,1,2,1,1,2,2,2,1,1,1,2,2,1,2,1,2,2,1,2,1,2,1,2,2,2,2,2,2,1,1,1,1,2,1,1,2,1,2,1,1,1,2,2,2,1,1,2,2,1,2,1,1,1,2,2,2,2,1,2,2,2,1,2,1,2,1,2,1,1,2,1,2,2,2,2,1,2,2,2,2,1,2,2,2,1,1,2,2,2,2,2,1,2,2,1,2,1,1,2,2,1,2,1,1,2,1,1,1,2,1,2,1,1,2,1,2,1,1,1,2,1,2,1,1,2,2,2,2,2,2,1,1,1,1,2,2,2,1,1,2,2,1,2,1,1,2,1,1,2,2,2,1,2,1,1,2,1,1,2,1,1,1,1,1,1,1,2,1,2,2,1,1,1,2,1,1,2,2,1,1,1,2,2,1,2,1,2,1,1,1,2,1,1,2,2,1,1,2,2,2,2,1,1,2,2,1,1,1,1,2,2,2,1,2,2,2,2,1,1,1,2,1,2,1,1,1,1,1,2,2,1,2,2,2,2,2,1,2,2,2,2,1,1,1,2,2,1,2,1,2,2,1,1,1,1,1,2,2,2,2,2,2,2,2,1,1,1,1,2,2,2,2,1,2,1,1,1,1,1,1,2,1,1,2,1,2,1,2,1,2,2,2,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,1,2,1,1,2,2,2,1,2,2,1,1,2,1,1,1,1,1,1,2,2,1,1,1,2,2,2,1,2,2,2,1,1,2,1,1,2,1,1,2,2,1,2,1,2,2,2,1,2,1,2,2,2,2,1,1,1,2,1,2,2,1,1,2,1,1,2,2,2,1,2,2,1,1,1,1,2,2,1,2,1,2,1,2,1,2,2,2,2,2,1,1,2,1,2,1,1,2,2,1,1,1,1,1,2,1,1,2,1,2,1,1,2,1,2,2,2,2,1,2,1,2,2,1,2,1,2,2,2,1,2,2,1,2,1,1,2,2,2,1,2,1,1,1,2,1,2,1,2,2,2,2,1,2,1,2,2,2,1,1,2,2,2,2,2,2,2,1,2,2,1,2,1,1,1,2,1,1,2,2,1,1,1,2,1,2,2,1,2,2,2,1,2,2,2,1,1,2,2,2,1,2,2,1,1,1,2,1,2,1,1,1,1,1,2,1,1,2,1,1,1,1,2,1,1,1,1,1,2,1,1,1,2,2,2,2,1,1,1,2,2,1,2,2,1,1,2,2,1,1,1,1,2,2,1,1,1,1,2,1,2,2,1,2,2,2,1,1,2,1,1,1,2,1,1,1,1,2,1,2,2,2,2,2,1,1,2,1,1,1,1,1,1,2,1,1,2,2,2,1,2,2,2,1,1,2,2,2,1,2,1,2,2,1,2,2,2,1,1,2,1,1,2,1,2,1,2,2,1,1,2,1,2,2,2,2,1,2,2,1,2,1,2,2,1,2,2,2,2,1,2,1,2,2,1,1,1,1,1,2,1,2,2,1,2,1,1,1,2,2,2,1,1,1,1,2,2,1,2,2,1,1,2,1,2,1,2,2,1,2,1,2,1,1,2,2,1,2,2,1,1,2,1,1,2,1,2,1,2,1,2,2,2,2,1,1,1,1,1,2,2,1,2,1,2,2,1,2,1,1,2,1,1,2,2,2,2,2,2,2,1,2,2,2,1,1,2,2,1,1,2,1,2,1,1,2,2,1,1,2,2,2,2,1,2,1,2,2,2,2,2,2,1,2,2,2,1,1,2,1,2,2,2,1,1,2,2,1,1,1,2,2,2,1,2,2,1,2,1,2,1,1,2,2,2,2,1,2,1,2,1,2,2,2,2,2,1,1,2,2,2,2,2,1,1,2,2,1,1,1,2,1,2,1,2,1,1,1,2,1,1,2,2,1,1,2,1,1,2,2,2,2,1,1,1,1,1,2,2,2,1,1,1,2,2,1,1,1,1,2,2,1,2,1,2,1,2,1,2,1,2,2,2,2,1,2,2,2,2,2,1,2,1,2,1,1,1,2,2,1,2,2,2,1,1,1,2,2,2,2,2,2,2,2,1,2,2,2,1,1,1,1,1,2,1,2,2,1,2,2,1,1,1}
{1,2,3,4,5,6,7,8,9,11,12,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,34,35,37,38,40,42,43,44,46,47,48,49,50,52,54,55,57,58,59,61,62,63,64,65,68,70,72,73,74,75,76,77,78,81,83,84,85,87,88,89,91,92,93,95,96,97,98,99,101,103,104,105,107,108,109,111,114,115,116,118,119,120,121,122,123,124,125,126,127,128,129,131,132,133,134,135,136,137,138,139,140,141,143,144,145,146,147,148,149,150,151,152,154,155,157,158,159,160,162,163,164,165,168,170,171,172,173,174,175,176,178,179,180,184,186,188,189,190,191,192,193,194,195,197,198,199,200,201,203,205,207,209,211,212,213,214,215,216,217,218,219,221,223,225,227,228,229,230,231,232,233,235,236,238,239,240,241,242,243,245,247,248,249,250,251,252,253,256,257,258,259,260,261,262,264,265,267,268,269,271,273,276,278,279,282,284,286,288,289,290,291,292,293,295,297,298,300,301,302,303,304,307,308,309,310,311,312,313,315,316,317,318,320,321,322,323,324,327,328,329,331,332,333,334,335,336,337,339,340,341,342,343,345,346,347,348,350,351,353,354,355,356,357,358,360,362,363,364,365,366,367,369,370,371,374,375,376,377,378,379,380,382,383,384,385,386,387,388,389,390,392,393,394,395,396,397,398,400,401,402,404,405,406,407,408,409,410,411,412,414,416,417,420,421,422,423,425,426,427,428,429,430,432,433,436,437,438,439,440,441,442,443,444,445,446,447,449,451,452,453,454,457,458,460,461,462,463,464,467,468,469,471,472,474,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,492,494,495,496,497,498,499,500,502,504,505,506,507,509,510,511,513,515,516,517,518,520,521,522,524,525,526,528,529,530,531,532,534,535,536,537,540,541,542,543,544,546,547,548,550,551,552,553,555,557,558,559,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,577,579,581,584,585,586,587,588,590,592,593,594,595,596,597,598,600,602,603,606,607,608,609,611,612,613,614,615,617,618,619,620,621,622,623,624,625,627,628,629,631,632,634,636,638,639,640,641,644,645,646,647,648,649,650,651,652,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,671,672,673,674,675,678,679,681,682,683,684,685,686,687,688,689,691,693,694,696,697,698,699,700,701,703,705,706,707,709,710,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,729,730,731,733,734,735,737,738,739,741,742,743,744,745,746,748,749,750,751,752,753,754,755,756,757,759,760,762,763,764,765,766,767,768,769,770,771,773,775,776,777,778,780,781,782,783,785,786,788,789,791,793,794,795,796,797,799,801,802,803,804,806,807,808,809,810,811,812,813,815,816,818,820,821,822,823,825,827,829,831,832,833,836,837,838,840,842,843,844,845,846,847,849,850,851,852,853,855,856,857,858,860,862,863,864,865,866,867,868,869,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,889,890,891,892,893,894,895,897,899,901,902,903,904,905,907,909,910,912,913,914,915,917,920,921,922,923,925,927,928,929,931,933,936,937,938,939,940,943,944,946,947,949,950,952,953,954,955,956,957,958,959,961,963,965,966,967,969,972,974,975,977,980,981,982,983,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1004,1005,1006,1008,1009,1010,1012,1013,1014,1016,1017,1018,1019,1020,1023,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1044,1046,1047,1049,1050,1051,1052,1053,1054,1055,1056,1058,1059,1060,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1076,1077,1079,1080,1082,1083,1085,1086,1087,1088,1090,1092,1094,1095,1096,1099,1100,1101,1102,1104,1106,1107,1109,1111,1112,1113,1115,1117,1118,1119,1121,1122,1124,1126,1127,1129,1130,1131,1133,1134,1135,1136,1137,1138,1139,1140,1142,1143,1144,1146,1147,1148,1149,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1164,1165,1166,1167,1168,1169,1171,1172,1173,1174,1176,1178,1179,1180,1182,1183,1184,1185,1186,1187,1189,1191,1192,1193,1195,1196,1197,1198,1199,1200,1202,1205,1206,1208,1209,1211,1212,1213,1214,1215,1216,1218,1220,1222,1223,1224,1226,1227,1228,1229,1230,1231,1233,1234,1235,1236,1237,1239,1240,1241,1243,1244,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1259,1260,1261,1262,1263,1264,1266,1267,1269,1271,1272,1274,1275,1276,1277,1279,1280,1281,1282,1284,1285,1286,1288,1289,1290,1291,1292,1293,1294,1295,1297,1298,1299,1300,1301,1302,1303,1304,1306,1307,1309,1310,1311,1312,1313,1314,1316,1317,1318,1319,1320,1322,1324,1325,1326,1328,1329,1330,1331,1332,1334,1336,1338,1339,1340,1341,1342,1343,1344,1346,1349,1350,1351,1352,1353,1354,1356,1357,1358,1361,1363,1365,1366,1368,1370,1371,1372,1373,1374,1376,1377,1378,1379,1380,1381,1383,1384,1385,1386,1387,1388,1391,1392,1393,1394,1395,1396,1397,1400,1401,1402,1403,1404,1405,1406,1407,1409,1410,1412,1413,1414,1415,1416,1418,1419,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1433,1434,1435,1436,1438,1439,1440,1442,1443,1445,1446,1449,1450,1451,1452,1454,1455,1457,1458,1459,1460,1461,1462,1464,1465,1468,1469,1471,1472,1474,1475,1476,1478,1480,1481,1482,1483,1486,1488,1489,1490,1493,1494,1495,1496,1497,1498,1499,1501,1503,1505,1507,1510,1511,1514,1515,1517,1518,1520,1522,1523,1524,1525,1526,1527,1528,1530,1531,1533,1535,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1549,1551,1553,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1570,1572,1574,1575,1576,1578,1579,1580,1581,1582,1583,1584,1588,1589,1590,1591,1592,1593,1596,1597,1598,1599,1600,1602,1603,1604,1606,1607,1608,1611,1612,1613,1615,1616,1618,1619,1620,1621,1622,1623,1625,1626,1627,1630,1631,1632,1633,1634,1635,1636,1637,1638,1640,1641,1642,1645,1646,1647,1649,1651,1652,1653,1654,1655,1658,1659,1661,1662,1664,1665,1666,1667,1668,1669,1670,1671,1672,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1685,1686,1687,1688,1689,1692,1693,1694,1695,1697,1699,1700,1701,1702,1703,1704,1705,1707,1709,1711,1713,1714,1715,1716,1717,1718,1719,1721,1722,1724,1726,1727,1728,1729,1730,1731,1733,1734,1735,1737,1738,1739,1740,1742,1743,1744,1745,1747,1749,1750,1751,1753,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1768,1769,1770,1771,1772,1773,1775,1777,1778,1779,1781,1782,1783,1785,1786,1787,1788,1789,1790,1791,1793,1794,1795,1796,1797,1798,1799,1801,1802,1803,1804,1805,1806,1808,1810,1812,1813,1814,1816,1817,1819,1820,1821,1822,1823,1826,1827,1828,1829,1830,1831,1832,1834,1835,1836,1837,1838,1839,1840,1842,1844,1845,1846,1847,1848,1849,1851,1852,1853,1854,1855,1856,1857,1859,1862,1864,1865,1866,1868,1869,1870,1871,1873,1874,1875,1877,1878,1879,1880,1882,1883,1884,1886,1887,1888,1889,1890,1892,1893,1894,1895,1896,1898,1900,1901,1903,1904,1905,1907,1908,1910,1911,1912,1913,1914,1915,1916,1917,1919,1922,1923,1924,1926,1928,1929,1930,1931,1932,1934,1935,1936,1937,1938,1939,1940,1942,1943,1945,1947,1948,1950,1951,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1966,1968,1969,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1982,1984,1985,1986,1987,1988,1990,1991,1992,1994,1995,1996,1997,1999,2001,2003,2005,2006,2007,2008,2011,2012,2013,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2038,2039,2040,2041,2042,2043,2045,2046,2047,2048,2049,2050,2052,2053,2055,2057,2058,2059,2061,2063,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2079,2080,2081,2082,2084,2085,2086,2087,2088,2089,2090,2091,2093,2094,2095,2096,2097,2098,2099,2101,2103,2104,2107,2108,2109,2110,2111,2112,2113,2114,2115,2117,2118,2120,2122,2123,2125,2127,2129,2130,2132,2133,2134,2136,2137,2138,2139,2140,2141,2143,2144,2146,2147,2148,2149,2150,2151,2152,2153,2154,2155,2156,2159,2160,2161,2163,2165,2166,2167,2168,2169,2170,2171,2173,2174,2175,2176,2177,2179,2180,2181,2182,2184,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2200,2201,2202,2203,2204,2205,2206,2208,2209,2210,2211,2212,2213,2214,2215,2217,2218,2219,2220,2221,2223,2224,2226,2227,2229,2230,2231,2232,2233,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2248,2249,2250,2251,2252,2254,2255,2256,2258,2259,2261,2262,2263,2265,2266,2267,2270,2272,2273,2274,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2292,2294,2296,2297,2298,2299,2300,2301,2302,2303,2304,2306,2308,2309,2311,2312,2314,2316,2317,2319,2320,2321,2322,2323,2325,2326,2327,2328,2329,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2358,2360,2361,2363,2364,2366,2367,2368,2370,2371,2372,2373,2374,2375,2376,2378,2379,2380,2382,2383,2384,2386,2387,2388,2389,2390,2392,2393,2394,2397,2398,2401,2403,2404,2406,2408,2409,2410,2411,2412,2413,2414,2415,2416,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2429,2430,2431,2433,2434,2435,2436,2438,2439,2440,2441,2442,2443,2446,2447,2449,2450,2452,2453,2454,2455,2456,2458,2459,2460,2461,2462,2463,2465,2466,2467,2468,2469,2471,2472,2473,2474,2475,2476,2477,2479,2482,2484,2487,2488,2489,2491,2493,2494,2495,2498,2501,2502,2503,2505,2506,2508,2509,2510,2511,2512,2513,2514,2515,2516,2517,2519,2520,2521,2523,2524,2525,2526,2527,2528,2529,2530,2531,2533,2534,2535,2536,2539,2540,2541,2542,2543,2544,2546,2547,2549,2550,2551,2552,2553,2554,2555,2556,2557,2558,2559,2561,2562,2563,2564,2565,2567,2568,2570,2571,2573,2574,2575,2576,2578,2579,2580,2581,2582,2584,2585,2586,2589,2591,2592,2593,2596,2597,2598,2599,2600,2601,2602,2604,2605,2606,2607,2608,2609,2612,2614,2615,2616,2617,2618,2619,2620,2622,2623,2624,2625,2627,2628,2629,2631,2632,2634,2635,2636,2637,2638,2639,2640,2641,2643,2644,2645,2647,2649,2650,2652,2654,2655,2656,2657,2658,2659,2660,2662,2663,2664,2665,2667,2668,2671,2672,2674,2675,2677,2678,2679,2680,2681,2682,2683,2684,2685,2686,2687,2689,2691,2693,2694,2695,2696,2697,2699,2700,2701,2702,2703,2704,2705,2707,2708,2709,2711,2712,2713,2714,2717,2720,2722,2723,2724,2725,2726,2727,2728,2729,2731,2732,2733,2735,2736,2738,2742,2743,2744,2745,2746,2748,2749,2750,2751,2753,2754,2755,2756,2757,2758,2759,2760,2761,2762,2764,2765,2766,2767,2768,2770,2771,2772}
Returns: 1064
8192
{4187,5801,7537,6037,7823,4511,1959,5967,7767,707,5665,4947,2586,7846,2558,4194,3378,1330,2145,7088,7822,5918,4319,2173,1583,6865,2598,3045,4443,1337,4860,5719,4156,7473,1371,2300,2015,5029,488,5399,3183,3740,2941,5154,6531,2765,5415,6476,6548,7582,2140,8124,370,2212,5592,3245,4568,6177,6397,362,5902,3874,5153,3797,7622,3659,5075,766,3126,3465,6009,273,8102,3383,5993,7337,6282,4248,759,2919,616,426,7323,2657,193,3533,3778,4327,7991,6882,4478,5807,4420,1486,8121,4478,5330,3499,2590,7424,2831,547,3719,8019,5076,8131,7203,3490,2591,6747,5935,5597,2812,3015,658,1400,5222,5312,4668,2253,1696,5553,3764,5023,2181,7856,178,2284,7794,4128,4949,3857,2904,203,7131,1293,5277,6764,8049,1645,7033,6923,542,5432,4472,1990,1390,7175,6628,7398,490,1568,3801,1902,5134,2134,7880,5534,3052,791,3641,3615,3626,1265,6586,222,7585,1171,7352,2276,5729,2594,1115,7107,7527,4453,4140,2403,3034,4427,5787,5747,2355,2248,4190,962,7471,5673,5038,7772,258,4964,1926,7755,7858,6427,3808,1351,7728,356,7480,6897,6427,3218,3933,4431,4301,959,1751,2762,3528,8126,534,2540,1040,5853,171,939,5554,168,4312,7714,4878,7335,2759,6139,2094,6092,7619,2057,7892,3120,3286,6378,7838,1876,2613,6581,7926,1300,3052,4895,4662,33,6219,1969,3536,7339,1413,7682,6384,1713,7715,3363,6518,810,2759,7621,3790,2569,2541,3524,2706,1763,7989,76,145,5833,7675,442,6712,945,1501,1290,5372,6274,5097,8069,6115,5311,4160,2051,6605,877,7670,25,2224,1724,2546,4098,384,2218,1474,319,4341,4268,1068,2101,1798,7976,3961,4715,347,358,3170,5434,5262,4933,4254,21,2208,6123,267,7638,4733,5982,4491,6598,4876,1203,8094,1883,2994,5986,6347,5870,2258,6660,3855,3574,7237,6529,1897,1701,1129,6544}
{8,18,27,36,48,56,68,73,82,89,96,103,115,124,131,138,151,159,167,174,184,193,198,212,226,234,243,259,269,276,286,292,296,310,318,327,335,343,350,358,367,374,383,393,408,415,423,434,442,450,464,471,482,488,494,500,510,519,527,533,544,554,562,565,572,578,584,589,593,601,606,611,622,631,637,645,658,671,678,685,689,702,715,724,731,737,743,751,760,773,785,793,804,807,814,820,829,839,849,855,863,872,879,888,897,906,910,919,929,943,953,960,965,975,988,995,1007,1011,1018,1024,1041,1049,1058,1064,1075,1082,1087,1093,1106,1111,1120,1129,1140,1147,1157,1165,1175,1187,1197,1203,1210,1218,1224,1234,1235,1245,1256,1265,1272,1282,1293,1303,1312,1317,1325,1333,1339,1348,1353,1360,1369,1377,1385,1392,1400,1409,1417,1423,1428,1434,1441,1447,1456,1461,1470,1475,1482,1486,1495,1501,1512,1522,1536,1542,1553,1563,1573,1587,1596,1606,1613,1622,1633,1648,1660,1670,1675,1691,1696,1704,1712,1721,1731,1740,1750,1754,1766,1776,1787,1793,1802,1813,1821,1832,1839,1845,1853,1864,1870,1874,1877,1891,1901,1909,1917,1923,1940,1949,1957,1967,1981,1988,1998,2007,2017,2025,2027,2031,2043,2051,2061,2066,2070,2076,2086,2092,2103,2111,2119,2126,2135,2143,2151,2162,2173,2182,2189,2199,2205,2214,2225,2227,2238,2247,2256,2265,2276,2284,2294,2303,2309,2323,2328,2335,2342,2355,2365,2373,2378,2385,2393,2401,2409,2415,2424,2436,2445,2454,2464,2470,2481,2485,2491,2499,2503,2512,2521,2529,2542,2551,2560,2572,2580,2585,2593,2602,2611,2620,2626,2632,2640,2650,2657,2668,2673,2684,2693,2702,2711,2716,2729,2735,2743,2754,2761,2767,2781,2794,2804,2817,2830,2834,2838,2845,2854,2866}
Returns: 244
8192
{4546,2289,1993,7722,5471,7807,525,5459,4656,4885,7245,6504,1332,1156,4476,501,1362,5964,3872,1987,3579,6268,6930,185,1526,2455,2193,2250,709,2207,4461,3874,5143,7305,7093,4442,1711,1501,4263,4717,2917,2904,3944,4052,1187,5065,5209,7426,3089,6320,1428,1099,2553,6226,5499,5103,6405,2655,5618,5859,2828,5998,2372,682,5787,4605,6484,7785,233,3786,557,4883,7438,6838,2725,4443,5940,3500,7218,2042,6559,7237,2742,873,2406,3361,1396,51,435,7002,7165,6561,5769,5265,7261,4188,752,1908,4964,1891,6792,7916,1123,2433,905,3668,842,3632,1075,7285,6796,2727,3529,1336,3535,645,1830,5478,6865,887,2580,4072,5020,8149,4253,6519,3975,5658,4707,5571,7212,7632,3692,4219,3038,3685,4722,7404,7380,260,7976,2076,6831,3202,4017,2988,2963,2314,2728,757,4762,2340,7201,6204,4819,1619,2563,5383,2228,375,7993,5882,831,2495,3621,457,714,227,2030,8014,2244,2064,7193,6105,4715,1726,783,1856,4072,4973,7728,3713,2512,3611,6397,7657,4238,5371,4384,4392,965,1479,7666,5353,6983,6347,7226,3275,8114,3741,2034,4339,3680,1565,3029,7076,6884,7758,1409,408,8112,1587,3354,4899,6203,3265,6208,2156,4194,961,4675,74,3921,6687,7832,8108,1999,5415,3697,1696,1097,956,8076,6268,6785,2956,62,7622,4438,1520,5068,4326,2701,2301,2600,4577,4908,4359,3901,2478,5724,1972,8176,4845,4461,8036,5633,3117,4870,1187,6167,1817,1074,761,4135,6206,5975,1884,6286,7257,8158,2095,5928,6769,1198,2444,7620,7482,6217,5231,78,4753,708,2056,808,5416,5232,3663,3865,6833,2954,4020,7240,6210,5063,1442,729,1737,3123,56,5536,2772,3651,6514,6793,7453,2195,1739,7245,3240,82,533,4629,3959,5605,6940,5043,5172,7107,3444,1066,1374,2608,4221,2103,3559,7906,933,934,3953,1360,5493,5687,7060,6848,4607,2017,1013,215,985,1118,6189,6635,698,3788,3271,7128,2948,6244,3058,162,3917,36,5828,8138,2521,5494,1314,1955,919,1229,6868,919,2085,6986,4447,6853,4102,3440,175,6648,779,1297,7130,3174,4297,2949,888,76,1292,3939,7283,5863,6209,2023,2147,2804,1629,5183,3037,3389,4794,2570,8038,5226,3095,5190,6386,966,422,2822,3639,7198,2300,3152,853,645,5216,6010,3483,2633,2506,7799,1920,6610,3244,2949,2356,5590,8038,7609,4188,6838,1290,7138,6643,4462,227,4954,2693,7170,5881,1869,6967,3299,1933,7445,7523,7495,1878,4942,732,8191,3865,2889,5667,208,1766,8082,3124,7150,3103,3652,6341,7607,7485,747,3627,2126,4847,2495,4950,4935,7193,3345,7326,6429,4338,3509,5999,3760,327,4185,7441,4745,685,7090,1581,7235,5452,7782,7911,6105,6281,1982,683,1359,7381,2833,3884,2695,1147,3070,1836,958,6951,4234,2087,1700,4795,3625,274,7308,2969,6128,1215,4534,6036,7678,8129,6732,71,4456,2017,6428,1152,7117,2705,2237,7199,3809,4100,1324,7845,7737,6630,6831,1624,7327,5861,3610,6358,5718,6043,2878,7556,6826,1442,2002,6975,6456,4825,5008,6232,596,3411,490,2762,7716,7028,5687,2625,2770,7230,180,2676,2164,252,2384,2551,2099,4037,7346,6302,7249,6553,4227,29,1965,2868,7535,4747,1389,7375,3,3097,5252,908,3307,4119,7887,1620,2483,5438,6280,6247,2237,4574,4826,7437,7557,1649,4970,6683,7678,991,4781,608,3643,6745,3057,1337,1320,7882,3066,5608,5038,1610,1593,903,6919,6672,3192,444,2991,6658,4641,2714,7125,2257,2570,2915,684,4701,3315,6186,3502,988,3775,3474,5427,1306,6536,5186,3953,2761,4049,1749,887,5080,6626,2413,2348,3672,7857,4424,6136,7268,7545,2818,834,7739,2905,8060,2662,1151,8016,2471,4448,7263,5862,680,4074,1843,5870,7736,1622,8152,7614,1602,4586,4582,1891,6947,3606,6556,2107,5423,3186,1847,8055,7270,4814,5394,6431,1171,7517,1495,1561,5702,6753,5814,6358,2168,5468,6515,5700,2788,4428,725,1204,7772,1023,977,5471,5839,25,7828,4427,458,8160,5193,5967,3251,4230,1372,5885,1830,5131,2982,2893,64,3963,5318,2012,193,967,4779,5285,2164,241,6446,5652,6742,7655,4414,6783,2399,743,3342,6618,7965,176,7279,464,7549,1165,1333,3619,1666,6021,6516,3217,7899,7867,3082,810,2989,886,7096,355,6153,728,5618,3571,7156,1998,3100,1720,3346,7511,247,997,4189,7099,3982,1190,5263,4315,6618,6558,3653,2625,2843,2174,243,5942,2208,1051,4958,4487,2953,3417,568,7508,3790,866,6420,6821,7856,5273,4099,5937,2401,1464,890,2837,5282,423,5230,4362,4273,6807,6123,6368,1741,5096,6018,2775,6226,5247,8053,4787,2855,554,5014,4919,6432,185,306,5357}
{1,4,8,11,12,16,18,20,24,26,27,28,29,33,34,36,37,38,40,42,43,45,46,47,49,51,52,56,58,60,62,64,68,70,73,75,79,82,86,87,89,90,91,92,97,99,102,103,104,108,112,114,115,117,118,119,121,122,123,126,128,130,133,134,136,137,138,140,142,144,145,147,150,152,154,156,158,159,162,164,165,167,168,169,172,175,179,180,181,183,186,188,189,192,195,200,202,206,211,212,213,215,218,219,221,227,228,231,232,234,237,239,241,242,243,245,249,254,259,262,265,266,268,270,271,273,276,279,282,284,286,287,288,289,292,293,296,299,300,301,306,308,309,310,311,312,314,318,322,323,326,329,330,331,333,336,337,339,340,341,343,344,346,348,352,356,358,360,361,364,368,370,371,372,375,378,380,381,382,383,384,386,387,391,392,394,397,398,401,405,408,412,414,416,418,420,423,425,427,428,429,432,437,439,441,444,445,447,449,451,453,454,457,461,463,466,469,470,472,476,478,479,481,483,486,491,492,495,496,497,498,499,502,504,506,509,513,516,521,523,527,529,535,537,541,542,544,546,548,551,554,558,560,563,567,568,569,576,577,579,580,582,584,585,590,592,594,599,603,604,606,607,609,612,613,615,616,617,619,620,621,624,628,631,633,636,637,639,641,644,645,647,653,655,659,661,663,664,666,669,671,675,677,679,680,683,688,689,690,692,696,698,700,704,706,708,711,712,715,718,722,725,728,729,731,734,736,739,741,742,744,746,747,749,751,754,757,760,761,762,763,764,766,768,772,773,775,777,778,779,780,781,784,787,789,792,794,796,799,802,806,808,809,810,814,815,816,819,821,823,827,830,833,836,838,840,842,844,845,849,852,856,858,861,863,867,871,872,875,880,881,882,885,888,889,890,894,895,898,902,903,904,906,909,913,916,919,922,923,924,925,928,930,933,935,938,942,944,947,950,951,952,953,956,960,963,964,965,967,971,973,974,975,977,978,983,985,987,988,989,990,994,996,998,1000,1002,1004,1006,1007,1010,1013,1015,1016,1017,1018,1020,1025,1026,1027,1030,1031,1034,1036,1038,1039,1041,1044,1046,1049,1051,1052,1053,1055,1056,1058,1060,1065,1066,1067,1068,1070,1073,1077,1079,1081,1083,1087,1090,1092,1095,1101,1103,1105,1107,1108,1109,1112,1114,1115,1116,1120,1121,1122,1126,1127,1133,1136,1139,1140,1145,1147,1152,1153,1156,1158,1160,1163,1164,1166,1167,1170,1171,1172,1176,1177,1178,1180,1183,1184,1185,1187,1190,1192,1194,1198,1201,1203,1206,1207,1209,1213,1214,1216,1218,1219,1221,1226,1228,1233,1235,1237,1239,1242,1245,1248,1250,1251,1254,1258,1261,1263,1266,1267,1269,1273,1274,1277,1280,1281,1284,1286,1287,1288,1290,1294,1295,1298,1302,1305,1306,1308,1309,1312,1316,1317,1323,1324,1326,1328,1330,1331,1333,1335,1337,1340,1342,1344,1346,1348,1349,1353,1355,1357,1358,1360,1361,1363,1367,1371,1374,1375,1376,1377,1379,1382,1383,1385,1387,1389,1390,1391,1395,1396,1399,1401,1402,1403,1405,1411,1416,1420,1422,1425,1427,1431,1432,1434,1437,1440,1443,1445,1447,1449,1452,1453,1455,1458,1460,1462,1463,1465,1467,1470,1474,1479,1481,1483,1488,1489,1490,1492,1494,1495,1497,1499,1500,1501,1502,1504,1507,1510,1512,1513,1515,1516,1517,1521,1522,1526,1530,1531,1534,1535,1537,1539,1541,1543,1547,1550,1551,1554,1556,1559,1562,1564,1566,1567,1569,1570,1576,1579,1581,1583,1584,1589,1591,1592,1593,1596,1598,1600,1603,1606,1608,1611,1612,1613,1615,1619,1621,1623,1625,1626,1628,1630,1631,1635,1640,1643,1645,1648,1651,1652,1653,1654,1656,1658,1659,1661,1663,1665,1668,1669,1670,1673,1676,1678,1684,1687,1691,1693,1694,1696,1697,1700,1705,1708,1710,1712,1713,1715,1718,1721,1723,1726,1729,1732,1734,1735,1738,1741,1743,1747,1748,1752,1753,1756,1760,1761,1764,1766,1768,1769,1770,1773,1774,1777,1778,1780,1781,1785,1786,1790,1792,1794,1796,1798,1801,1803,1806,1807,1809,1812,1815,1817,1818,1821,1823,1824,1825,1826,1828,1829,1833,1836,1837,1838,1840,1843,1844,1846,1848,1849,1851,1852,1855,1858,1859,1861,1864,1865}
Returns: 583
16384
{823,1303,1368,15842,12056,2156,4428,6558,9098,9264,14787,1078,154,10567,10407,9701,11833,11845,4168,12350,15150,6591,8496,7214,893,797,642,8009,7660,1977,5607,12019,13260,10306,7393,12071,11226,10821,9149,903,14447,5104,9977,9349,8951,9236,15001,6022,6668,9881,3915,14315,5449,13716,2039,8183,4432,6455,10953,13219,14391,3337,4956,5244,15876,13999,10316,7351,3696,4815,13539,10424,8404,1671,10317,12630,8337,8208,7724,1597,5101,7983,14607,5847,2270,7724,15830,10553,3801,9748,1926,8610,9793,7439,5598,4645,4528,5064,9524,12594,6860,16058,11537,3761,9220,8833,4930,10880,2575,9788,5080,11317,9126,7452,4880,11015,7020,10335,1181,13795,12194,5371,3201,7860,5309,3139,14345,12538,2969,5364,10810,13032,12668,14886,5470,6451,10186,14217,7202,12524,10937,1705,14114,12221,2563,5817,84,6647,13333,6329,3181,16108,9147,7072,715,12063,522,14451,12043,1264,12690,1060,5135,8036,15802,9520,5812,1998,4223,1274,9999,9764,6789,8457,8611,9431,1252,15925,13947,13351,4525,12300,15041,15839,16329,2219,8664,3476,6204,6491,13744,13945,16009,12903,648,5887,13179,2180,2276,881,12568,4209,10512,7138,8235,15684,7711,7880,9030,7202,723,10413,4302,2049,386,626,13590,8781,14473,8892,5935,8496,1910,7186,16019,6773,9644,6255,7550,14827,4530,15353,2873,3159,6435,5026,9008,13312,11154,4520,10587,14853,8033,2242,484,16295,1555,6160,6563,5328,9788,3273,3735,11568,11164,9169,15104,4933,6852,3160,15202,4318,5095,5571,8002,3705,12622,3633,11770,10039,4162,1010,1175,7401,6134,6999,3903,14338,6247,15211,52,12582,9183,14087,10256,1587,4144,3323,13930,4762,6508,8409,12205,11025,11873,10043,3170,5779,16298,11069,16350,2757,15562,4116,4028,4076,16189,161,13090,8349,14859,8204,8293,15225,7424,363,300,12605,13602,12684,14533,16273,12451,13599,15843,265,2849,1644,164,9440,1914,6373,12081,15608,16178,13824,9970,16079,13260,9641,15830,5144,13625,1509}
{7,14,21,29,40,44,58,66,76,85,93,101,107,112,126,135,143,152,159,167,177,186,190,195,202,210,221,226,235,239,247,257,268,272,277,289,293,301,308,315,321,331,340,347,355,364,378,388,397,409,417,425,432,439,446,458,468,480,486,496,504,507,509,515,521,524,535,541,545,550,555,563,571,577,583,588,600,609,615,620,623,628,637,645,656,662,669,675,683,689,698,709,717,722,731,741,748,760,769,781,790,801,812,821,832,844,853,860,863,869,874,883,890,900,904,908,917,926,938,948,956,966,975,983,990,996,1003,1009,1022,1026,1034,1045,1051,1059,1065,1070,1081,1093,1108,1116,1125,1133,1140,1146,1155,1163,1168,1175,1182,1187,1195,1203,1213,1221,1229,1236,1248,1252,1262,1269,1276,1281,1290,1297,1306,1316,1322,1331,1336,1341,1351,1356,1368,1374,1381,1387,1395,1402,1413,1423,1427,1436,1443,1449,1460,1465,1478,1482,1490,1500,1503,1510,1521,1529,1537,1548,1556,1566,1572,1575,1586,1593,1601,1608,1618,1623,1632,1639,1641,1646,1653,1660,1667,1669,1685,1691,1700,1712,1718,1729,1739,1747,1757,1766,1773,1783,1788,1794,1801,1810,1815,1821,1826,1834,1845,1852,1855,1863,1868,1875,1881,1889,1897,1904,1914,1922,1935,1942,1946,1953,1964,1969,1978,1986,1993,1999,2006,2014,2019,2029,2037,2044,2054,2068,2079,2085,2094,2095,2104,2110,2117,2123,2130,2142,2146,2155,2164,2170,2176,2180,2187,2193,2204,2209,2220,2228,2233,2243,2252,2262,2268,2276,2290,2303,2310,2316,2322,2331,2335,2344,2351,2357,2371,2383,2394,2405,2409,2415,2422,2428,2434,2444,2456,2463,2470,2479,2484,2487,2496,2505,2507,2519,2522,2530,2538,2549,2560,2564,2573,2580,2587,2597,2604,2609,2620,2630,2638,2647,2656,2668,2674,2682,2691,2704}
Returns: 244
32768
{7533,4978,12723,28737,11020,8212,20132,16282,22231,10856,10166,10731,12581,5455,31933,19743,29189,16728,25709,9874,13998,24126,3052,31090,6047,16659,27241,4026,22375,2422,2001,15800,2366,25698,26314,13888,29089,9026,5953,1988,2666,10773,28685,2214,32461,26489,27434,2879,8936,7621,8509,26675,23976,15417,26172,18383,13018,25516,4641,4421,5749,29190,3515,2241,28981,5157,19669,27504,16842,26056,29693,17076,3330,4940,345,13785,23145,16684,27943,21448,18938,12607,22414,9299,25271,13802,32404,19147,4331,32645,24621,8643,26168,12389,6510,31216,3188,26640,17698,3140,32680,7738,20732,14718,2706,12907,31212,24453,11293,1312,23838,24327,31617,17278,19546,25079,21441,18107,22915,3489,1643,1154,22092,2353,4252,3526,20997,9119,19561,32133,28892,27166,23535,290,19650,10828,4703,20517,27004,10601,27299,31049,8801,19498,10779,24283,22916,168,8523,5278,5386,30258,4947,3441,8372,3284,10289,10023,13970,26772,27886,10010,9003,14965,18429,8736,20054,7037,28450,5801,2886,17434,22381,12279,3914,31835,18147,15724,28671,22417,8858,24870,3772,10277,19235,21798,24624,5724,21585,26225,3136,26406,9319,27058,29522,17903,2564,29957,15197,20168,7976,5820,8235,9260,23236,4343,24414,3554,399,22059,14827,29855,14800,6829,10715,2055,23805,19360,5183,31493,15677,7069,27764,1112,29666,6561,28374,14216,28962,28408,20033,21594,27758,27866,26834,22856,32742,690,21866,30536,10384,2575,23733,31648,6161,3438,13692,24172,15300,19236,9527,25265,6203,13771,29420,5885,5946,6092,27540,2986,10629,18323,3145,15861,9416,1625,16325,1364,4395,13132,31139,17008,10545,28977,23350,9574,8605,13483,29349,6926,26177,27998,3681,20241,21433,7276,3039,13013,5429,11975,31208,8020,12427,23046,23489,29201,29178,1672,21397,29585,21536,454,30667,26558,12218,18411,6100,24292,29174,11209,14958,14316,20287,133,10269,17084,25455,10330,25117,5037,28580,4088,30414,24374,26847,9780,14867,7934,20958,19403,249,20407,26028,1821,7496,18739,26509,31731,30373,2127,32764,16240,17436,15468,26027,7287,4607,2134,11383,15612,27950,10371,29570,28850,15866,5843,20125,29139,4588,19968,11902,5312,19691,32027,13866,16234,30542,19855,23367,22916,8074,21566,25101,7853,2890,24698,15542,22489,15600,6571,4471,358,8054,16032,10518,18268,31745,24478,19312,2446,12633,5746,5690,17757,32458,3531,9613,21251,4342,7023,29921,22647,24655,18123,12840,11282,22018,20392,21494,7481,5455,9939}
{9,20,33,36,42,52,64,73,78,84,89,95,101,111,120,125,132,147,155,166,175,183,194,202,210,217,227,238,243,251,260,272,282,291,298,304,318,328,337,343,355,362,373,382,394,402,413,424,434,441,453,458,464,477,485,497,508,520,531,540,547,552,560,570,582,593,599,607,614,623,630,636,643,653,661,670,680,691,700,711,720,726,737,743,748,760,766,776,786,792,798,807,819,827,835,842,852,861,868,879,887,895,902,907,917,927,933,938,946,954,964,968,976,985,991,1000,1009,1020,1029,1038,1045,1058,1062,1067,1071,1074,1078,1088,1099,1105,1114,1121,1133,1141,1148,1154,1161,1171,1183,1194,1198,1205,1218,1227,1233,1241,1252,1257,1266,1275,1285,1297,1303,1314,1324,1330,1340,1349,1355,1363,1369,1372,1380,1386,1392,1398,1402,1414,1420,1430,1438,1444,1451,1459,1467,1471,1483,1489,1495,1501,1510,1519,1532,1545,1554,1562,1569,1579,1584,1593,1603,1612,1616,1623,1635,1638,1648,1655,1664,1673,1686,1693,1697,1707,1718,1730,1738,1747,1756,1770,1780,1787,1795,1801,1810,1817,1825,1835,1846,1855,1861,1866,1875,1889,1899,1905,1915,1921,1925,1931,1943,1954,1959,1969,1978,1986,1994,2001,2006,2015,2027,2040,2045,2050,2058,2065,2074,2082,2088,2092,2099,2110,2122,2125,2139,2146,2158,2172,2181,2193,2205,2212,2221,2226,2236,2247,2251,2262,2273,2282,2286,2294,2305,2309,2313,2325,2334,2338,2344,2352,2359,2363,2368,2374,2382,2397,2406,2414,2425,2433,2442,2454,2462,2468,2478,2485,2490,2501,2504,2517,2526,2536,2543,2552,2562,2566,2572,2580,2590,2601,2608,2622,2632,2640,2647,2656,2665,2673,2678,2684,2692,2700,2710,2719,2728,2738,2746,2749,2758,2765,2773,2777,2788,2799,2805,2813,2820,2830,2835,2846,2859,2865,2873,2882,2890,2899,2908,2917,2926,2933,2939,2949,2954,2961,2967,2979,2984,2996,3000,3006,3009,3015,3021,3030,3038,3043,3050,3056,3068,3075,3083,3093,3101,3113,3122,3128,3139,3146,3156,3166,3172,3179,3184,3194,3199,3211,3228,3238,3246,3254,3266,3269,3278,3282,3290,3298,3303,3305,3315,3322,3331,3337,3341,3346,3352,3361,3370,3380,3387,3396,3402,3410}
Returns: 295
1024
{246,460,419,614,801,325,260,385,342,274,768,904,160,609,724,718,508,1021,652,932,239,76,375,678,145,887,727,99,1021,258,617,491,691,504,242,754,926,545,896,89,365,717,167,339,311,312,981,430,189,267,976,387,1017,279,601,276,635,288,58,918,897,916,559,122,226,215,167,239,920,20,437,628,505,705,616,952,731,69,595,598,553,737,545,704,781,369,12,796,317,890,809,737,730,457,218,721,531,495,537,12,451,524,204,279,580,139,10,302,16,238,256,105,1022,802,256,775,368,680,102,712,357,357,269,782,537,12,612,885,425,725,173,166,822,397,75,82,296,303,483,924,72,911,949,666,731,834,144,61,102,625,194,910,579,777,406,517,764,438,59,697,565,749,324,804,228,668,678,124,435,796,651,1005,921,933,583,107,287,204,396,607,309,856,783,66,776,609,241,733,292,434,139,249,223,59,684,77,550,162,718,168,197,824,396,685,899,247,81,224,720,684,562,86,37,545,995,535,237,192,752,763,865,44,663,465,450,293,787}
{6,9,13,17,23,31,36,40,45,52,57,61,65,73,76,81,86,95,101,104,107,114,119,124,127,131,137,142,148,152,160,164,169,171,174,183,185,192,198,203,211,219,225,229,233,240,244,252,254,256,260,265,270,272,275,277,281,287,293,297,303,308,311,314,318,323,327,332,334,340,345,350,354,359,363,367,371,376,379,382,390,395,403,405,408,413,416,421,424,434,439,443,449,454,457,458,462,464,468,474,481,487,491,496,500,505,510,512,514,517,518,523,531,536,540,545,548,551,554,558,564,570,572,577,581,585,588,594,597,601,607,612,617,623,629,632,637,641,642,644,648,651,654,656,661,668,671,674,680,682,687,695,698,703,706,711,714,718,722,730,737,741,745,748,760,762,764,770,774,778,782,784,790,795,800,803,809,814,817,820,822,828,831,836,837,839,840,848,854,858,860,861,866,868,870,875,880,884,889,892,897,901,903,906,908,912,917,922,930,936,940,944,947,951,956,959,963,968,973,980,988,989,994,998,1000,1003,1006}
Returns: 158
4
{3,1,1,3,3,4,3,4,2,1,2,3,3,3,4,1,2,1,1,2,1,3,2,4,1,2,2,1,1,2,4,3,1,3,3,4,1,4,4,1,3,2,2,3,3,4,1,4,3,2,4,1,3,3,1,3,4,2,1,4,1,3,4,3,1,2,1,4,2,4,1,3,2,3,3,1,3,3,4,4,1,1,1,3,1,1,2,2,3,1,2,3,1,4,2,1,4,2,1,2,2,4,4,4,2,3,2,2,2,3,1,1,3,1,1,1,2,2,3,2,2,3,3,1,2,3,3,1,2,3,4,4,4,4,2,3,3,1,3,2,4,1,4,3,4,4,4,3,4,2,4,4,3,4,3,2,4,4,3,2,1,1,1,1,2,4,2,3,3,2,2,2,4,4,1,1,1,1,1,4,4,1,2,2,3,1,2,3,4,2,3,1,2,1,1,1,4,3,1,4,1,4,3,3,1,1,2,2,1,4,1,2,3,3,1,2,3,1,2,2,1,3,3,3,1,3,2,1,1,3,4,3,3,1,4,1,4,3,1,3,2,2,4,4,1,2,1,4,1,3,4,1,3,1,4,2,3,1,2,1,3,3,3,1,1,3,3,2,4,2,4,2,3,3,4,1,1,2,3,2,3,2,2,1,1,4,2,4,4,2,3,4,3,4,2,1,1,4,3,2,3,3,2,2,4,2,2,2,2,1,3,4,1,2,1,4,1,4,1,4,1,1,1,1,1,4,2,2,4,3,2,4,3,3,4,4,2,1,2,3,3,2,2,2,4,1,3,2,4,3,3,2,4,2,3,2,4,2,4,3,2,3,1,3,4,2,2,4,1,2,2,1,3,4,2,1,3,3,3,1,2,4,4,3,1,1,2,3,2,2,3,3,2,2,1,1,2,4,4,4,1,1,3,3,2,2,2,3,3,4,4,1,4,1,4,1,2,4,1,1,3,4,4,2,4,2,3,4,3,1,4,3,4,1,4,3,3,3,4,1,3,2,3,3,1,4,2,2,3,4,3,1,2,4,4,3,2,3,2,3,2,1,4,2,3,2,3,1,3,4,4,1,1,3,4,3,1,3,2,3,3,3,3,3,4,3,4,4,3,4,1,1,3,4,2,4,2,2,2,2,1,2,1,4,4,2,3,1,2,1,2,4,3,3,2,2,4,1,2,1,3,2,2,3,1,2,4,3,2,1,1,4,3,1,2,1,3,2,2,3,1,2,2,3,2,1,4,3,1,1,2,3,1,3,1,1,2,3,4,4,1,3,3,2,4,4,3,4,3,3,2,4,3,3,1,1,4,3,4,2,1,4,4,1,2,2,2,1,4,1,3,1,3,2,4,3,4,4,2,3,4,2,2,3,3,3,1,3,3,3,1,4,2,2,1,2,1,1,3,2,3,3,4,3,3,1,3,1,2,3,3,4,1,4,1,4,4,3,1,2,2,2,3,3,3,1,4,3,3,4,2,3,2,4,3,2,3,4,3,4,4,2,3,2,2,2,4,2,1,3,1,4,4,3,2,1,1,4,4,1,4,2,2,3,4,4,2,3,2,3,4,4,1,1,2,3,3,3,1,3,4,3,2,4,4,2,1,2,4,1,3,3,1,4,3,4,2,4,3,3,4,3,2,3,3,1,2,1,4,4,4,3,2,1,3,1,2,3,3,4,3,3,2,4,1,2,1,1,3,3,4,4,1,3,4,1,1,1,1,2,2,3,1,4,2,1,3,1,2,3,4,3,2,3,1,3,1,4,4,1,1,4,4,1,4,2,4,3,1,1,4,2,4,4,3,2,2,1,4,2,4,3,2,4,1,4,4,3,3,3,4,2,2,2,2,3,4,2,2,3,1,2,3,1,2,4,3,2,1,3,1,2,1,3,3,4,4,3,1,3,1,1,1,3,2,2,4,1,3,2,4,2,1,4,4,3,1,2,3,3,4,4,1,2,1,1,3,4,3,4,1,3,3,1,4,3,2,2,3,1,4,1,4,3,1,3,2,1,1,3,4,2,1,2,1,3,3,2,3,3,1,2,2,2,3,1,3,2,4,2,4,4,1,2,2,4,4,1,2,1,2,3,3,1,4,4,3,4,1,4,4,2,3,1,4,2,2,2,4,1,1,4,4,1,1,2,3,4,4,1,3,1,1,2,3,4,3,1,4,1,2,4,2,4,1,3,1,4,3,1,4,1,2,2,2,4,4,3,4,4,1,2,2,1,3,3,4,4,2,4,2,1,1,3,2,3,3,3,1,1,2,1,1,3,4,2,4,4,3,1,1,3,1,3,1,4,2,4,1,2,3,4,1,3,2,3,3,1,2,1,3,1,3,3,4,1,4,1,1,1,3,4,2,4,1,3,1,4,1,1,1,3,1,4,2,1,2,4,3,4,3,1,3,3,1,2,4,2,3,1,2,3,2,1,2,3,1,2,2,3,3,2,4,2,4,1,3,2,4,3,3,3,1,1,3,2,3,4,1,1,2,4,4,2,1,3,2,2,1,2,1,1,2,4,1,2,2,4,2,4,2,1,4,2,3,3,2,4,1,1,1,4,3,4,1,1,2,4,4,1,3,1,4,3,2,4,3,4,1,4,2,2,3,1,1,4,4,1,3,3,1,3,1,4,4,4,3,1,3,3,4,2,3,4,2,2,2,3,1,4,3,4,2,1,2,3,2,1,4,3,3,1,4,1,3,2,4,1,4,2,1,3,1,1,2,3,3,4,4,3,2,4,3,1,2,2,4,2,4,2,1,4,2,4,2,1,1,4,3,4,1,2,4,2,3,3,2,4,2,4,3,2,1,1,1,1,3,3,4,4,2,3,4,3,1,2,4,2,3,1,4,3,2,2,3,2,1,4,2,4,4,1,3,4,1,4,2,1,1,3,1,4,4,3,2,1,2,3,1,4,2,1,1,3,4,1,3,4,3,2,4,3,1,2,4,4,4,1,1,3,3,4,3,2,2,2,3,4,4,1,2,1,1,2,3,3,1,4,4,2,3,3,3,4,2,4,2,1,2,2,2,4,2,4,4,2,3,2,4,2,4,4,3,3,4,3,2,4,2,2,2,1,3,1,1,3,4,1,1,3,3,4,4,4,2,4,2,3,4,3,2,4,2,1,3,3,4,4,3,4,2,4,1,4,2,1,2,2,2,4,3,4,4,4,2,3,3,4,4,2,1,3,4,4,3,4,3,1,1,1,4,1,4,1,4,3,4,3,3,3,1,2,3,2,1,1,1,4,1,2,1,4,2,4,3,1,1,4,2,4,2,1,2,1,2,4,4,3,1,4,4,1,4,1,3,2,1,2,4,2,1,1,1,2,2,4,2,2,3,1,4,2,2,2,3,3,2,1,3,3,2,4,1,2,3,4,4,2,2,1,1,4,2,3,2,4,1,2,4,4,4,3,1,2,3,2,3,4,1,1,4,3,4,4,2,3,4,1,2,2,2,1,1,2,4,4,3,2,2,3,1,1,4,3,3,4,4,3,4,1,1,1,2,4,2,4,3,2,3,1,3,2,1,3,2,2,2,2,3,3,2,2,3,4,1,2,3,1,2,3,1,2,3,3,2,3,4,3,2,1,2,1,1,1,3,3,3,2,2,4,1,1,4,2,3,1,1,1,3,4,2,3,4,3,3,1,4,2,2,4,2,3,1,2,4,4,2,4,3,3,4,3,1,3,3,3,1,1,1,1,3,3,3,1,4,4,4,2,2,2,2,3,4,3,1,3,3,3,3,1,1,3,1,2,1,3,3,2,1,3,2,3,1,1,2,3,1,4,2,4,2,4,4,2,3,2,2,4,2,1,3,3,4,4,4,3,2,4,3,3,3,3,1,3,1,2,2,3,3,1,3,4,1,3,3,2,3,1,3,3,1,3,2,4,4,1,3,3,1,4,1,1,1,1,1,4,3,4,4,1,3,1,2,3,3,3,3,2,2,1,1,4,1,3,2,2,4,1,4,2,3,3,1,4,1,1,3,2,2,1,2,1,4,4,2,4,2,2,4,3,4,2,3,1,1,3,1,1,4,4,3,3,2,2,4,4,1,1,1,2,4,2,3,2,2,1,1,3,3,4,2,4,2,2,1,4,1,1,4,2,1,4,3,4,4,2,3,2,4,3,3,1,4,3,1,4,2,2,2,2,4,2,4,3,3,3,2,2,4,3,1,4,3,3,2,4,1,3,4,3,2,4,1,2,3,2,3,4,2,4,1,3,2,1,1,4,1,1,4,1,2,1,4,2,2,1,1,3,2,3,4,4,4,1,2,1,1,4,4,1,4,1,3,2,2,3,4,2,2,1,2,1,1,3,3,1,3,1,3,1,3,4,2,1,3,1,1,1,1,3,3,2,3,2,2,4,1,3,4,4,2,1,2,1,2,1,4,1,2,2,4,4,2,3,3,4,2,2,3,3,3,1,2,2,4,4,3,2,2,3,3,3,3,4,3,4,2,4,3,2,2,4,3,2,3,1,2,3,2,1,1,2,1,1,4,2,3,3,2,3,2,3,4,1,3,3,4,3,2,3,4,2,3,4,3,4,4,2,2,2,3}
{1,3,4,5,7,9,12,13,14,16,18,21,22,25,27,28,29,31,32,34,37,38,39,40,43,45,47,49,52,53,54,58,61,64,65,69,70,71,73,74,75,77,78,79,82,83,85,88,90,91,92,94,96,97,98,100,101,103,105,106,107,108,111,112,116,117,120,121,123,126,127,128,131,132,135,138,140,142,143,145,146,147,148,149,151,153,154,155,157,159,160,164,165,166,168,173,174,176,177,179,181,182,184,185,187,190,192,194,195,197,198,201,202,204,205,207,209,212,214,218,220,223,224,225,226,229,231,232,234,235,236,240,241,244,247,251,252,253,255,256,258,260,261,264,266,268,269,271,272,275,278,279,282,284,286,287,290,293,297,298,299,300,301,302,303,304,306,307,308,311,312,314,315,316,317,321,323,325,327,330,333,335,337,340,341,344,346,348,350,353,354,355,357,358,360,361,365,366,368,370,371,375,377,381,382,383,386,388,390,391,393,397,399,401,405,406,407,410,411,413,414,415,417,419,420,421,423,424,428,430,434,438,439,440,443,447,449,451,453,454,456,459,462,464,467,469,472,475,477,480,481,483,485,486,487,488,489,492,493,494,498,500,502,505,507,509,512,515,517,520,521,524,526,527,531,534,535,536,537,539,540,542,544,545,546,547,550,551,552,557,560,562,563,565,566,567,568,570,574,576,577,579,580,583,584,586,589,591,592,594,595,597,598,599,602,607,608,609,611,613,615,617,618,619,621,624,627,628,631,632,634,635,636,638,643,644,646,648,649,652,655,656,657,658,659,661,662,663,665,667,668,669,672,673,674,675,676,679,681,684,686,687,688,690,691,692,693,696,698,702,703,704,706,707,708,712,714,715,717,719,721,722,724,726,727,730,732,735,738,741,742,743,744,746,747,748,749,750,752,753,757,758,759,764,766,767,768,770,773,774,776,777,779,780,781,783,784,785,786,788,790,793,797,798,800,804,805,808,811,812,814,815,816,818,820,821,823,825,826,827,828,829,831,832,833,835,837,841,843,844,846,848,851,852,854,858,861,863,864,866,869,870,872,874,876,878,880,882,883,884,886,887,888,891,893,895,898,900,902,903,904,906,908,910,912,913,915,917,920,921,923,926,927,929,930,931,935,937,939,940,942,944,945,947,948,949,950,952,953,954,955,956,958,959,962,966,969,970,974,975,978,979,983,986,987,988,989,991,993,994,995,997,999,1000,1002,1003,1006,1008,1009,1010,1013,1014,1018,1019,1021,1022,1024,1025,1026,1028,1029,1032,1034,1035,1037,1038,1041,1042,1043,1045,1047,1048,1050,1052,1053,1056,1058,1059,1061,1063,1064,1068,1070,1071,1074,1075,1077,1081,1083,1084,1086,1088,1089,1090,1092,1093,1095,1096,1099,1101,1103,1105,1109,1111,1113,1114,1116,1119,1121,1122,1123,1126,1127,1128,1130,1131,1132,1134,1135,1137,1139,1141,1143,1145,1147,1149,1152,1155,1157,1158,1159,1160,1163,1165,1166,1169,1171,1173,1176,1178,1180,1182,1185,1189,1193,1196,1201,1202,1204,1207,1209,1212,1215,1217,1219,1221,1222,1224,1227,1228,1230,1232,1233,1237,1238,1239,1242,1244,1248,1250,1253,1255,1256,1257,1259,1260,1263,1264,1268,1270,1272,1275,1276,1278,1280,1283,1284,1285,1286,1287,1289,1290,1292,1295,1296,1298,1299,1300,1302,1303,1304,1309,1311,1313,1315,1316,1318,1319,1321,1322,1323,1326,1328,1329,1332,1333,1335,1336,1339,1341,1343,1345,1347,1353,1354,1355,1357,1358,1361,1363,1368,1370,1371,1373,1375,1376,1379,1383,1384,1385,1386,1387,1389,1390,1394,1395,1396,1398,1401,1403,1405,1406,1408,1409,1411,1412,1413,1414,1415,1417,1419,1422,1424,1425,1428,1429,1431,1435,1439,1441,1442,1443,1444,1445,1447,1448,1450,1451,1455,1457,1459,1461,1463,1464,1465,1466,1467,1468,1470,1472,1474,1477,1478,1482,1484,1485,1486,1488,1489,1490,1491,1495,1496,1497,1498,1499,1500,1502,1503,1504,1506,1508,1511,1512,1514,1517,1518,1520,1521,1522,1524,1529,1530,1532,1534,1537,1539,1540,1543,1545,1546,1547,1550,1552,1554,1556,1558,1561,1563,1566,1567,1568,1570,1573,1574,1576,1578,1579,1580,1582,1585,1587,1588,1589,1592,1595,1597,1598,1599,1601,1602,1603,1608,1609,1611,1612,1614,1617,1619,1620,1623,1626,1628,1630,1631,1632,1634,1636,1639,1640,1641,1643,1644,1645,1647,1649,1650,1653,1654,1656,1657,1661,1663,1664,1668,1673,1675,1676,1677,1678,1680,1681,1683,1684,1687,1690,1691,1692,1693,1695,1696,1697,1699,1701,1702,1703,1705,1708,1712,1714,1716,1717,1719,1720,1723,1726,1729,1731,1732,1736,1738,1741,1743,1746,1748,1749,1751,1753,1756,1758,1759,1760,1762,1763,1764,1767,1768,1769,1770,1771,1773,1776,1777,1780,1781,1782,1785,1787,1789,1790,1791,1792,1794,1796,1797,1803,1805,1807,1809,1810,1812,1814,1815,1816,1817,1820,1823,1825,1827,1828,1830,1831,1832,1833,1834,1836,1837,1839,1841,1842,1843,1845,1847,1849,1850,1851,1852,1855,1856,1858,1859,1861,1862,1863,1867,1870,1872,1873,1875,1878,1879,1882,1883,1885,1886,1887,1889,1892,1895,1896,1898,1900,1902,1905,1906,1908,1910,1913,1914,1915,1917,1918,1920,1922,1924,1926,1929,1931,1934,1936,1937,1940,1942,1944,1947,1948,1949,1950,1951,1953,1954,1957,1958,1961,1964,1966,1967,1969,1971,1972,1973,1974,1976,1977,1979,1981,1982,1988,1991,1992,1993,1995,1996,1998,2001,2003,2005,2006,2008,2009,2010,2013,2015,2016,2018,2020,2024,2026,2028,2030,2032,2034,2036,2039,2040,2045,2049,2051,2052,2054,2057,2059,2061,2062,2064,2066,2069,2072,2073,2075,2076,2077,2078,2080,2082,2084,2085,2086,2087,2088,2090,2092,2093,2094,2097,2103,2106,2108,2110,2112,2114,2116,2120,2125,2126,2129,2131,2133,2134,2137,2139,2141,2143,2145,2147,2148,2150,2152,2153,2156,2159,2160,2162,2164,2166,2169,2171,2172,2175,2177,2180,2181,2183,2184,2187,2188,2190,2193,2194,2198,2201,2204,2206,2208,2210,2211,2213,2214,2215,2217,2220,2223,2226,2227,2228,2229,2231,2233,2236,2238,2239,2240,2241,2244,2245,2247,2248,2250,2252,2255,2256,2259,2261,2264,2266,2267,2269,2271,2272,2275,2278,2280,2282,2284,2286,2287,2290,2292,2293,2295,2296,2297,2300,2301,2304,2306,2309,2310,2311,2314,2316,2318,2319,2321,2325,2328,2332,2335,2336,2337,2339,2341,2343,2344,2345,2348,2350,2353,2356,2357,2361,2362,2363,2364,2367,2368,2370,2371,2373,2376,2377,2379,2381,2383,2384,2386,2388,2389,2391,2393,2395,2398,2401,2403,2404,2405,2407,2412,2413,2415,2416,2417,2418,2420,2421,2423,2426,2427,2429,2430,2431,2432,2436,2439,2440,2442,2443,2444,2446,2447,2449,2451,2453,2455,2457,2459,2461,2465,2466,2469,2472,2473,2475,2476,2478,2480,2481,2482,2484,2485,2487,2489,2490,2491,2493,2494,2495,2496,2500,2502,2504,2507,2510,2512,2514,2516,2519,2521,2522,2523,2526,2529,2530,2533,2535,2537,2541,2543,2545,2546,2547,2549,2551,2552,2553,2555,2556,2558,2560,2562,2563,2564,2566,2567,2570,2571,2574,2575,2577,2581,2585,2587,2588,2590,2592,2594,2596,2598,2599,2602,2604,2607,2609,2611,2613,2614,2615,2617,2620,2621,2624,2629,2631,2632,2635,2636,2640,2642,2643,2644,2645,2646,2650,2651,2652,2654,2657,2658,2660,2661,2663,2664,2666,2667,2668,2670,2672,2673,2674,2676,2679,2682,2685,2687,2689,2693,2697,2699,2702,2703,2704,2706,2708,2709,2711,2712,2714,2716,2718,2719,2722,2723,2725,2726,2728,2729,2732,2733,2735,2736,2739,2741,2745,2746,2748,2750,2753,2757,2759,2762,2764,2765,2767,2770,2772,2775,2778,2779,2782,2783,2784,2787,2790,2792,2794,2795,2796,2797,2799,2803,2805,2806,2808,2811,2814,2815,2818,2819,2820,2821,2823,2825,2826,2828,2831,2832,2835,2840,2841,2843,2845,2847,2849,2851,2852,2854,2856,2858,2859,2860,2863,2865,2866,2867,2869,2871,2873,2874,2877,2880,2881,2883,2885,2887,2889,2890,2891,2892,2893,2895,2896,2897,2899,2900,2901,2903,2906,2908,2913,2916,2919,2920,2923,2925,2926,2928,2929,2931,2934,2935,2936,2938,2940,2942,2943,2944,2947,2948,2949,2955,2956,2957,2959,2962,2963,2965,2966,2967,2970,2974,2979,2981,2983,2984,2987,2989,2990,2992,2994,2996,2999,3001,3002,3004,3008,3010,3011,3012,3014,3015,3017,3020,3022,3025,3026,3030,3034,3037,3039,3041,3044,3046,3048,3051,3052,3053,3054,3055,3056,3058,3059,3062,3068,3070,3071,3072,3075,3076,3078,3079,3081,3082,3084,3085,3087,3089,3091,3094,3095,3097,3101,3102,3103,3107,3108,3109,3111,3113,3115,3116,3117,3120,3123,3125,3127,3130,3133,3135,3137,3139,3140,3141,3143,3145,3146,3149,3151,3153,3156,3158,3160,3161,3163,3164,3165,3166,3168,3170,3172,3174,3177,3178,3180,3182,3183,3186,3188,3190,3191,3192,3193,3194,3196,3199,3200,3201,3202,3204,3208,3210,3211,3212,3215,3216,3217,3221,3222,3225,3228,3229,3230,3232,3236,3237,3240,3242,3244,3246,3248,3249,3251,3253,3254,3255,3257,3258,3259,3263,3264,3268,3270,3272,3276,3278,3279,3280,3282,3283,3284,3286,3287,3288,3290,3295,3296,3297,3298,3300,3303,3306,3309,3310,3313,3315,3316,3318,3319,3322,3324,3326,3327,3328,3330,3331,3332,3334,3337,3338,3339,3342,3343,3344,3346,3349,3350,3352,3354,3357,3361,3363,3364,3365,3368,3370,3371,3373,3374,3375,3377,3378,3379,3381,3387,3388,3389,3390,3391,3393,3395,3397,3399,3401,3403,3405,3406,3408,3410,3412,3415,3418,3420,3422,3423,3427,3430,3432,3436,3439,3440,3443,3446,3448,3449,3450,3452,3455,3457,3459,3461,3464,3465,3466,3467,3469,3470,3472,3473,3475,3477,3479,3480,3483,3485,3488,3490,3491,3492,3495,3496,3498,3501,3502,3504,3505,3507,3509,3510,3512,3513,3517,3518,3519,3521,3522,3524,3525,3526,3527,3528,3529,3530,3531,3535,3538,3540,3542,3544,3545,3547,3548,3549,3551,3552,3553,3557,3560,3562,3564,3566,3568,3571,3573,3576,3578,3581,3584,3585,3588,3590,3591,3593,3595,3597,3599,3600,3601,3602,3604,3605,3607,3608,3609,3611,3612,3615,3617,3618,3621,3622,3625,3626,3627,3630,3632,3634,3635,3636,3637,3638,3640,3642,3644,3646,3647,3650,3651,3653,3655,3658,3659,3661,3663,3666,3667,3669,3670,3672,3677,3680,3682,3683,3686,3690,3691,3694,3696,3699,3700,3702,3703,3705,3707,3709,3712,3714,3716,3718,3719,3721,3723,3727,3728,3730,3732,3733,3735,3736,3738,3740,3742,3743,3746,3748,3749,3750,3752,3754,3755,3756,3758,3760,3762,3764,3766,3768,3769,3772,3775,3780,3781,3782,3785,3786,3791,3793,3794,3795,3799,3801,3804,3806,3809,3810,3811,3812,3814,3815,3818,3821,3822,3823,3824,3825,3829,3833,3834,3836,3838,3840,3841,3843,3844,3846,3848,3849,3851,3852,3854,3855,3856,3858}
Returns: 1294
256
{228,161,116,156,104,11,126,253,156,55,47,88,35,33,118,4,214,148,51,102,71,98,77,115,26,22,232,147,212,123,16,55,41,248,223,184,8,12,206,160,6,75,155,144,37,53,1,237,103,247,31,28,222,127,132,180,177,175,86,43,167,106,73,184,184,23,186,198,83,201,93,48,234,141,227,149,189,168,237,150,172,90,201,112,93,136,94,105,245,60,249,198,4,2,166,152,135,129,255,123,44,58,128,109,75,54,192,112,150,177,23,44,158,15,143,213,19,81,85,205,176,29,49,243,194,204,243,124,53,111,37,27,33,166,219,193,3,45,208,208,170,138,162,127,106,215,124,123,232,181,10,52,93,166,57,29,66,157,222,29,173,82,13,224,220,42,158,45,254,159,16,125,71,19,196,252,54,132,84,210,242,66,151,26,122,209,191,24,143,83,226,107,17,151,47,163,210,127,243,123,181,205,150,17,77,165,193,237,41,223,220,84,67,37,35,112,37,44,192,256,188,204,100,232,226,170,5,193,53,13,181,168,225,33,145,237,174,50,59,244,184,197,109,138,249,79,185,45,243,15,172,74,137,35,27,73,104,50,181,65,35,46,98,149,121,127,132,111,45,157,169,207,40,141,185,82,142,229,89,23,8,16,183,25,64,42,182,82,90,158,4,56,22,187,82,245,227,214,191,104,99,83,38,81,90,168,223,101,106,232,80,215,111,173,126,220,212,33,188,245,198,220,123,116,150,213,43,122,117,246,33,214,247,41,111,163,212,133,175,28,175,30,201,69,178,74,224,27,69,180,177,177,57,99,215,94,40,242,147,67,37,159,17,212,41,112,44,193,7,180,62,123,81,61,162,245,179,89,26,147,63,52,127,48,41,115,180,36,126,36,38,142,135,211,185,214,135,86,111,57,215,68,171,114,93,86,130,7,198,210,36,139,246,17,20,36,156,149,123,26,232,166,168,160,3,108,133,26,247,124,124,41,101,106,51,101,144,127,42,53,4,227,76,104,78,148,73,102,17,97,141,102,3,163,127,250,76,234,221,99,240,210,203,126,22,96,117,244,37,190,13,30,234,227,20,135,53,218,9,85,165,124,173,226,172,69,96,194,27,135,36,236,255,177,79,112,220,138,5,254,230,48,34,220,43,132,78,80,69,14,174,115,128,224,178,70,44,250,71,115,38,137,242,162,134,51,247,68,191,212,54,235,121,120,247,200,205,70,119,144,166,226,173,70,124,89,108,139,173,1,172,205,87,214,144,149,184,211,117,69,163,92,35,47,245,101,10,145,125,39,83,9,43,76,119,113,10,73,215,145,229,53,244,256,72,196,181,178,226,63,65,8,82,74,2,19,176,223,87,135,45,153,205,80,182,125,156,24,94,170,132,8,13,22,42,29,245,42,131,184,226,122,221,230,196,250,168,182,77,16,49,39,229,177,12,221,213,32,49,121,213,83,66,151,11,18,239,195,186,183,195,110,238,51,90,189,166,92,94,93,17,207,86,237,227,154,217,100,164,204,114,208,160,117,19,60,228,19,176,13,138,129,96,28,146,93,27,235,35,150,231,237,113,72,63,96,235,72,49,107,238,200,172,111,168,98,79,249,110,69,25,194,102,214,37,60,237,13,219,145,239,229,204,189,223,236,185,95,231,106,42,33,137,255,89,35,186,140,23,184,64,35,204,192,19,82,182,117,55,147,239,11,139,194,238,147,224,147,182,182,186,155,10,114,253,59,139,203,238,203,251,111,223,192,82,174,25,45,210,207,125,211,206,181,206,67,77,240,89,236,102,225,92,216,164,95,94,160,141,60,78,218,238,139,52,82,83,231,244,210,202,42,165,225,209,230,176,186,22,148,31,40,131,38,45,44,245,148,113,106,200,93,192,31,108,144,53,253,6,171,145,173,61,244,168,218,57,42,79,158,238,67,201,223,238,219,147,169,1,62,7,222,231,133,47,167,230,5,220,218,231,139,5,63,27,31,26,256,116,203,59,169,129,208,191,63,127,247,209,149,240,35,163,143,60,25,238,112,117,151,84,69,174,25,131,114,217,88,228,17,162,131,250,55,76,92,137,116,23,226,26,223,100,243,87,207,99,108,105,227,190,129,105,101,126,213,153,39,241,122,72,229,84,130,210,242,171,228,100,83,250,128,241,210,31,230,228,112,39,219,5,156,37,50,57,248,95,91,163,12,160,76,32,70,153,173,211,169,33,2,12,68,95,129,187,3,216,138,28,188,168,47,77,107,52,47,35,91,235,211,135,173,223,110,94,9,57,21,29,122,236,243,208,108,68,241,157,136,88,226,129,172,186,53,88,148,73,65,252,213,75,158,171,198,161,150,203,109,63,189,105,50,200,227,227,25,135,1,141,105,218,178,38,104,145,162,116,83,134,214,119,36,101,69,47,213,77,1,11,177,190,148,209,239,3,108,233,104,51,28,178,80,165,32,206,253,158,47,9,160,247,168,221,66,81,165,100,239,128,48,217,238,209,180,217,256,197,97,202,54,27,47,246,125,230,131,77,89,183,247,199,46,3,163,250,117,15,97,133,204,3,214,139,53,225,224,183,13,157,210,193,66,170,61,226,249,208,123,42,133,122,22,13,175,20,14,76,148,125,140,174,33,7,21,208,229,42,68,217,115,79,84,172,158,250,38,181,7,247,71,124,30,242,134,141,85,138,236,118,150,132,155,23,44,169,241,175,74,128,114,179,235,222,134,158,88,38,191,187,214,235,95,11,18,125,64,57,151,223,169,237,87,148,146,137,138,165,7,204,114,82,159,191,105,216,215,173,95,222,22,233,116,21,67,181,151,234,151,107,48,26,250,237,168,86,113,23,71,89,133,226,74,236,35,206,64,230,141,3,183,62,8,178,2,214,152,5,105,230,216,74,99,118,7,164,149,159,228,26,51,252,91,136,249,256,56,136,131,147,11,49,216,225,11,29,33,221,123,29,64,153,38,115,125,82,209,166,242,162,47,98,112,31,183,49,121,103,246,60,169,93,88,185,96,53,63,37,171,201,24,207,142,141,158,230,151,93,213,154,33,107,95,182,73,102,185,104,113,39,145,225,111,253,228,228,253,12,185,74,158,4,128,3,119,211,175,39,152,1,248,47,35,141,182,135,64,134,104,87,80,180,220,101,248,248,143,209,147,120,20,107,87,220,191,80,10,103,186,173,121,13,166,71,220,25,92,234,100,128,236,127,167,122,256,48,49,103,238,196,169,215,63,226,250,227,51,230,193,211,242,132,197,167,64,108,160,210,74,208,225,30,254,192,196,154,128,238,116,4,213,182,19,45,137,214,46,139,33,163,53,19,122,58,92,116,188,122,254,161,122,127,209,175,165,149,138,246,117,153,104,121,23,38,220,182,242,217,9,256,142,127,25,188,192,7,117,3,142,152,199,73,85,74,82,3,40,149,142,110,12,190,37,233,146,42,112,185,184,188,67,69,82,33,122,94,33,49,227,127,207,96,93,92,96,136,214,168,70,52,112,106,70,9,151,192,114,191,7,160,37,171,172,146,111,200,50,40,191,184,146,150,161,84,58,111,46,205,181,103,172,194,116,154,243,10,30,185,187,88,79,71,157,130,216,237,169,103,167,205,170,64,77,166,215,140,185,140,138,100,255,252,169,173,94,254,245,62,112,49,8,174,86,149,238,103,26,11,91,5,193,170,51,51,193,45,218,167,36,236,231,4,145,24,41,255,141,39,184,89,191,176,153,212,180,79,221,161,171,103,142,96,43,38,148,47,187,112,210,255,253,228,14,203,98,154,231,32,83,188,248,203,22,181,151,130,246,42,244,178,39,162,76,204,197,90,198,171,175,107,7,16,134,31,14,117,28,11,228,214,144,66,183,142,2,196,149,168,70,34,144,174,57,30,60,79,102,244,167,225,120,252,141,49,142,15,103,211,233,92,32,132,141,25,130,39,108,175,94,64,90,14,48,212,143,217,116,10,208,92,82,245,90,78,38,130,122,162,123,136,134,225,141,173,21,199,236,242,195,38,248,90,153,112,3,100,11,139,142,208,238,21,192,95,67,136,107,26,144,56,58,250,152,142,69,176,209,121,74,172,87,130,231,112,137,144,185,188,55,2,5,15,77,102,165,146,82,184,49,120,126,212,19,145,61,113,6,205,224,200,185,56,4,208,186,245,120,204,138,171,249,191,195,232,214,59,146,227,148,253,48,54,43,147,31,43,218,114,223,99,181,187,83,168,10,30,204,35,99,45,140,12,127,206,254,150,201,75,77,179,9,247,230,244,187,96,147,214,54,77,47,109,45,18,180,135,57,7,74,15,40,60,61,158,119,234,73,8,247,122,117,216,230,113,196,143,218,230,107,201,195,206,213,73,233,193,180,95,76,130,125,248,232,20,83,29,127,208,238,199,59,129,93,68,22,78,141,140,75,199,88,153,55,78,171,179,238,187,104,131,143,233,79,212,181,186,200,151,216,227,131,21,56,206,44,235,254,181,256,201,173,14,243,182,90,112,56,7,122,244,96,21,192,74,15,39,128,173,44,10,88,4,191,73,77,171,56,241,127,124,190,111,134,230,38,30,28,26,169,195,30,164,35,82,49,241,121,12,57,191,49,53,155,177,146,116,215,161,169,13,54,216,114,34,146,138,220,90,228,183,7,67,29,208,239,23,46,51,253,137,69,37,118,183,120,92,123,63,163,30,85,51,1,67,49,111,70,126,239,180,34,173,172,197,2,6,185,168,151,127,67,33,32,204,156,98,176,16,28,14,175,86,220,125,191,177,39,129,160,256,89,174,38,28,250,168,122,106,102,191,202,165,243,160,76,240,144,216,226,68,22,90,32,106,11,83,85,243,124,10,47,189,158,188,45,221,82,235,114,245,80,204,196,100,188,46,118,239,26,94,190,254,23,88,129,206,117,209,239,105,117,123,92,200,125,63,180,185,72,240,109,251,253,130,127,55,151,158,232,89,171,251,118,43,56,216,54,230,86,115,127,238,226,110,249,199,221,181,15,233,29,123,36,237,36,160,152,99,81,254,42,77,107,199,113,63,141,97,62,243,174,250,132,1,190,90,3,114,251,59,52,208,113,239,87,98,232,244,49,63,79,107,246,3,138,141,60,12,256,148,38,49,162,152,13,52,26,132,182,59,220,61,212,250,59,214,240,87,85,171,17,194,148,27,89,170,202,158,188,228,101,207,73,62,21,84,243,216,61,42,207,79,243,118,167,85,1,151,91,179,32,209,10,81,9,179,36,116,79,231,165,243,208,9,74,191,143,179,101,232,18,248,28,189,26,32,5,176,77,128,30,15,167,31,151,201,3,211,148,241,176,81,37,216,46,243,200,66,82,163,166,54,201,185,67,248,184,115,179,117,98,256,178,185,43,3,193,204,6,233}
{1,2,3,4,5,7,8,9,11,12,13,15,16,17,18,19,20,23,24,25,26,28,29,30,31,34,35,38,40,41,42,44,47,49,50,51,53,55,56,57,58,60,61,63,64,66,67,68,69,70,73,74,75,76,77,79,80,82,85,89,92,93,95,96,97,98,99,100,101,102,104,105,106,108,109,110,111,112,114,115,117,118,120,121,123,125,126,127,128,129,130,131,132,133,136,138,139,140,141,143,146,148,150,152,153,154,155,156,157,159,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,180,182,183,186,187,188,189,190,191,192,193,194,196,198,199,200,201,202,203,205,207,208,209,210,211,212,213,214,215,217,218,219,221,222,223,226,227,229,230,231,232,233,235,239,240,241,242,244,246,247,248,249,250,252,253,256,257,258,259,261,262,263,264,265,268,269,270,271,272,273,274,275,276,277,279,280,281,282,283,284,285,286,287,288,289,290,291,294,295,296,298,299,300,303,304,305,306,307,309,311,313,314,315,317,319,321,323,324,325,328,329,330,331,333,334,336,338,340,341,342,344,346,347,348,349,351,353,354,355,357,358,359,360,362,364,365,366,367,368,369,370,371,373,374,375,377,378,379,380,381,382,385,387,388,390,391,392,394,396,397,398,402,403,405,406,408,411,412,413,415,416,417,418,419,420,421,422,423,424,425,427,428,429,431,436,437,439,441,443,444,445,446,448,449,451,452,453,454,456,457,458,459,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,478,479,480,482,483,484,485,486,488,489,490,491,492,494,496,497,498,499,501,502,503,504,505,507,509,510,512,513,516,520,523,524,525,526,527,528,529,530,531,532,534,535,538,539,540,542,544,545,546,547,549,550,551,552,553,555,558,560,561,562,564,566,567,568,569,570,571,572,573,575,576,578,581,583,585,586,587,588,589,591,592,594,595,597,598,599,600,602,603,604,605,607,608,610,612,613,614,615,616,617,620,621,622,623,624,627,630,631,632,633,634,636,637,639,640,641,642,643,645,646,647,648,650,651,652,654,655,657,659,660,662,664,666,668,669,670,671,672,674,676,678,680,681,682,683,684,685,687,688,689,691,694,697,700,701,702,703,705,706,707,708,709,710,711,712,714,716,717,718,721,722,723,726,728,729,732,733,734,736,737,738,740,741,743,745,746,747,748,750,752,753,754,755,756,757,758,760,761,762,763,764,766,767,768,769,771,772,774,775,777,778,779,780,781,783,785,788,789,790,792,793,794,796,798,800,801,802,803,804,805,808,809,810,813,815,816,818,819,820,821,822,823,824,825,826,828,831,832,833,835,836,837,838,839,840,842,843,844,845,847,849,850,852,853,855,856,857,858,861,863,864,865,866,867,868,869,870,872,873,875,877,878,879,880,881,882,883,884,885,886,887,889,890,892,894,896,897,898,899,901,903,904,907,908,910,911,912,913,914,915,918,921,923,924,925,926,927,928,929,930,932,933,934,935,937,938,939,940,942,944,945,946,948,949,950,952,953,955,956,958,959,960,961,962,963,964,965,966,968,969,970,971,973,974,976,978,979,981,982,983,984,985,987,988,991,992,994,996,997,999,1000,1001,1003,1004,1005,1006,1007,1008,1009,1012,1013,1015,1016,1017,1018,1019,1021,1022,1023,1024,1026,1027,1029,1031,1034,1037,1038,1039,1041,1042,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1057,1058,1059,1061,1062,1063,1064,1066,1068,1069,1070,1071,1073,1074,1075,1076,1077,1079,1080,1081,1082,1083,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1102,1103,1104,1106,1108,1109,1111,1113,1114,1115,1117,1119,1121,1122,1123,1124,1125,1127,1128,1129,1130,1131,1134,1136,1138,1141,1142,1144,1146,1148,1149,1150,1152,1153,1154,1156,1157,1159,1160,1161,1162,1163,1164,1166,1167,1168,1169,1170,1171,1173,1174,1178,1180,1181,1182,1183,1185,1186,1188,1189,1191,1192,1194,1196,1198,1199,1200,1201,1203,1204,1205,1206,1207,1208,1209,1210,1212,1213,1215,1216,1219,1220,1221,1224,1225,1226,1227,1229,1231,1233,1235,1236,1238,1239,1241,1243,1244,1245,1246,1248,1249,1250,1251,1253,1254,1256,1259,1260,1262,1264,1265,1268,1270,1272,1273,1276,1277,1278,1279,1280,1281,1283,1288,1289,1291,1292,1293,1294,1295,1297,1299,1300,1301,1303,1304,1305,1307,1309,1310,1312,1315,1317,1318,1320,1321,1322,1323,1325,1327,1328,1329,1330,1331,1332,1334,1335,1336,1337,1338,1339,1341,1344,1345,1346,1347,1348,1350,1352,1353,1354,1355,1356,1357,1358,1359,1361,1362,1363,1365,1366,1368,1370,1371,1372,1374,1375,1376,1377,1378,1379,1380,1382,1383,1384,1385,1386,1387,1388,1389,1390,1392,1393,1394,1396,1397,1398,1399,1400,1402,1403,1406,1407,1409,1410,1411,1412,1414,1415,1416,1417,1418,1419,1420,1421,1422,1424,1425,1427,1429,1430,1431,1432,1433,1435,1436,1437,1438,1439,1440,1441,1442,1443,1447,1448,1449,1450,1451,1452,1454,1455,1458,1459,1461,1462,1463,1464,1465,1467,1469,1471,1472,1473,1476,1478,1479,1481,1483,1485,1486,1488,1489,1490,1492,1493,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1516,1517,1518,1521,1522,1524,1525,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1538,1541,1542,1543,1544,1545,1546,1547,1549,1550,1551,1552,1553,1554,1555,1557,1558,1559,1561,1563,1564,1566,1567,1568,1569,1570,1571,1573,1574,1575,1576,1578,1579,1581,1582,1585,1588,1589,1590,1593,1594,1595,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1609,1611,1612,1613,1615,1616,1618,1620,1621,1623,1624,1626,1627,1630,1633,1634,1635,1638,1640,1643,1644,1646,1647,1648,1649,1652,1653,1654,1655,1659,1661,1663,1665,1666,1667,1669,1670,1671,1672,1675,1676,1677,1678,1679,1680,1681,1683,1685,1686,1687,1688,1690,1692,1693,1695,1696,1697,1698,1700,1702,1703,1704,1705,1706,1707,1708,1711,1712,1713,1717,1718,1719,1720,1722,1723,1724,1725,1726,1728,1730,1731,1733,1734,1735,1736,1738,1739,1740,1742,1743,1745,1747,1748,1749,1750,1751,1754,1755,1756,1757,1758,1760,1761,1762,1764,1766,1767,1769,1771,1772,1773,1774,1775,1776,1778,1779,1782,1783,1784,1786,1787,1791,1792,1794,1795,1797,1798,1799,1800,1801,1803,1804,1805,1806,1807,1809,1812,1814,1816,1818,1819,1821,1822,1823,1824,1825,1826,1827,1828,1830,1831,1832,1833,1834,1835,1837,1838,1839,1840,1841,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1854,1855,1856,1857,1859,1860,1863,1864,1865,1867,1868,1869,1870,1871,1872,1873,1874,1876,1877,1878,1880,1881,1883,1884,1886,1887,1888,1890,1891,1892,1894,1896,1898,1900,1901,1902,1903,1904,1905,1906,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1921,1922,1923,1925,1926,1927,1928,1929,1930,1931,1932,1934,1935,1937,1938,1939,1940,1941,1942,1943,1945,1946,1947,1948,1950,1951,1952,1953,1954,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1969,1971,1973,1974,1975,1977,1978,1980,1983,1985,1987,1990,1991,1994,1995,1997,1998,1999,2002,2004,2006,2008,2009,2011,2012,2014,2015,2017,2018,2019,2020,2021,2022,2023,2024,2028,2031,2032,2033,2036,2039,2040,2043,2045,2046,2047,2048,2049,2051,2053,2054,2056,2058,2059,2061,2062,2063,2064,2066,2067,2068,2071,2072,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2086,2087,2088,2089,2090,2092,2095,2096,2097,2098,2100,2101,2103,2104,2108,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2123,2125,2126,2127,2129,2132,2133,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2149,2150,2152,2155,2156,2157,2158,2159,2161,2162,2163,2165,2167,2169,2170,2172,2173,2174,2177,2178,2179,2180,2181,2183,2184,2185,2188,2190,2191,2193,2194,2195,2197,2199,2202,2205,2207,2209,2211,2212,2213,2215,2217,2219,2221,2222,2223,2224,2225,2227,2230,2231,2232,2234,2235,2237,2238,2239,2240,2241,2243,2244,2245,2246,2247,2248,2250,2251,2253,2255,2256,2257,2258,2259,2260,2262,2264,2266,2267,2268,2269,2272,2273,2275,2277,2279,2281,2283,2285,2286,2287,2289,2290,2291,2292,2294,2296,2299,2300,2301,2302,2304,2307,2309,2310,2311,2312,2313,2314,2317,2318,2320,2322,2325,2326,2327,2329,2330,2331,2332,2333,2334,2337,2338,2339,2342,2343,2344,2345,2346,2347,2351,2352,2353,2354,2356,2357,2358,2359,2360,2362,2363,2365,2366,2367,2370,2372,2374,2376,2377,2379,2380,2381,2382,2384,2385,2386,2387,2389,2390,2393,2394,2396,2397,2399,2403,2404,2405,2406,2407,2408,2411,2412,2413,2414,2415,2416,2417,2418,2419,2421,2424,2426,2427,2428,2430,2432,2434,2435,2436,2437,2438,2439,2440,2443,2444,2445,2446,2447,2448,2449,2450,2451,2452,2453,2455,2456,2457,2458,2459,2460,2462,2463,2466,2467,2469,2471,2473,2474,2475,2477,2479,2480,2481,2482,2483,2484,2485,2486,2488,2489,2491,2492,2493,2495,2497,2499,2501,2503,2505,2507,2509,2510,2512,2513,2514,2515,2518,2520,2521,2523,2524,2525,2526,2527,2529,2532,2533,2536,2537,2539,2540,2541,2542,2543,2544,2545,2548,2549,2551,2552,2554,2556,2558,2559,2560,2563,2564,2565,2566,2568,2569,2570,2571,2573,2574,2575,2576,2578,2580,2581,2582,2583,2585,2588,2589,2591,2592,2593,2595,2597,2598,2600,2602,2603,2606,2608,2609,2610,2611,2612,2614,2615,2617,2618,2620,2621,2623,2624,2625,2626,2627,2629,2630,2631,2634,2635,2637,2640,2641,2642,2643,2644,2645,2646,2648,2649,2650,2651,2653,2654,2655,2656,2658,2659,2660,2661,2665,2666,2667,2668,2669,2670,2671,2672,2673,2675,2677,2678,2679,2681,2682,2684,2685,2687,2689,2692,2693,2695,2697,2698,2699,2700,2703,2704,2707,2708,2711,2713,2715,2716,2717,2718,2720,2722,2725,2727,2729,2730,2731,2732,2734,2737,2738,2739,2740,2741,2742,2743,2744,2745,2746,2747,2748,2749,2751,2752,2753,2754,2755,2756,2758,2759,2760,2761,2762,2763,2764,2766,2768,2769,2770,2771,2772,2773,2775,2776,2778,2779,2780,2781,2782,2783,2784,2785,2787,2789,2790,2791,2793,2795,2796,2798,2799,2801,2802,2803,2805,2807,2808,2809,2810,2811,2813,2815,2817,2818,2819,2821,2822,2823,2824,2826,2827,2828,2830,2832,2833,2834,2835,2838,2840,2843,2845,2847,2850,2851,2852,2856,2857,2858,2859,2860,2861,2862,2863,2864,2867,2868,2871,2873,2876,2877,2879,2881,2883,2884,2885,2888,2891,2892,2893,2894,2896,2897,2900,2902,2903,2904,2905,2907,2909,2910,2911,2912,2913,2914,2915,2918,2920,2921,2923,2925,2927,2928,2930,2931,2932,2936,2937,2939,2940,2941,2943,2944,2945,2951,2953,2954,2955,2956,2959,2960,2962,2963,2964,2965,2966,2967,2969,2971,2973,2974,2976,2977,2981,2982,2983,2985,2987,2990,2992,2993,2995,2996,2997,2999,3000,3001,3002,3003,3004,3005,3006,3007,3009,3010,3011,3012,3013,3014,3015,3016,3017,3018,3019,3020,3023,3025,3027,3028,3029,3030,3032,3033,3034,3036,3037,3038,3039,3040,3041,3042,3043,3045,3047,3049,3051,3052,3054,3056,3057,3058,3060,3062,3064,3066,3067,3069,3070,3071,3073,3074,3075,3076,3078,3080,3081,3082,3083,3084,3086,3087,3088,3089,3090,3092,3095,3096,3098,3099,3100,3101,3102,3103,3104,3106,3107,3109,3110,3112,3113,3114,3117,3118,3119,3120,3121,3122,3124,3126,3127,3129,3131,3132,3133,3135,3136,3139,3141,3143,3144,3145,3146,3149,3150,3152,3154,3156,3158,3160,3161,3163,3164,3165,3166,3167,3168,3171,3172,3174,3176,3177,3178,3180,3183,3184,3186,3187,3189,3190,3192,3194,3197,3198,3199,3202,3204,3205,3206,3208,3209,3211,3213,3214,3216,3217,3218,3219,3220,3221,3222,3223,3225,3227,3229,3230,3231,3233,3234,3235,3236,3237,3239,3240,3241,3242,3244,3245,3246,3247,3248,3249,3250,3252,3253,3254,3256,3257,3259,3261,3263,3264,3265,3266,3267,3268,3270,3272,3274,3275,3278,3279,3281,3282,3284,3285,3286,3288,3289,3290,3291,3292,3293,3294,3296,3297,3299,3300,3302,3303,3305,3306,3307,3309,3310,3311,3312,3313,3314,3317,3318,3319,3320,3322,3324,3325,3327,3329,3331,3332,3333,3334,3336,3337,3339,3340,3341,3342,3343,3344,3347,3348,3350,3352,3353,3354,3356,3357,3358,3359,3360,3362,3363,3364,3366,3368,3369,3370,3373,3374,3376,3377,3379,3382,3383,3384,3386,3389,3390,3391,3393,3395,3397,3399}
Returns: 1703
16
{4,10,4,6,14,9,2,6,6,7,12,11,1,14,12,5,13,8,4,6,16,11,4,3,11,16,6,15,5,5,13,4,3,12,11,13,1,7,15,13,15,3,15,3,5,14,11,11,7,14,10,7,15,2,10,8,15,9,15,11,15,7,10,5,7,7,10,1,1,10,1,6,13,13,10,5,16,1,14,11,10,13,10,3,1,1,13,12,8,7,13,10,2,5,11,5,8,14,16,6,15,12,12,1,2,6,2,10,3,7,4,7,4,11,11,6,1,9,2,8,3,15,4,4,2,11,1,1,7,2,3,6,10,10,9,11,16,2,1,7,11,4,12,5,14,7,7,16,15,15,13,5,14,14,7,11,9,4,9,13,1,14,10,16,12,8,14,1,7,13,8,4,4,2,15,5,12,3,8,16,6,12,7,12,10,1,1,5,6,8,3,16,2,4,8,8,8,4,13,8,6,6,6,1,13,8,1,4,9,9,3,11,1,4,6,4,8,5,8,5,5,14,7,7,3,9,15,1,1,4,4,2,12,13,16,13,11,3,15,9,5,5,16,15,14,2,4,6,7,16,15,14,9,12,5,3,6,10,3,14,9,14,3,1,3,3,16,2,2,9,10,6,15,12,12,4,10,11,3,4,1,14,13,8,2,8,3,12,14,10,5,10,7,1,6,4,4,5,8,13,1,6,13,6,1,1,5,8,9,15,14,10,7,1,12,5,3,12,1,5,13,4,14,15,11,3,1,3,3,2,4,10,16,9,2,9,5,1,12,3,1,15,1,6,4,6,6,2,11,13,4,5,6,16,3,5,12,1,2,3,5,10,10,3,8,9,10,13,1,15,5,16,15,13,3,3,1,10,12,4,4,12,15,5,9,12,5,4,4,9,8,10,6,3,2,14,9,9,16,12,12,15,14,6,4,9,8,14,2,11,9,15,4,1,7,12,6,9,12,7,6,14,7,12,4,13,11,9,4,5,6,16,12,6,10,9,15,6,5,2,14,7,3,13,3,8,4,14,1,14,8,9,4,13,16,2,16,12,16,2,1,15,2,12,3,8,1,16,14,1,1,9,8,10,8,11,7,15,12,10,2,9,10,15,8,6,3,7,3,6,4,6,10,4,1,2,13,6,4,6,7,13,8,15,11,2,2,9,3,13,14,14,15,15,1,13,9,10,7,3,1,7,10,1,16,16,11,7,13,5,14,12,10,1,7,10,1,16,16,16,3,12,4,7,1,3,12,8,7,14,15,14,10,8,1,9,9,11,4,5,1,15,8,7,7,1,16,8,16,1,1,9,9,2,2,4,9,10,12,3,7,15,11,6,6,5,12,6,12,8,15,14,1,7,14,15,7,16,14,11,12,9,6,9,5,5,9,16,12,16,1,8,13,15,10,7,10,16,11,16,11,5,14,13,3,13,10,13,8,14,8,1,16,6,1,3,16,14,6,15,2,3,4,1,10,12,10,1,15,15,13,2,7,3,13,2,3,14,8,2,15,9,8,12,2,3,4,14,5,3,15,16,6,12,8,2,16,12,9,12,16,7,10,3,13,5,4,3,5,13,13,10,14,14,5,10,4,16,4,10,14,3,14,2,16,4,16,2,10,7,10,12,5,2,16,11,6,6,16,6,10,12,14,10,10,5,5,9,6,13,2,12,6,7,15,8,14,9,8,6,5,12,15,3,12,16,9,8,16,5,10,13,3,4,11,16,12,7,13,8,10,13,9,5,5,6,9,16,2,4,16,6,1,6,7,1,12,7,13,11,10,6,8,1,13,8,10,4,16,2,14,3,14,9,8,15,15,16,2,10,7,10,15,16,3,2,14,5,4,11,11,3,15,13,15,8,9,13,3,2,11,14,9,10,11,7,13,10,13,7,15,2,3,12,7,3,13,6,2,8,9,10,12,2,11,16,8,11,16,10,11,7,3,14,4,6,5,8,6,5,8,4,16,9,7,13,15,12,10,6,15,13,10,5,1,4,6,8,12,2,5,14,9,8,14,5,11,9,2,9,3,4,5,9,10,2,12,7,12,5,10,6,10,12,6,6,8,7,6,6,2,2,2,13,14,2,15,13,9,8,2,3,1,15,7,10,11,16,3,16,8,2,8,12,4,7,12,7,9,11,3,16,16,16,14,16,14,8,3,16,16,7,13,10,3,12,7,11,7,15,14,3,1,15,16,16,13,11,7,9,4,6,12,1,3,8,6,5,15,3,16,16,15,8,7,1,3,14,14,16,11,11,12,12,7,9,10,13,15,16,1,6,14,6,9,7,10,8,8,10,14,14,12,16,11,1,4,4,5,3,1,1,15,14,3,14,4,9,10,11,13,3,13,16,13,3,7,15,3,1,5,5,3,15,7,4,3,2,14,2,2,10,4,6,12,13,8,15,3,10,3,2,1,11,4,9,14,4,12,11,11,6,7,7,14,8,3,8,16,16,11,14,16,9,3,14,2,6,2,12,11,4,14,13,4,9,14,14,4,10,16,7,10,8,4,11,4,9,13,4,12,9,5,5,4,12,6,5,11,13,5,14,5,11,2,8,7,11,15,2,10,1,12,5,11,13,3,16,5,9,10,10,16,6,9,3,3,7,7,7,11,5,4,3,12,10,10,11,15,1,5,4,9,14,4,7,6,15,6,4,15,16,9,4,3,16,8,3,1,4,14,8,15,8,15,7,9,3,2,12,6,8,12,4,2,11,2,10,11,3,1,3,13,8,5,10,11,3,12,11,4,3,8,2,3,1,12,14,15,12,1,7,5,7,8,11,12,12,7,6,16,12,3,10,1,15,4,8,6,5,2,6,11,3,5,4,9,1,2,1,11,10,3,4,8,1,13,15,4,1,14,12,1,8,2,15,11,16,13,12,5,2,11,5,12,2,1,10,5,3,5,12,9,5,8,8,12,10,16,13,6,9,7,2,11,13,12,9,16,14,14,1,13,1,7,2,1,3,11,2,15,3,15,9,15,10,11,4,5,5,12,6,4,4,15,10,2,14,11,7,1,3,1,9,7,14,16,11,2,5,6,11,6,13,14,2,6,9,1,14,14,13,9,8,6,4,5,4,2,5,15,8,13,4,2,16,11,12,1,12,3,1,8,5,9,14,4,8,16,14,13,8,5,12,4,10,11,5,7,15,15,4,9,15,4,8,15,9,10,11,5,16,10,9,6,6,4,8,6,10,8,6,9,15,9,11,7,15,14,6,5,14,2,1,12,2,12,4,9,1,13,11,10,6,7,1,4,3,14,13,12,1,14,3,13,14,10,2,2,15,2,10,15,7,6,13,3,3,13,12,7,12,6,14,16,7,16,14,16,14,16,6,9,4,4,5,3,1,14,3,13,14,15,4,5,13,8,5,9,14,1,2,1,3,15,2,13,4,14,14,7,2,13,15,5,16,10,9,4,15,11,11,11,9,2,8,12,8,8,6,3,1,4,4,13,15,11,9,2,8,5,16,8,15,14,16,14,8,11,10,7,11,6,11,16,15,7,11,2,7,13,15,6,8,14,1,1,3,14,2,15,7,9,12,2,10,1,16,6,11,15,4,3,2,2,16,16,15,13,10,2,13,8,4,6,13,13,12,3,9,13,15,13,12,12,10,13,4,15,10,15,3,11,4,9,5,6,2,12,10,11,6,11,16,4,4,3,10,1,1,11,1,5,13,16,3,10,2,1,1,4,4,2,8,2,12,11,12,9,3,5,9,12,16,11,11,10,6,3,15,3,8,8,2,7,1,10,6,2,9,8,4,13,15,14,11,8,15,15,13,9,11,7,8,6,13,3,5,5,4,4,2,11,5,5,8,7,4,14,9,12,5,14,3,4,6,12,3,14,12,15,4,5,12,1,5,9,12,9,11,12,4,15,8,8,5,15,9,15,14,14,9,4,9,8,6,9,5,5,15,11,2,3,1,11,5,7,14,5,2,13,2,6,10,4,14,3,16,10,11,10,8,13,16,7,15,12,10,9,16,13,10,16,4,9,11,5,13,6,15,2,6,12,3,5,3,2,11,14,6,4,16,9,10,10,1,16,8,1,15,8,15,1,5,12,3,8,5,6,4,7,4,1,6,9,11,1,9,11,2,13,5,15,9,8,11,13,13,6,4,2,7,6,2,8,3,4,10,15,8,12,1,3,14,12,11,7,14,15,16,9,8,3,12,14,4,15,6,4,12,12,5,2,2,14,7,15,13,1,4,14,15,1,8,10,15,14,6,12,8,5,2,3,1,11,11,8,9,9,16,7,10,4,2,8,11,3,12,14,5,16,11,5,13,13,9,13,8,9,13,3,3,6,5,15,1,2,15,8,3,16,6,10,5,12,1,12,2,11,4,9,15,8,6,11,13,9,9,16,8,8,15,5,9,14,15,12,7,7,9,12,16,15,12,10,2,12,1,8,16,12,5,2,2,2,7,7,2,10,5,13,10,14,7,3,2,4,6,13,3,11,1,15,6,15,1,7,7,15,15,1,5,6,12,2,2,6,9,6,14,16,9,11,6,14,11,14,16,5,8,14,16,14,8,12,10,4,6,10,6,3,4,15,12,8,5,16,13,13,8,7,12,1,11,9,6,1,8,13,6,11,6,1,2,2,1,15,10,7,14,5,11,14,5,14,12,14,12,2,1,2,10,8,11,8,6,2,4,13,5,4,11,10,2,2,15,2,8,4,2,5,8,6,6,5,9,10,3,14,12,15,7,3,13,8,4,4,15,9,5,9,8,7,5,5,4,4,14,11,8,14,9,2,9,7,13,7,15,13,16,2,3,5,8,3,7,3,14,15,7,8,14,16,5,13,9,4,14,2,11,15,9,16,14,16,15,14,12,1,11,2,7,10,11,6,16,4,14,11,6,9,13,7,6,4,7,2,16,14,11,8,12,4,12,9,16,13,1,6,5,11,9,9,5,14,10,3,10,8,15,4,14,1,1,15,5,12,5,5,8,7,11,3,2,14,1,4,2,15,12,5,3,7,16,5,6,11,16,1,8,10,12,10,16,8,16,9,14,9,11,13,4,2,6,5,16,7,14,1,11,10,9,13,2,7,7,4,6,10,11,16,10,11,15,11,3,10,3,11,8,10,16,13,8,11,5,2,6,15,10,11,14,6,3,9,14,2,9,9,14,5,5,5,16,4,15,11,3,3,15,1,11,4,7,6,12,10,12,8,4,16,13,7,8,10,7,8,15,4,16,11,13,6,13,8,5,9,7,10,2,14,10,11,1,5,1,4,6,9,9,16,4,4,3,2,16,14,14,1,2,9,9,3,11,6,7,7,9,4,9,2,6,6,10,4,2,15,4,3,14,4,6,7,16,15,5,10,8,10,8,10,13,3,16,9,11,3,4,12,7,16,9,1,4,13,15,8,7,5,4,6,4,12,2,2}
{3,4,6,7,8,9,11,12,14,15,17,19,21,22,25,26,28,31,32,33,35,37,38,41,42,44,45,47,50,52,55,57,59,60,62,63,66,67,69,70,73,74,76,77,79,82,83,84,87,89,91,92,94,97,98,100,102,103,105,106,108,111,113,116,118,119,122,124,126,128,129,130,131,132,133,134,136,139,140,141,142,144,145,147,149,151,153,155,157,158,160,161,164,166,167,168,170,171,173,177,178,180,181,183,184,185,187,188,189,190,192,193,194,196,197,199,201,202,204,206,208,210,213,215,216,217,218,219,222,223,224,227,229,230,231,232,233,235,237,239,241,243,244,246,248,252,253,254,256,258,261,262,266,269,270,273,274,275,276,278,280,281,283,284,286,287,288,290,293,297,298,300,303,306,307,308,309,311,313,314,317,319,321,323,324,327,329,332,336,337,338,340,341,343,344,346,348,349,351,353,354,356,358,360,362,364,365,366,369,373,375,376,377,381,382,385,386,391,393,394,395,396,399,400,402,406,407,409,410,411,412,414,415,417,418,421,426,428,430,432,435,436,439,440,441,442,444,445,447,448,450,453,454,455,456,458,459,460,462,464,465,466,467,469,471,472,473,474,477,480,481,482,483,485,487,488,489,491,493,495,497,498,500,502,503,504,506,508,510,512,513,514,517,519,522,523,524,526,527,529,530,531,532,533,535,536,537,538,541,542,543,545,547,548,549,550,553,554,555,557,559,563,567,569,570,573,576,579,583,585,586,588,591,592,594,595,597,600,604,606,607,608,610,612,614,615,616,617,619,621,623,624,626,627,629,630,633,635,637,638,640,641,643,646,649,650,653,656,657,659,661,664,666,667,668,670,671,675,676,680,683,685,686,687,690,692,695,698,699,700,701,703,705,706,708,710,711,714,715,716,717,719,720,721,722,724,727,729,730,731,732,733,736,737,739,742,747,748,750,753,756,757,758,761,762,764,765,767,768,769,770,772,774,777,779,781,785,786,788,789,790,791,795,797,798,799,801,804,805,806,807,809,811,812,813,815,817,818,819,821,824,825,827,828,831,832,834,836,837,838,841,843,845,847,849,853,856,859,860,862,865,866,867,869,872,873,876,878,879,880,883,884,887,888,890,892,894,895,896,898,899,902,903,905,907,908,909,911,913,915,916,917,919,922,924,925,927,929,932,934,935,937,939,941,942,944,945,946,947,949,950,951,953,957,959,960,962,963,965,968,970,972,975,977,981,983,986,989,991,993,994,995,996,998,1000,1002,1008,1009,1011,1013,1014,1018,1021,1022,1023,1024,1027,1029,1030,1031,1032,1033,1035,1037,1039,1043,1046,1047,1051,1054,1055,1056,1058,1059,1061,1064,1067,1069,1070,1073,1076,1077,1078,1082,1083,1084,1085,1087,1088,1089,1091,1092,1094,1096,1099,1100,1102,1103,1105,1106,1109,1110,1111,1113,1115,1117,1119,1120,1121,1122,1123,1124,1126,1129,1132,1135,1137,1139,1142,1144,1146,1148,1149,1151,1152,1153,1154,1155,1157,1158,1161,1162,1165,1169,1170,1172,1173,1174,1175,1177,1179,1181,1185,1187,1189,1191,1192,1195,1196,1198,1200,1203,1204,1205,1207,1211,1212,1214,1215,1217,1218,1219,1222,1224,1226,1228,1229,1232,1233,1235,1236,1237,1238,1239,1242,1244,1246,1248,1249,1250,1253,1254,1257,1258,1259,1260,1261,1263,1265,1267,1268,1269,1270,1271,1275,1277,1279,1281,1283,1287,1288,1289,1290,1291,1292,1294,1296,1297,1299,1301,1302,1303,1305,1306,1307,1308,1310,1312,1314,1315,1316,1317,1319,1321,1324,1325,1327,1330,1331,1333,1336,1337,1340,1341,1342,1343,1344,1346,1348,1351,1352,1355,1357,1359,1360,1361,1362,1364,1365,1368,1369,1370,1371,1374,1375,1378,1379,1383,1384,1385,1386,1388,1391,1393,1395,1397,1399,1402,1404,1405,1407,1408,1411,1412,1414,1416,1417,1419,1421,1422,1424,1425,1426,1429,1431,1432,1434,1436,1438,1439,1443,1445,1447,1450,1451,1452,1453,1454,1457,1459,1463,1466,1467,1469,1470,1473,1475,1478,1481,1483,1486,1487,1488,1490,1491,1492,1494,1497,1498,1499,1501,1502,1505,1509,1510,1513,1516,1517,1518,1520,1521,1524,1527,1528,1529,1531,1532,1535,1536,1537,1539,1541,1543,1545,1546,1548,1549,1551,1553,1555,1556,1558,1559,1560,1561,1564,1566,1567,1570,1572,1574,1576,1578,1579,1582,1585,1587,1589,1590,1592,1594,1597,1600,1602,1603,1605,1608,1610,1614,1617,1619,1620,1623,1625,1626,1627,1632,1634,1636,1638,1640,1642,1643,1644,1645,1647,1648,1649,1651,1652,1653,1654,1656,1659,1661,1664,1666,1667,1668,1670,1672,1673,1674,1676,1679,1680,1681,1683,1685,1688,1692,1693,1694,1696,1699,1700,1702,1703,1705,1706,1709,1710,1711,1712,1714,1715,1716,1717,1718,1723,1725,1726,1727,1728,1731,1734,1735,1737,1738,1739,1740,1741,1743,1745,1752,1754,1756,1760,1761,1763,1767,1768,1770,1771,1772,1775,1777,1778,1781,1783,1784,1786,1788,1791,1792,1794,1795,1797,1798,1800,1803,1805,1807,1809,1811,1812,1814,1815,1817,1819,1820,1823,1827,1830,1833,1834,1835,1837,1839,1840,1841,1842,1843,1844,1846,1848,1850,1853,1855,1858,1862,1863,1864,1866,1867,1868,1870,1871,1872,1874,1876,1877,1878,1880,1884,1888,1889,1892,1893,1894,1896,1897,1899,1900,1901,1902,1903,1905,1906,1907,1910,1911,1913,1914,1915,1916,1919,1921,1922,1923,1924,1926,1927,1928,1930,1934,1936,1939,1940,1942,1943,1945,1947,1949,1951,1954,1957,1959,1961,1962,1963,1964,1965,1967,1968,1969,1970,1972,1973,1974,1976,1980,1982,1983,1987,1988,1990,1992,1993,1994,1995,1997,1998,2000,2004,2005,2006,2008,2009,2010,2016,2017,2018,2019,2021,2023,2025,2027,2031,2034,2037,2038,2040,2041,2043,2046,2047,2050,2052,2053,2054,2056,2058,2060,2061,2063,2064,2066,2069,2070,2072,2076,2077,2079,2080,2081,2082,2084,2085,2086,2087,2089,2090,2092,2094,2096,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2110,2113,2114,2115,2117,2118,2120,2121,2123,2124,2128,2130,2131,2132,2133,2134,2135,2137,2139,2140,2144,2145,2146,2148,2151,2153,2154,2156,2159,2161,2162,2163,2164,2165,2166,2171,2175,2178,2179,2180,2182,2184,2186,2189,2191,2193,2195,2196,2197,2201,2202,2203,2205,2209,2212,2213,2214,2216,2218,2222,2223,2225,2227,2228,2230,2232,2236,2238,2240,2242,2245,2246,2247,2252,2256,2259,2260,2261,2265,2266,2267,2268,2270,2273,2277,2278,2279,2282,2283,2284,2285,2287,2289,2293,2296,2299,2301,2303,2307,2308,2309,2311,2313,2316,2319,2320,2323,2328,2329,2331,2333,2334,2335,2337,2339,2341,2344,2346,2347,2349,2353,2355,2358,2359,2364,2366,2367,2368,2369,2372,2373,2374,2375,2377,2379,2381,2385,2388,2390,2392,2394,2395,2397,2398,2399,2400,2402,2403,2404,2405,2407,2408,2410,2413,2415,2417,2418,2421,2422,2423,2427,2429,2430,2431,2432,2435,2436,2438,2440,2442,2443,2444,2445,2448,2450,2452,2453,2456,2459,2460,2462,2464,2466,2468,2469,2470,2471,2472,2476,2477,2479,2480,2481,2484,2486,2488,2489,2492,2493,2497,2499,2500,2503,2504,2505,2508,2509,2511,2513,2515,2520,2521,2523,2524,2525,2526,2529,2530,2532,2533,2535,2536,2540,2541,2543,2545,2546,2547,2548,2550,2551,2554,2556,2557,2559,2560,2562,2564,2567,2570,2573,2574,2577,2578,2579,2580,2581,2585,2589,2592,2595,2597,2600,2602,2604,2607,2609,2610,2611,2613,2614,2615,2616,2619,2620,2622,2623,2625,2626,2627,2629,2633,2634,2638,2639,2640,2642,2644,2647,2649,2650,2651,2653,2656,2657,2659,2661,2662,2663,2665,2669,2670,2671,2672,2674,2675,2676,2678,2679,2680,2681,2683,2687,2690,2691,2692,2693,2696,2697,2699,2700,2702,2704,2705,2707,2708,2709,2712,2713,2715,2716,2719,2721,2724,2726,2727,2729,2732,2733,2736,2739,2740,2741,2743,2745,2747,2749,2751,2753,2755,2756,2757,2758,2761,2762,2763,2765,2767,2770,2771,2774,2775,2777,2779,2780,2781,2782,2784,2785,2786,2788,2790,2792,2793,2794,2795,2796,2798,2799,2802,2805,2806,2811,2812,2814,2816,2818,2820,2821,2822,2825,2829,2831,2833,2836,2838,2840,2841,2844,2847,2849,2851,2852,2854,2855,2856,2858,2860,2862,2863,2864,2866,2868,2870,2872,2873,2874,2875,2876,2877,2879,2880,2882,2883,2887,2889,2890,2891,2892,2893,2894,2895,2897,2901,2903,2905,2908,2909,2911,2912,2913,2914,2916,2918,2919,2923,2925,2926,2928,2929,2931,2932,2934,2935,2938,2939,2940,2941,2942,2945,2948,2950,2951,2952,2954,2955,2957,2960,2961,2964,2965,2966,2967,2968,2970,2973,2974,2976,2977,2979,2981,2982,2983,2984,2985,2986,2988,2990,2991,2993,2994,2995,2997,2999,3002,3003,3006,3009,3010,3013,3015,3017,3020,3022,3023,3024,3028,3029,3031,3032,3033,3034,3037,3038,3039,3040,3042,3043,3045,3050,3053,3055,3056,3060,3064,3067,3069,3070,3072,3074,3076,3077,3078,3080,3082,3085,3088,3089,3092,3093,3095,3097,3099,3100,3101,3102,3105,3107,3109,3113,3114,3118,3122,3123,3127,3129,3130,3133,3135,3136,3137,3138,3140,3143,3144,3145,3147,3148,3149,3150,3152,3154,3156,3159,3162,3163,3166,3168,3170,3172,3174,3175,3177,3178,3180,3182,3183,3185,3187,3189,3190,3191,3193,3194,3195,3196,3199,3200,3201,3203,3204,3207,3208,3210,3211,3213,3215,3216,3217,3218,3220,3221,3224,3226,3229,3233,3234,3236,3239,3241,3244,3246,3248,3249,3251,3253,3254,3256,3258,3259,3261,3264,3266,3267,3268,3270,3273,3275,3276,3278,3281,3283,3286,3288,3289,3294,3299,3300,3304,3306,3309,3312,3314,3315,3317,3319,3322,3325,3326,3327,3328,3329,3330,3334,3335,3337,3338,3340,3342,3344,3346,3349,3354,3355,3356,3357,3360,3363,3364,3366,3368,3369,3372,3374,3376,3378,3380,3382,3384,3387,3389,3391,3394,3397,3398,3400,3401,3402,3405,3407,3408,3411,3412,3414,3416,3418,3420,3422,3423,3424,3425,3429,3431,3433,3435,3436,3438,3441,3443,3444,3445,3446,3448,3450,3454,3456,3458,3461,3462,3463,3465,3468,3470,3472,3474,3475,3476,3480,3484,3485,3487,3488,3489,3491,3492,3494,3496,3497,3499,3502,3503,3504,3505,3508,3510,3512,3514,3515,3517,3521,3522,3523,3526,3527,3528,3529,3530,3532,3533,3534,3535,3538,3540,3541,3542,3543,3544,3545,3548,3549,3551,3554,3555,3557,3559,3561,3562,3564,3566,3568,3572,3575,3576,3578,3581,3582,3585,3589,3590,3592,3593,3594,3596,3597,3599,3600,3604,3606,3607,3608,3610,3611,3614,3617,3619,3621,3622,3623,3625,3626,3627,3630,3633,3635,3636,3639,3640,3641,3642,3643,3644,3646,3648,3649,3652,3655,3656,3658,3661,3663,3665,3666,3667,3669,3671,3674,3675,3676,3677,3680,3683,3685,3687,3688,3690,3691,3692,3694,3697,3698,3699,3702,3704,3705,3706,3708,3710,3712,3714,3715,3719,3721,3722,3723,3726,3727,3728,3729,3730,3733,3735,3736,3737,3741,3742,3745,3747,3748,3750,3751,3752,3753,3754,3757,3758,3759,3761,3763,3764,3765,3768,3771,3773,3774,3775,3776,3779,3783,3785,3786,3787,3789,3791,3792,3794,3797,3799,3802,3804,3808,3811,3813,3816,3817,3818,3819,3821,3823,3825,3826,3829,3830,3831,3833,3835,3836,3839,3840,3842,3843,3845,3849,3854,3855,3856,3857,3859,3860,3861,3863,3866,3868,3870,3873,3875,3876,3877,3882,3886,3888,3889,3890,3892,3895,3896,3898,3900,3903,3904,3906,3907,3908,3909,3910,3911,3914,3917,3920,3921,3923,3925,3926,3927,3928,3931,3932,3934,3937,3939,3941,3943,3944,3946,3947,3949,3952,3953,3954,3957,3959,3962,3964,3965,3968,3970,3971,3972,3975,3976,3977,3981,3982,3983,3984,3985,3986,3987,3989,3991,3994,3997,3998,3999,4001,4003,4004,4005,4006,4009,4010,4011,4014,4015,4019,4021,4023,4024,4028,4030,4031,4033,4034,4035,4037,4038,4040,4043,4045,4046,4047,4049,4050,4051,4054,4055,4060,4062,4066,4068,4071,4073,4074,4076,4078,4079,4080,4082,4084,4086,4089,4092,4094,4095,4098,4100,4103,4104,4105,4106,4107,4108,4109,4111,4114,4115,4116,4117,4119,4120,4123,4125,4127,4132,4133,4135,4136,4137,4138,4139,4141,4143,4144,4145,4146,4152,4153,4156,4157,4158,4159,4161,4162,4164,4165,4168,4170,4171,4172,4174,4177,4178,4179,4180,4181,4182,4183,4185,4186,4190,4191,4192,4194,4197,4200,4201,4202,4203,4205,4207,4208,4211,4212,4214,4217,4218,4221,4224,4227,4229,4233,4234,4235,4236,4237,4239,4240,4241,4243,4244,4245,4246,4247,4249,4250,4251,4252,4254,4255,4257,4258,4260,4261,4264,4265,4266,4268,4270,4271,4273,4276,4277,4278,4279,4280,4282,4283,4284,4285,4286,4289,4291,4292,4294,4295,4297,4299,4301,4304,4305,4306,4307,4308,4309,4311,4314,4315,4316,4318,4320,4322,4323,4325,4328,4329,4331,4333,4337,4338,4341,4343,4344,4345,4346,4349,4350,4355,4357,4359,4361}
Returns: 1622
2048
{1522,2004,195,565,592,269,1452,1308,1859,454,1378,903,1116,722,1585,1195,836,1457,870,683,199,229,455,1886,1929,2033,598,563,1848,748,1161,1493,676,172,1969,1857,1775,1906,1609,328,1584,920,1320,1758,17,320,995,1148,935,1524,886,1211,1670,331,1083,1713,1551,2045,1115,1276,380,897,1123,841,1158,295,85,1272,1153,1731,124,775,952,103,1670,158,333,585,202,1432,1601,969,1890,1106,839,1220,1181,1076,1542,1192,1189,1296,1971,890,1654,38,657,1991,793,647,1974,432,1802,513,625,665,1204,271,796,673,1702,58,1959,250,920,811,1263,587,1646,1551,302,168,131,1139,1261,867,1297,1374,1443,443,289,413,739,682,1135,82,1296,1389,1254,885,750,502,1978,413,487,1654,226,1165,948,1841,932,1039,824,67,1309,875,402,1435,1039,1098,1057,1103,10,1278,983,401,1245,360,1673,1773,1676,1309,763,293,1365,845,296,1732,291,1246,253,1489,1967,1906,742,1090,186,145,1735,1414,82,1787,1947,95,1969,280,967,868,579,715,1077,991,1428,1648,1705,614,77,1142,588,624,1567,822,68,1599,1144,1216,1327,1764,1535,739,969,191,326,655,1135,1993,496,1679,302,1019,582,1781,498,1462,1707,1542,233,900,902,1338,916,1670,569,1264,506,254,360,1945,608,718,306,1495,1365,588,1127,897,872,1245,1124,1751,938,431,1615,545,67,646,1408,1463,1179,523,114,1028,1854,1273,825,824,103,942,1123,137,1340,1022,1917,1899,1801,1997,701,1021,1376,979,1071,704,484,788,1410,286,1141,1782,1286,428,1778,381,1427,1235,42,1823,1800,678,1675,1985,1232,1238,1058,703,45,57,1731,176,100,1069,230,1593,948,776,367,1703,200,546,704,559,440,373,979,895,1790,659,124,541,632,1223,260,811,153,89,1066,152,2039,1417,518,1889,1546,1170,476,103,610,754,169,1153,202,1946,616,977,1494,789,1078,530,218,621,572,1370,515,948,236,791,810,329,1613,1854,1594,1377,1372,1151,1138,593,793,241,1647,1234,674,519,1531,1278,991,998,1963,27,1677,959,998,279,508,755,1163,1956,190,147,1656,1553,1666,394,1087,1177,1462,1037,502,1415,527,535,156,163,1271,1954,658,1440,235,1231,463,1196,291,462,1017,553,884,554,35,1658,820,1867,1536,1314,1250,1636,1658,1772,975,1185,522,410,1128,1340,506,1177,1978,104,1682,1411,1730,1851,1383,156,1659,114,131,363,42,987,199,1372,1069,1585,971,1731,202,1470,2002,266,398,154,1725,1931,1964,81,935,1967,1872,983,1481,1063,559,23,1639,638,953,257,1811,1581,15,236,297,1090,912,566,1901,228,1533,1917,1756,1195,361,336,1082,586,736,1357,147,1598,87,385,2002,352,1462,129,471,1202,254,1570,2004,147,1061,704,1386,905,551,764,1800,1264,965,1136,1312,1696,1990,1094,1614,1285,554,923,323,139,1409,1727,537,1062,433,1974,1554,1149,971,514,1040,235,799,1448,2015,899,138,385,594,1952,1560,324,92,1764,1628,606,2020,893,1139,912,399,861,1920,1638,986,870,1655,1803,1288,792,871,1665,1718,251,3,1366,2007,1551,2040,219,1935,714,181,880,1477,688,406,263,1164,1109,775,983,103,650,1759,630,1063,212,122,2008,130,193,1851,1900,1751,1881,717,848,596,546,1346,225,669,310,1098,43,1864,143,2039,1396,1019,1384,824,235,407,1422,2024,1995,486,1474,1644,879,100,463,1849,1702,1069,1207,782,1885,1240,353,1446,739,1516,1136,1430,1374,719,1641,888,456,1933,532,515,1665,387,1562,135,981,1493,490,353,1292,747,1475,1596,610,1430,824,1173,512,543,1966,1460,89,1416,1177,1672,1172,893,411,1261,1102,455,918,428,768,751,166,41,1090,1675,1093,1772,1479,1780,91,1642,1359,414,1986,1543,222,226,1212,559,919,1046,566,355,2029,1272,263,358,169,2009,850,358,1262,1725,1797,417,181,1661,1502,1353,645,61,1187,1940,205,252,1359,393,1342,1181,1954,754,636,472,521,1506,273,165,297,401,771,1313,1835,1776,616,1457,1270,1799,1657,1019,1695,377,1004,1443,518,1950,287,788,576,1888,1132,76,1130,1996,807,1454,733,84,545,1259,545,797,1346,172,2005,571,654,1074,1716,1949,1582,822,1064,1893,84,361,867,1241,923,1147,1967,657,570,819,935,1897,681,27,1370,710,169,1658,1999,1048,1594,1208,293,778,249,13,395,1967,894,577,670,1026,1979,887,28,620,1760,1913,703,1925,1381,1944,1025,47,1460,66,1494,30,659,900,990,88,736,53,1120,148,810,54,1641,629,1746,1810,1920,370,433,1439,1835,1714,1282,1673,2032,1194,1551,909,1488,800,847,748,43,321,1301,262,471,214,374,587,1174,806,1,1675,1646,1526,253,1925,1652,1317,1362,473,1071,924,1986,222,114,1301,1583,941,163,192,393,905,1412,1076,1450,521,1337,1302,1734,2006,1258,1990,296,916,386,235,245,863,30,2044,818,653,1668,279,1725,224,372,1316,1025,2015,733,2037,1065,1842,1073,1340,1278,226,384,1667,1357,750,236,1493,1674,1097,1763,670,896,75,752,106,339,1230,595,359,1948,1204,1399,290,1660,537,830,1765,1379,424,377,515,995,628,1090,1494,1647,1124,1764,1710,964,464,1979,1228,1257,2019,1531,1690,274,1186,928,1937,76,186,1953,1510,960,1826,1147,1503,132,1116,1388,1722,577,885,315,630,1450,1864,1067,1868,1942,831,941,1932,1199,1966,1474,650,1824,829,866,1975,809,1041,272,887,393,339,717,1081,1706,1900,182,1337,10,1964,96,985,1481,1640,887,1003,1366,354,1900,1836,827,803,781,1075,1388,1866,1680,379,1334,1816,42,429,1955,1369,898,1842,1397,1192,1135,1569,44,822,1520,1255,18,979,1328,1447,99,1145,1352,1044,399,1961,954,1449,1822,1833,1848,1126,1612,1007,493,1746,1114,248,1685,723,1975,1168,1006,1023,1408,1479,1160,351,1404,605,451,547,403,1019,1991,1193,761,669,1423,1850,1664,1330,1933,1602,842,251,1350,72,749,972,567,1237,38,1371,156,111,448,2027,311,1330,477,284,1520,1318,1705,91,1583,303,197,335,778,1431,1269,1526,1785,897,589,1383,97,1318,1024,523,105,385,1551,1015,1988,827,1655,586,393,1515,290,241,289,1089,965,1732,797,426,2030,778,567,494,1260,132,306,416,219,1960,2039,734,12,330,1674,654,1033,1801,614,898,2033,1769,929,1552,1658,1028,1464,1134,1752,1761,1302,1474,211,1295,1409,1043,1486,168,1865,902,1050,1531,169,988,981,1849,1769,10,166,1009,1802,722,561,1131,67,642,1421,1863,867,437,1300,667,280,1696,228,158,1663,1692,499,812,702,2021,769,233,583,42,1751,618,1112,824,291,1486,1423,595,2017,853,1775,479,1454,1532,877,202,605,2014,1839,728,1625,756,719,1288,1684,1056,658,418,649,1995,1322,17,956,1298,1982,882,1565,1659,1282,484,837,1357,1003,1511,1799,1843,1810,691,703,1111,258,1092,1506,1867,736,990,1466,1811,598,560,990,1865,389,187,718,458,1961,1290,580,404,875,315,298,1633,89,1755,468,1356,1997,617,1501,827,617,2025,599,737,711,720,564,351,834,1526,1172,477,179,728,1638,594,480,560,774,376,1952,782,1499,67,1097,224,1933,1917,430,1142,1123,1285,1022,2009,1646,761,1298,220,1416,1634,1857,688,215,598,140,825,350,80,1780,1489,843,1613,1307,558,1044,1936,714,867,1566,1358,1964,159,1913,313,1965,1811,105,1241,1944,624,2016,1477,1547,2002,1949,89,184,1401,1929,24,2002,122,30,1788,455,173,1518,783,2043,629,1301,1056,498,1405,564,552,1867,1897,1995,2000,590,394,516,959,1069,231,216,1763,509,156,28,1383,1368,1847,1893,1081,1491,254,2009,1267,288,566,1236,1709,1592,1575,1290,688,1314,350,1289,310,20,2011,328,851,1059,504,1449,1226,1943,1458,552,556,483,1147,145,1409,1417,280,1417,1569,1714,1070,1991,1674,527,460,833,1534,1671,1547,827,624,397,745,1403,659,359,1512,658,1860,642,118,775,1859,1251,764,1871,33,1303,1944,233,876,112,1717,1426,1962,1846,1375,612,336,106,765,976,240,492,560,224,230,1412,1755,935,1632,1749,500,1745,1853,110,665,58,49,1641,740,779,1243,883,1620,70,1501,494,1837,947,1976,1513,27,1087,54,1481,1863,537,1859,1830,150,703,913,780,1321,714,798,207,1850,1937,923,249,586,1825,1770,575,291,910,1111,326,1163,1942,2013,227,1928,1462,1495,1009,2046,30,635,814,1247,1962,555,352,1446,473,289,1562,434,482,1820,924,293,1893,1484,1751,1073,1511,1837,370,366,782,959,1158,1921,1747,1913,59,642,45,1909,1986,485,605,486,789,49,759,1401,1984,676,1731,1350,92,1020,1044,684,1739,737,976,1755,28,533,1833,630,487,1604,1872,729,85,895,1467,369,354,666,1835,865,1487,1382,418,1301,540,1888,1407,1921,580,1960,1114,754,333,80,1273,1474,692,1699,624,1014,1679,2030,1462,1995,668,1601,1128,588,503,283,1264,1697,736,1627,78,606,1545,200,971,270,1333,628,326,385,1858,692,889,1966,1734,202,1118,1744,1294,1630,1809,1086,1769,1753,1008,1217,487,785,1353,921,158,836,1240,1021,627,1074,1654,1032,1973,1853,701,507,1366,191,1278,854,1095,869,719,2036,1935,793,160,570,357,1594,1566,172,806,16,1731,1188,1461,1037,1782,1436,2024,1609,1052,105,1734,662,1644,1540,9,258,1535,1501,491,1055,370,1141,1130,811,906,2024,1886,97,1723,329,1608,508,267,782,1653,775,174,677,1578,2034,474,1286,947,491,183,1155,455,844,1775,87,885,1810,829,1352,1201,1286,651,399,1554,1137,1412,1400,404,1899,806,1427,1064,384,194,778,965,1321,506,665,996,1185,1966,739,759,1040}
{2,3,5,7,9,10,13,14,17,19,20,24,27,28,29,30,33,34,37,38,40,41,43,45,46,49,50,53,54,55,58,59,61,65,66,68,71,73,74,75,76,77,78,79,80,81,82,83,86,87,89,92,93,95,97,98,102,103,104,106,109,111,115,117,119,120,123,127,128,132,134,135,138,140,141,143,147,152,154,155,158,160,163,166,167,168,169,172,174,176,178,181,182,184,186,187,189,191,193,194,196,198,200,204,206,207,208,209,210,214,216,218,220,221,223,226,228,230,234,235,236,239,240,241,243,245,247,248,250,252,253,254,256,257,258,261,264,265,267,268,269,272,274,275,277,279,282,283,285,288,290,292,293,294,296,298,302,303,304,305,307,310,312,315,318,320,322,324,327,328,331,334,335,336,338,339,341,343,345,346,348,350,352,354,357,359,360,362,363,365,367,369,371,373,374,375,376,379,382,383,386,387,389,390,391,395,397,398,401,402,406,409,412,414,415,416,418,419,422,424,425,430,433,434,437,440,444,446,448,450,452,455,458,460,464,465,467,468,472,473,475,477,480,481,484,486,490,491,492,494,497,499,501,504,505,507,508,514,516,518,520,522,524,526,527,530,531,533,535,536,539,542,543,549,555,556,559,561,563,564,566,569,570,574,577,580,583,587,589,590,592,593,594,595,597,599,605,607,611,614,616,618,620,622,624,625,627,629,630,634,635,636,638,640,641,642,643,645,647,650,653,655,656,659,661,662,663,664,668,670,672,674,675,677,681,682,684,686,687,688,690,691,693,697,698,702,704,705,707,710,711,714,718,720,721,722,723,724,727,728,730,733,736,738,741,743,745,749,752,755,756,758,760,761,763,766,769,772,773,774,776,777,779,782,783,784,786,787,788,792,793,795,796,799,801,802,806,808,809,810,812,813,819,821,822,824,827,829,830,833,835,838,840,842,844,846,848,850,851,853,854,856,857,863,864,866,869,870,872,873,876,878,880,881,882,883,886,888,889,892,894,895,898,902,903,904,906,907,909,912,915,916,919,920,923,925,926,927,930,932,933,934,936,941,942,946,947,948,951,952,953,954,958,960,962,963,964,967,968,970,971,972,974,975,977,978,979,980,981,982,983,984,987,988,990,991,992,993,994,997,1000,1001,1003,1004,1007,1008,1009,1010,1011,1012,1015,1016,1017,1021,1022,1024,1025,1026,1028,1031,1033,1034,1036,1037,1038,1039,1040,1042,1043,1044,1045,1047,1049,1050,1051,1053,1055,1056,1057,1058,1061,1064,1066,1068,1070,1072,1078,1080,1083,1084,1086,1088,1089,1090,1091,1093,1097,1098,1100,1101,1104,1105,1106,1107,1109,1112,1113,1114,1116,1117,1118,1121,1122,1123,1127,1129,1130,1132,1134,1136,1138,1139,1142,1143,1145,1150,1153,1154,1157,1160,1162,1164,1166,1171,1174,1175,1177,1178,1181,1183,1184,1185,1186,1188,1189,1190,1191,1192,1193,1195,1196,1200,1202,1203,1207,1209,1212,1215,1217,1218,1220,1223,1225,1226,1227,1228,1229,1230,1233,1236,1237,1239,1241,1243,1244,1246,1247,1248,1249,1251,1252,1254,1255,1258,1260,1262,1264,1265,1266,1268,1271,1273,1274,1277,1278,1279,1280,1282,1284,1286,1289,1291,1292,1294,1296,1297,1300,1303,1307,1310,1311,1312,1315,1316,1317,1318,1321,1322,1324,1327,1329,1332,1335,1336,1337,1339,1340,1342,1343,1345,1347,1348,1350,1353,1355,1357,1359,1360,1362,1363,1365,1368,1369,1373,1374,1377,1378,1380,1383,1387,1388,1390,1391,1393,1394,1395,1399,1402,1404,1407,1410,1412,1414,1418,1419,1421,1423,1425,1426,1429,1430,1431,1432,1435,1437,1440,1441,1443,1445,1447,1448,1449,1451,1455,1457,1458,1460,1463,1464,1466,1468,1470,1472,1473,1475,1476,1479,1481,1483,1484,1485,1489,1491,1494,1496,1498,1501,1503,1505,1508,1511,1513,1517,1518,1519,1521,1525,1527,1529,1533,1536,1538,1540,1541,1543,1546,1548,1550,1553,1556,1558,1560,1563,1565,1567,1569,1571,1573,1576,1577,1580,1582,1584,1587,1588,1592,1594,1596,1598,1600,1602,1603,1606,1608,1609,1610,1611,1614,1615,1619,1620,1625,1626,1628,1629,1633,1634,1635,1637,1639,1641,1645,1649,1650,1651,1654,1655,1658,1660,1663,1665,1668,1669,1671,1674,1675,1677,1678,1679,1680,1681,1685,1689,1692,1693,1694,1696,1697,1698,1700,1701,1702,1705,1706,1707,1710,1712,1714,1715,1717,1719,1722,1726,1729,1731,1734,1737,1739,1741,1744,1746,1747,1748,1750,1751,1754,1755,1756,1757,1758,1759,1760,1764,1766,1769,1771,1772,1776,1777,1779,1780,1783,1786,1788,1790,1794,1795,1797,1799,1800,1801,1804,1806,1808,1810,1811,1813,1815,1816,1821,1824,1827,1828,1831,1832,1834,1835,1836,1838,1840,1842,1844,1847,1848,1849,1850,1854,1855,1856,1858,1859,1861,1863,1865,1866,1868,1870,1871,1873,1877,1879,1881,1882,1884,1885,1887,1889,1890,1891,1893,1895,1897,1898,1902,1906,1909,1911,1912,1914,1918,1919,1922,1925,1927,1929,1930,1932,1934,1936,1937,1938,1940,1942,1943,1944,1946,1947,1948,1951,1954,1955,1958,1960,1963,1965,1966,1968,1969,1970,1971,1973,1974,1976,1978,1979,1980,1982,1984,1986,1988,1990,1991,1992,1994,1997,1999,2000,2003,2004,2005,2006,2007,2008,2010,2012,2013,2016,2018,2020,2021,2022,2023,2026,2029,2031,2035,2036,2039,2041,2044,2045,2046,2047,2050,2052,2056,2057,2058,2060,2061,2065,2067,2069,2070,2071,2072,2073,2074,2076,2077,2079,2080,2083,2085,2086,2088,2090,2092,2094,2098,2100,2102,2103,2105,2108,2109,2111,2114,2116,2118,2120,2121,2123,2124,2127,2128,2130,2133,2136,2138,2141,2143,2144,2145,2146,2149,2151,2152,2154,2156,2158,2159,2162,2164,2165,2167,2170,2172,2174,2176,2180,2181,2183,2184,2186,2187,2188,2191,2192,2195,2197,2200,2202,2204,2205,2206,2207,2209,2211,2213,2216,2218,2219,2220,2222,2225,2227,2230,2233,2234,2237,2238,2239,2240,2241,2242,2244,2247,2248,2250,2254,2256,2257,2260,2261,2262,2263,2265,2266,2268,2270,2272,2274,2275,2277,2278,2281,2283,2285,2287,2289,2291,2296,2299,2300,2301,2303,2305,2307,2310,2311,2314,2315,2318,2321,2324,2325,2326,2327,2329,2332,2333,2335,2338,2340,2342,2347,2351,2354,2356,2357,2358,2360,2361,2363,2364,2365,2369,2371,2372,2375,2378,2380,2381,2383,2385,2386,2391,2393,2394,2396,2398,2400,2403,2404,2407,2408,2411,2413,2416,2417,2421,2423,2426,2427,2428,2430,2432,2434,2436,2438,2439,2443,2446,2448,2451,2453,2454,2456,2458,2460,2461,2465,2467,2469,2473,2474,2475,2477,2480,2481,2483,2484,2489,2490,2492,2493,2494,2497,2498,2501,2503,2505,2507,2511,2513,2514,2515,2517,2520,2522,2524,2527,2529,2531,2537,2539,2540,2542,2544,2547,2549,2551,2552,2554,2555,2556,2558,2560,2562,2564,2566,2567,2569,2573,2574,2576,2579,2584,2586,2588,2591,2595,2597,2600,2601,2602,2603,2608,2610,2612,2613,2614,2616,2617,2618,2620,2621,2623,2625,2626,2627,2628,2630,2634,2635,2636,2641,2642,2643,2645,2647,2648,2650,2653,2655,2657,2660,2661,2662,2665,2666,2668,2669,2671,2674,2676,2677,2681,2682,2684,2685,2687,2690,2692,2695,2696,2699,2702,2705,2706,2710,2715,2717,2721,2723,2724,2727,2728,2731,2734,2735,2738,2741,2743,2744,2747,2748,2749,2752,2753,2754,2757,2759,2760,2763,2765,2766,2767,2769,2773,2775,2779,2780,2784,2787,2788,2791,2793,2794,2797,2798,2799,2800,2801,2802,2805,2807,2808,2810,2811,2812,2813,2816,2820,2824,2825,2827,2830,2831,2833,2835,2838,2840,2842,2845,2846,2847,2850,2851,2854,2855,2856,2858,2859,2861,2864,2866,2867,2870,2872,2873,2876,2879,2880,2882,2883,2884,2885,2886,2889,2890,2891,2892,2893,2895,2897,2900,2901,2902,2905,2906,2908,2913,2917,2918,2921,2922,2924,2926,2927,2928,2929,2930,2931,2932,2933,2936,2939,2940,2942,2945,2948,2951,2952,2954,2955,2958,2960,2961,2964,2966,2967,2968,2971,2973,2977,2980,2985,2987,2991,2995,2996,2998,2999,3000,3001,3003,3005,3006,3009,3010,3012,3015,3017,3018,3019,3020,3021,3023,3024,3025,3027,3032,3033,3035,3036,3039,3041,3043,3045,3049,3051,3055,3059,3061,3063,3064,3067,3068,3070,3071,3072,3075,3080,3084,3085,3086,3087,3088,3092,3096,3099,3100,3103,3104,3106,3108,3111,3113,3114,3115,3116,3119,3122,3125,3126,3127,3128,3130,3132,3133,3134,3136,3141,3145,3146,3147,3149,3151,3154,3155,3156,3157,3158,3159,3160,3161,3164,3166,3170,3171,3172,3174,3175,3177,3178,3179,3182,3186,3189,3192,3194,3195,3198,3202,3203,3204,3205,3208,3210,3212,3214,3215,3216,3219,3222,3225,3227,3229,3231,3233,3236,3237,3238,3239,3242,3245,3247,3249,3252,3256,3260,3261,3262,3263,3266,3270,3275,3276,3279,3284,3288,3292,3295,3297,3298,3299,3302,3304,3305,3309,3312,3314,3315,3318,3319,3320,3321,3324,3325,3326,3328,3329,3331,3334,3335,3337,3343,3345,3346,3348,3351,3353,3354,3357,3361,3363,3366,3367,3369,3371,3373,3374,3375,3377,3379,3382,3383,3386,3388,3390,3392,3393,3397,3399,3402,3403,3405,3406,3407,3408,3410,3411,3412,3415,3419,3421,3422,3424,3426,3430,3433,3435,3437,3439,3441,3444,3445,3446,3448,3449,3450,3451,3454,3457,3458,3462,3464,3468,3470,3471,3473,3474,3475,3479,3481,3483,3484,3486,3487,3489,3490,3492,3493,3495,3496,3499,3500,3503,3505,3506,3508,3509,3511,3512,3513,3515,3516,3517,3519,3523,3524,3527,3529,3534,3536,3540,3541,3543,3545,3548,3550,3551,3553,3554,3555,3556,3558,3562,3563,3564,3565,3566,3568,3569,3570,3571,3574,3575,3576,3578,3580,3582,3585,3586,3589,3590,3593,3594,3597,3599,3600,3601,3604,3606,3607,3608,3610,3612,3615,3616,3617,3618,3619,3620,3622,3623,3624,3625,3626,3628,3629,3631,3634,3637,3639,3640,3642,3643,3646,3647,3648,3649,3651,3654,3655,3656,3657,3660,3662,3664,3665}
Returns: 1314
16
{7,15,5,9,12,11,10,1,4,12,8,14,5,5,5,1,8,2,13,13,15,4,16,12,10,2,6,15,16,1,9,4,7,9,13,1,15,16,14,1,16,6,3,11,4,12,14,6,6,5,13,15,7,14,9,2,6,10,11,1,8,7,4,9,14,2,12,7,10,10,16,14,7,15,4,12,1,1,11,15,14,7,9,3,11,15,14,3,5,8,1,1,9,16,5,13,3,11,14,16,10,4,12,5,10,9,11,10,1,3,3,12,3,5,13,3,14,11,8,7,10,6,15,4,6,5,15,1,8,14,8,15,5,3,14,14,8,2,13,3,1,9,12,13,5,16,5,13,3,10,7,1,4,1,1,10,2,3,13,15,7,4,8,1,5,8,16,14,8,16,1,1,1,5,16,12,11,11,3,11,7,10,7,15,14,14,11,9,8,10,9,4,12,11,13,3,7,11,9,16,5,3,16,7,6,9,7,14,7,9,10,5,3,3,13,6,12,2,8,12,16,4,12,9,14,16,7,11,14,12,1,13,7,5,13,13,11,13,5,6,9,5,9,11,1,5,3,15,9,4,7,2,6,15,12,3,12,16,6,16,7,10,13,3,5,5,12,13,8,14,15,15,6,11,5,3,2,2,14,9,4,10,16,7,16,2,16,3,3,9,13,9,9,16,11,16,8,4,6,1,1,12,12,12,6,1,8,10,2,14,3,16,11,6,14,15,16,4,8,3,1,4,15,6,2,14,3,2,15,2,16,7,7,2,3,3,4,1,1,7,16,10,2,3,16,9,5,1,4,13,9,9,2,12,5,14,6,15,10,12,15,3,11,13,7,11,10,6,3,16,15,7,9,7,10,8,10,5,7,12,11,8,15,11,10,15,5,4,13,1,3,12,14,10,6,9,5,15,2,9,3,6,7,12,15,9,5,7,1,13,6,13,2,11,14,16,14,4,3,13,6,7,15,8,13,14,3,13,7,8,6,1,6,16,7,8,7,5,3,4,10,14,9,8,12,15,15,8,4,12,13,13,13,14,12,13,5,4,14,6,6,15,13,4,3,7,4,8,7,9,6,8,12,4,12,5,12,1,6,3,2,1,2,4,10,4,14,3,14,8,2,12,1,13,13,14,9,2,7,12,12,3,15,16,15,14,12,9,4,3,6,6,10,4,8,1,8,15,4,3,4,15,16,4,4,12,12,9,10,3,16,1,8,16,1,9,13,10,13,2,2,16,5,7,14,1,14,16,2,3,10,11,4,12,15,13,8,8,6,9,4,12,11,7,5,15,12,14,7,1,16,11,13,14,4,10,3,5,6,9,13,1,2,14,12,4,16,6,11,1,6,15,4,10,14,3,16,3,2,12,15,12,16,4,9,5,8,6,16,9,16,13,4,2,4,10,7,14,10,5,13,3,7,12,9,2,5,9,6,14,10,1,6,7,1,7,9,5,1,10,9,15,13,11,3,14,13,16,3,1,3,6,2,8,2,13,13,16,4,11,2,16,5,16,11,11,4,12,12,11,5,8,3,11,16,6,14,1,3,12,13,11,13,5,15,1,9,2,2,13,2,9,8,8,16,4,3,14,13,7,10,13,1,4,10,4,11,3,5,8,3,10,10,1,5,12,10,1,12,4,1,11,14,3,4,7,2,10,1,4,2,2,5,10,16,9,11,2,8,3,16,16,8,5,7,8,16,15,16,15,13,6,13,11,3,9,5,13,12,1,4,6,6,3,2,6,11,10,4,12,13,15,14,11,16,5,2,7,12,6,10,10,11,2,3,6,4,3,13,4,11,10,9,10,2,1,14,9,16,3,2,10,12,2,8,3,16,1,2,6,4,16,11,3,16,16,10,11,10,4,6,3,14,14,14,3,7,10,16,4,9,6,15,16,16,4,7,14,13,9,12,15,12,3,12,7,4,14,16,15,10,15,14,3,3,8,13,1,16,10,8,15,6,9,3,4,9,10,15,2,10,2,16,15,14,9,8,1,16,13,3,4,5,1,15,7,7,1,11,9,11,6,8,1,16,6,12,16,11,8,1,4,9,4,5,1,12,9,9,13,14,16,6,11,12,14,3,13,5,6,5,14,2,5,10,16,12,11,8,5,2,11,7,6,14,1,3,9,5,8,15,5,1,6,15,14,1,16,7,13,2,10,12,1,14,9,3,1,4,2,1,1,13,12,4,11,11,8,2,1,13,13,5,6,10,11,5,3,10,2,10,14,5,16,6,13,8,15,16,2,16,15,5,10,10,14,5,13,13,4,13,4,15,13,16,9,15,11,9,10,11,1,13,1,6,12,3,6,3,2,13,16,10,8,5,13,6,16,10,12,10,11,12,14,9,15,13,16,3,16,8,4,6,1,4,16,3,16,11,11,6,13,3,11,2,15,7,2,2,5,16,9,9,4,10,14,9,7,2,3,6,10,14,14,8,10,13,10,8,6,1,9,11,10,14,1,1,1,13,3,11,1,13,15,11,10,14,3,14,16,16,13,6,16,2,3,15,14,2,15,7,7,3,11,4,12,8,15,13,9,14,6,8,1,10,3,7,10,16,1,12,12,16,8,4,7,12,5,9,3,16,5,7,9,1,14,4,6,7,1,2,9,6,12,8,12,1,7,13,6,16,7,12,10,1,5,3,9,13,14,10,16,14,7,12,5,1,2,6,14,13,8,10,16,10,4,12,9,16,6,7,4,6,1,1,13,1,6,14,4,12,4,15,13,9,9,8,4,5,16,2,8,16,7,6,13,8,4,8,11,3,7,7,7,7,16,16,9,15,6,4,9,3,5,10,12,7,8,11,4,3,15,13,3,3,15,6,15,8,2,7,2,6,6,3,13,4,4,2,4,12,13,6,14,13,4,16,12,13,9,15,10,2,12,4,14,6,3,12,13,9,2,6,11,3,14,3,13,10,16,3,6,4,3,4,14,15,5,13,12,3,3,14,15,16,2,16,13,16,15,3,1,16,13,13,12,2,11,10,10,1,10,5,8,11,10,12,16,5,8,10,11,7,2,5,11,15,9,2,2,1,1,14,7,2,4,4,7,3,11,12,12,8,9,16,11,14,8,13,7,4,15,6,11,7,11,4,9,7,6,11,14,2,8,15,15,14,12,3,5,9,6,14,13,12,5,11,9,3,9,8,12,10,12,8,11,13,9,9,13,14,2,11,15,9,7,1,2,8,16,15,14,4,11,6,5,12,9,13,14,2,5,2,3,13,1,15,8,3,7,5,9,10,8,8,12,6,12,11,2,1,15,2,7,11,15,15,2,9,3,7,8,5,5,9,8,16,5,10,7,2,3,5,3,10,11,2,10,13,8,13,3,8,6,3,10,14,13,3,12,15,15,8,12,2,5,16,1,10,14,16,2,2,3,8,14,10,16,1,14,12,16,8,1,8,12,15,9,2,4,9,4,16,4,1,13,2,11,12,2,4,15,3,12,16,14,4,8,4,14,5,12,16,1,1,6,4,15,15,13,1,13,5,2,3,12,2,11,11,8,5,7,10,6,15,1,5,13,5,12,2,12,7,16,11,16,4,4,11,7,9,1,12,13,15,8,8,4,14,2,6,7,16,12,12,3,3,6,4,7,6,7,1,13,3,7,7,13,10,8,16,14,10,8,16,9,7,13,15,12,13,10,5,11,4,6,10,2,10,13,12,10,12,2,9,3,4,13,5,11,9,4,13,12,4,4,6,12,9,5,3,5,16,8,2,5,13,16,14,4,11,3,11,5,4,16,1,5,15,2,5,5,2,15,13,3,10,2,13,3,10,2,11,15,9,3,12,16,9,9,14,5,8,7,8,3,9,2,8,6,14,10,13,4,4,11,4,4,11,5,15,11,14,11,11,5,13,7,12,3,3,13,1,14,12,16,16,14,7,7,2,8,3,16,8,13,7,3,10,5,4,15,6,9,1,12,13,7,16,8,12,6,11,9,3,15,14,16,5,6,8,11,10,12,3,12,11,8,6,1,5,16,3,6,13,13,6,12,14,6,2,14,8,4,4,13,8,12,3,15,7,8,6,4,8,6,8,10,4,9,2,3,9,11,3,15,3,1,3,5,8,6,16,9,3,3,7,7,6,11,3,6,7,11,9,2,9,10,3,15,13,6,16,6,6,16,2,11,13,2,13,8,12,13,11,15,7,9,6,14,15,1,10,16,9,4,3,4,12,7,6,4,1,13,8,3,2,4,12,14,14,15,12,12,4,16,14,15,5,10,13,4,4,16,7,5,4,12,6,7,8,12,14,3,4,6,14,7,4,16,3,7,16,3,11,16,2,13,2,10,4,9,8,10,6,15,10,11,3,5,9,13,8,12,16,9,6,8,1,2,14,16,4,5,5,13,7,2,13,13,10,16,15,10,10,11,5,2,5,9,4,13,6,2,16,10,1,16,14,9,2,8,4,7,9,14,7,5,6,1,7,2,10,16,13,13,4,3,16,5,4,5,16,12,3,5,1,4,14,3,7,12,11,15,16,8,2,11,3,8,15,1,16,7,2,13,3,11,11,7,7,2,7,12,13,10,1,10,1,8,2,2,4,3,8,14,13,12,4,7,14,9,8,14,8,6,11,2,4,3,10,5,13,15,3,11,5,11,2,15,9,8,10,1,1,11,14,8,6,5,5,2,13,1,5,3,7,12,10,7,16,3,16,14,15,15,15,10,12,7,7,10,7,5,11,15,5,6,7,4,7,1,7,9,11,12,1,5,6,10,2,4,8,13,12,4,6,7,2,13,1,3,15,1,4,13,3,2,7,5,2,14,4,14,9,15,15,14,4,10,4,16,15,7,3,5,1,9,1,7,6,14,7,16,4,16,12,12,9,1,5,9,9,6,3,9,10,15,8,8,15,13,1,3,8,8,2,2,9,3,15,6,14,16,5,7,14,11,12,5,13,12,11,15,4,14,14,8,8,16,10,9,4,11,15,8,11,9,4,1,4,9,16,5,3,2,5,10,2,15,3,7,8,14,9,13,13,11,15,4,3,7,2,6,16,8,5,11,4,6,4,14,15,11,12,2,13,12,6,13,9,4,9,16,10,7,2,11,8,12,10,8,5,8,12,3,1,5,4,2,8,5,12,3,16,5,8,5,15,7,12,5,14,11,5,11,13,15,16,15,14,9,8,3,3,2,3,10,8,16,5,1,4,4,4,5,16,5,3,5,2,3,3,11,13,12,14,9,14,3,8,2,15,9,6,2,10,6,4,4,15,11,10,16,9,2,11,8,2,16,9,1,11,9,13,12,1,3,11,11,7,13,4,4,4,16,2,6,3,5,16,9,2,13,13,10,9,1,5,14,6,2,5,3,16,7,8,10,3,12,7,13,1,16,2,11,12,11,9,10,15,10,5,8,14,10,8,10,10,6,11,11,3,15,10,7,3,12,3}
{1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,114,115,116,117,118,119,120,121,123,124,125,126,127,128,129,130,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,232,233,234,235,236,237,238,239,240,241,242,243,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,282,283,284,285,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,331,332,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,380,381,382,383,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,410,411,412,413,414,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,552,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,645,646,647,648,649,650,651,652,653,654,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,720,721,722,723,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,854,855,856,857,858,860,861,862,863,864,865,867,868,869,870,871,872,873,874,875,877,878,879,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,897,898,899,900,901,902,904,905,906,907,909,910,911,912,913,914,915,916,917,918,919,921,922,923,924,925,927,928,929,930,931,933,934,935,936,937,938,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1099,1100,1101,1102,1103,1104,1105,1107,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1186,1187,1188,1189,1190,1191,1192,1193,1194,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1316,1318,1319,1320,1321,1322,1324,1325,1327,1328,1329,1330,1332,1334,1335,1336,1338,1339,1340,1341,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1472,1473,1474,1475,1476,1478,1479,1480,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1559,1560,1561,1562,1563,1564,1566,1567,1568,1569,1570,1571,1572,1573,1574,1576,1577,1578,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1636,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1664,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1811,1812,1813,1814,1815,1816,1817,1818,1820,1821,1822,1823,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1836,1837,1838,1839,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1867,1868,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2100,2101,2102,2103,2104,2105,2106,2107,2109,2110,2111,2112,2113,2114,2115,2116,2117,2119,2120,2121,2122,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2155,2156,2157,2158,2159,2160,2161,2162,2163,2164,2165,2166,2167,2168,2169,2170,2171,2172,2173,2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2218,2219,2220,2221,2222,2223,2224,2225,2226,2227,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2293,2295,2296,2297,2298,2299,2301,2302,2303,2304,2305,2306,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2385,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2436,2437,2438,2439,2441,2442,2443,2445,2446,2447,2448,2449,2450,2451,2452,2453,2454,2455,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471,2472,2473,2474,2475,2476,2478,2479,2480,2481,2482,2483,2484,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2500,2501,2502,2503,2504,2505,2506,2507,2508}
Returns: 1700
8192
{909,7074,2912,6288,4799,2540,2036,1735,6383,7214,2174,5786,6675,606,5143,2487,2908,4866,7814,2562,465,4284,4772,5402,5083,3573,2277,6977,3120,128,4028,1606,2918,1799,3797,1486,1332,2857,4747,3999,1840,3382,4624,7521,2205,372,2365,5253,1466,6895,1562,4565,7329,3278,4761,1908,1731,4412,3120,6864,8093,1020,1363,6005,4161,5819,6156,7234,3809,5693,7490,512,2689,418,2440,7408,5283,6115,7813,1640,1412,7115,3934,4115,4954,936,1749,3,456,6147,3846,6978,3191,2998,3334,5143,7827,6057,5609,2490,2245,7596,5870,2242,6111,1996,8190,1567,4211,1180,5568,488,1553,1250,2038,7147,2296,7227,268,2394,6542,7215,7436,2445,5863,4180,4212,3911,5208,2576,687,5243,2523,2983,7236,6182,3028,7220,1546,6197,150,333,5376,5414,1222,1783,7591,4461,7030,969,2581,3157,964,1261,3888,3704,7002,1247,8130,7578,5151,8138,8072,5650,4897,337,7263,6549,3962,2501,6476,7595,6621,938,7455,1949,6173,5773,7648,4178,5078,4396,2675,8162,52,2809,7462,3940,4228,7178,3107,1768,17,661,6155,7700,927,7693,1354,8049,1419,4641,6644,4346,1892,1719,2121,4083,3759,5677,7490,704,7721,4124,6874,196,2504}
{5,16,23,31,41,52,57,62,73,74,83,91,100,106,112,120,127,134,137,152,159,174,179,190,198,203,212,218,228,237,247,261,271,277,289,299,309,315,321,327,336,349,356,361,365,375,391,399,407,413,416,426,432,442,449,456,461,472,479,487,492,499,507,521,528,535,543,554,561,569,574,578,585,595,601,610,616,621,631,644,655,663,671,677,683,692,697,704,718,723,733,742,752,757,768,776,780,786,798,801,806,815,824,830,837,846,859,867,879,888,901,906,912,917,927,937,946,951,958,962,967,971,982,989,995,999,1007,1011,1021,1027,1035,1041,1048,1064,1072,1081,1088,1097,1102,1111,1119,1130,1137,1144,1156,1167,1171,1180,1190,1198,1205,1213,1220,1228,1235,1242,1249,1256,1263,1271,1278,1282,1287,1293,1297,1304,1315,1321,1332,1339,1349,1364,1371,1373,1377,1383,1392,1399,1411,1415,1424,1430,1435,1445,1450,1456,1462,1472,1479,1485,1489,1498,1510,1518,1530,1534,1543,1547,1555,1564,1577,1584,1591,1601,1609,1617,1626,1631,1639,1648,1651,1660,1667,1676,1682,1688,1695}
Returns: 156
8
{2,6,6,5,6,3,1,8,1,4,8,6,4,7,1,8,8,3,3,7,8,5,5,6,3,2,4,3,6,8,5,4,7,2,2,4,5,8,4,8,3,3,6,8,2,2,8,7,6,3,4,6,2,8,1,3,3,6,8,5,6,7,1,6,2,7,4,4,6,3,3,6,2,1,8,8,6,7,3,1,8,7,7,2,6,8,7,4,7,4,8,2,5,5,8,8,4,5,3,8,2,3,8,5,6,3,6,6,2,5,8,2,3,6,6,2,6,1,2,1,5,5,1,7,7,8,3,8,7,8,7,4,6,1,5,8,7,4,8,1,3,5,1,1,8,3,3,1,2,2,2,8,5,8,3,8,8,8,7,3,4,1,6,2,4,4,7,7,2,2,2,7,7,2,6,1,6,2,6,3,8,7,6,2,3,4,1,5,8,2,1,2,3,7,3,2,3,5,5,5,2,2,1,7,3,5,6,4,6,7,3,4,2,1,7,7,7,2,3,5,3,3,1,4,6,2,6,1,8,2,1,6,7,4,7,3,6,2,3,2,1,1,4,3,4,3,4,2,3,7,2,3,4,7,1,6,4,4,4,1,4,4,1,3,3,4,2,1,1,6,4,3,1,2,3,1,4,8,4,4,4,8,1,7,6,6,1,5,3,3,1,5,3,1,4,8,3,8,4,6,1,1,6,1,2,8,1,4,4,8,7,8,4,3,8,8,4,7,6,6,3,6,5,1,4,8,3,6,6,5,7,5,8,5,7,1,6,2,2,5,1,4,7,7,8,2,3,2,7,5,5,8,2,4,7,8,2,8,4,4,1,2,8,6,4,7,1,4,5,2,3,5,4,1,8,3,3,3,8,4,5,6,5,7,8,6,6,2,7,8,1,5,1,3,6,7,4,2,6,5,2,3,2,8,8,4,6,5,2,3,3,6,4,5,5,3,8,8,2,6,8,1,4,7,8,4,5,7,1,6,1,5,7,1,1,4,1,7,8,5,6,6,7,3,8,2,7,1,3,2,8,2,7,1,4,3,8,8,6,8,6,4,1,4,2,4,4,5,1,3,1,4,8,6,7,2,4,8,3,4,7,2,6,8,5,4,4,8,8,4,4,3,3,5,8,3,7,3,4,5,6,2,1,3,6,6,7,5,7,8,7,2,3,1,8,7,6,5,2,8,1,2,5,8,2,8,7,4,7,2,3,5,4,6,1,4,1,3,2,4,5,7,4,4,2,4,8,8,2,3,7,6,7,8,6,5,2,4,8,1,1,5,5,6,6,4,6,4,6,5,6,3,2,8,3,1,6,8,1,4,8,8,2,8,3,8,5,4,8,8,1,3,1,4,3,8,8,6,3,7,7,4,2,6,8,2,5,7,6,7,4,5,3,6,1,8,2,3,6,8,1,2,4,7,1,5,8,1,3,6,2,7,5,6,3,4,2,1,6,1,8,2,3,7,3,1,5,3,4,2,7,8,6,3,8,2,7,7,7,3,7,8,1,5,2,6,8,2,2,8,1,3,4,5,8,8,2,1,7,6,4,3,4,5,2,1,5,2,2,2,6,3,4,8,8,2,7,5,8,5,7,5,5,6,3,8,5,1,7,7,1,7,6,8,2,1,2,2,2,6,3,4,1,1,8,3,5,4,3,2,7,2,8,7,3,4,6,7,2,6,8,4,8,1,5,3,7,6,3,7,3,2,5,1,6,4,8,7,2,5,4,1,2,2,1,5,5,2,7,8,5,1,7,8,4,8,8,1,7,6,6,8,7,4,3,2,5,6,1,4,6,3,1,3,6,5,8,5,5,5,6,5,5,3,7,6,4,5,4,7,7,1,5,7,4,1,8,1,1,4,3,5,1,1,4,8,5,7,5,8,7,8,8,1,3,8,7,2,2,5,2,7,5,3,7,3,4,4,6,5,3,4,1,5,5,7,3,2,4,2,5,8,6,7,2,3,7,4,4,3,2,5,2,4,8,7,5,1,3,2,8,3,1,3,5,5,5,6,6,6,7,6,7,3,6,8,7,3,6,6,3,1,5,5,4,3,8,7,6,5,4,5,3,7,1,2,4,3,2,6,5,4,4,8,6,7,2,8,4,2,1,4,5,4,2,1,7,7,2,5,4,4,1,1,5,5,7,8,3,7,1,6,8,4,8,3,1,7,2,5,2,4,1,5,3,3,4,6,3,2,6,4,7,2,2,5,2,7,6,1,1,7,2,6,5,1,7,6,3,8,7,7,1,6,3,4,7,8,3,1,6,4,7,3,3,8,6,6,5,2,4,7,8,2,5,1,3,4,6,8,8,8,1,8,2,2,4,6,2,4,7,8,3,8,6,2,8,2,3,6,5,3,4,4,3,3,7,5,2,6,8,2,6,3,2,3,6,3,4,7,8,6,3,6,4,6,2,6,1,1,2,2,3,1,3,1,1,6,6,1,3,4,7,8,8,4,4,4,2,1,6,6,7,2,6,6,8,4,8,3,7,1,4,3,3,6,1,6,3,2,8,1,8,7,2,4,6,6,7,4,5,8,7,8,6,8,8,1,5,8,2,7,5,3,4,2,4,3,2,3,7,7,3,6,2,3,3,6,3,3,6,4,4,7,8,8,6,3,7,8,8,7,7,7,1,1,4,4,6,4,4,3,2,1,5,1,6,1,2,3,8,6,1,3,7,3,3,7,3,3,4,7,3,6,7,5,6,5,6,4,8,8,6,2,6,6,6,6,4,6,6,7,1,4,2,4,2,7,1,6,5,4,6,3,1,6,4,2,7,4,8,1,5,6,5,4,7,6,6,7,1,3,8,1,4,3,1,1,7,8,8,2,6,6,6,6,5,5,7,3,7,8,7,3,4,5,5,7,6,7,4,3,7,3,2,8,5,6,1,2,6,6,2,6,3,7,1,8,6,4,8,6,4,5,7,1,6,5,6,7,1,1,4,5,4,6,7,6,4,2,6,1,2,1,5,6,5,4,8,4,4,1,5,7,1,8,5,5,6,5,8,3,6,1,7,4,6,8,3,7,1,5,7,5,8,7,2,6,3,3,6,3,4,5,6,1,7,1,7,2,5,8,3,3,3,7,8,5,7,4,7,6,7,3,4,1,2,5,6,4,1,4,2,4,2,8,1,1,6,4,4,3,6,5,5,4,3,3,4,6,3,7,7,3,8,8,4,5,7,1,5,8,3,4,5,3,4,2,7,7,3,4,3,3,6,1,3,2,7,3,4,5,3,2,4,5,6,5,7,6,3,5,3,5,7,7,4,5,1,1,2,2,1,7,8,3,7,4,2,7,8,5,2,6,4,8,8,8,4,5,2,5,2,8,8,8,6,7,2,4,8,5,1,3,2,5,4,2,6,4,6,8,4,1,5,5,5,7,3,2,2,3,4,2,8,5,1,1,1,5,3,1,7,4,2,4,3,7,7,5,4,3,4,1,1,6,3,4,7,7,4,7,7,3,8,2,3,5,6,7,4,1,5,5,3,6,5,5,1,5,6,7,4,4,2,6,5,2,5,6,5,4,6,6,1,3,4,7,2,4,1,8,4,6,6,7,5,5,7,6,4,5,8,1,8,6,2,4,7,2,3,8,3,4,6,7,2,2,4,3,2,7,5,6,3,4,1,4,5,7,5,3,1,5,5,8,1,7,3,5,1,6,6,5,3,6,8,4,8,6,8,5,1,5,5,7,5,2,6,3,7,7,5,6,4,7,5,1,2,2,2,4,5,4,8,2,7,6,6,8,3,2,6,2,7,8,3,4,2,3,8,1,1,7,2,1,1,1,5,5,1,7,7,7,7,1,5,8,8,6,6,1,5,1,2,2,6,5,4,6,2,4,4,6,2,8,1,8,7,5,3,5,5,1,8,3,1,8,6,8,4,7,4,5,7,5,1,5,4,4,8,2,7,5,4,3,1,1,4,5,8,1,7,1,1,4,7,2,2,8,3,3,3,5,5,5,2,8,5,4,2,8,8,1,4,4,6,5,7,2,1,6,6,8,6,8,4,5,7,4,2,7,7,4,7,7,8}
{1,3,4,5,6,9,10,11,12,14,15,16,19,20,21,22,23,25,27,29,30,31,32,33,34,36,38,39,40,42,43,45,47,48,49,50,52,53,54,56,57,58,59,62,63,64,66,68,69,72,73,74,75,77,79,80,81,82,84,85,87,91,92,94,95,96,97,98,100,103,104,105,107,108,111,113,115,116,117,120,121,122,123,125,126,128,129,131,134,136,139,141,144,146,147,149,151,152,154,156,157,159,161,162,163,165,166,167,169,171,172,175,178,179,181,183,185,188,191,192,193,194,195,197,199,200,201,204,205,207,208,209,210,212,213,214,216,217,219,220,223,224,225,226,228,229,232,235,236,237,238,240,242,243,244,245,246,247,248,250,251,254,255,257,259,261,264,265,266,268,270,272,274,275,276,278,279,281,282,283,284,286,287,288,289,291,293,296,297,299,300,302,304,306,308,309,310,313,316,320,321,323,324,325,327,329,331,334,336,339,340,343,344,345,346,347,349,351,353,355,356,359,360,363,365,366,368,370,371,373,374,376,377,379,382,383,384,386,387,389,391,393,395,396,397,399,401,402,403,405,406,407,408,409,410,413,415,417,419,420,423,425,426,428,429,430,432,433,434,435,436,437,438,439,440,442,444,445,447,448,450,451,453,455,456,458,459,462,464,466,467,470,471,473,474,476,479,482,483,485,486,488,489,491,492,493,494,495,497,499,500,501,504,505,508,509,512,514,515,516,518,521,523,525,526,528,529,530,532,534,535,536,538,542,544,545,546,547,548,549,551,552,555,556,557,559,560,561,562,567,568,571,573,576,579,580,581,582,585,587,588,590,591,592,593,595,596,597,598,601,602,603,604,605,607,609,610,611,612,613,615,616,618,619,620,622,623,625,627,628,629,631,632,633,634,635,636,637,639,640,642,644,645,646,649,651,652,653,656,657,658,659,660,661,662,663,668,669,671,672,674,675,677,679,681,682,684,685,688,689,691,692,693,695,696,698,699,700,702,703,704,707,708,709,711,714,715,716,717,719,723,725,726,729,730,732,735,737,738,739,741,742,744,746,747,748,750,751,752,754,755,756,758,759,761,763,764,768,769,771,772,773,774,775,776,777,779,781,783,785,786,787,790,791,792,793,794,795,796,799,802,803,805,806,808,809,810,811,812,813,814,815,816,817,819,821,824,825,827,829,830,832,833,835,836,838,840,841,842,843,844,845,846,848,850,852,853,856,857,859,860,861,864,865,866,869,870,871,873,877,878,879,881,883,884,885,887,890,891,892,893,896,898,899,900,901,903,905,907,909,910,913,916,917,920,921,923,924,928,931,932,933,935,937,939,940,942,944,945,946,947,949,950,951,953,954,956,958,960,961,963,964,965,967,969,970,971,973,975,977,980,982,983,984,986,988,990,992,995,997,999,1000,1002,1004,1005,1006,1008,1010,1011,1012,1016,1017,1019,1020,1021,1023,1024,1025,1026,1027,1030,1032,1033,1035,1036,1037,1040,1042,1043,1044,1046,1048,1049,1050,1051,1054,1056,1057,1060,1063,1065,1066,1068,1072,1073,1074,1075,1076,1079,1080,1081,1082,1083,1086,1088,1090,1091,1092,1093,1094,1095,1097,1099,1100,1102,1103,1104,1105,1106,1108,1109,1110,1112,1113,1114,1115,1117,1119,1121,1122,1124,1125,1126,1127,1128,1129,1132,1134,1136,1137,1138,1139,1142,1144,1145,1146,1147,1149,1150,1152,1153,1154,1155,1156,1158,1160,1163,1165,1167,1168,1169,1170,1171,1174,1176,1177,1178,1180,1181,1182,1185,1187,1188,1190,1192,1193,1194,1196,1197,1198,1199,1200,1203,1204,1205,1207,1208,1209,1210,1211,1214,1215,1216,1217,1218,1219,1221,1222,1223,1225,1227,1230,1231,1232,1233,1235,1239,1240,1241,1242,1245,1246,1247,1248,1250,1251,1252,1253,1255,1256,1257,1258,1259,1262,1265,1266,1267,1270,1273,1274,1275,1277,1279,1281,1283,1286,1288,1289,1290,1291,1293,1294,1297,1298,1299,1300,1304,1306,1307,1308,1310,1312,1315,1316,1319,1320,1323,1326,1327,1329,1331,1332,1334,1335,1337,1338,1339,1341,1342,1344,1345,1346,1347,1348,1351,1352,1353,1354,1356,1357,1359,1360,1361,1364,1365,1366,1367,1368,1370,1371,1372,1374,1375,1376,1377,1379,1380,1381,1382,1383,1386,1388,1391,1392,1395,1397,1398,1400,1401,1404,1406,1408,1409,1413,1415,1418,1419,1421,1422,1423,1425,1426,1428,1431,1433,1434,1437,1438,1439,1440,1442,1444,1446,1447,1448,1451,1452,1456,1458,1460,1462,1463,1464,1466,1467,1468,1469,1470,1471,1473,1474,1477,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1490,1491,1493,1495,1496,1499,1500,1501,1503,1505,1507,1509,1510,1511,1513,1514,1517,1518,1519,1521,1524,1525,1528,1529,1530,1532,1533,1535,1539,1540,1541,1544,1545,1548,1551,1553,1555,1558,1559,1562,1563,1564,1565,1567,1569,1570,1571,1574,1576,1578,1579,1580,1581,1582,1583,1585,1586,1587,1588,1589,1591,1593,1594,1596,1598,1599,1600,1601,1602,1603,1604,1605,1606,1608,1610,1611,1612,1613,1614,1616,1617,1619,1622,1623,1624,1626,1627,1628,1629,1630,1632,1633,1635,1636,1638,1640,1641,1642,1644,1647,1652,1653,1654,1655,1657,1658,1659,1662,1663,1666,1669,1673,1675,1677,1678,1680,1681,1684,1685,1686,1688,1689,1690,1692,1696,1697,1699,1702,1703,1705,1706,1708,1709,1711,1714,1715,1716,1717,1719,1721,1722,1724,1725,1726,1728,1730,1733,1734,1735,1737,1738,1739,1740,1743,1744,1745,1746,1749,1751,1753,1754,1755,1756,1757,1758,1759,1763,1765,1766,1768,1770,1771,1772,1775,1777,1779,1780,1781,1783,1785,1786,1787,1789,1791,1792,1794,1795,1798,1800,1802,1803,1805,1809,1810,1813,1815,1817,1819,1821,1823,1824,1825,1827,1828,1829,1830,1831,1832,1833,1834,1837,1839,1840,1841,1843,1844,1845,1846,1848,1849,1853,1854,1855,1856,1857,1860,1861,1863,1866,1867,1871,1873,1874,1875,1877,1879,1881,1882,1883,1884,1886,1887,1889,1890,1891,1895,1896,1898,1899,1900,1903,1904,1905,1908,1909,1910,1913,1914,1916,1918,1919,1920,1923,1924,1925,1927,1929,1930,1932,1933,1935,1937,1939,1940,1942,1943,1945,1946,1947,1948,1950,1951,1953,1955,1957,1958,1959,1961,1962,1964,1965,1966,1969,1970,1973,1974,1975,1976,1977,1978,1980,1981,1982,1984,1986,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2002,2003,2005,2007,2008,2010,2011,2012,2013,2014,2016,2019,2022,2023,2024,2025,2026,2029,2031,2033,2036,2037,2038,2040,2041,2044,2047,2049,2051,2052,2054,2055,2056,2057,2058,2059,2061,2062,2063,2066,2067,2069,2071,2072,2075,2076,2077,2079,2080,2082,2083,2085,2086,2087,2089,2091,2092,2093,2097,2099,2100,2101,2103,2104,2105,2106,2107,2108,2111,2114,2117,2120,2124,2126,2127,2128,2129,2130,2131,2133,2135,2136,2137,2139,2140,2142,2144,2146,2149,2151,2153,2156,2157,2158,2159,2160,2162,2164,2165,2166,2168,2169,2170,2171,2172,2173,2174,2175,2176,2178,2179,2180,2181,2183,2184,2186,2187,2189,2191,2193,2194,2195,2196,2197,2198,2199,2200,2202,2204,2205,2207,2210,2211,2212,2213,2216,2217,2218,2221,2222,2224,2226,2227,2228,2230,2234,2236,2237,2238,2240,2241,2242,2243,2244,2250,2251,2252,2254,2257,2258,2259,2260,2262,2264,2266,2267,2268,2271,2273,2274,2276,2277,2278,2281,2282,2283,2284,2286,2287,2288,2289,2290,2291,2292,2293,2294,2295,2299,2300,2304,2305,2306,2307,2309,2310,2311,2314,2316,2317,2318,2319,2320,2323,2325,2326,2327,2329,2331,2334,2335,2337,2339,2340,2342,2346,2348,2349,2350,2353,2357,2359,2361,2362,2363,2367,2368,2369,2370,2371,2372,2373,2375,2378,2381,2383,2386,2387,2389,2390,2392,2394,2396,2397,2398,2400,2402,2403,2405,2408,2410,2412,2414,2415,2417,2418,2419,2420,2421,2422,2423,2427,2428,2429,2431,2432,2433,2438,2441,2442,2445,2446,2448,2451,2453,2454,2455,2456,2458,2459,2461,2462,2463,2464,2465,2466,2468,2470,2473,2475,2476,2477,2478,2480,2482,2483,2484,2486,2487,2488,2490,2491,2492,2493,2494,2495,2496,2497,2500,2501,2503,2504,2505,2508,2509,2510,2512,2513,2515,2516,2517,2518,2519,2520,2523,2524,2525,2527,2529,2530,2532,2533,2534,2535,2537,2538,2539,2542,2544,2547,2549,2550,2551,2552,2553,2554,2555,2557,2560,2562,2563,2565,2566,2568,2570,2571,2572,2573,2574,2576,2577,2579,2580,2583,2586,2587,2589,2591,2592,2594,2596,2598,2600,2602,2603,2604,2606,2608,2609,2610,2612,2614,2616,2617,2618,2619,2620,2621,2622,2623,2624,2625,2626,2628,2629,2632,2634,2635,2637,2639,2640,2641,2642,2646,2648,2649,2650,2652,2653,2656,2658,2661,2663,2664,2665,2666,2667,2670,2675,2678,2679,2680,2683,2684,2685,2686,2688,2689,2690,2694,2698,2699,2700,2701,2702,2707,2709,2710,2711,2714,2715,2717,2718,2720,2721,2722,2723,2725,2726,2728,2730,2731,2733,2734,2737,2739,2741,2742,2744,2745,2746,2749,2750,2752,2755,2756,2757,2759,2760,2762,2764,2766,2767,2769,2770,2771,2773,2775,2776,2779,2780,2781,2782,2784,2785,2786,2788,2789,2791,2793,2796,2798,2800,2801,2802,2803,2805,2806,2808,2810,2814,2816,2820,2822,2825,2826,2828,2830,2831,2833,2834,2836,2837,2839,2841,2843,2844,2845,2846,2848,2851,2853,2854,2855,2858,2862,2864,2866,2867,2869,2870,2871,2873,2875,2876,2877,2878,2879}
Returns: 1175
131072
{116286,107311,101466,54072,37761,120290,2186,9453,105256,116398,99803,4232,70726,6615,116245,33988,2922,63261,113321,1856,103335,78785,41262,69926,77212,45934,118869,41669,18190,112320,11570,130073,62512,94373,124709,111271,102944,44602,69433,96180,123076,106349,124502,117812,20608,123144,21514,105091,114408,117599,56907,79924,44040,113490,45309,44314,69697,101861,117403,18124,92518,121094,14787,31434,21533,102099,97809,58250,5408,109312,103694,114564,54380,85147,649,115609,64255,78041,14895,85212,74272,124464,14013,2076,20966,16731,115088,65596,125684,106643,62457,44722,34318,88991,53788,74811,21149,25086,99763,109089,2985,96977,46477,87835,96615,122052,113937,64810,107505,59042,73126,36980,88624,41935,27215,45446,32411,96857,9292,24575,109010,123596,99862,66823,8628,89235,69776,130963,123383,127995,119989,42726,33254,106921,60063,21056,8523,36263,19778,89908,79139,53947,26774,27288,68390,115019,3750,129657,76223,119657,81471,45600,86154,99931,11411,54134,52195,8239,88508,84966,3229,2739,73303,54542,66428,57192,71446,52291,106108,98997,6565,85599,128128,48899,128172,57279,76412,45829,74559,94968,60327,71886,119452,64291,93398,126456,73604,57667,90502,87936,83713,110257,1972,48802,109808,67849,97810,5714,4390,112257,63148,64402,70268,117804,67217,128343,79262,25101,20894,31538,68586,13184,8170,40043,52541,93404,67840,74704,114165,37326,118629,59094,4357,57947,116109,102740,40046,126721,41932,110986,44271,9953,103772,68244,101438,71033,28926,83482,58278,114638,36963,88,68434,7047,34779,121927,36132,128228,73312,53253,43113,115473,21671,11332,96823,58552,67623,66539,103637,35162,52685,101273,18164,75346,130652,117573,104985,114941,105741,102063,75270,37371,114580,58322,81269,102400,93450,108810,44791,84772,34781,110375,23385,76832,83282,116257,80205,107907,62385,44441,66751,77620,89782,87272,118430,130897,65610,6367,59504,24009,23074,49150,15750,10932,21349,55371,4649,113112,17354,117887,22404,32842,29805,100538,18868,80810,85193,121218,58305,79075,8456,119331,56287,68328,42279,96836,86208,68708,91922,50384,71518,102858,24643,91375,110325,66503,44539,96322,18331,83060,118185,77844,65087,68690,88467,107960,30560,95866,12369,55492,22613,29164,77880,30817,116090,6283,15934,35676,529,67226,11888,19769,38197,47175,86671,43247,126375,44330,61928,40071,91341,105526,113653,33625,112579,89347,26081,116487,103354,22002,4489,51715,43410,14617,121593,65725,58095,107626,129047,74050,51630,54287,78956,70509,129277,65632,82376,56938,34295,15232,87215,78527,46105,44283,53816,90754,65616,124012,95096,105478,103444,108177,78065,69021,100421,70352,34614,15283,1588,84368,78926,17641,84892,120424,27616,4720,122098,68498,110285,34131,51145,79507,61757,37854,48558,73880,100543,130274,67151,42855,96904,47361,52793,91760,12391,42166,77317,90595,22916,83,27730,28735,51837,21928,95046,47445,102130,5499,80139,68658,68890,119195,61700,67548,72306,23213,82452,73055,77586,80755,29902,85018,99278,69052,103143,74692,54696,63409,51117,4623,116649,17087,129003,19573,92859,28599,97788,49424,20886,93815,15731,91121,50508,45497,120856,59641,77210,47688,111782,99482,102008,91983,114177,108661,6935,121832,18518,121688,85200,72886,90080,116344,109337,43690,60344,23660,32800,21171,34168,104671,70672,11394,109834,115291,112542,87332,71290,21048,58609,87196,13847,110863,68727,86065,58819,53426,82365,77227,1202,22295,125655,106029,84358,34864,54134,43484,9480,91926,103233,51226,100951,106896,5490,53867,47082,50006,81510,78552,111397,125199,76319,37096,69363,111999,85333,127738,117782,42452,57642,117792,108702,3203,94229,49474,2638,128178,6418,4782,120382,64162,11442,35275,65183,49150,75294,101684,87520,3488,45215,36817,85277,61084,92350,94783,43545,72485,22163,41002,63394,123949,114006,112080,96694,31545,117443,85093,50478,126052,61291,11914,49495,92918,14212,108682,53305,109453,121409,125585,73971,61782,91228,34191,116203,77357,90323,126471,3904,8246,12659,107111,57398,45524,59206,70969,81161,68466,88435,118213,74979,114967,30640,87152,127589,20533,58312,94845,62330,113836,15449,69480,45021,99949,78162,100500,93214,93110,96597,115318,122229,95842,68982,91384,112967,109871,110479,112460,53661,93312,44443,25047,50799,124036,70461,65392,64016,99646,2319,55723,28056,80725,130995,28244,94354,19251,95061,28389,107979,21079,103078,118038,116124,33107,123609,6724,113777,97131,6358,66026,84722,29519,52747,63951,74651,5842,30237,25902,43032,42534,2277,88703,57140,11658,13032,65056,697,17108,36054,128649,6928,123611,22809,123204,34032,5422,103707,123480,127989,55043,117323,27241,35706,96488,129398,8743,130424,5391,14729,101470,17874,69313,12630,25157,36561,107995,94819,61514,70194,103379,125284,52234,24720,90679,71534,73390,24449,111890,38261,94563,99645,73274,98863,27664,89888,14572,59625,18713,18139,51127,61034,58185,86186,22811,106350,79278,62300,102880,39642,124803,45459,42641,32814,4338,8692,116746,2389,51159,6838,86425,66915,79413,97111,90525,67665,130714,5573,77848,37459,99618,102114,127278,110549,87627,111778,89083,41397,87883,114344,67774,130004,110127,13480,115655,120449,25171,117868,44319,77291,104594,30670,100184,88348,65729,70009,127622,106637,36019,105920,31427,27391,121731,125806,23620,13711,58959,34516,108899,39604,93714,26605,72097,68132,93410,35571,78601,98887,89915,112942,113129,105021,105606,11869,23901,96792,10397,32127,29080,64849,27257,73311,78686,76312,1726,25516,35505,91789,114518,81904,101646,25457,43992,13899,6723,37487,90342,72238,121158,76940,110400,120824,38153,84933,34219,26317,33714,27020,13185,14956,23872,45590,117760,4712,86261,2856,48408,121481,123803,27504,118514,95931,35571,77295,46039,52040,95589,93094,70326,71880,22343,70647,100598,121229,86470,97005,33485,111840,70107,25324,129992,53993,8246,9700,15306,58003,1455,37014,30487,31038,25104,16648,56007,72338,24004,124852,299,77135,129366,108936,3198,92264,43056,69455,112759,121399,89751,93579,103945,102957,116053,97899,87792,76742,40958,67028,37198,21,40268,50727,112135,104904,50057,117460,71437,77288,30060,72767,52564,86581,42605,20261,69791,61546,16382,4089,75231,101447,62360,117095,93009,22692,114714,54137,80919,85624,84835,14218,92021,98067,121769,898,117363,12649,79467,25986,15630,65734,128401,87954,30385,10673,130446,98649,118826,96354,43532,9338,56265,123539,65812,26292,110311,113929,50973,6983,27265,111517,43263,84924,4892,78125,121658,11943,6826,113454,34947,63853,74149,125774,13332,2220,91910,10213,118436,80207,74085,66201,42891,64243,36311,80634,105981,41622,58337,117110,65740,119617,36882,68983,91571,28844,6543,81911,27537,97914,125246,107109,120203,101665,117697,100404,112527,58376,96762,20439,100135,30467,112198,108176,118282,58278,106283,2270,63089,12703,113318,22495,78735,122773,126929,37489,123692,58539,75535,83837,126936,48443,39810,77096,46501,88021,2788,28487,112089,116260,58261,114162,65689,62396,86776,125820,42481,21362,43243,130988,47674,29263,59250,68747,99401,44462,100456,51098,18016,125082,99664,127169,48469,2824,32781,124626,125919,87026,36257,94186,4737,71161,104129,111244,118534,87185,33880,107212,84227,124500,98493,114003,2890,16276,96464,118937,46296,54964,113315,52008,67090,12902,70135,68668,63976,8285,5431,35465,38066,86413,30750,84886,122194,42881,76749,7261,69510,122088,54899,82595,32988,57834,114509,62667,126015,17228,110113,117886,123539,82448,94193,7930,129358,122764,46365,11355,64140,4247,118685,28088,119936,100587,96917,61533,20689,73266,83687,41734,112313,106742,101131,114779,91508,14317,116422,71826,12000,116930,19989,57991,50380,116713,114915,62227,124394,59287,22474,114694,8660,101489,24731,92815,67095,44286,26575,13158,20670,118658,32420,12686,89932,14396,53268,60165,97183,2232,18776,34093,58016,3889,32051,108885,27473,21411,7085,61468,36616,3746,88702,44311,15986,107649,97491,19079,26926,32232,19372,68462,26770,75109,115319,65763,104566,126988,95796,17896,86920,107970,20404,11175,17181,7233,5200,124514,31976,34402,60070,33255,82835,22484,101287,27361,92590,3008,74407,110813,20712,56186,410,84809,84483,98510,16697,74328,111734,32260,75588,25345,108342,5154,114575,113681,75422,69257,30487,100476,62932,121224,47813,41450,126145,63461,40487,105645,26093,55811,90300,99606,53842,87984,19229,56418,52096,39983,118691,100903,71448,12948,72911,48518,63756,69387,25119,20483,126100,61455,125570,8778,26193,16693,123430,74179,40083,116633,8147,76859,97583,52863,40059,56703,127714,84281,26186,31034,91825,93686,118481,104946,1074,109432,87700,5216,111173,35411,92829,103707,125981,2247,93025,58568,45334,85705,42632,95671,105556,13893,126962,123969,122764,4677,22670,27047,22267,24047,74825,59369,14075,35603,37572,76608,60965,1595,20737,83122,49529,46314,97477,96128,90751,45332,66772,72137,18900,119648,123849,130864,129818,48203,79293,35562,98744,96967,31585,89321,28777,109917,32723,46236,96254,67954,84187,72190,17500,103093,80828,42066,47384,31585,78677,19548,123308,107591,42703,73333,127927,599,12910,120640,40004,52635,120545,31834,97155,19540,71076,55521,11490,84795,111542,27672,99344,123518,24156,20226,49612,66961,45079,121934,93679,35431,9870,97377,81599,54048,97431,122317,65509,5064,101915,71964,116223,85045,28156,50474,58964,31900,43209,120823,74888,23024,119121,87608,21192,120225,26349,84613,15220,76483,124828,17260,5538,53577,29362,44616,65665,46669,115526,52008,3071,91917,97303,109733,77758,96934,49440,113899,15281,95529,60804,104405,84070,105745,55061,45166,96114,117443,99094,11946,61151,71697,29317,112807,124212,33906,48776,94543,19936,8426,73798,23729,16544,9532,111054,37086,37057,28300,47183,73890,78773,87528,6733,33773,4340,35811,83718,92226,40854,111818,83651,84473,86179,57230,28222,130480,77696,40943,49623,92093,23674,37634,96213,67053,69599,91052,80715,108147,44691,66320,119808,44365,74650,47010,43483,106489,11409,58327,15675,21970,37241,128029,73667,8671,23262,49693,80870,37232,66490,59878,19435,61789,89875,68624,17281,45621,29644,116337,8639,129590,60296,19308,74651,80479,121908,61055,106924,29304,110089,47887,1630,63060,43672,80159,80965,64817,23483,57839,46801,68229,84979,95520,51727,22018,128030,89468,26799,48954,109809,41694,102907,36766,87359,34152,113659,21570,67694,52357,88190,94000,47890,70362,79402,42643,56875,59058,127325,61100,17389,95489,60161,127428,93079,41858,85524,94213,70707,130331,36627,30593,32979,107013,33522,109385,78626,35802,110063,22231,3026,123930,48338,57772,47820,59957,15853,23921,13219,128183,106880,24432,95540,96162,19374,7354,89578,108689,70861,120517,32922,22452,128820,3306,63604,58165,56381,40318,5350,117031,97461,67572,24834,19074,72554,22463,1090,53326,99081,58982,116016,21133,74502,6535,4314,122605,27072,34856,87179,101360,35981,100649,111042,107386,119020,4902,106188,106110,72852,3240,90376,43458,5249,45543,30778,55902,26061,35844,3304,63231,128367,105475,15927,51601,42666,53855,116273,84814,76373,45703,120310,43999,56235,6172,83397,12943,70120,96834,16209,83755,32850,49113,25426,102061,82168,114164,71122,128559,129219,118873,5920,116050,9766,107115,121308,90017,73225,79181,74008,15101,32058,95878,23550,49088,124674,20754,61162,83332,52262,2333,74866,77385,108535,59722,56151,16376,41905,52949,78013,51924,123608,63588,24755,59903,122310,106972,57722,14742,8738,28174,88185,113794,37743,25995,29268,88719,55405,26756,123422,89559,66680,88047,54810,42274,114338,127193,2807,122690,76470,88891,20742,70155,43735,50196,119125,60907,13049,297,43818,64970,22999,78659,40135,41267,38313,107059,87296,60779,75083,42099,116093,69752,2306,19141,22571,106429,8344,48781,17624,88633,67332,51278,93780,87280,104018,117274,10535,83629,8446,106553,71739,46741,24684,86262,59007,77748,121549,15055,3816,18958,5374,34533,7882,22593,18363,68613,125190,120675,33213,34065,64239,23832,8969,1068,20074,110205,94235,57968,44850,59654,106018,70284,37819,13516,11273,111382,83115,87673,106099,66537,6217,42322,51048,30823,16885,26749,42218,100072,16387,27928,103450,3128,85242,50473,71976,106600,91043,69132,118470,4312,90089,88938,78410,22970,37105,62022,62520,61433,109404,89667,79718,127681,30013,6576,47984,127628,114583,130919,86445,25089,19447,3104,11867,97148,71423,37701,43573,27791,11125,63956,56107,126807,39853,18553,3433,73710,35292,29780,104547,21211,82480,72865,52771,128973,87095,43454,54655,10862,86901,14500,74352,31158,94639,101503,62027,42107,32723,24148,111605,37025,3313,119148,104164,104635,87366,102785,40454,94827,97721,11848,99930,91743,78544,108148,37723,88377,11398,115378,58879,80686,21244,122828,91508,56007,19061,71028,29531,118141,1937,17867,108451,75671,112451,102471,41677,70423,114792,123136,108476,64523,126846,123892,8398,130831,128878,98919,30319,36201,23763,16095,110558,118900,39879,82659,14668,81096,123531,114687,122141,64493,71203,91182,98409,23006,65586,69690,99717,14919,32818,113954,121270,49086,25692,35877,42450,50651,76101,88949,23541,103799,18849,59449,93965,86251,66071,34013,90974,64677,96177,112991,6598,114399,68025,115089,80358,128989,82588,117748,29165,10858,21931,72257,124211,86794,25149,111401,38235,17048,118559,78699,54324,120755,64461,96975,57086,35018,16220,28698,108129,38687,47005,58768,96429,96653,50513,50709,116395,37997,15614,8584,36266,76392,20040,93543,70661,104589,126535,89419,38852,26244,76749,5471,20900,31267,16143,10065,49446,54345,24750,116972,39136,107342,32387,460,120012,11734,48945,11369,100025,73570,94188,5347,47009,71278,29286,16074,24334,129659,101211,26966,123974,38594,3243,18488,57204,81156,82043,103822,123772,117290,46416,73744,64439,85282,5521,18190,80703,116418,102252,95307,81415,65539,130199,37458,52860,19058,62414,15441,1222,9500,47250,94995,10111,14044,38944,301,22529,120139,109822,91889,108284,91700,15664,75060,102551,85984,61805,101517,70084,123645,65117,120074,101118,44944,66377,78082,96037,68781,121905,52239,106420,82259,61378,13768,125423,111427,39965,38466,72541,116513,85983,80133,67105,46007,38757,96628,28801,94371,61627,59968,113982,8026,103212,45055,56566,54206,33256,30075,25420,96289,80814,7881,48372,44821,74747,93883,95865,3021,23711,12488,83404,49256,12609,10228,7018,63493,94386,474,57929,96478,72343,121691,51247,57685,41545,33556,125631,121145,45681,37927,71647,124694,120652,115311,127668,81905,114694,81841,16610,56887,123436,131041,26179,95030,79007,53509,10202,89338,29188,47582,110871,110810,56600,123091,100670,41358,56304,23363,43286,3619,125313,46029,13202,122266,22398,111777,30388,61835,74985,4461,52304,61606,51284,60157,111853,61529,79699,120095,6516,72567,110323,1512,740,121397,117713,41945,18868,112204,88743,116497,114990,15510,62666,45075,79195,95233,63136,128302,13511,75804,43105,128559,70094,80932,35892,50265,51619,33237,44812,56135,102847,9701,37952,99789,44795,43623,122446,39005,125948,40444,78270,84244,34605,50465,129437,89083,49905,82280,110458,39059,25937,92407,4970,35896,91849,30497,88816,129922,53877,1382,116824,4896,27716,21171,87640,91986,5244,116027,11925,8079,4644,51635,97234,84592,94375,80201,119649,83051,94030,50735,60349,23162,41930,38147,106678,90181,123792,73718,90170,118739,18978,50939,66844,14188,50447,67284,57299,14504,28887,14164,14248,76380,115804,124843,125255,101719,68393,30220,127516,127649,65840,87679,45701,110654,34109,41789,31541,53267,18900,1888,38093,66294,77468,56126,23323,69770,98094,90181,81905,80626,46671,94379,103427,89073,38774,110022,118478,73610,94892,81500,47340,110270,14741,99527,22234,23400,110279,56123,113807,93406,27432,88835,68845,68451,112522,64011,53873,30459,84785,57479,39199,79039,123515,48912,15388,44086,21353,9227,111585,52440,18465,87458,23690,115264,72256,68668,42541,97326,27670,36775,125865}
{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1867,1868,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2155,2156,2157,2158,2159,2160,2161,2162,2163,2164,2165,2166,2167,2168,2169,2170,2171,2172,2173,2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2200,2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2223,2224,2225,2226,2227,2228,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2293,2294,2295,2296,2297,2298,2299,2300,2301,2302,2303,2304,2305,2306,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2385,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2436,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2450,2451,2452,2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471,2472,2473,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500}
Returns: 1801
131072
{122335,69508,12267,116458,116448,101572,55545,42002,120284,11691,38691,36724,115853,54468,84138,83172,35415,72139,28455,90438,4511,75751,72255,16841,80516,109622,80729,38617,9205,50668,22724,64288,82638,89025,36104,129440,109826,97490,1489,120912,11623,99763,52265,14127,78665,42210,34421,7750,98105,3159,6897,28556,36171,41043,106505,56344,11076,83516,122466,30373,26578,6301,118504,51149,5731,47130,128435,58099,33196,111475,82198,91479,38265,37728,76461,33597,50894,96614,81605,20905,86020,29546,58595,87437,128215,108587,84685,3070,94491,21340,43486,104769,62215,76432,115972,5955,102610,79533,29739,5714,34706,28694,22656,52651,81929,97869,93004,78772,103525,122413,65475,114795,106650,91266,67231,63214,34125,103719,59598,130462,62463,39267,75038,34505,72069,49855,66331,5711,100943,31226,9234,19255,12979,80988,33149,16045,64430,56343,32424,17493,119624,39660,6640,90729,71201,125123,108,45726,128579,37490,85319,34615,27081,130910,70838,109123,92779,48948,98505,22394,56717,72548,81143,43943,23263,41625,78771,77592,79392,112349,14313,121610,44827,68006,6819,33912,63864,107375,123833,61783,60513,38697,92904,67488,39085,119838,91396,32798,49799,109455,8129,86406,19004,37298,40137,41648,60978,25685,99198,97665,32433,5059,96065,46696,39542,126259,50824,34535,88512,129134,73116,13341,60379,56542,61015,50379,72127,38072,103593,83126,122582,55167,58955,89584,120715,104331,53858,10988,9114,12489,130159,69336,100565,129387,54372,72753,8538,51133,103460,72704,110295,111305,49489,41663,51957,120338,88242,117318,39792,13055,106255,74448,93955,60744,113094,14193,46760,70137,108544,40191,11600,56160,64464,126183,44702,63102,117008,18382,80827,110912,108113,67210,130011,76588,86712,6741,107648,107706,104974,18360,107538,56334,26343,57884,42983,67647,104744,63609,107839,95977,11721,130584,93022,4665,101151,58578,127802,10278,23430,22740,73721,110092,18112,88130,29095,61028,4316,48068,19036,69822,11252,28515,119891,16063,41125,5555,22025,19278,22396,39350,118780,45996,83017,52846,73242,38053,47763,42394,99706,49293,84241,49540,38244,99649,123001,77923,102740,58339,49258,129593,79865,65145,109542,54435,108993,86575,15623,51867,28705,128877,54886,61582,13575,37747,42738,22470,39084,59815,97175,89751,49736,68963,45185,79175,50872,71509,96856,129570,52924,128060,128570,10669,66771,25910,128475,84591,49481,39998,21392,112195,10643,556,114846,11684,99975,107986,30364,97261,62344,38517,64334,56829,112433,130650,81068,71473,38050,78988,45458,11052,111349,12197,123334,36195,87799,50612,114369,16858,39348,63502,101642,58629,34034,11305,50292,56147,36132,42304,82952,828,81649,120055,97553,77660,74975,76707,118512,92289,26686,127873,13363,33323,98005,95350,104369,124522,21886,73894,44796,43150,120364,56453,69126,59557,91778,104342,20046,23602,68226,23959,39516,27414,79223,117320,111857,113181,65945,89207,108975,79650,34195,100254,48028,116036,85360,38313,56390,98841,39698,93487,130279,18258,185,8906,123225,34513,75441,57016,115496,125330,72644,4756,2467,13416,28284,81205,41522,57347,97224,101773,72403,35879,122394,104354,34563,65684,46744,65884,28146,51346,108650,36710,100180,41096,117952,19654,58017,59300,42143,43623,15126,4607,72716,26195,45392,45611,4270,117950,125395,7085,31855,30624,42574,121422,90936,70684,87544,17589,61790,59215,53197,84803,54988,52948,94219,20138,121223,84902,75971,17441,120985,51340,113602,47038,1786,49112,84669,22495,66698,108181,45318,40723,108979,38383,45207,126081,121027,36336,58080,124217,30353,122723,103443,86884,51851,52468,13898,58063,128175,50777,61543,70837,59035,115363,62186,102225,23341,78212,45995,34835,42715,114080,63412,29193,59735,44216,108842,21588,10110,68820,122229,14127,74561,4126,75431,61559,91531,64437,86342,82727,56508,122896,67200,114619,110801,62523,94439,73201,97474,57246,63678,123613,129852,32885,94975,4284,90939,53184,46347,22659,12186,91598,91466,118686,56120,120103,71570,100040,14781,103415,19115,35197,33677,97983,45763,51189,125457,74101,25380,14358,104404,59086,57348,70753,89749,69598,124860,35381,66526,125130,55622,25465,6967,4539,66631,16906,43907,124360,58758,122350,97184,68621,22811,90551,53472,70044,8752,97040,108645,101765,118439,131055,767,115360,127857,9033,47517,62808,1274,7893,32479,114207,42348,127431,12516,99270,76075,89841,27882,129900,84056,44876,95428,69181,31405,125012,58579,120737,86410,73766,30593,102704,19079,25575,8667,78849,68446,16205,13146,22929,48763,89819,119161,96520,24083,171,75295,65518,8715,62025,58997,129059,129926,111757,30276,126782,3953,2287,55906,42504,96220,42553,60235,45393,80503,72994,51070,42944,88331,4015,91039,47851,10041,51423,83208,44115,42842,130190,61907,127367,104146,66053,28652,101662,2227,79400,84813,42171,127980,23741,2533,11984,61687,53942,45653,79185,100669,77312,6399,7441,127265,33209,66959,9210,117735,59473,61829,56014,110437,77697,7897,115124,33732,35986,5203,24880,37418,6622,11159,80850,7067,100621,117655,116537,108531,61429,75873,81327,58167,57500,126963,101385,120363,5956,76316,57859,101738,62464,49159,97740,55519,44995,106108,11756,111609,51032,78957,46929,7515,28987,11756,118674,109424,7626,47630,44614,430,129977,26846,23162,94425,17738,48362,52254,33566,46383,125572,113536,64352,126098,60742,35743,58747,118330,72433,7801,48096,56632,108861,38167,23901,34837,80546,130941,103507,62455,29888,119611,18253,21934,57707,106966,4397,12569,59896,129707,62932,127461,39639,42652,77470,15112,68630,97823,41071,66808,117216,64759,95168,11534,26243,92480,32109,29452,32286,58887,109989,3124,123520,7202,37052,126443,91221,18039,70740,113747,48428,24940,80271,123870,97391,130996,74670,118592,100330,55589,2298,91578,114394,35540,127540,67634,40253,12840,125809,7692,88916,102168,20410,126267,128002,76868,77612,62322,113432,44581,95751,16635,47891,122113,29045,28697,127097,16346,38226,48752,108372,12557,130274,34919,114149,79825,67247,127220,89642,9296,107123,121547,56902,126601,28256,98911,58967,43695,104341,66223,112860,2107,38931,121168,35131,50027,90900,71841,76398,13135,87809,25001,3717,45364,25330,63889,101872,63617,78843,88353,113734,119002,128291,94024,110214,22182,13146,31246,1389,2225,118070,54266,52475,25637,31965,24141,20654,19085,98529,84748,90774,110602,77674,62551,115147,8827,54652,76019,52059,40138,10935,123007,94026,52237,55386,107598,33202,93870,6368,9298,126612,51292,19476,27155,5500,83938,33247,58915,41079,93871,29879,77561,100488,52273,13040,111296,108564,29126,117976,55285,14964,108134,50138,70479,128560,119758,44437,21490,69112,43346,33827,53582,86776,82693,29563,114855,61844,50821,39468,115393,53278,22777,10838,62610,95656,103584,106032,96389,36203,112249,18917,67622,104953,40798,97073,43212,14768,95786,101753,63509,97429,80693,122826,110528,14884,126915,94334,129739,5158,71344,67819,65615,123434,17911,88552,41742,40874,17251,77947,122656,107900,47358,137,27075,128404,127120,92638,16811,44735,79820,70226,112863,23635,102765,79473,76672,115841,76272,108661,70016,71238,43291,39900,91058,124575,125975,37498,26411,84753,128569,67161,56424,101902,129342,561,18993,30815,79916,114909,108190,129297,80516,41616,64327,70668,83972,85292,117762,28120,96166,41855,562,35252,48911,91602,125190,122242,25129,115841,90546,15788,124181,128008,57614,119177,79144,125005,642,114530,73781,115580,100047,3482,25539,15181,94090,54567,106611,15876,103123,53199,20548,96003,97591,35680,33000,129338,115235,6484,34273,19545,62970,61722,71833,24575,96026,59764,93993,98008,58864,109587,111871,82403,46691,120076,66334,113350,40883,3611,30761,103035,121371,58476,90860,110635,70733,120295,38035,74390,54557,74135,57939,97475,39007,17739,41119,105833,24692,49393,95414,61137,45153,112345,80818,103312,126203,85590,129227,43745,130581,23788,114438,56838,111388,116882,23808,48748,59682,87062,78866,8959,47807,70985,5752,108904,7372,111352,19117,116392,79194,112453,58561,92350,29924,115078,100552,70102,1072,12582,23589,35754,29648,65966,93659,55444,50356,130690,77990,122367,121801,13160,50168,92834,15634,101737,113578,110935,34101,65069,120961,6100,99047,8785,112195,20268,3125,92637,120461,70239,46616,69739,107045,105938,28493,119043,130287,63753,43481,12383,56136,33378,14658,30342,59883,119623,87512,130931,117799,67973,86040,26819,46729,117053,92559,20756,16053,57645,823,121871,72609,25004,121793,64718,17388,11571,29374,42651,88697,102334,53278,29350,44047,82141,59896,1992,8993,23240,109838,40928,35213,18254,18174,91362,12902,92649,48034,69165,112786,25819,2428,9530,57716,15764,76726,108346,58681,23371,8867,87988,24867,24837,54832,1718,2665,80636,73792,19382,121575,23961,104297,115884,58208,10996,118010,116607,12650,47636,39881,41560,84443,53718,122813,1516,39626,118726,30843,856,129775,27072,119876,9628,52873,114598,92756,105802,48262,2322,34520,13186,65818,20803,103645,116684,89474,76321,109867,96991,26396,66992,105353,22257,101007,129988,50781,83106,96827,10310,28431,92687,127381,99550,39988,45103,113083,10078,108781,6397,110040,9402,126827,53138,73897,65253,20245,92600,95932,96867,26936,45333,2995,130790,22977,30835,35635,81107,93166,98374,51374,47086,120171,80900,119763,69143,56529,92247,35257,22369,64247,118984,13716,119635,33037,25078,128534,81334,71672,46053,102198,105393,67540,38531,4764,71832,41256,55540,23372,106550,23463,33457,48096,19184,84227,66587,28915,26246,87235,98956,27641,126171,95367,21123,122162,36997,91837,127216,99830,11649,59430,23365,85757,90854,90942,33881,123122,90329,67284,119469,4067,36007,60397,70443,117982,33620,97605,72182,867,80234,44412,92503,19168,32109,45904,42340,42732,63675,130531,88430,45936,127275,122236,107210,35968,99399,63420,111380,33799,121720,67763,117361,84483,61159,44238,18666,36488,119671,129562,115831,22322,18088,100794,110541,83016,78256,81180,3200,119869,78764,34004,123277,22206,59691,80272,48612,45838,105979,12834,93443,26587,23671,109580,78391,15675,58428,87684,89491,1043,129167,23142,56381,94355,44365,70661,33810,106493,57264,24146,84297,76900,122575,84302,84762,54188,93716,122929,111363,43357,49812,15948,114881,101797,58001,39940,68494,13849,124148,79858,131001,30594,62760,2694,126501,45658,112141,3374,106969,17979,42357,34930,24082,49892,96231,22266,91663,12312,2826,87532,114195,79873,33671,87457,46007,16971,94644,116760,125482,41137,93923,9510,75101,53294,35746,34515,56782,33919,73152,23250,50403,46645,66424,12438,53386,81408,18298,108010,8981,43637,14412,81542,78592,126963,31666,101780,128159,21734,28041,98976,95832,36632,12260,58841,24176,26946,14518,6687,67600,31388,122857,71128,39808,97420,96044,77301,27711,40253,52055,117022,9731,118853,103853,88958,122932,37135,22999,9761,69119,52549,95212,73552,28550,49125,110680,74733,108369,92218,110068,72760,58759,129644,98604,71923,14607,76247,38265,39006,34080,98278,41233,72956,120927,5279,107799,2704,127257,61585,27425,88142,6317,8804,46961,4531,77506,9394,32165,121329,113484,103270,117824,110694,11529,90702,121302,3869,67707,117021,42302,75452,113143,60294,127108,95704,64478,59051,1290,82992,86165,90010,42400,42157,61006,61686,55779,101299,43318,59549,54459,16795,59165,108648,7766,1002,30254,110533,90205,543,81602,54874,47569,3476,14064,37481,87632,20079,48355,84005,76573,6670,101262,102828,13003,106971,56274,78302,83648,39952,127658,128708,117901,82511,23407,78516,54088,68739,23498,42482,127961,92424,52587,111865,19838,23940,30737,104994,20061,95850,17662,58331,106111,46485,13160,813,96767,84733,54268,127155,69058,52457,16392,65736,65687,90010,130906,57872,80128,116455,73329,95261,9868,112309,54544,42588,89095,57800,35779,123394,7770,16601,118128,107564,111219,54888,114822,122851,43776,118340,8668,98878,15702,82483,92630,66895,47962,75699,49893,90392,46781,62791,50933,121903,67676,26700,104407,16467,64804,32436,120139,117151,81979,78522,12712,117131,114900,53479,62665,92536,51321,56172,105294,15097,113952,22594,61111,87678,41183,8700,94598,43958,18324,89553,51430,121138,29016,37821,60406,91043,32519,69686,85837,30544,85180,12661,65985,33021,58514,68780,48658,56826,78458,29243,86912,107922,108666,115264,95728,73855,55602,15746,1185,124328,29938,35116,75027,116180,117811,63043,77360,111236,65747,51288,20044,40625,91614,78170,70920,64154,13366,778,39101,122455,110843,12545,52589,14699,10486,75957,53731,94205,113387,114556,95753,110849,119065,248,3082,66278,90311,33509,46168,34591,101671,3518,115497,116510,74090,91174,105591,13,31838,48528,94761,87265,65114,74521,110174,102677,53468,83970,33424,112807,128420,111051,4735,66723,127396,69201,150,73179,7831,94450,114638,27151,111764,121383,130467,4663,127854,59265,111926,2833,31293,119944,68399,121803,119259,3944,61548,73942,30121,102115,47125,56237,81023,53627,19506,33476,59905,63566,31299,96071,124746,51845,61442,67813,43044,39147,61145,33372,71872,62331,31516,121847,103968,60788,121514,41901,27176,18142,38140,93477,101011,15597,120112,44609,94372,64836,3393,20332,83448,115327,67545,92514,22829,31491,13554,109728,54232,99710,60358,114996,379,35088,105261,102431,73191,47508,94195,55807,38868,62198,120644,114990,64260,65810,29118,27,19396,74757,35385,26359,33828,93040,61920,61063,6582,122268,16810,12340,129317,35310,126920,91684,80770,106662,26143,14462,130955,95326,87391,102300,18391,58421,122567,25933,99615,6173,122167,74225,101010,111434,38036,95378,4217,109351,89373,116658,40959,52170,32452,30471,117113,40291,89878,113877,122109,55439,90836,127003,66459,123400,29381,8003,36366,57513,61913,87441,103483,125747,74038,60415,104268,99786,93500,10429,48834,12708,126229,74499,32587,76754,97514,25458,65719,41632,18761,2997,93916,107396,24796,29327,100283,52733,61431,70676,77758,29293,10264,96316,105319,77397,33777,17538,46132,86501,5898,69579,50462,91490,124556,115259,12673,65346,124755,19776,65465,50820,11224,88688,22357,63277,68343,12933,47398,67943,38728,102418,44564,79398,105716,21570,61417,98013,101055,9785,42514,104486,76100,59487,13956,106966,119298,41278,90544,61813,128583,129070,124624,24197,13463,112761,50275,31386,129427,127036,85808,125352,112649,78499,53408,43394,74282,18378,74683,33281,97427,9958,57014,70083,74271,96754,130370,62961,106039,7316,46733,91662,90522,2669,77889,18230,66619,898,5705,13508,17740,53252,116161,18140,35080,32526,110555,31162,94792,81582,122898,99153,25728,97743,75639,106267,80191,60238,87419,90779,82603,104422,7412,1916,119598,798,51916,115396,61653,11778,51729,47890,104814,61633,71639,129628,68373,115455,81828,86547,123686,125177,81876,103222,37945,35385,52145,112185,45622,104719,116650,104763,123417,107647,103015,120185,121207,45272,46115,120695,51286,1455,58379,122836,50800,33383,129544,122170,93050,32001,88513,10842,39023,94569,43553,9589,42636,55791,17222,20818,44805,27684,107295,14896,93438,42957,28559,111496,23028,75809,70514,77360,70413,31239,55884,123075,54397,89217,38145,18114,59011,82694,18525,5482,79385,111600,11471,12205,489,110525,89377,89414,33434,110670,63618,103251,50196,482,78522,96118,33715,14836,54233,28908,120360,90821,65330,71044,38377,70823,49156,2811,76281,10461,118923,36772,4844,128048,22250,116697,121563,68082,125361,43039,33621,27298,70737,122488,23250,111600,117343,96222,16851,27198,48879,76099,54834,116330,93152,7719,47547,103688,47978,129319,14244,108221,48323,19832,125690,5120,37685,17100,46735,75998,58733,85904,89472,12293,31071,131056,88560,34509,24473,39585,77311,26204,71491,73444,22935,41144,27327,37285,24100,13026,27426,55874,51145,131004,59237,35293,4648,18920,681,53942,27981,38229,9041,110458,124374,97202,88921,50434,82404,45426,41131,58223,754,129954,111321,13854,27424,10548,90624,11363,8968,83209,69939,126850,76718,75860,116024,54486}
{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1867,1868,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2155,2156,2157,2158,2159,2160,2161,2162,2163,2164,2165,2166,2167,2168,2169,2170,2171,2172,2173,2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2200,2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2223,2224,2225,2226,2227,2228,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2293,2294,2295,2296,2297,2298,2299,2300,2301,2302,2303,2304,2305,2306,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2385,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2436,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2450,2451,2452,2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471,2472,2473,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500}
Returns: 1821
131072
{75431,87970,55030,107934,44288,42798,30562,118886,93185,34226,39230,41587,3425,65401,101246,33342,36595,101842,38316,52821,40052,104869,15898,32431,113782,14944,100409,127193,45078,77024,94182,90609,17271,82076,11521,99306,129964,35776,24874,22023,36120,39268,79848,127745,54234,30624,112674,90577,9819,3491,68653,41098,18585,95382,89161,72515,1326,12384,65000,35698,98242,71711,12419,120518,45798,32886,26472,126679,80377,52328,79416,126396,34338,125945,23683,112101,60415,33350,9037,79414,38415,94016,83396,7643,87667,19410,128274,17858,102684,67985,11656,24628,67059,22962,35337,39287,8466,115073,2302,114430,107945,87298,52388,81167,67219,127732,116502,52562,101953,102381,96476,2884,103940,106690,28497,19963,97095,1769,67263,8508,114654,66576,72314,98878,53479,44189,115672,40752,85606,4932,69452,17106,89119,129647,107915,86067,33486,15017,52476,113911,128845,16314,122450,86813,48060,184,85415,77244,130357,108971,49120,24231,20285,53259,84661,30061,128092,32197,62517,113322,82460,106740,52499,56609,23771,98578,104338,34949,67236,113857,119653,59515,2704,67062,81240,95406,126152,87203,88082,36233,128446,105133,27085,27497,93618,9797,33093,109781,60430,119411,35534,92839,64701,59389,17610,74643,3070,74575,63843,2831,100311,46774,18907,86529,95413,21128,3646,121391,20809,16246,21205,94183,70720,27077,54051,8142,19684,56975,129230,100679,130614,110291,23350,10354,109215,28281,66332,97579,79045,38926,19502,110340,112789,65622,74940,120999,85541,79742,41596,98208,116332,14358,27047,124918,57465,5772,80456,60815,13354,34385,7691,55245,7694,130160,10087,79458,87657,63929,31087,16582,35852,39226,26156,27712,23035,57919,120766,63236,15752,36741,61230,334,53487,65500,51768,96241,32003,120541,47077,101966,4872,30468,51787,118828,20044,127165,43585,61018,7054,17597,120925,86940,111310,125502,72987,84428,3732,27747,118893,65963,72261,42097,55192,76368,69533,39185,48812,126892,59866,23895,10604,12826,37809,27826,130551,103268,99239,62346,74251,102468,121041,14009,27190,18366,47269,56971,28862,52315,44250,85128,28842,58793,3840,87475,63396,66311,11727,114036,84001,51992,116437,40921,39829,77289,44422,105592,72458,10799,67410,1422,88819,37016,25283,39315,28033,64155,7752,90129,13666,58569,70072,74947,100655,91909,15390,48867,126563,24478,87534,54450,80168,69821,38444,73222,13533,10782,46999,19209,40859,66434,88448,108254,14732,26326,13891,86117,28540,45944,88078,95685,15959,89758,94978,25087,21515,57152,121407,24122,10379,126603,74737,92912,118858,110656,32500,108484,106506,119046,129827,123685,24658,127756,103395,15735,50514,56329,109311,69113,75419,115192,118891,18973,67701,52876,12800,103031,61220,97240,56518,47889,11003,116496,6109,10048,119431,24801,36769,107451,128679,130391,50710,101410,17137,44981,85034,64435,111395,121160,42485,35662,118025,105622,27252,110995,58523,240,77286,80954,22198,130243,5199,101480,89399,96183,100421,82475,75220,65529,32903,54741,76678,26805,64908,82025,96464,53796,63108,83666,94154,46643,52206,15891,64295,98091,99417,12577,107054,125008,104021,13224,57300,62194,53562,24414,87017,38102,70860,97322,60319,94076,128598,42430,62783,121386,77903,91122,14685,21301,51229,40310,43634,1908,13318,36652,526,100709,96748,99528,47514,3039,15840,29173,78567,32465,67106,114103,105314,116493,39075,103464,6986,128120,17566,124263,14512,119983,10584,56011,130205,35458,6560,65058,89904,126274,39458,37165,50698,23891,108314,108038,128720,95735,27782,27560,116271,36551,125537,54358,539,22983,40201,15876,40111,5526,45133,71553,62335,50595,66124,106387,13737,109790,84408,118206,24960,57819,70011,79584,6433,81369,125554,21087,41929,8865,78388,59160,55363,105908,72849,104901,90928,18873,84940,39185,58013,129434,78383,79360,42648,45908,112130,121339,101685,51929,8076,81425,91842,67595,14102,68029,38285,44344,42911,70104,78597,60940,80201,86768,60047,127348,17673,95406,61672,54114,123337,75408,1371,17890,113007,63644,82093,27510,13054,95560,105480,20282,44355,13383,102591,129447,58436,24689,129090,101260,84460,114042,92680,788,71950,40110,113622,88413,79967,25180,130860,98702,41321,81976,23846,31974,126488,39757,34999,78252,126449,14033,75136,64900,45698,44911,30757,71181,90410,5469,64358,46410,83649,99792,68574,117184,10302,34593,115379,93374,39399,40256,19983,113615,83238,69297,40113,122040,95121,9424,2164,60927,128061,21630,53780,94325,98030,44793,112393,20648,71479,48401,110809,74179,106534,31078,66458,21951,118656,98541,10261,18787,65076,50027,54344,54535,127496,24,93095,48520,43809,11555,95980,56167,97906,101196,27085,6277,21672,104760,62310,98156,50090,23763,23727,33185,59200,101196,69334,87277,89068,64262,82372,119313,36249,32017,68023,39389,43558,114296,98599,28700,128621,74759,107241,46659,66253,46536,36559,113255,84688,8674,27038,10584,76306,41240,53173,23913,114389,72084,124976,32207,20871,16179,101597,93448,75428,107273,45536,24391,81700,108115,15945,105558,96761,71551,122239,27358,116666,123539,63442,28039,45064,45197,128761,120053,18121,103435,16877,111612,122310,127955,127438,32278,81347,116367,75860,17026,65700,124237,9840,37123,115893,48410,51354,73653,90022,129617,124040,17389,128596,60128,76453,72334,60651,18230,42023,55000,65915,54279,109838,71955,102806,57761,24542,26908,68101,69638,118642,129844,118311,61816,74167,49178,99100,10164,107678,93136,39222,27270,19746,104721,77030,35062,112301,96734,59030,125113,44989,106526,90016,84506,42762,86979,114915,43285,58130,108133,52763,63190,87130,130766,24440,72008,2352,12639,27048,8439,53328,25815,8903,63463,93748,130386,102759,126636,126823,37394,57636,32597,6326,36081,79616,90245,48260,31995,28141,38221,119587,24610,8901,35090,39553,78456,50464,31007,112632,60402,65848,94253,23968,114713,50519,125572,51946,60839,91132,56300,9957,112258,123439,82732,108789,13059,90161,112955,84826,105990,112913,97512,55634,29101,128049,24093,69942,14169,62057,40574,117078,83898,57017,90003,101622,123515,88387,100651,64825,130926,70012,13621,26705,1472,103245,41155,32707,12308,92441,25699,122142,52998,90953,84102,6885,54793,119932,27949,44574,10509,122841,44685,90934,130027,103849,13017,26544,81663,100548,57327,8282,102130,116202,72213,111209,26648,42134,106370,7248,30827,116584,38613,65945,120188,53423,63819,123818,104039,118319,25548,26547,121904,77237,3219,32939,44419,10895,7583,121507,13634,70259,67236,47949,126437,32502,31664,111109,3600,110365,116784,59440,75099,35618,57498,108875,82623,101116,77661,53363,14494,46787,31829,77766,105684,83586,98427,113773,64969,66950,47610,20632,94201,101322,59235,76632,70120,106115,78649,64656,93930,38775,101243,82401,50114,37142,123762,65515,4741,17415,77925,31130,44469,65826,54390,93696,93448,387,56658,39772,6352,25781,65264,52434,50038,41884,99589,102026,49924,64799,39032,117389,116513,28724,75889,67398,74375,79203,100683,50916,117082,22597,28174,40321,49241,4128,82863,64094,115541,116023,75721,22270,50165,85714,112378,34185,35877,58528,49574,11830,84524,31879,104518,78359,71402,121958,4867,106535,41245,34294,47816,12250,70440,119114,35973,51982,866,2307,111059,104373,51518,76255,81073,75776,126049,66976,30340,65132,101642,63465,42277,26997,40894,72231,19216,57693,41144,127514,55940,34997,130560,128267,103869,79655,57779,125000,125179,35887,16470,9725,60808,126513,6593,72697,63358,4278,112005,63603,70253,41758,85575,92007,74660,8106,6660,33177,2900,88358,124852,105694,102442,23559,42297,101290,9138,32347,2839,2192,40994,4183,26081,100528,710,67028,65494,97985,55498,75672,67485,79532,104067,123323,64406,57451,25607,105211,39856,73511,3108,42830,11845,98366,44430,24216,98009,105518,102497,108221,92237,86545,5295,87810,128604,36013,4439,16629,79088,20145,11468,25031,106034,90682,48140,50518,49869,63011,99955,129749,82529,45640,28579,106826,29834,23108,31531,35020,15741,62653,122934,11209,29607,39898,62939,121392,63050,39409,41816,120516,8061,82949,111073,56713,38548,8733,57403,69751,111196,91165,125650,7790,38175,90146,122247,106148,128734,124409,63199,4462,77002,102860,9936,48565,26452,63126,116190,47336,23257,30571,33720,118215,37220,128306,48904,44236,97888,70880,96954,55197,6094,118981,63312,3904,13019,83465,104858,45948,76886,15843,14952,30765,98292,118944,81280,72681,121818,44817,122999,90553,63585,73078,70841,95832,67207,31089,60003,73636,123388,82719,70690,105405,24135,4067,24281,60300,65781,35840,6709,27401,83266,114314,90603,69665,8245,8651,63946,28550,59035,53428,65891,48440,61668,67676,9841,91434,25412,35638,12213,102089,88858,4612,113793,124100,27910,58658,59294,86234,121267,128825,7880,66072,10668,92400,127595,68167,64340,80814,123876,9700,112725,75783,84708,55423,107152,2774,19781,126406,78578,76468,104164,42526,7989,46535,470,89107,99815,83592,110995,18040,47816,130195,18002,74127,63449,115992,114769,2,53795,52473,93495,84752,113567,50479,117824,69551,5691,106634,112751,7435,91747,49246,23161,12073,3603,9264,26260,91907,41949,7931,130284,43003,29648,21277,75237,6374,66246,17541,87526,64926,100091,44842,42718,25679,78699,65139,100411,47217,126440,114831,100475,78768,37474,114531,101919,88984,16453,100114,88095,16741,88439,37054,94370,69566,54483,1684,122664,39089,86191,74933,55767,3275,60484,39181,96296,117403,88452,62132,64415,19572,54084,12265,107976,41152,44599,116788,17700,102334,71079,77522,107853,38910,77662,47093,57582,16739,89283,2531,79569,126229,39303,119207,95666,16160,4846,20797,21780,34086,64785,101366,9145,70636,26149,21514,71430,31774,86564,84732,14584,109848,50141,1251,95466,107274,99031,60704,103887,5203,26620,18853,76587,112721,116093,116824,81002,14492,71923,24741,29910,107479,106772,473,66774,86037,43789,99667,55225,33028,95715,109097,61359,122053,25817,97861,113711,114877,123969,100255,70018,56891,57028,81569,68242,11579,60282,129346,102610,80418,96217,83195,34897,6604,72424,56346,45254,58800,63912,123285,77495,100481,110380,122085,90748,121357,99667,3591,13645,102336,62867,73776,87818,89490,25549,78,2550,51643,53153,43744,3105,44030,54064,74567,127136,71642,110787,95513,52573,34695,93004,106125,99496,99324,61487,102809,9273,113886,13139,6087,120293,100786,116962,86897,110763,74771,691,55122,23385,102742,57808,121897,124016,10336,18194,129629,30091,59148,47159,130128,105201,90344,51579,56425,47751,128945,116247,53356,2014,83022,101543,90674,116105,7595,114395,1115,128621,98624,89724,20481,50254,51105,113697,10005,119610,1506,13989,21857,31759,17188,111790,129241,31449,81961,64608,129090,34,62773,6027,7620,83722,106775,52586,67970,54336,19127,58696,73416,21656,60642,24600,52445,46205,76493,8550,8984,31709,25089,39575,32325,113885,13595,128494,84975,62960,82214,129361,24227,10904,38384,90923,72902,75899,114715,56960,127489,94466,47705,54666,55794,102969,61832,91364,39192,56349,44573,31661,18343,86554,43938,118690,12362,31445,28062,46744,111464,17171,63425,78158,122373,101084,62883,97809,111060,9875,70882,25624,113286,8251,88844,4896,31469,120733,38665,126244,31504,17020,111726,55997,85684,147,109968,124171,51839,80268,8083,113318,52281,85410,6756,98179,31053,17459,44261,119378,107793,38357,58395,19500,12024,29255,96960,125472,104240,128214,85247,117385,50899,121975,51890,94874,71471,20303,6398,27426,577,62408,88726,28140,38136,80896,44158,104390,47697,74421,117667,73088,50396,117610,3610,56577,80587,31224,24925,52671,120590,75831,21839,52911,61598,41728,57969,104961,1927,35382,102404,49598,71100,119300,58745,98972,28759,30224,108804,62741,33876,61898,86944,110372,100435,115610,88412,82852,88962,49936,27454,79561,79928,91349,44705,63897,106332,10648,3147,84201,61483,26512,12320,59076,32363,24810,39108,69567,42920,11193,11508,83996,26249,21169,78585,10050,12757,84049,15618,107119,37681,51395,41913,66084,53313,6410,98021,75832,81703,111830,45684,71428,93702,28301,40121,50339,9110,83930,14648,77754,27993,23398,74192,26032,93841,4855,48796,46299,29051,38813,11094,106374,121590,126009,57240,85844,3862,95472,64978,17127,70597,119010,86841,47679,52484,122299,35225,211,3286,98148,53832,73420,24443,22659,92194,46416,97018,766,109778,54375,100256,35376,23622,95062,71040,60173,22428,57077,33157,12517,122724,60393,52014,26615,47997,1344,92813,70028,116084,19032,103569,67530,37027,55695,100921,119294,33274,8103,3522,19578,102328,101980,59229,14811,6119,96025,98702,120266,49916,61757,5051,119816,81502,110063,36871,88290,49465,26090,38922,27349,115810,10304,72315,8068,72874,80759,59999,22727,114031,97544,106198,84209,118723,13737,88328,75797,98551,13138,44138,34417,127462,42110,119746,96956,67274,109201,105506,101762,97787,58329,64863,111948,109154,18467,13846,63930,29942,40274,94167,91732,122653,33779,93839,120893,9789,108085,40120,124022,57176,61005,124015,104177,124927,54180,78851,72997,57465,116949,84738,37194,67947,40675,97139,3596,54747,85156,26933,128197,18648,127947,32809,58138,85160,14225,120888,14089,104392,871,101567,78649,27282,47781,11142,120753,95969,29878,118214,87467,104832,25513,44120,42943,111557,118169,36521,18959,125465,7152,21112,20660,119509,28132,63740,11537,46906,120375,74888,87378,126683,63131,49201,111547,37974,1466,43430,17925,88222,96084,107440,108408,69823,96358,38529,90871,49244,80839,12641,122038,22991,44607,90060,91590,13098,103292,45718,106037,17923,18403,56356,44265,112198,28074,109918,1788,54010,42554,106325,33464,117311,9018,123975,83192,41047,87376,14604,47645,106521,18675,15997,15936,29077,89172,240,23278,84555,123852,33369,37635,82107,3261,104995,38898,45996,121193,19543,95774,60410,27293,120871,116868,42560,63166,11374,22107,2100,116758,12085,40939,109565,91870,87003,53841,123501,44540,23023,23632,70497,127974,48457,127228,14879,109466,89734,75617,57865,125988,80232,71910,48761,10149,40255,25240,130841,66897,18918,114704,55430,117840,4709,71986,24477,71682,13529,85616,52284,108686,95650,86468,97996,3385,14983,77089,113267,41080,24768,96638,125998,55332,22430,97339,36289,83679,10190,107285,80306,54780,32207,92493,23620,113153,36022,54099,5032,93717,109777,41092,84048,40299,63539,70996,52388,19469,120273,119417,92673,51966,25136,102500,75589,69164,127813,51367,117698,120097,37780,22924,42992,115175,16168,66184,941,128024,125808,15040,79969,2183,61855,21849,95195,30849,86424,76219,26420,81412,29190,100491,113563,23809,32934,43136,3404,31738,25702,92374,25492,69902,86367,117125,107306,119504,97614,84985,20164,5867,78215,70017,4130,37636,34330,32540,129655,36550,28695,61673,15745,65692,97186,39393,5912,18685,100574,3858,79769,19141,12616,77847,33778,31122,72077,73974,75439,8594,25212,121884,14292,42688,109089,34221,59867,115695,105627,7133,73894,60603,62148,25215,40389,57260,125759,64135,99286,77978,51461,30890,121174,73151,45299,65755,59840,89186,24200,93900,59973,111779,104013,91695,73199,81473,64273,116721,56211,56041,129399,130063,20045,74989,121857,82513,36849,95207,116760,118412,119610,54060,90932,120750,113159,118933,77227,62262,109194,58497,16202,6497,64679,56977,65594,32946,77676,81160,112471,74249,64745,106316,21890,10502,6459,106098,50176,55012,45100,82265,10884,94339,84782,130095,8180,111317,110596,46575,34676,64350,98047,43194,129499,120071,122376,72839,68120,60392,21610,62999,29093,101702,8591,57003,82063,117626,53154,90987,35648,8179,35156,120298,114297,129024,53412,61898,114876,129959,39677,87534,87695,4139,101750,113187,56787,6783,72337,95433,25247,88151,104781,89690,85719,51467,70610,93015,33775,102918,98975,28547,36110,36072,28541,92122,116237,16408,37397,25424,119410,25858,56951,44207,36350,119194,111725,12958,48854,73086,25826,87350,16354,109893,72000,15144,6267,127308,85777,105177,66802,38821,102576,32368,21001,78688,121457,62536}
{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1867,1868,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2155,2156,2157,2158,2159,2160,2161,2162,2163,2164,2165,2166,2167,2168,2169,2170,2171,2172,2173,2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2200,2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2223,2224,2225,2226,2227,2228,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2293,2294,2295,2296,2297,2298,2299,2300,2301,2302,2303,2304,2305,2306,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2385,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2436,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2450,2451,2452,2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471,2472,2473,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500}
Returns: 1797
131072
{105458,93670,78334,55230,131050,14738,23631,125129,40447,44872,87305,82772,59160,17195,77968,127431,74196,118591,26806,53444,53070,38162,14916,83061,75623,117303,45118,23154,115354,34221,16434,56744,46586,63236,94564,39993,124006,45658,61240,109005,71312,36596,40339,115515,100828,71839,52392,8977,5317,59023,98278,69850,48567,19703,57978,16298,110617,119037,96791,109269,121211,35153,28535,2637,75670,75793,23124,12949,89625,118061,91450,114374,51692,127746,21502,81301,112115,51558,65068,50369,29670,75207,9552,84224,2640,53671,13655,90800,75604,95003,29679,82542,120373,101762,27183,99042,42069,11054,125535,81868,90273,107312,64054,91324,28430,106744,8288,98410,116795,5631,72343,103458,11204,4151,120888,20792,117345,37474,113558,252,113506,32280,105185,126492,61341,90534,114686,37101,612,102013,15645,129669,83853,16220,86627,1327,115760,51196,87928,43794,24099,117340,107095,36502,31948,82037,15147,14957,37981,117624,54153,125370,107274,76892,28142,115531,34393,68569,26816,89423,81167,19108,79534,72082,43225,128252,62668,29850,78152,108377,17706,113834,116775,111711,23381,118811,81354,110294,130682,97526,103018,7376,27543,124501,21,2995,30847,126574,55133,65384,7942,3779,128832,84300,44600,17005,108400,13870,17877,45299,125580,46332,128770,107166,130129,6751,60268,127434,40550,96245,19134,42771,5337,41054,81088,47343,16839,25547,23776,65926,11882,119633,15000,26719,32256,27551,71781,63422,116141,60001,65976,8235,37618,17396,34481,50978,67771,111012,127727,59477,92586,9005,43863,35697,107691,32940,34072,39653,1891,72885,89801,115356,39057,96454,2806,124948,84726,4298,45545,2004,79831,17624,14086,20140,24236,43762,124047,73654,1548,5353,42794,90763,116859,92445,96491,61348,38417,3926,82507,80720,98988,9572,93651,31301,5809,61869,111060,25899,67305,72828,76285,97066,46757,72487,49444,11739,46507,60108,74268,48034,35324,47836,60636,42963,33822,31269,50149,113325,72423,23435,125978,15746,23139,23084,110593,49695,86007,34586,97694,77514,68668,97641,117984,66278,119229,113591,17105,119449,87583,120055,15483,53883,39374,27805,127677,63152,51384,115944,114424,41846,54586,84106,44768,14217,68807,125767,101435,119636,50272,32729,115702,43633,26995,78787,11864,59224,115249,83009,41121,46016,63224,111118,26361,86687,72918,80958,84985,25406,26570,81102,43422,89942,59846,9255,9738,12460,53782,82766,13519,87320,32566,22244,80949,29306,91054,120772,87090,95867,48388,96337,129917,26789,27233,26699,54664,61369,52983,64325,35509,13749,39605,73853,80535,20619,37491,48456,38558,106476,130827,28094,45557,43818,18835,29163,121323,128154,96558,40995,90305,62067,116135,71622,76582,124823,16455,8717,1857,110907,111391,12585,88715,51431,83256,82018,100968,111808,12505,64101,108985,60039,59234,64888,27718,50258,23772,22477,10076,102496,123858,59550,114014,17,65657,46419,47285,83039,59603,29780,102626,227,67022,102868,6924,125121,47089,50473,97759,86922,57535,61448,42764,25204,82004,29501,14150,26851,38218,91934,73733,13749,39829,79987,115945,38221,34119,3322,22806,126659,87791,1349,26449,14651,110481,128034,64064,110793,127707,30274,45198,44264,35482,96079,77665,115941,792,74801,121822,67900,9312,3236,35609,99166,121107,51426,126537,92109,111054,121490,59277,94465,8896,45732,109083,46101,79749,51300,102180,125601,92114,98399,57168,108484,30222,83049,30488,14532,118629,106587,8925,3140,115569,96727,120320,25978,6151,101297,95978,121696,64568,12357,57399,44626,76844,14427,126450,22799,79314,69337,62509,126084,15630,48118,53956,114802,23659,32025,65703,52538,118256,39206,89976,40432,26144,121698,93916,13313,39367,45476,36161,28798,17823,85261,88707,106859,114007,87795,67375,109585,83507,52791,25030,63435,4007,29629,117202,112432,129843,53043,55065,96295,70379,83933,31181,130491,27867,69538,40705,20808,26573,110853,64327,111309,109705,62265,99259,105208,77093,96794,21586,23502,96878,68132,18640,71524,79380,43824,91175,114345,75413,1822,18579,38054,32904,21550,31069,19759,87905,122152,124284,18557,120364,117790,86269,108443,57199,16104,39291,37,437,57119,100480,86083,85209,14777,126244,32348,98984,124169,3254,10864,23533,75349,73934,57742,76153,80555,36755,122461,128832,108853,119186,27688,34328,6077,36586,113760,61235,130191,25658,100627,103143,80758,128520,80184,70361,81409,98319,91737,99863,27080,123962,40323,119880,129507,25497,131056,78699,13126,41535,66147,74323,44606,23867,62637,125028,434,20635,79169,41385,98162,12738,130912,11482,58162,22747,105662,126815,55419,47832,28187,20979,3630,11187,112843,71392,78054,34652,94613,80267,38871,22038,22503,58692,45675,51111,106185,16385,22352,96037,7051,82964,129065,20405,31910,111209,28555,74003,26035,17775,106903,129336,96253,113451,31168,77545,84379,68510,62225,12179,6021,12038,117397,39221,104860,13836,15893,126909,117268,9342,52205,86945,44087,130466,19230,1547,10486,49072,58715,81265,127549,43671,32568,119778,67700,72846,126275,44778,63537,36250,128807,91987,12415,115077,40091,109985,60607,75377,21064,77468,71554,33929,130911,86449,83559,106995,91920,4500,96607,19592,23454,91611,107087,88437,105268,80639,9362,39242,35136,52361,95797,97689,72062,89028,120702,80818,78952,111554,44949,104073,40772,111125,34783,75886,1152,74237,55786,66451,72588,106101,126567,118537,74226,124382,58916,9270,121299,4269,45183,57193,5251,94946,11579,21649,94846,38569,566,59315,95322,111850,116720,26425,15098,22323,6740,111768,92078,91314,120247,116352,94070,115369,21137,122378,91929,59182,52419,59159,53327,17282,19969,92759,17050,16854,93503,13859,60708,112855,130968,127407,123189,77263,29101,76978,55182,1208,60129,76817,46407,54276,104050,111266,30592,96386,96475,86943,89975,80933,4733,31456,80725,92426,113400,83291,96852,63629,72489,99105,89468,46268,95821,51785,67742,6415,101682,24823,31189,34202,119013,127744,32814,126640,21734,34386,44211,6442,97083,61341,125842,109124,110446,10089,128389,55368,45021,19997,7238,24564,122699,60427,5926,35037,58170,2340,92059,96684,28143,5717,110553,123783,32151,20780,124998,74358,103563,18648,115432,22305,96547,96788,114322,46258,124413,103962,93682,17459,15941,63266,18755,111937,54242,66448,982,96852,38911,118626,119063,26003,76000,76268,18261,16739,72327,95354,106741,95902,70149,7401,130891,112827,120320,26070,66755,59068,119128,83048,106143,54845,110430,35406,10469,37998,111510,20748,14801,118610,14708,109090,21599,102419,90891,63016,33847,13769,26658,62316,96165,112248,12702,103209,3801,37541,63416,62194,100883,106070,95229,95831,33539,51402,123507,125797,45061,90814,100344,123659,70254,67999,48686,62722,107425,87141,106497,99652,55070,107914,23600,53157,23106,7127,126414,31915,89317,33377,34093,119092,90258,22172,17968,108793,69257,98743,76648,55942,59200,14650,120837,25031,114839,106776,60667,113824,64111,16421,69723,17354,5087,73262,82001,129125,56762,31128,83383,81265,59793,92363,74939,82602,1778,29262,17537,34030,41740,11479,110906,112306,110967,20270,22179,106920,26442,81459,23397,8470,33853,7641,122944,78609,10238,110707,86144,85259,17533,58908,11172,106217,41044,58512,47800,114205,3849,99924,97868,20710,67419,54900,19586,114760,4681,124082,69923,46533,45077,95354,60463,14462,17121,98155,1504,39872,86323,84686,55701,73620,1278,58828,62348,8818,77430,19639,75764,70038,83023,9276,9269,123935,56758,1485,124405,121730,128157,44320,73154,33379,57754,64783,52694,29040,95509,116908,36853,81996,119784,103401,55231,79645,118836,71063,16785,119769,22929,76574,100412,1245,86621,74939,71340,6373,39506,55193,87264,119549,94488,47515,117285,53111,95757,94506,63765,30084,31987,113109,95299,69497,12731,83239,5387,86623,6165,87410,96381,39897,120339,14071,127188,31736,60274,94763,62572,114451,129493,104581,114092,6706,38052,123788,18910,121635,78261,99482,12126,35790,83579,31236,122394,22232,122873,1311,51165,10803,71198,94938,108615,4763,40381,53068,110334,6572,93930,21264,108792,3731,128982,57268,94299,4090,108270,112418,124135,27704,113003,114755,31070,97121,11787,74173,64725,95563,32294,49698,45430,62481,20938,21329,64655,53816,50720,62846,1652,90618,69578,13455,31520,104923,83298,76096,83723,49418,127203,122322,42535,25781,43290,113825,75133,60881,91881,50541,86615,68992,101494,36018,113777,91279,42778,106208,43808,18742,120610,116676,94188,89254,97076,128249,39806,114802,81781,61626,33908,10872,66356,67802,35309,119879,76354,121927,83550,20910,57784,65509,33168,47221,41551,127501,72515,12769,52495,125591,90737,68875,106874,31658,87956,112558,65264,44611,13045,41326,91520,84905,78440,64568,31957,23483,76917,35533,2674,99933,45407,15624,45824,64733,105720,14326,9418,54949,59067,5721,23599,90891,14368,109722,103729,120981,23449,92626,12263,135,127285,101873,85989,66570,65621,56219,20859,87743,129124,10960,20942,123170,97559,20459,129454,66420,128276,76062,32053,53410,15492,86762,87295,63193,6008,693,38949,12863,68254,120077,4260,56457,72503,129965,75386,13008,41409,75219,102431,16758,54601,48137,22924,68715,131031,104164,17804,32945,26354,79572,118667,611,122275,111010,9867,292,110574,67741,89220,123704,74306,26909,47062,52785,6590,63330,38661,23144,109776,12910,108924,70965,87583,114146,90739,121893,85549,93566,97740,37373,76459,52306,12544,29950,85238,67633,13534,29717,123811,75905,79696,18281,85409,50682,30413,116493,100312,71520,19394,65840,63677,71130,13967,59291,26570,113136,109406,4818,14687,57539,18302,69549,8675,18333,24181,127680,28088,14947,57223,99166,46559,69632,95964,79503,91085,89693,98301,26836,115039,60931,123355,52226,97374,123875,81688,120073,32667,22135,67515,72715,52719,37305,60440,6008,108103,109577,62209,25003,107004,48292,67607,52915,47512,66212,80208,65213,75351,39486,3452,53218,61812,130104,24562,71850,109735,29236,25,92971,18890,59629,128521,83712,21018,71655,49136,5887,120847,54458,7788,40440,26930,38525,71841,3154,65516,44137,115491,57056,98246,31057,67458,122297,106758,9208,76950,6254,88866,105173,12887,103279,120827,100465,79451,98551,115797,123858,2239,22087,27775,10018,121777,119959,32419,58646,100924,78719,100005,95287,87458,312,16928,46475,76520,66434,116046,105164,99533,92807,5239,65199,119002,130445,20415,41046,123092,102348,55762,41341,25635,572,64613,116095,42877,89518,96241,56760,125823,75524,9911,85607,34154,62942,25954,91550,44974,35982,20045,89164,29324,79529,130789,83975,89964,2562,6413,66201,130093,52339,97533,72426,110105,112434,119447,82273,46768,71450,58268,86086,26376,57264,705,3903,4332,109887,50693,8059,94066,26834,79184,7326,82749,116602,80073,60675,45336,78994,101578,31336,103471,89461,117755,105113,92034,101217,80504,118309,109788,16109,59261,43461,117234,71388,95627,81267,79595,127648,91004,105169,101367,96107,2929,113397,32315,107801,112409,94756,11950,130759,9029,56992,20534,127346,38702,118281,40098,104810,85622,62326,53958,52723,89926,95960,2654,28900,32906,25767,36091,26268,73398,119695,38306,86300,67599,78869,88917,12187,107492,77006,40255,88690,8885,107594,100784,129441,24495,10294,19359,68307,18055,114639,117989,86570,97029,91710,85487,10157,113242,124907,87558,129447,129179,44129,78329,37582,38745,70862,112970,47499,15575,99775,91295,37930,52670,127263,58016,25679,54742,115741,19201,107145,83629,31480,119268,84299,122274,52056,94281,79138,113989,21569,88261,124551,118925,69938,82471,108562,92358,27778,37967,8812,78262,113559,87524,114124,70125,77320,89112,55135,55217,51000,45107,116575,109942,55431,90398,129856,80736,41123,2454,130482,71102,13079,79430,11484,107242,39340,35191,5535,64918,16285,64648,61750,33505,9554,127464,39166,46652,6553,60607,92875,61324,82944,112131,69264,57975,43619,31010,119984,96349,68155,62717,31446,45282,23755,82023,35738,83850,109494,119769,17361,46935,96797,101518,126680,57299,128204,77765,426,2445,23191,38733,58149,21100,40044,8993,83515,42195,70464,85554,16755,83728,22620,87853,58763,51961,52007,53340,129935,110655,7670,40029,117037,91742,90637,24555,82102,34209,96576,115545,120961,4397,37493,65806,93203,24207,91249,12447,131047,121269,14624,98497,1818,18123,35295,74964,57559,24053,125926,7463,43483,108374,23123,78776,13532,88142,35334,100764,814,40314,57798,123845,93562,79700,61397,100448,119506,39409,115844,61554,39682,121555,96211,119798,8045,107066,85692,76068,74820,69621,29488,37409,29304,69142,65647,91840,22830,59025,17330,2705,25618,72488,98261,37356,27221,31140,16646,121650,82103,78022,23576,13298,53088,17647,4987,25641,70378,77286,35464,101457,108132,106943,110110,107890,121526,39745,67629,107757,5660,99550,37447,84011,15658,72592,100802,89843,15638,71594,99975,3463,95661,127996,107549,62041,112572,83539,27396,89446,54083,67248,87801,55825,18255,56645,21812,11927,101306,6548,25644,42715,41923,85941,40201,66240,11958,115505,23874,45761,648,49501,1413,77813,98996,120767,119172,12099,89141,27990,109227,12779,71141,110676,99939,100383,129826,66596,122598,15581,19712,75333,74828,103623,89318,72418,106958,117783,80364,105636,82407,37506,61628,17823,121435,26147,66660,61936,79803,24879,48339,128728,130684,86184,11889,46057,108086,130228,29828,114210,21016,93671,98011,28549,71722,44306,67953,65531,26487,130536,56185,30493,43939,124706,82316,49341,68371,32075,122218,63664,76590,88064,23557,40133,83151,23487,26941,114271,98692,70928,20256,34739,39066,115751,5365,94977,127395,27326,108789,93406,77941,77921,108031,115946,130373,17361,105750,84717,72166,698,28941,16600,91081,41847,84254,124048,16590,57094,124377,16131,74619,76788,113191,106608,86445,64867,4301,48222,124752,76785,48425,45624,11592,12447,23703,96757,117499,11391,66623,75472,71610,121423,23974,81018,122741,31165,43738,60859,19694,99974,61832,99836,23017,106529,107219,96674,9342,26932,31801,41919,55051,88178,5227,70141,28412,96052,101715,92736,40146,121955,80691,28658,13988,21756,112424,31077,83099,73178,117210,114768,101748,120055,57799,90825,47034,56031,89826,42168,103081,81796,123880,35901,125036,2092,70720,85485,88495,7843,109495,75883,12596,35954,111588,84297,56426,51013,49561,73634,115873,50746,39718,72547,107252,23111,93895,82629,6007,54900,55066,16847,84667,96017,86491,41583,110407,10667,33748,112145,38667,88546,109378,25645,81772,14822,63628,101303,13565,106433,11162,126963,32365,811,51883,50069,56528,92694,36336,118695,105930,9388,78278,60972,64173,72684,116716,6885,52786,10399,54903,112448,35018,27355,6630,116954,113186,126139,38440,62598,17661,64921,116959,49750,90338,42333,83392,20878,125881,21044,52320,69119,80889,95571,130362,12993,107111,9717,14925,127146,71936,5209,63010,125335,80690,71911,47758,23518,102875,32303,100096,119789,31804,116488,117939,33924,101731,74850,17824,32899,5166,69927,10606,64440,111212,105658,55886,29351,91711,53091,2563,9155,79682,17998,101876,40704,120732,42836,40858,88898,128894,122692,72990,15243,51253,81885,33913,112751,14928,34098,121323,64692,123131,36005,94500,44694,70438,6707,108258,88485,123259,27453,130925,96176,50888,34965,54450,61873,38635,84963,50529,39976,73422,57147,27863,109803,75415,73720,37417,94916,5512,49315,62252,45545,21950,83992,5829,127674,115786,7825,75868,51883,63695,48093,115901,111084,65057,113765,55111,21158,78866,9542,76977,92494,33005,94748,14147,83971,112571,10701,108242,55658,75498,109041,60751,39415,41312,39707,36681,92445,666,4781,13864,20051,11484,117102,123007,22636,118553,157,17221,38954,122516,111010,30028,123274,106203,96047,87234,31154,86315,82145,113946,74244,78545,21815,105004,68412,20636,26620,76769,75284,123893,105951,91193,65889,27827,14449,12306,127005,100668,88121,110949,35920,44288,50447,129134,54862,82936,130942,106362,10818,36896,65612,54205,4206,40089,65015,117758,100129,119,86589,95344,118735,121305,11396,77194,839}
{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1867,1868,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2155,2156,2157,2158,2159,2160,2161,2162,2163,2164,2165,2166,2167,2168,2169,2170,2171,2172,2173,2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2200,2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2223,2224,2225,2226,2227,2228,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2293,2294,2295,2296,2297,2298,2299,2300,2301,2302,2303,2304,2305,2306,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2385,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2436,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2450,2451,2452,2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471,2472,2473,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500}
Returns: 1816
131072
{26708,8246,57903,113516,64596,53466,94215,64374,102263,23,25417,10792,84097,70743,89561,27625,93183,119098,75790,62784,117018,93584,24551,67736,37065,95505,533,15576,111588,128635,40601,91293,90925,24930,127331,129211,6890,10563,118192,17093,49699,116278,53634,110398,54291,130506,77072,43334,84189,33127,127093,11338,65836,123337,116849,53921,54966,104925,55712,103057,8785,99749,32750,103849,34456,31850,73363,41194,72900,128988,123788,24240,114627,46171,26552,34257,73768,2345,27547,21474,100862,88483,38642,72474,54309,29513,6153,114372,118577,61113,17949,123835,47226,113764,65685,87257,46177,59416,27513,42449,8552,20778,57325,96629,46111,38760,28160,64190,47768,118665,9145,4786,42068,111696,29595,44917,64091,64535,101256,2963,86395,81138,13129,85743,28502,23585,123042,7494,55618,124936,70951,110790,86682,126554,118989,63899,28306,123569,60005,58875,83997,64577,30194,94356,110847,5091,67358,24028,112544,97826,103591,109355,82341,106371,2076,105759,43006,68546,72622,70966,48993,58150,69252,24854,100060,119737,126540,69750,54401,108157,113511,35096,116427,37740,33681,68306,32719,47460,46396,106509,114118,68022,25740,70070,82701,113053,65858,24603,44582,56883,4956,31893,24790,14900,64208,68234,91120,96053,91439,51362,119779,1668,12928,126403,86167,112742,55596,81824,10687,47850,130895,127867,36637,74758,63039,33764,60128,93475,68510,102666,113314,22754,80336,105343,113188,106053,43037,62437,65877,91875,41315,38024,54716,77938,77468,50239,24021,62540,22812,89244,9085,104996,81608,88024,90357,109988,104752,124276,29338,69927,7883,44785,95716,129599,15418,78004,72894,59198,2521,5477,2760,28533,6268,89305,45214,53862,112290,49646,34742,130178,108034,85326,118755,88784,57261,85392,32281,84231,64437,67500,125572,10356,6039,23853,64126,81981,44364,24613,391,92758,45893,87875,25287,82629,37938,3859,6956,4463,5101,32715,51915,129322,68934,117161,37498,71998,6939,21575,76119,16647,112011,30686,60471,38913,70283,33271,22430,11984,77762,8554,23375,118937,119288,86066,83212,40522,130279,109563,40597,17,93391,55531,18817,19372,61844,66701,25080,8402,12742,125278,131064,126815,21078,52711,52507,23931,18018,58592,37779,87664,73949,77380,26964,28003,43107,99293,59665,127394,42016,120356,2327,38081,122639,51454,102054,120112,46434,121408,56005,98947,9847,67183,121925,41773,121887,31406,86245,116161,89746,19798,11849,23192,49891,28963,68036,5347,100425,8559,42125,34059,69388,122986,24704,8296,72302,117455,20453,48416,9579,98038,53620,11098,63632,73679,79877,1904,58839,5795,121880,9061,21955,8481,9163,63555,124836,127902,35898,94876,85320,16904,101880,73703,16637,23668,21673,83168,97056,46787,110665,47020,90926,109900,25929,97009,24200,107279,3838,2443,71125,77892,75400,66858,118871,33507,93890,35954,72435,19703,1088,57315,87890,42822,106246,12089,34285,76083,12798,93046,107602,74072,66235,117828,85877,87242,103093,23030,107,128375,16756,16324,77910,105110,93653,126087,128741,61592,68342,6821,85291,37020,72655,47709,1326,63937,87851,27688,48382,354,87029,113513,39590,80298,68737,105498,29902,116834,83415,53418,78430,127629,30378,118721,107006,80810,75760,33828,118971,90649,30669,54113,130479,48292,26062,14980,110333,100233,122392,636,8950,100872,6040,36972,24244,10220,116672,75940,29196,27889,60670,7518,77596,60048,98145,120076,100952,23323,13717,87644,73309,124822,47820,72365,124261,43089,12435,51749,8372,98987,108095,14112,40131,57589,19961,94499,67469,60397,42494,72218,124108,59325,35624,84729,119414,73978,14424,18323,18004,28817,103634,66494,46084,51228,123415,3729,8509,94864,120929,121566,38048,114606,102222,102050,98810,109381,11966,99750,23863,113560,86684,34293,54256,118010,84607,18290,54227,117501,126159,90659,96970,94778,103297,129417,87076,73746,67311,101786,122028,94327,104941,81055,11748,128020,34994,29619,59220,41948,117400,36349,127788,123247,62812,13684,104990,118338,36573,96851,98482,101898,80130,100591,106231,107346,33229,43057,68067,131001,53300,48468,31788,39881,58582,128045,62200,29912,111640,23973,92467,43500,64969,22693,115426,6930,128221,27669,20551,92446,100427,121656,63270,97865,93355,110603,67328,123550,124077,14811,66464,2476,29927,69842,18369,98672,77357,102812,84013,29936,67562,95982,30239,20335,123552,47373,83521,96185,14622,77338,47136,71037,83328,100434,57435,40221,28038,16876,93808,30958,10343,116959,126318,102753,81571,118565,103794,45061,82671,1750,125481,50126,29136,50085,72005,124841,115705,130581,70185,46776,126459,67336,42660,128061,83553,56545,43795,120742,72137,34285,696,26525,54033,5702,52123,80299,35877,6629,29647,42567,72330,130582,26729,68573,96564,51204,83195,5547,36803,125073,61680,9724,50607,20517,61077,64931,36482,1978,83494,34106,10924,34504,126384,79631,79631,114766,21798,70450,21448,95144,54381,16803,10584,110696,8128,102658,90554,44777,105787,56015,51575,74183,31972,143,113492,63226,51965,45024,79781,74179,88833,91630,104164,96540,90135,83252,107922,129254,52809,15103,9731,50825,79464,109742,13091,15405,111832,93983,118215,127058,115240,75066,130207,78320,15047,85266,87393,50133,117162,81295,33852,50294,2091,8463,29989,41449,72721,37894,74011,113713,25330,63727,45038,125606,119011,118184,40355,97175,69297,88205,123134,30689,72328,56922,110418,63158,78933,80965,26671,8258,13746,80950,94694,73823,7103,82854,89760,48401,32682,6153,102392,100097,326,89664,114112,109726,15750,13566,17152,23339,119074,54434,123584,84826,7756,96618,54456,104888,70333,67454,88176,89492,498,53957,117744,103323,118255,48884,86407,123867,3923,100044,28360,101726,46114,25604,48461,21524,107266,101316,115789,110657,22361,130606,90286,110885,8456,66028,114564,1797,47398,20272,122298,31580,13197,92184,114136,49243,64387,59126,70537,127855,32870,107880,759,28930,97686,100781,114822,43563,89995,33338,23568,102275,77401,115195,119077,54986,105591,109105,38010,58272,89902,129384,83198,93682,52331,119155,124360,74595,122971,127206,70740,95063,17312,71426,68927,30679,110956,62340,65535,98315,13152,81483,78009,74604,69500,40271,112068,128886,64252,121297,15595,66558,11112,102478,78605,58605,79292,65798,124697,10888,20972,127411,118803,64511,102312,109383,64553,82557,118692,2351,56678,111966,125762,84493,75562,66252,88820,121960,15844,66165,123423,48176,121145,25222,19936,73891,59158,102825,76407,78955,97491,117554,96707,89228,45554,73016,60297,11505,40588,709,57074,37931,26122,48848,101115,573,79154,1861,70215,88320,92449,115130,64784,85756,45906,103955,105109,104515,64806,126402,8664,107304,3117,39132,4097,343,95897,50356,14646,45124,87567,12848,18243,24148,21848,109711,128987,99528,78862,41930,21204,112844,43475,98392,18213,127150,45363,116849,107520,107687,110763,33177,80355,44331,46860,23443,71136,35637,3761,9350,16391,90508,51623,51318,11321,86109,38747,45260,74553,8000,78570,47905,20559,76794,1937,78083,120408,28424,83815,77023,87439,69983,106221,43728,106977,35150,61059,75383,69679,32516,65888,6567,46908,119714,71701,127487,18351,4181,19261,75323,111858,15717,84322,128612,118594,43956,115120,5269,75214,38297,60298,128655,69157,42648,67991,123595,99555,29654,99669,60986,115157,47576,20170,4719,53370,52841,100973,83557,82995,73765,17863,5779,79336,55201,125439,39806,8080,112798,29124,57480,57423,80953,67268,118565,80542,34711,104752,99635,95296,23793,17008,106400,26190,28549,53907,29978,16975,40272,116365,32502,38795,31762,5087,82188,47752,24968,46263,58285,38639,39254,110112,91513,76490,120202,26700,118071,94284,69949,40862,71281,21012,71481,127861,112130,27693,43284,9820,99911,53933,122316,98724,44337,56630,112952,97546,41184,3391,14424,117106,53761,35694,71924,76885,46504,28374,32121,14312,60110,1910,14471,121510,68145,113603,67121,65329,86472,44956,17229,66630,53111,24941,52706,45744,127306,45285,42001,34285,29646,88327,37242,105092,35294,118259,116109,25521,117624,42288,34750,92269,64487,13786,92427,46698,2531,62584,85191,30752,118510,79066,27951,10607,66958,94927,72349,17660,110756,2306,24304,127689,114838,87004,59649,81712,75128,107703,110254,44996,45037,73787,101980,43581,9454,43310,123767,4077,47927,20388,97237,110315,121733,90815,108150,112757,28497,14842,11926,84642,85078,4397,65667,18945,89466,125250,61485,83496,3161,17870,41951,127706,8494,54911,65566,56777,53573,41373,105497,30606,1698,72573,114846,17645,3627,48440,81432,72691,117737,9083,110,44811,87980,99518,111186,87698,95935,91332,130020,67595,51673,53663,127779,112765,112902,77102,12061,1554,10686,101449,39252,62349,122330,2946,103247,48812,130198,8135,86212,92420,112992,122820,24913,92525,85665,100674,85824,10907,103726,7282,62267,31209,91046,118122,108408,55287,37727,82591,57145,47909,68384,73163,53801,17030,33368,8950,58753,104031,119308,96264,83814,16832,39718,126384,52087,77646,117859,67835,98825,106968,74895,39781,48623,32703,77888,7618,18261,104145,29898,112845,21663,7327,97442,126129,36019,40436,19415,8037,118967,52841,26084,42,54689,79806,65672,107776,45217,108290,82389,36197,25542,91173,31281,19515,78567,114425,11640,33046,70445,19279,94455,65501,57925,17452,42606,35841,81062,130227,126676,25376,50397,990,119307,63861,96342,110228,35643,49369,18586,6700,76810,39344,39529,92153,23393,41879,34487,127216,55027,100902,50156,32505,4410,8345,129133,79877,84003,75190,57810,54650,82706,90046,79564,65791,35198,59078,29728,81495,87506,92746,122810,108605,117448,34115,128831,128238,1010,51876,80411,111981,31912,6795,51578,37136,129802,1778,45858,23923,44879,103748,124577,90464,35345,32926,52933,53181,61133,83730,86993,38426,121414,49862,107872,129268,22280,120380,38254,9786,109751,117142,34939,58664,6496,23862,67897,121111,71294,85119,59579,27469,11764,531,97943,89692,13720,103780,71414,85044,92827,53219,59131,56940,88176,126633,129657,28384,113014,7151,30841,60721,102920,78370,87657,91206,108855,82155,7301,84303,79059,33532,47191,121975,69895,129539,34003,20929,77359,48253,109046,79667,66077,10201,49253,105439,48269,106417,16378,121308,114927,84327,109243,37831,96829,18953,106530,29915,27,29383,3893,37174,14054,65232,39011,123494,71408,3049,55952,19139,104863,52632,57671,51381,28058,74029,78997,70016,1468,8072,9572,43412,55555,36837,56300,48910,48178,112014,26636,35178,73806,55485,106010,114699,46007,8579,124180,120732,91655,123411,83359,74993,8567,17456,66517,49764,110318,29741,120904,74588,11390,121402,96066,106498,16502,112992,32669,61878,50629,107006,9529,104292,69859,101398,128384,91976,73449,74824,126698,78378,792,56514,118514,19132,113028,43522,128118,535,10244,129469,32504,47359,100663,26813,28073,66541,49084,66312,27577,102029,8791,28714,111077,125353,78912,87026,61358,81192,94017,90742,100656,128558,116707,76977,41231,63473,124505,33172,90220,103511,78172,91609,47449,106481,47791,7019,31416,21356,122750,96192,128774,88834,331,122602,113142,94983,7838,40903,119651,81701,83240,74762,71802,108631,55705,93583,91802,64574,99275,110770,93667,83672,77959,98833,119769,60988,3213,1158,104731,30309,106261,117412,38821,98720,15494,46495,43390,106682,126086,482,37469,87157,37159,59435,74025,49250,106332,49283,75987,130478,2928,27373,125553,47871,77482,124942,87327,124134,89565,33461,6791,28937,43791,110981,65939,5265,122609,61101,72504,109806,72023,76263,100303,94352,47722,77730,87526,39832,14531,91818,44560,80681,88865,39967,129431,63581,61179,80911,130192,86644,34702,19334,63034,38493,70571,114540,50467,69663,10998,25089,50955,94525,120257,24399,112364,13736,17730,51041,9767,126803,29782,121751,88133,118521,129915,119527,17216,32564,99652,124777,82121,95594,17136,128496,38782,15024,99163,114455,28038,122160,8451,126861,127110,47406,122438,31723,100701,5938,63904,103169,52394,113531,17937,28628,33664,94532,124508,109354,107074,121587,27744,86790,85537,24266,102453,1228,11304,124449,62787,101756,8008,86987,34310,76233,87396,70841,53690,91745,3528,64607,35224,120641,122361,48390,48609,90977,91240,113294,118116,47254,21213,46264,72893,106986,99629,54421,105716,94558,94999,1821,60345,29767,46797,15764,27122,32822,39948,10946,67526,68783,46669,25246,112610,1156,22249,90233,97830,98359,91840,124476,57464,127260,106812,91600,74460,125869,96567,111691,10916,46540,68277,9442,9928,66648,91861,22605,11836,125401,82445,35741,59236,57000,104197,31,130645,65880,76567,13416,45619,79041,68580,70927,70716,38774,6132,68149,46545,63229,28361,120168,29983,87975,81780,37369,121514,94282,120570,120921,68699,4032,2722,66444,48479,116855,9351,58958,111727,62702,86893,56308,99533,11876,84301,69545,125082,42403,11908,4881,118208,29729,88613,27625,39204,127588,88660,40635,91727,26348,49714,92982,72776,128892,60720,27968,70358,44317,29281,74838,46540,37278,23711,98636,71338,95227,91917,100616,110396,112491,96217,88379,113251,46965,89542,125641,96977,49630,94046,84945,35286,28098,70986,47620,121600,77224,99270,1113,99260,90353,61853,125346,100527,57193,95659,51250,128247,86,89679,123145,86543,29913,20677,110523,80259,62442,51428,91777,76840,44248,44068,31919,7444,113546,101741,93183,78081,28771,129438,14307,5460,9248,44864,10330,66682,99954,65114,16496,4046,122045,47066,91882,39364,31937,3720,128580,68990,128395,38385,30601,119694,53115,9797,43547,83470,37557,54944,43266,63693,55765,31133,130267,68789,105776,4808,112614,30770,104840,38334,88164,78015,113518,125585,7109,62541,53053,109901,109500,70596,89079,26904,105687,70218,34262,10729,70823,77693,7150,10816,72712,66918,101033,72914,41131,83270,86907,7342,63337,20737,57500,108725,53111,127308,70172,14831,128274,47966,47149,65191,178,121687,87267,69313,73312,125701,128607,2116,30517,81739,114836,28039,95656,108755,119956,22775,7086,67397,43442,9447,61514,82097,107335,32871,43171,78184,46196,5258,40745,64239,80311,22549,92648,47947,54941,96779,28567,75851,72818,26129,14710,118037,66876,118793,93850,47773,124111,126702,123818,89662,22621,6497,129193,123951,62281,118984,40174,3578,126615,127636,114625,112570,63177,49536,111309,26952,23175,17236,4589,17163,86739,2587,8807,88236,123957,125492,84531,73294,126620,22856,15957,126867,26715,81028,54761,59915,96009,50964,69103,22364,8092,111704,112750,46524,40344,41916,36862,4103,71579,108209,128851,51477,89642,76721,35542,16529,108544,23504,121063,51701,120256,47805,5077,86262,44384,91060,24360,112887,46098,104531,30793,100312,54290,32956,59683,48818,119324,63240,45511,58836,48362,626,25784,17310,128904,82227,69599,63610,17880,125570,64199,85154,88330,85168,82236,122604,114807,46543,106436,104008,55704,36823,91696,14893,24702,74688,94897,92319,39063,61836,87715,17167,109593,54691,87177,40379,55011,85638,116074,49101,14381,8262,41478,54502,48334,19888,92940,70478,31363,125358,31194,85110,68341,105916,57828,8204,64475,60672,96586,89159,81936,13788,23993,14505,111590,16010,22834,68325,15768,45982,59570,55333,55589,92660,21874,112472,128358,94197,85941,89029,126652,66722,51397,86425,10793,25963,92214,30871,23068,69169,124667,72623,52437,98677,55651,42660,84644,63781,65436,93559,65770,31477,70332,15311,81182,112065,78585,29967,20914,116706,39446,28752,124208,39162,927,28142,8794,52244,23300,67300,116393,31138,110129,18593,123641,121663,8613,53911,84157,56753,111025,15661,70787,75796,125663,119879,101676,102840,29224,16933,42396,14980,13309,10685,120133,99452,90047,57940,111189,1843,127931,100474,48864,16574,101433,92967,12505,16910,91829,97836,74547,122657,71895,60841,38132,67084,88382,78017,57752,117313,26281,3126,128144,27669,71844,120878,24631,77549,29500,3789,46863,11024,112086,109526,3223,29323,19388,14353,22932,121630,115572,97693,108059,100775,118,54509,86579,62968,80204,113824,105572,100511,710,226,39939,11893,108342,6552,84888,18567}
{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1867,1868,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2155,2156,2157,2158,2159,2160,2161,2162,2163,2164,2165,2166,2167,2168,2169,2170,2171,2172,2173,2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2200,2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2223,2224,2225,2226,2227,2228,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2293,2294,2295,2296,2297,2298,2299,2300,2301,2302,2303,2304,2305,2306,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2385,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2436,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2450,2451,2452,2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471,2472,2473,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500}
Returns: 1810
131072
{179,2,1,519,12825,1067,145,2336,160,105,7705,113264,6726,85084,6430,9050,1,33,1917,1,103328,10774,29,130,316,1,25174,96,39,1,21929,1816,17867,4,2982,2536,2,117,82,47216,16925,942,163,185,18,2031,19512,1275,40,20067,7387,8311,2,25466,99463,57191,88,33916,2014,4,31,15577,5,93,508,5488,12,2033,3,2351,5657,94756,5,23289,23,243,27,1,125245,2585,13920,132,1,21,2,7,3,74527,11,70,1247,406,1,1517,10878,139,12626,5345,35,1,54,357,4,3940,119,5595,105,1773,24,1473,59460,25,92,301,21,47,11313,18474,3,28117,5,118,6,74960,12987,57,25146,593,130743,2724,1275,152,4,58559,508,2377,18631,28,385,6,59,41,926,41,26603,867,37,37674,602,2,26007,78824,691,20,41243,83,1007,82867,46,13,1006,45,1,181,120,11,3201,33,15,112,101,323,45,1495,10203,20,2677,76,8195,145,802,62,1818,11,2,61,9332,270,124,67,105,17,133,85,8,1034,1054,182,4366,144,649,59,6619,10,87870,2,20,127,4740,2,6,955,631,142,79,151,2926,255,298,12,72,105,2,986,20,151,3,2468,15552,417,1,43674,6005,552,10,2,268,56438,9630,265,926,73909,35,8,146,1,9,574,35,7,6,606,3611,14,1,1052,940,9,17,25,66,7,71,1943,18410,843,1633,246,16,4,1981,26,31310,32,27760,48,212,503,9,10,184,155,32,136,8,31247,2090,57,930,108082,5776,2153,27,161,109,6972,33,530,2712,112321,15602,334,74,15755,70298,116,26,35491,506,1,96,1469,7,698,38548,1,6533,1,28,45,205,199,16440,3667,160,10,5,1,1392,394,675,23,14,3,1527,545,5411,114969,11409,4,4709,149,2,1652,49,73,43519,11,53,6,84290,32,54237,471,1471,27,811,6,113598,4488,4,91,3,4,89,2,222,13713,60428,8282,28402,2488,3,10,12,1,1,891,32637,78,1,5655,4,228,1,2336,2,13470,18565,34286,5954,47,3,31733,3,77525,35284,329,5989,7207,174,33,9204,1561,10119,53479,60,11,55,290,42455,29,340,47166,6295,22286,7,36,16,121429,142,16,2,130391,7,19103,4841,22,1,319,20087,14,63920,3,161,2,26,87,269,29963,19,22877,6953,174,134,27,1060,88579,41,1680,3185,67646,410,111752,8,27075,7528,6803,153,1408,87456,21048,1394,3,25131,112282,541,7594,128360,11592,96,19,41238,3,40,292,863,67853,31933,3294,1370,316,37,176,228,3561,991,11175,1,681,91240,3724,50,990,870,13875,367,2387,40600,32803,3,59,7,56,1,3872,23,110889,25084,18926,1,115,4,2136,21,329,16,20510,60,45,2,2544,3029,4118,36881,72553,64,1,189,864,2,172,463,49741,63103,600,9001,17904,124939,144,2680,32,22434,133,27065,25,10,5,3,12,148,42333,76945,22,1,73550,837,928,118,26423,11,1,11,656,45,3,39373,220,193,34,6481,118,501,31458,2744,990,2,1699,8032,565,482,481,39,47,1216,16818,107,4979,4070,84939,70546,47132,5,347,3,8,13,192,778,121202,76264,4117,1,8,77339,155,3,14,9191,2,39,8,143,31,57305,188,366,50127,5,120,542,4,7,78748,1229,24,2854,1,116,106950,33,3301,6,20174,165,74,1118,97,15483,17,300,23,40894,493,529,112611,8296,4,13975,14,47426,21819,71239,847,2934,2093,44,22,164,10251,1063,78759,1,31,1068,68,19,61631,992,83,534,595,41,2270,413,9389,4,96,20,236,4206,23286,3,86526,304,295,10,681,2,4,169,125,62,21137,128,1337,273,3085,68164,247,7,119024,194,2595,12,9,553,49001,89221,15,155,16,105727,18269,9128,1373,909,5,500,134,2022,1366,62,88355,2070,1296,15651,847,33406,7,110,1595,1274,38211,7973,3552,400,37,407,1,154,2,10450,1433,27139,63780,889,3857,1,2999,5352,3043,18932,5,16709,224,2438,9,4,850,15,400,2050,41353,14,3,451,86,2365,4,2,19558,121187,205,191,4,5,4317,4,666,28949,50367,995,22,1,2533,2,1,20382,33,34,1,112298,126,8819,1262,25427,1641,2660,691,42,116815,30,465,46517,12,521,14981,202,6052,544,460,5,2489,35,917,3228,10925,12160,125,13,67,500,54,1926,320,2,3,193,6,119,9265,1019,2,76137,6838,5,11,12653,12696,60126,11,6,24035,49,2,209,11407,172,2,7,576,85284,15140,89,4538,51876,171,430,36,36758,20,5663,11,734,341,360,125966,400,3,628,35450,1,2599,3573,15118,15717,230,8,70,2,3931,48,666,10,1648,100,7712,19,160,56,121,10,1434,33,10966,2,134,35744,2,9,685,4905,846,855,2,201,1,1082,1,2095,11481,98759,14,33421,52253,1,1,10397,60994,282,12634,1,31898,23400,2079,211,1244,14493,1160,27756,1,70,1123,50,15,6,5,36313,4,23,51,6304,2687,28924,8614,16438,39749,88665,169,400,130,17484,60681,524,4168,131,27,1228,635,207,3,179,62728,4,15,2,1302,4136,4939,167,769,47,246,1,50181,1459,38,1272,8,27,49998,307,6,4,175,313,30079,131,1,7519,11,42,13,1250,863,6438,54,16,284,40,6640,337,10308,1759,59685,38566,48,134,39,445,21641,1,315,4,25,23,670,3,3,258,66,75,1,3,11175,51,2674,1,11682,13141,2059,57,9,9109,680,6,405,4,50,10,691,25,494,45418,83167,3,711,52547,13744,1,30038,2439,6,112,2610,36173,936,13818,19943,85320,23390,30089,4,8525,86,14262,965,100691,213,299,1,31,17,35707,17905,13765,64412,83,71,390,67457,67,1119,5,1925,2520,3757,248,1,37454,1373,22957,9783,30,1806,7384,353,9167,103,607,75461,3801,75,37,61,8348,1,5,2,80,2519,113,1,40,6,1,107,89,218,15808,61,29718,5516,23,5134,433,17,433,127,359,153,6,12679,3306,27422,36,12,2,101970,9240,572,1410,114,135,1,4747,2510,241,2861,1,11,55342,272,169,3976,1272,25205,11018,100,92,3018,11194,132,4760,68,105409,8,9,115,36,30,1,21242,134,1,380,8,103966,84,4,108379,54,613,10243,14426,38332,1281,6979,7175,377,2,7,22473,85593,114078,6000,5595,170,13,73,10584,13,8580,4,10928,41630,286,5176,6,22,1,3000,37410,9763,1,3170,16000,3183,5,1,1,19735,19,6494,120343,1779,616,817,14,8,132,2036,43447,29551,2,417,5586,28,117958,251,5,42052,6,9233,3,90647,1,6589,1,2,52198,22,3,2408,2966,31377,307,8802,72,45655,1,14064,11,115,790,127316,3246,22828,3,74,3639,47230,17,2,4,3,10705,971,1,3434,12,7,1,274,1496,2102,5902,52,1,101452,86780,685,5,23097,20320,85266,3090,1427,1,1,6,35,2,6455,3,3470,19630,13940,3,137,25964,28581,73315,4,30812,38,334,3462,4062,13,1,1,5480,89,1474,203,109,24,87,38074,31651,442,84390,1480,16448,4,63291,1590,2,2,1,4136,73,636,24,2325,3,2,5849,447,11,619,1,7810,8090,1301,75265,45,1,11459,57,18,8,10397,3209,267,50322,36944,515,2,1,1,859,3882,85,145,2274,4246,2,86901,28,1038,46598,3,94,42632,1,29,12052,84187,464,2312,140,3366,14941,24,2,7,88667,2,9900,18,1,13586,9423,344,14648,127,24,401,27,104,4,16,396,669,2442,1129,1118,1,42642,2,1,2,212,206,20858,65,9,42260,9880,347,36,32,94,1,1024,3,2,2892,155,7812,10,9265,4073,1,36835,4742,866,14237,337,3,41,44,2,97212,117,18276,62956,3658,355,14041,12,46258,66,266,41654,63,534,8897,3150,40894,39,4,71,118,383,332,1925,16,2868,8,53,290,13523,9,41362,56515,2945,35,1,9914,1,9,16,2,107766,651,4,33,13622,906,10,16053,74120,113288,1530,2473,95543,21148,4578,76,4,1,707,585,886,28,73117,28,5774,26036,43,5947,29008,1,30,17,197,308,10,248,1171,15,70,1,205,76,5203,184,1703,27,130,2,3293,3557,6301,4053,9,3922,1085,945,63079,2209,33,105,2,23017,19846,69631,33176,65,14044,28116,2175,7,205,28453,220,14,3,19214,218,31,985,176,2,1,20,236,8941,10413,10,10,2071,13479,45,1116,340,430,14,38719,10,375,223,569,2,27564,112050,105353,33355,40285,65448,2,431,39,2,3,301,11,3,1503,208,1,102,19,876,700,15,6654,3,3926,7332,13,21,101077,55261,138,213,132,967,746,33666,23737,189,3640,18840,1202,340,26,26,16875,1,10831,1,65,861,9033,83,1040,20,1881,463,43,1,52561,24,9,1,281,2,61,3,26,2,2313,163,1,622,113,1,4496,6,3,33610,5,1,171,3212,2,367,2383,17,373,5464,28,177,1374,224,19312,860,2,1499,5435,3,23,1,11,3,5799,19,36,33506,3,74,340,30,99,3048,454,16,172,33,174,1,40,3,494,12,225,104368,2,2383,1898,22735,213,72,144,76344,14,5,126434,2328,40828,228,2185,19,208,148,2,680,40,965,117045,67,1518,6,67,2712,22,28,125,2,44328,3,136,9704,21005,44060,42527,4284,99346,56010,212,239,2481,32,49123,1,310,8,1,7,11,144,31641,3,30,11735,1,889,418,4524,2274,300,50510,14,4778,60424,232,2,63464,1,19,8,8270,297,2,43718,40969,63081,195,617,2,99493,3926,1032,2441,2612,406,38187,63246,33419,20167,26,61,3,4,13267,15,67395,9,73238,17812,47127,1363,4273,21,1,2,1,108,21,2,6,7,301,5,2,85292,72458,10,1860,4,715,104,27,813,48014,9,51,2329,59,748,102880,19,440,22774,302,35204,407,821,2,879,5,11864,15,378,8546,2041,18,88,129515,12,3,4404,4874,5,2268,542,3,12867,420,842,2557,43,36016,7728,81565,6206,57651,90,99,234,12300,16033,15,7505,1984,2,4,32,281,1725,1149,5517,11,2748,6,158,26,2,613,103,103785,712,4811,21,17221,1022,1736,1,282,4439,16,4177,64,18556,5978,4,31,70,1,1294,13192,89765,3,19982,20296,36282,2,2666,772,54,74,1,36,868,9,31,6869,2504,2242,760,82,7895,5,4685,103,81748,5369,2156,5038,226,80,14,1,14796,1131,108,69,289,4,146,33,8958,65429,558,14,917,212,10119,2,36824,1100,113658,5014,21,49,1,1059,10737,2461,131,120053,8,7251,29045,26001,3241,4,5,11,54,904,1693,4347,42,1,1,5,109,1555,3,846,3068,191,21,11605,96537,2,2,46,113279,7,47592,9338,1929,66,581,2829,49,145,1,25696,77717,75777,4,16558,37259,4,357,24752,22958,34210,329,442,5025,23189,6476,864,4,10438,452,2158,115,3,58,5854,78779,10294,77563,1,5,2663,34622,1,275,2949,141,1,3,16,4497,603,4,2,2,2,1,931,124,779,4,127,342,339,98,13200,5,5,25,26,23,22029,12453,1866,11,128179,1,4,2704,37433,11,4427,213,1,89,160,27,83633,7,16,44,19948,154,2,24,4,124,2122,8372,4194,1,7,1,1235,9,1,38,200,9,29811,113150,36,43,113,38299,9,2222,10139,31,42,27992,20,82,56,9338,49236,6,18808,27470,19863,8761,7381,50,568,30,36963,615,1,2305,19,105283,10,54564,6273,46734,3,26,26834,72989,6942,108671,29483,5843,3,22,176,1549,30,2169,72451,11,160,2,532,58929,11,16,8,22361,42,300,4358,6013,18335,19,36074,321,10,17851,2239,1693,79,63156,52,33,11457,5157,4822,14229,2,10940,106006,17,1528,355,21793,129235,35863,4908,16249,359,31770,2092,86847,466,102395,73619,245,909,1148,66428,24,1,41999,10498,1,29,508,1,1,392,62,15772,4,8490,31,1190,58995,284,2213,27,60,10,1684,5953,3061,2144,672,374,36,60627,21573,873,122498,50,38229,9878,15294,7,8172,1871,32080,94,18,2,51429,80,10337,2872,683,852,1279,53,87168,3,30688,143,94684,448,3539,88,3121,1,996,61328,142,3332,373,1549,10,47762,90,52,9894,2,3,4,28,656,67373,2,88,268,20801,1937,54,28,9,2,887,1994,454,15779,47863,3200,9,106,191,1016,1,565,7126,1,7,37,21,13766,14051,3,2010,1,113,4779,1123,85,1750,94882,1352,21,482,899,27,120924,4,18267,7,9,3098,2374,387,305,29031,1111,7373,26765,856,3850,13139,135,325,272,181,109,3,72586,7910,4603,27086,2,2745,1,487,493,1219,485,26385,241,1044,94,39273,8,2,2733,52,30,2,2,1335,55,9,212,50,8268,14966,28347,5,434,59682,2515,6261,52503,2869,5,7,316,4509,1,12524,41,744,6,36768,19770,73,101,10,74,81,181,6,4193,1,2653,6358,14232,911,203,4554,37538,1,33685,4587,1,15184,5,1035,2373,1428,2,447,32,66,11,1232,21631,102,13,7,35356,90,57196,97,7,976,2726,4897,3,128,17,216,17739,137,466,3313,66,60,11,8,4184,838,988,3,1867,64630,61179,8283,56757,5,3367,4262,863,2616,44038,396,306,9510}
{1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,33,34,35,36,37,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,87,88,89,90,91,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,143,145,146,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,335,336,337,338,340,341,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,395,396,397,398,399,400,401,402,403,404,405,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,491,492,493,494,495,496,497,498,499,500,501,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,521,522,523,524,525,526,527,528,529,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,594,595,596,597,598,599,600,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,687,688,689,690,691,692,693,694,696,697,698,699,700,701,702,703,704,706,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1048,1049,1050,1051,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1128,1129,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1146,1147,1148,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1175,1176,1177,1178,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1220,1221,1222,1223,1224,1225,1227,1228,1229,1230,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1546,1547,1548,1549,1550,1551,1552,1553,1554,1556,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1589,1590,1591,1592,1593,1594,1595,1596,1597,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1663,1664,1665,1666,1667,1668,1669,1670,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1771,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1784,1785,1786,1787,1788,1789,1790,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1866,1868,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1961,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2023,2024,2025,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2111,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2155,2156,2157,2158,2159,2160,2161,2162,2163,2164,2165,2166,2167,2168,2169,2170,2171,2172,2173,2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2197,2198,2199,2200,2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2223,2225,2226,2227,2228,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2293,2294,2295,2296,2297,2298,2299,2300,2301,2302,2303,2304,2305,2306,2307,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2385,2386,2387,2388,2389,2390,2391,2392,2394,2395,2396,2397,2398,2399,2401,2402,2403,2404,2405,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2430,2431,2432,2433,2434,2435,2436,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2450,2451,2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471,2472,2473,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500,2501,2502,2503,2504,2505,2506,2507,2508,2509,2510,2511,2512,2513,2514,2515,2516,2517,2518,2519,2520,2521,2522,2523,2524,2525,2526,2527,2528,2529,2530,2531,2532,2533,2534,2535,2536,2537,2538,2539,2540,2541,2542,2543,2544,2545,2546,2547,2548,2549,2550,2551,2552,2553,2554,2555,2556,2557,2558,2559,2560,2561,2562,2563,2564,2565,2566,2567,2568,2569,2570,2571,2572,2573,2574,2575,2576,2577,2578,2579,2580,2581,2582,2583,2584,2585,2586,2587,2588,2589,2590,2591,2592,2593,2594,2595,2596,2597,2598,2599,2600}
Returns: 1725
131072
{30401,321,190,49,1,109664,4,19068,202,197,1,22760,1,75774,32772,9175,1,77,7,1,5742,2,5867,3,5,3,69,248,4147,4935,299,643,3156,84,13645,101,9,2569,4370,203,9420,76,4923,7432,1,3,78,28,964,176,13967,685,122,681,442,75941,30549,10388,16,22277,106,238,3,83,49042,64123,369,1979,1671,2299,32308,18,907,55,1,3,3036,69250,40214,9,41543,141,60,117950,40816,40,1,1854,379,45803,39,3,13517,28459,869,2,370,63,631,59,31,9,38917,1922,43434,99700,5,1421,15,26995,1196,2,1747,198,197,186,22,73,5683,489,898,6,6,94,14821,349,74598,31624,122,1,41,140,2417,3,7054,55,1,1,40233,26314,893,13912,3,1327,32023,64613,46306,1207,28551,16387,7,60141,222,13773,58,1585,26782,34,12629,3631,16970,416,138,6,1370,2396,13,223,65325,6,24298,36223,120,14333,54464,1055,1,2,9,3,31858,43,2299,27022,190,1,44,2252,7113,24218,10,3711,1327,1021,20170,8,447,470,6,33849,2,5882,17927,59407,1574,25287,1,1,16886,1593,6,3,77588,2240,12,126578,5,836,196,1427,2117,19429,93387,3,77145,3100,52,2145,876,3,1,36475,79,7,780,195,121387,118531,2623,1361,2132,16695,3,4,14,4363,4731,47533,2,53,51,1200,93,5721,6,19,51,287,1,5044,116,1,3883,1,141,30,3150,94,1,1924,1385,90,3,7348,125588,6,455,1443,41,1241,858,3828,136,655,92510,17197,6680,26480,3329,14165,177,20,34061,1,567,3,1,1,36977,4416,11,18,73,2211,19006,10640,1,43499,11453,6,3,10,37204,3275,10418,104,89,134,3096,1784,22288,9222,70,9252,19,42650,1507,13929,1,132,159,7,19,2,17415,9,572,58,101,345,33806,150,2,72523,908,940,19,208,958,29,1,1,16,4,381,2556,169,7608,52,2,4,3452,8497,46,53347,86,7,2050,46,49594,6,12,231,7180,9,317,2,5756,3101,2,13961,179,1509,23,10238,37195,1,2091,1924,2233,6,2,9,16485,711,11750,17500,2151,37635,13,19,36,5523,1790,16,23503,60035,33,2939,1833,799,729,3,2,361,8357,4,26,57,279,11,47,3520,42,30539,6,18673,13056,1396,39,17,1111,5,4,12,59701,189,17,33694,232,369,15,22171,18,1,7151,8,668,1,8658,265,41098,3190,16,101263,65262,13,94,247,66822,68,430,8824,4,1977,1152,18,280,571,37385,2521,2065,1,318,126945,88798,30378,117644,6762,4,3,482,12,27931,8,23855,1,159,4782,3867,24677,9,14,18,10,14,478,283,1,2536,7,6,3,61,516,11,50,2538,2947,26695,65,521,3027,1,39572,115260,73308,9,959,151,567,27,35982,7,81,3503,664,3,19,99,157,123827,140,44219,3185,85,10,3,1210,32,79761,1,82325,1112,1,23651,15,16,16,1223,19,20623,1,76425,4,3847,3,14652,262,2011,11122,28,11204,125,12,98788,6,1113,1,3,13581,85747,125,1,40,597,28987,1,252,52716,73,12272,4120,17,305,6,28,574,19,12,26788,1133,2722,12,131,30443,3,11019,395,45869,57,88175,25,52,69115,369,8,8134,28058,7,8245,30150,2,6,25,170,3,3,32425,128,29831,14,5577,1,30,45,4014,12,7,32,3,430,28,122360,111231,24,94926,29,17668,30775,7208,16,19275,54462,3,14,5284,74,21,29,17,28,4,25,28,32396,251,4,122,9,28,4,5,77,15601,12,5,4923,52280,2,7295,1,136,129,20652,1193,3,723,41,10,1,2,2834,33874,103,204,35,5,26,83215,4,17293,805,91402,20,71699,9786,1610,1,31128,1,20719,2596,164,71,8,458,2,705,3919,2,4689,15977,5505,45798,244,8132,98,5753,8536,2,17764,2,1,2,39,356,14,21,13233,123277,790,64,5,4908,10,100,8186,846,175,50,396,64,40127,775,1020,16572,19082,1351,59,734,18,19789,44,4,70,14555,24,286,51886,16,3568,46668,36406,2,1,126652,81,547,3838,38,1,4,2433,1619,14465,10048,274,80,1523,543,703,37089,17,4030,44238,117635,8,36895,11133,11405,95168,170,3192,1987,4,126397,11171,15,12,17,7921,533,21,61,261,487,4566,7,153,11984,11324,362,17826,54,483,10824,174,17779,64632,1,1,3011,32,228,58779,48813,36863,62,223,12619,9924,14712,2,2888,556,15,42714,4,141,49,1335,2,155,19,117,1195,4,17,38762,80197,9856,50,4,76495,7452,6,51808,89,306,13339,1,73841,4887,2,259,9,199,5,27902,539,47528,8464,525,1436,6428,75043,1,54,17709,851,121,28333,73,2,36591,7,151,20,29,70765,1069,7205,78,26,42,66,8,8,18,8,7130,1224,12,4,252,13,66,3,65,24,6917,8,310,382,79242,4,10,1,1,10,30002,64,5,19279,1,237,11858,1055,2007,32,667,1,12,1,357,4955,7,25,13322,3539,229,532,58,8,665,7501,7930,29,22,2,16379,47,2,115378,309,5344,895,19,30371,18870,3249,28094,31,2,11,5121,188,14,11562,9,47,954,9228,29,677,299,2690,17,362,1,66,1196,45,9,62,101017,6879,6,2,3087,830,46724,29341,34,61907,1677,25,4,27040,5798,3,4,28181,8,4,828,14,2,831,35,18,434,3209,10595,12924,10,4,344,435,8,5441,845,16,63,6,3590,63414,3395,2,22,806,79986,35277,59123,75,57,4,130,13571,576,37492,27,412,5113,871,7,2192,386,7350,61,3962,6381,60197,18,37119,888,6204,7200,196,2160,16,1334,229,6912,4162,46,21,452,7338,8,21,129521,3778,1,852,124485,28466,27,5,3,71519,12741,4614,114,198,497,5999,52,14,45353,23,204,17,269,56549,21337,9349,81,23,6,7,11,16,1,13,1985,2,4080,1208,912,149,13,19,2009,19515,113,39165,69448,111848,103,114266,4592,2,40258,24166,395,171,24418,9,8,108,65,30013,1233,459,1,26078,596,11419,17,37701,1272,6732,48384,46393,503,31819,59127,290,18,41294,218,10252,287,16622,23,1420,376,114,471,64,18442,15,9482,1,132,3146,25917,269,2400,22150,14,4,141,92652,95663,52124,512,2,2418,78237,3,3,75,2432,6,722,5,1213,188,36,10,3215,1317,183,11312,1,70164,1,196,18961,130699,47319,91200,57,19,29,1,63,109965,11,409,24024,3,4,501,2,317,23,282,326,11734,1,1559,645,144,655,32657,131,91,7550,1,139,89,23194,9,53225,167,14,34089,45081,749,1,3248,86893,1,8,1113,24,85,5,1,18531,1,1188,34561,201,471,84200,32,43410,1865,115,279,105,222,661,102391,278,754,29323,17,7719,961,100304,79016,1,5,32,125,46201,595,1,6265,1128,367,12349,3839,283,199,15,76576,10974,245,368,2108,34960,106268,117949,1,1,49838,90,260,1054,1223,20752,8,11926,25,416,8,76240,103,4,42531,67709,53,507,34018,1,15,977,1159,367,14749,465,141,278,38,1028,2,85,5,3808,8677,59035,15,7,2,3,208,384,53506,10963,8,97360,74256,26,33424,1,4,1217,18006,3085,10,291,160,1,1779,79545,7,9295,2465,21571,4,704,592,4999,13,542,33,347,46,73,5,1409,68,1255,69381,453,7,1617,65724,26,23971,2114,1230,24,5005,7,172,53,3005,18030,1,3,18,4300,1,4,8340,7,1412,25941,1040,2053,6926,2,22,1,5,2122,5071,90,105924,31678,345,57,192,26127,25365,17,17542,3,1098,91201,64,102,3919,162,3,1199,3,63011,590,181,5269,2993,31,3,90542,1,15025,342,1315,142,278,12403,5692,29187,32,32,4,4460,296,3799,18549,2522,37,31147,15,18,712,12,41,98,2,1,115928,3,55,3,148,91056,89,7695,5174,8,1,53560,10948,73,2,376,779,76,12075,49,16,17,1989,73,1,52873,30,13,178,14,2798,330,1600,3967,9,55,25406,1,3935,40,60,2,374,15051,16146,122936,1964,143,6998,5389,11,50553,1011,4178,15,8,50763,4315,1,22319,7010,50121,2386,135,75,125,15522,241,135,13163,3918,5650,53582,43,257,6,32551,18,20752,46,110222,6033,7509,90,21989,17411,19,57,5149,17723,14,134,76,1137,1547,6,6,2147,1,433,1,21280,10,2,3,2,441,255,3,183,404,168,1240,3217,31433,4,4119,258,2997,90659,1,12,2,1214,2,12,21,1,4,30011,37384,105912,746,4480,110564,64308,2,9125,2,125100,7,380,66950,7893,1166,88,298,20937,41,8,102731,61913,64335,343,90814,1,57,49242,100,5486,17393,70,313,11,12,6,10,4422,2,13987,136,74062,1,106347,674,11,251,987,20,159,42,1,2,12094,335,17,4,5,9735,5036,16,11,6333,24,7625,1,5,695,30827,5,5,43,34457,65027,4160,43,7509,45661,48,3272,12,46,3,1620,1403,63434,22587,222,121,3,811,98,76795,282,88778,75845,6464,660,53,2694,16696,3,17,58,119,2152,9680,86,5,22688,23,1599,505,104368,41,1183,47,114744,2,37,273,70,79,827,113,55388,13,300,1,400,12217,730,3477,2394,550,7,13,12360,736,11,20545,3502,69458,2,765,1377,1761,1,21416,304,1,3,6,90354,91,11,7,8589,2,292,31,118,32547,13580,42,33,34689,96714,38146,43,58822,1,16,33284,252,24013,11,13,8218,63,1588,10009,639,1162,2,856,2328,8,37284,9074,216,6,427,22,82110,102106,43,444,3666,1949,741,14415,22,1969,15567,1,280,1764,130,16434,4637,168,6,11,23205,75,286,124,3165,11,4241,16,36,1101,34455,331,36,46,66505,1058,55534,55884,130,14,1548,4719,61,83,420,17583,1,113686,37,43963,229,333,13,2098,193,1728,11,94334,3,10,2058,58,96,122237,14,6616,4,1249,115,10908,221,14395,11,8492,26,34189,1428,12267,18729,759,59876,6074,7548,113,46727,30,8,33205,44,531,40806,65887,8666,9,174,783,210,122413,42097,6558,64,1,412,37,2,2,89,3,9,22,28670,3598,861,2,270,2707,44,108680,2184,3,8002,91563,768,2683,4793,10,18116,448,10268,4,38514,18865,11,2,180,90,1,125995,3068,2243,4,112537,111545,2,1,52,192,6,137,9181,383,1525,421,25,4040,486,1,2,54977,730,81766,18,17,4,1587,27,2670,48,76882,190,947,6450,2,3673,2177,256,936,403,83,19,105,9967,4,164,1384,355,29307,10946,4687,1144,2,53184,14623,113,2325,33,16154,2,49944,1,2,3880,27,2,13,22,1,153,220,9365,727,591,1247,10,2,12805,17,5,942,72,290,963,35,6856,2181,20502,7568,16009,2,2681,11,1,17882,125,156,75065,60686,5,16,46,5,44,21261,4752,4668,489,2133,2,1,16315,976,315,12,12226,21,4483,38115,237,2862,135,737,113232,2,18,4546,24859,1,648,1,1,126099,1326,359,149,23985,6316,5,2,10309,3990,2726,4,120,5050,5593,48,103,43652,83971,413,34945,31330,54,2626,7,53,516,353,611,1125,2,5753,62,35,29,10558,194,19,3756,2547,8,2069,3120,13319,4,7,5457,3,87,87790,128,572,38,3,4199,321,20669,26064,15633,4257,136,8,86948,577,9235,6907,78634,3,156,14,542,3289,2599,25617,607,4,87,53864,1,7302,14777,210,47,1497,1872,89,4407,94691,26,113,805,17112,1165,29267,17487,134,260,1832,1836,88190,511,37771,31,23,16761,5,116161,770,3158,21452,3,719,5,316,80914,13232,63582,52093,70836,17,2930,1,6,126,447,1,3,14234,60174,16,134,14114,1328,38668,533,13138,24917,14,1075,1938,53699,313,4479,21179,28269,1541,1226,17084,299,2063,1246,5,9701,30650,648,7875,12,265,50028,712,6989,47868,19802,89,4,3692,110,3087,4759,1,1002,4,5,54,79333,361,60861,98327,6865,2,23161,15,7874,1181,1062,55,8771,3665,7766,15,2348,1,2748,34097,3139,19,31209,17,571,25,261,42,67748,102,1207,32,356,8812,225,1322,232,5676,22,81,55147,18,107,1,894,802,33153,6182,26893,1806,46472,13,82989,2422,41364,33310,24,8,57019,145,3816,2,113891,98,1,45,2130,6,1,86,7,63,18921,25,129720,17,144,525,39947,4,43,84,4504,3,9,1405,7983,426,1,4315,408,91,497,1,1,7032,1,615,114827,5569,13164,615,3,11548,337,630,12,15861,2230,2,22314,16158,116,33868,6,34,39644,10,102746,1,54226,1665,78,14,744,22,6,20674,1965,2,2581,117628,172,7609,6963,4948,253,95988,1764,45800,88241,8562,45439,175,4110,649,12,126160,107,8,7016,22154,27719,5,8859,660,275,2522,3991,55849,4,3022,24,966,7,5128,38,18880,176,4,1130,17,3,42,1,17519,32133,72303,2,4716,10059,15529,52924,2,571,5,3981,48,14299,69,1,11485,2,7,4677,6619,376,11192,2,1,103078,2,217,685,9151,12829,37806,219,6949,535,3002,1561,11,93580,10,216,42127,2989,7512,116640,601,6625,2,5338,83,20657,169,9,3,2169,26,25,1396,518,2,30,56911,12,84640,118273,2578,610,649,1,91,129,1296,13303,26954,5214,18,5152,45729,1263,16,6348,1,68880,13024,15,85759,37}
{1,2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,162,163,164,166,167,168,169,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,291,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,344,345,346,347,348,349,350,351,352,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,400,401,402,403,404,405,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,525,526,527,528,529,530,531,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,598,599,600,601,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,663,664,665,666,667,668,669,670,671,672,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,772,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,854,856,857,858,859,860,861,862,863,864,865,866,867,868,869,871,872,873,874,875,876,877,878,879,880,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,992,993,994,995,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1046,1047,1048,1049,1050,1051,1053,1054,1055,1056,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1362,1363,1364,1365,1366,1367,1369,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1482,1483,1484,1485,1486,1487,1488,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1534,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1716,1717,1718,1719,1720,1721,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1758,1759,1760,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1868,1869,1870,1871,1872,1873,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1960,1961,1962,1963,1965,1966,1967,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2047,2048,2049,2050,2051,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2078,2079,2080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2090,2092,2094,2095,2096,2097,2098,2099,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2155,2156,2157,2158,2159,2160,2161,2162,2163,2164,2165,2166,2167,2168,2169,2170,2171,2172,2173,2174,2175,2177,2178,2179,2180,2181,2182,2183,2185,2186,2187,2188,2189,2190,2191,2192,2194,2195,2196,2197,2198,2199,2200,2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2223,2224,2225,2226,2227,2228,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2288,2289,2290,2291,2292,2293,2294,2295,2296,2297,2298,2299,2300,2301,2302,2303,2304,2305,2306,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2385,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2407,2409,2410,2411,2412,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2450,2451,2452,2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2469,2470,2471,2472,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500,2501,2502,2503,2504,2505,2506,2507,2508,2509,2510,2511,2512,2513,2514,2515,2516,2517,2518,2519,2520,2521,2522,2523,2524,2525,2526,2527,2528,2529,2530,2531,2532,2533,2534,2535,2536,2537,2539,2540,2541,2542,2543,2544,2545,2546,2547,2548,2549,2550,2551,2552,2553,2554,2555,2556,2557,2558,2559,2560,2561,2562,2563,2565,2566,2568,2569,2570,2571,2572,2574,2575,2576,2577,2578,2579,2580,2581,2582,2583,2585,2586,2587,2588,2589,2590,2591,2592,2593,2594,2595,2596,2597,2598,2599,2600}
Returns: 1750
131072
{8,245,3,15,720,543,4,15,111649,6,3,10,20472,1,69,143,14,7636,8,5,911,2,339,374,27,1,108,422,18580,7,2979,25,120,38660,1,345,24,12,36,12,1236,14580,729,3,2330,19582,467,1388,4,1539,1835,77033,31238,3155,569,157,3343,7692,22823,126,3,54698,12,1,639,3637,142,4,2,493,2319,381,21,61,915,90947,1178,927,23995,1,1807,662,212,9228,25063,304,493,3910,6,44616,31,1797,70054,38221,4902,9010,121067,1936,3,495,12831,2126,40739,59452,60,15,9,248,995,6,249,194,5390,76237,93637,1316,70023,42204,1,3,82,1672,16,28447,31163,3,3794,25,1,9,5498,1,2,2773,3409,1030,1655,33744,280,282,42660,21301,56,1,14444,6,696,14845,2054,281,2554,30,2,2175,1,27,29,1474,80,11,5,9353,110,1045,8,10877,47,20544,29421,9040,169,282,508,60,66,108595,2375,44,9234,57,7,2692,2359,131,39,1,96,897,78,2,50,418,4025,41,310,522,248,6261,4420,1442,8391,7766,2,14,2753,1,553,64256,1656,1059,15012,14,41,56622,8,1,66158,2,84076,34,39,2682,153,7,3539,1,2494,8300,4904,442,568,43750,2,3941,14199,3647,1177,120,943,130031,4,424,6,51,743,1,28,32,219,1557,399,101,4933,13,37043,3,27892,260,9,3,86708,27,6714,641,128733,33,1,16,3359,79852,1452,232,65,3821,249,49,257,597,100636,15,118803,542,1,103918,43,999,6735,244,2,10391,218,41436,201,967,14,17,51126,9,36496,1,5850,2,12,1652,11,5720,15186,69613,33,21634,463,403,1143,49,13,181,29166,21,156,99647,26184,25,11286,30956,40642,10013,8757,16178,12,35,1748,4351,450,46,2046,32859,741,51,1,190,25784,1,1,23,9652,15,40,3742,78,26,2882,6376,27,8,319,24,1,6998,19,9381,198,225,4194,82,1223,122913,118,1,3633,8323,302,85,2618,6,20,28,22,81,73608,8882,252,53,2790,7,1,4344,3,9,9,15497,3,1,9327,12,357,3055,120,11550,84983,24079,1,358,14958,742,27,4,5684,73,1,19,235,962,7,8,168,6,4409,45,1,14,804,78291,1,40406,1012,72392,6,43,380,37475,10485,1,2,4,31,45,73648,5,1,109657,2010,299,60,1,8902,12,186,1095,675,26,16,43,14,13,24091,366,138,18,4332,2846,9,7,1100,1,2116,392,4,119395,274,1,103,9,2013,7327,127740,7,1,131,566,1,4,123,55,26229,4646,229,39980,4,3,243,127,7268,28,4258,31643,6311,81,11,10,1693,51,62,316,7361,268,1,3058,1,714,138,1,2351,281,6,50626,2,10408,15,24,3,6,1055,62,75,10,774,2446,6831,56,5,41833,1,1,12,696,601,157,5,9308,1,1938,64090,9,398,402,34812,1,2382,95,1,1949,7146,313,55,40,627,15,7735,397,67,4,252,99,75634,15543,26083,3578,9,76942,31,18,375,1,86,3897,46154,402,80,1,659,54096,1947,9,5736,12,434,33869,15,6,613,10869,1328,70102,12099,74018,1309,83,30974,195,89801,7,14,96,523,9,4358,4463,11,1,1593,386,5,6850,1,9012,366,36872,1021,12522,10,1,40187,10,1774,11,688,3416,122,4,178,1593,87486,2246,82,10418,13019,5111,1346,46578,4172,85353,48652,14546,1826,42486,94024,140,3,31899,735,757,12,4,30,373,13,5,2586,192,67627,320,49768,89,204,237,52,779,37,2,19299,48031,35037,37414,1,76,920,4,1348,126113,9,1,1,30,328,378,2808,901,2221,14660,251,83563,15,920,2942,560,547,139,1218,27765,108,129,24627,43748,26446,2859,66719,807,14164,2,1338,7,36,230,2958,17446,66,52,6996,2011,12780,52,26303,34,11,1,6,6,2,1667,516,955,2,35412,5719,526,2,27,53,13932,603,33277,101211,1363,90,91295,1094,3,6,13663,269,12835,191,42,5605,436,180,2,6,83,6760,24,777,45,1796,1,18,1,41,38648,43313,10425,5202,15857,107003,173,514,7,105,5338,325,7,12715,9555,25515,1126,1146,864,6,1,279,249,1148,1541,4705,2585,29,62,27,1454,13052,18,386,1,2519,70,61,47818,1,31,9,25647,642,2,3799,68127,2198,9,538,444,280,39175,1768,8,492,47,29,1677,93,299,206,5,9243,11,4719,3309,32924,112,3700,128,3483,1,86856,39,28363,1,110,987,19791,540,46,34865,24014,2,1,39,22,64578,17357,115,1842,6,107788,76233,4,1442,1819,1391,16,7531,16,1167,11,6499,6,38468,15,128,42149,115,8,48719,34777,101,31750,4685,4,415,417,3428,96,48,3139,7398,20434,1,86,122,42965,1336,28,51077,4193,38566,3,12430,490,1,18182,26,6025,28,9295,13,46231,16397,15,47530,18,97,41,474,86866,5,34461,62444,3,209,41081,44542,130344,129032,35077,1,875,7,1370,25,18,2210,4682,24427,81991,40,27640,31367,11153,15,53999,157,5,15363,5471,74,17,157,103,1353,1971,29676,64,212,8389,120,2,10,248,3928,2,19024,20,11,219,1,123,1,79105,2,9189,51,13835,485,15,447,4160,2593,735,105,163,3,37353,821,113,14,11,15016,14,29731,30203,67,79,42428,22469,3,2,12,12,76734,3,29,87,10,32,2,15165,31335,17,7,4,14178,26468,1255,3,353,2741,52,503,23136,28,3929,2,2,3741,1,542,34,13,23,650,47,931,23095,1,5,59,1,4090,1,8107,55290,530,22,110950,17023,1431,3864,84180,7,103,50,434,297,92,332,1617,2024,4,5,1232,104807,1857,5,873,2,2,60596,5216,15586,1,9,11631,1384,116,1791,946,87803,1172,66994,3829,124508,356,1,38,134,307,1,62,9958,2,257,2325,456,1,139,115,98,7826,7,283,386,18,10,17637,1,184,17142,14,30519,18476,1152,2073,7834,51,22035,35,1181,16,73282,11,114,6,127663,287,26,121281,2671,9645,13745,10515,92770,2784,3936,888,94,331,22849,1488,6854,17310,378,35336,10821,26309,15,14,25121,6506,10065,702,36211,203,4947,6,36562,1,54452,337,4430,118,2632,61705,40654,96,1,206,1375,54633,6315,2157,646,199,847,340,8739,43838,34,1773,3,3,63,1481,545,26,29382,4,2015,143,5034,100890,2335,14373,922,95505,4,78266,3874,108,1556,177,627,5132,2,54,443,7,864,33,1208,2503,19,73260,1051,39,830,2,14034,2014,8,27292,2,5862,8,176,2021,13210,18496,201,178,2,1227,118,24926,262,3505,17,2720,3,35781,14,48,29662,3068,1,7,48260,35447,1,237,209,10,53,68,98,1,86131,58469,39436,47154,147,707,1695,1,113,11901,9,3,78195,3728,31,11,402,56,35,8365,5271,35095,1,1,2389,5,27,13603,30192,67931,1883,7094,36677,7,61531,25472,39725,58,11,2136,1332,1,50,4924,4,26,38848,10,11474,369,7728,143,428,3346,28356,42238,10,9,84263,54,116113,623,26,15181,90,7316,5606,78933,1266,3734,16384,1,231,1,9,3,29,1,37988,77,1,21,64,38627,94809,34095,376,3751,795,33158,8866,351,52,7797,181,6878,53,44926,102,3089,271,102347,104,10262,515,3067,53113,4157,10,6612,77062,53375,5,365,29,15672,17470,2742,6489,4,1,1005,1,3332,1997,31692,3,4580,5575,10,5087,94,80,5,2,12241,2929,67797,5546,10860,69,5869,759,52646,1,1840,35275,336,52,26172,129778,18637,18203,6,75798,1834,36956,73541,26885,22,10,12,38612,11,2,4,16219,116221,207,92767,71,5770,18028,1127,116,2451,15120,69556,38777,172,34692,38861,260,5,326,1272,6697,17,5693,2,42683,60,22337,734,64,18,1013,144,10,9198,5706,60,16115,332,27,3,117773,40,4,6,1,8,31127,2,1391,99090,9631,104124,81139,3186,7,1,27,926,94,2,97976,99663,274,1,254,1468,1597,1778,60,38,28,123,632,13890,1,33,1565,36,16410,2,14325,1,96,555,2,9161,388,66459,137,6545,114,13,315,47066,8256,207,32051,25720,1235,4,1775,4822,33865,253,4,107054,15082,10547,83419,6773,4935,2520,49,46,2881,4,75,819,245,353,24705,840,109566,76320,4,588,21130,17,20,11176,46067,55239,38,8338,92,5958,1,76262,38,8173,22,51,2574,6347,404,7105,3130,38765,124847,14,3249,6,25,5608,586,528,597,279,5407,271,14468,89856,10,5,2237,329,114,2,73,8613,27,3675,84,887,4473,678,10,6,115,3,67,3,61,8822,5026,3,32799,15101,90970,37208,608,2862,11,12818,178,420,889,2577,7,1,120566,29,7,11,471,4652,121064,9,198,317,35,62,2961,4,4,46,5,54,721,4664,1673,8,22,70409,32644,87,1,3,18988,8536,3,1,1667,41,1,7,55,1,2,72,260,16,3,78151,28624,97,75,2,3,361,175,43887,113,25440,4436,52,1238,529,24,90,455,12,835,225,14,1,6557,1,7,51,1016,68,14337,6,8432,1298,1600,1,305,8207,29158,10,619,11336,4970,10376,9961,197,36,7,35460,317,7863,22109,91258,7,1259,281,377,306,1115,21671,2,42,12121,10,16301,24,8241,12,3006,37,609,15046,5,5062,7473,443,63284,50,5,21578,1,7083,4756,2445,1,100346,51,5049,266,6,12,7,3,5105,15,5762,19382,52,19293,8405,19366,301,2629,105588,1,242,13097,1,79809,1053,11410,1166,147,279,11697,10197,47,58763,24250,5421,10525,26898,3199,1170,1844,5,57,108359,11,1,90648,291,4736,1,67505,89,19,45781,83092,989,46711,7565,2,1,1927,96004,3,4143,6,2,31212,30100,5512,17446,1,3587,3024,16,80212,4921,8,2,82349,5,84,2,16,6944,4637,1,1,91295,126,52009,3928,532,36559,17156,17,9225,507,54,114902,782,13,55,3,1,2,117091,86803,15,4,499,1849,956,20725,91,17789,5,284,6,3303,21321,2,1088,112,2,19322,172,6,44336,240,7311,627,4,352,866,432,37,3055,12,122300,370,1,2,201,1,1,660,65081,134,98474,55,33183,221,57,18207,10,18804,7895,10816,361,1020,1053,28420,13517,46476,2,2975,337,582,3305,39,72,3086,41,27,41,17925,1,12934,223,1,1598,5,422,596,50,1426,124183,50,80647,290,122616,2,44617,179,35,7109,1,4,35,4178,23,17,24,9208,15793,54,5108,1,12,107,86934,4,2633,887,45,335,11,236,109,10167,90,1,13,76423,24985,72,261,528,18,28,4877,316,142,12580,16,1068,2,60283,2,24716,83,7,101574,602,17,62,2,10740,1044,37,8584,2098,583,32,845,6024,1516,25839,600,3,158,30,20373,44,3,2,12730,75115,28126,121,43,4215,31,51,236,1867,4669,31,75979,2105,57,1352,642,252,1876,211,246,101869,2489,52828,2302,159,14288,3,3,3738,654,25,201,4,55058,6,4962,1,1,812,1017,24751,28,2,14,92796,519,7154,17257,60202,105829,18213,20290,157,620,98278,19,78772,269,35071,1146,3950,88616,1157,16921,836,1,37,1,1,196,32,4859,13402,9735,20,7,286,2617,1759,6,11,1319,28,25083,619,93948,17847,3843,21,10331,655,719,14310,42,1134,6,13412,9,867,26131,12654,2593,20,3532,381,9183,49,10,6,12,729,1714,442,10,4029,37133,12,2,26328,7,62810,3,1682,10,61280,284,1472,101610,3478,32,227,5,10709,11,43,35,41459,42627,70,42,53992,33,67,8,73392,13,11482,6328,5163,1,198,8411,5634,5317,75,4315,4320,1106,790,1,19322,6934,1761,5,14,2,556,2,1924,211,1399,6673,460,5591,6907,5,737,32,3,3,1,10832,1990,51485,61841,5,1,934,1,3378,35772,175,39,820,1046,226,3,5,213,13,2,9,576,23631,4475,14,103988,4,2747,38445,30,53,8,3,4,1,1,135,899,3,48754,549,19539,24,1079,1718,659,98,23,86818,2929,117309,339,180,109293,38,3790,35392,2947,1,239,9,3062,59,3,75194,84,11,387,92319,74,7,118,8189,77465,2,8418,10,1511,664,4014,567,2657,2,4403,169,2519,345,9144,89140,110256,27,11872,15,1,39859,850,98283,3,3106,5,329,79,44,1,15,16676,93228,104747,3691,9,4514,16,1120,15667,168,7326,32770,30249,7,19,18268,56482,2171,25,40,358,1,108,50,87063,54245,24,6,236,1,5,1905,2,2866,5,4380,1049,40050,48,116079,7022,17,47085,12866,227,88,1847,13,1,13873,1093,1869,1,28093,87571,6140,177,94,172,4,1,7,120183,91,1185,3,25382,28,113735,5535,11,81,31894,9,119717,1420,1,1388,1,5170,14,452,2,12,36771,170,62423,8838,2,72,48,5,5355,71646,493,2979,3,74748,2601,150,654,1,13,4,13,104780,17629,252,118,13,21870,503,42176,60320,1039,124170,16,1,16,126,27473,4,31407,2066,6858,13139,9799,54915,13925,5024,191,30087,20241,3204,144,618,220,1,1,16402,87,2,1875,106,60,6,236,23,105,2316,28,24556,1,45,2554,22186,112753,7164,136,43,220,22377,5,4,278,3973,241,17,16,1653,3,28,1852,239,70,50193,53,2,90319,40,1,3584,284,868,7392,675,641,20,4538,48895,456,4607}
{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,19,20,22,23,24,25,26,27,28,29,30,31,32,33,34,36,37,38,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,61,62,63,64,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,149,150,151,152,153,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,242,243,244,245,246,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,371,372,373,374,375,376,377,379,380,382,383,384,385,386,387,388,389,391,392,393,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,481,482,483,484,485,486,487,488,490,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,633,634,635,636,637,638,639,641,642,643,644,645,646,647,648,649,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,795,796,797,798,799,800,802,803,804,805,806,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,858,859,860,861,862,863,864,865,866,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,928,929,930,931,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,993,994,995,996,998,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1213,1214,1215,1216,1218,1219,1220,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1414,1415,1416,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1477,1478,1479,1480,1481,1482,1483,1484,1485,1487,1488,1489,1490,1491,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1527,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1863,1864,1865,1866,1867,1868,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2020,2021,2022,2023,2024,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2065,2066,2067,2068,2069,2070,2071,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2085,2086,2087,2089,2090,2092,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2155,2156,2157,2158,2160,2161,2162,2163,2164,2165,2166,2167,2168,2169,2170,2171,2173,2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2200,2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2216,2217,2218,2219,2220,2221,2222,2223,2224,2225,2226,2227,2228,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2293,2294,2295,2296,2297,2298,2299,2300,2301,2302,2303,2304,2305,2306,2307,2308,2309,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2357,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2385,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2407,2408,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2436,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2450,2451,2452,2454,2455,2456,2457,2459,2460,2461,2462,2463,2465,2466,2467,2468,2469,2470,2471,2472,2473,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2488,2489,2490,2491,2492,2493,2494,2495,2497,2498,2499,2500,2501,2502,2503,2504,2505,2506,2507,2508,2510,2511,2512,2513,2514,2515,2516,2517,2518,2519,2520,2521,2522,2523,2524,2525,2526,2527,2528,2529,2530,2531,2532,2533,2534,2535,2536,2537,2538,2539,2540,2541,2542,2543,2544,2545,2547,2548,2550,2551,2552,2553,2554,2555,2556,2557,2558,2559,2560,2561,2562,2563,2564,2565,2566,2567,2568,2569,2570,2571,2572,2573,2574,2575,2576,2577,2578,2579,2580,2581,2582,2583,2584,2585,2586,2587,2588,2589,2590,2591,2592,2593,2594,2595,2596,2597,2598,2599,2600}
Returns: 1757
131072
{851,7,4458,5943,1,1309,3020,22867,6306,65097,292,3302,129035,30,6193,124407,1,168,14267,30,2076,62791,52884,1035,2445,33,687,78,122,37,1660,6359,70116,1597,46,7548,8,1,174,62870,341,6645,24,155,27784,189,80476,904,1,2,106265,99,204,10863,125,1,112406,1,1,1618,19137,26606,1,7,100,8,13393,1097,3,302,7992,8,137,2,41973,1,85802,300,776,2251,13926,1594,16194,13,33,5918,2247,1,99,1344,84674,1621,119,6377,67,459,5602,1,59,107744,9,1388,8,11608,5,25,6,2,25,587,2109,349,101,14,66,243,1,2,9227,621,27377,33365,7041,934,6500,21302,21,57896,1,1,189,24,20249,107,17859,12,820,7,205,1,28,304,21,5,2,1696,25090,8455,43327,45288,1,58880,55547,1049,83487,1,656,1322,940,24,12,140,3,64471,4094,14819,15925,1,3012,3054,38,126634,146,50,2,4,3175,521,3514,31588,761,38,7409,42,1,298,501,6821,2863,1,854,422,701,5684,47,72,1,3366,18343,3,1065,366,7,18944,12386,44897,44,415,22661,3,77,2,24786,24554,3627,246,30,4374,4,2,257,1,249,47,64650,128632,4976,21012,196,9484,103256,4,28709,4,68,49,6,7574,58733,1,4080,19626,33095,4956,17,49,86,16196,73,189,17476,14,84,11935,23,91597,95846,8,606,30326,1295,4,46169,5,2,5,105,4,2,36,103297,9088,4491,1300,28,42,23,3332,42445,13427,3326,7756,80592,3,7956,14809,10367,84,413,35621,23052,2455,1254,2169,7,755,2020,2002,249,4,461,23,56,1599,13355,102979,396,355,74,30,47577,82,31182,8315,21,13,1,5669,62736,593,115,31,92988,37307,17,1,13610,51,12376,2,12,107585,99,40,1463,559,6937,10210,174,346,31561,77,15791,14867,156,111218,22,36522,36650,4414,32,4,321,51,8,7831,5108,6210,13,67,1,14,4961,1,2163,104535,33,1496,9084,59613,18,9762,52,8311,30,12924,1967,112872,66161,4831,2,72551,30468,42,22900,6,3369,15,551,242,24,6,251,129,14284,61,256,16854,8,2787,163,324,79066,67927,103870,34723,98445,3864,15890,21,969,31,3,251,8,79576,36,19353,12148,796,1472,2197,2043,16077,64233,2,515,1,3635,21234,1,47310,5970,108897,27,25087,650,64537,342,3,3300,61,61593,5,43,6,327,35871,5,18,92,3,8376,90,224,7,10848,166,51491,11975,846,4,823,92437,490,98562,3040,2,36,112,2562,2688,2,15,1082,61642,52,1,147,1004,6,48,996,13,25,221,3,7,38,1748,1,45573,4257,11051,354,4,2,31230,4073,129,35,6166,109009,4,39692,69471,1726,99129,843,17090,4200,1,19728,324,7200,5151,22570,7939,65,2111,28,24821,11,5,32,2,2,10962,1,1,732,89887,62522,109,67,980,19,282,380,26519,3,4354,17,4449,54298,40,2196,17,7708,21582,6655,8,10215,45589,514,6,787,32556,1957,23,50,100539,58457,5,3839,1,2,5,60467,33999,7,289,7052,83,83,15,3,340,46885,2,15,10867,6,34,15,69279,2703,3,430,22,4003,4881,59615,3,2,4,14,24397,2,1440,2,2867,273,9,154,34,249,3040,2,1,5216,7,4,28,2980,31602,4685,301,20246,137,26433,294,68649,145,3,137,2,258,687,1833,122,1691,4,181,16189,32,4780,30,2758,1299,3641,2917,12663,183,12399,128377,4263,24776,666,2421,2,76667,26,3,5465,16,137,858,1126,1,2909,103,39010,44624,84212,5989,1,7158,5636,23,102765,4,810,1421,742,16,38,7,45,5,2,5669,7641,22,18062,118,7226,86,58846,22,199,4,33,7618,17,17336,101,12,174,4,9,36,435,32,6913,143,1063,5,9655,171,30866,9878,5339,18520,60,12,4886,2,82036,74,250,6527,32057,29389,30553,148,8,13,13672,110454,112,9509,7012,42548,2,2694,7246,17,58,1,2,99361,23255,114,54,99704,155,13360,15,2,4375,32,28,2568,12748,31704,36667,27607,106260,163,4,26,14530,77,1786,618,85716,17,11908,16,2,7,2137,14845,102964,33595,4181,39,75554,21,85553,18490,11,40,55278,4,95,4,91,43,6,1253,105065,32,1,491,163,238,67445,377,31,29,3,1,16580,188,929,28,108,1692,7966,64,26,2436,6,68,76,1,35869,5,4958,127664,383,18,4,63,3,15220,11,3483,1588,19027,1322,48441,5,15351,1,2619,8,1,13376,4,57,129113,1,95,3348,6,75,667,5310,39,1921,784,18,1,9,21,109390,80476,21849,54,86465,3,1,339,4,683,2251,3743,81,21,249,74,21241,2,446,27,525,171,3,3,12513,1819,435,28331,1199,22189,382,68731,29,24,1739,4,2,785,4,3120,2,95,3438,392,44298,3108,1452,1364,55,527,5318,14,149,236,1,37,2,642,34231,44330,214,2,100,56,7,95,3,11,12,41489,1,4,45,2,4,145,2,40,127771,22,55,2901,8492,3,11036,5868,84236,31,84,2,17,1,80,13,583,418,192,12,3,4,11,2604,73,70,1,12843,15,101998,17,7001,50347,1766,670,13022,1159,386,2142,124155,1232,48,511,27,1,467,15170,996,4268,1,97964,4,12,8,18471,24650,11,2,3434,4,16,1,19473,976,818,88794,38599,1,130573,752,12534,226,92695,1385,1470,15480,1,3,1772,171,2301,1427,35,242,15,66679,6042,10828,34,458,85,29,14,1,52,2,871,2800,8514,21,9996,8,13,42,82,52,1123,45973,2390,6,10596,20,47,1,671,8,2,127589,139,10,646,5,2965,8907,39,6194,2613,1,13535,21889,652,7777,19,164,7375,228,481,1,3,226,1,9431,47,31,29,2,706,20602,34478,1,552,1901,12443,1841,25,1,1,1,15825,3,192,1,83,372,65217,9,1,285,36622,125898,477,192,8411,39,1963,91,118,24,19,18897,40,3,213,1,14717,1,1319,173,47839,37459,3550,3,29,6,5,3,618,2,882,39998,54,116,66,873,107,2,53168,107133,11060,5,36,13505,6,10,1,2337,471,19,23180,7113,1103,79711,11,3745,32,48512,7763,69655,7,881,64,2625,119070,2,6290,7,16918,71,40275,283,99221,56,1,92,9,57374,4121,2,457,2394,2,184,6619,69180,1969,75,164,7,3812,99,8554,445,41,40097,64,67885,40,46,5,713,16813,6215,65,1823,206,4,18,3700,3507,2183,14927,4,7651,676,1149,1020,28,848,3627,5006,4652,276,34440,2662,84,24968,3161,1128,22,31,1455,5925,4141,51964,25968,86,15143,6261,707,37251,1635,4,17183,6,100,4072,744,4201,16,7,174,69,33379,3861,1234,3031,861,11,1527,2,2981,4,1,45,10185,392,45747,2,3,537,64,232,40,250,1686,95,459,79,4,842,662,3,56577,2,22581,3,7936,16,297,281,1,130450,3,1211,5,2,21,1503,874,62,1,3,4109,3256,8780,89864,208,9,41061,98,2,304,981,46,6,705,65,1429,151,267,37276,19543,16,9956,61,42,556,37,31,883,1,63641,1,82,1275,13,526,1953,149,3800,81326,6183,5601,1987,1120,75252,40755,1,113100,1568,1230,1796,4778,1,7,31,1679,4,777,79,11,2805,13,9,14372,2474,42,78,9,17934,857,91993,313,766,16446,15,1296,5336,1,2,10,15260,11,111211,7,6930,14,1757,15907,10541,3999,78,1,21,16940,2417,55881,24,79101,2082,8,1,2,134,1156,155,14,8721,430,2928,1,7,900,22,25,92618,8,32224,129156,11,2,13523,1,5,1,1,129,84235,1554,4,58,588,19897,5,5437,416,53466,23652,7,4383,165,1,67154,48992,52,6904,152,1631,2,297,214,1,1115,2188,2,248,4,567,34272,58104,1,9982,2,675,3671,1130,7426,5514,2,2,2630,32,41,179,13,64225,3,64,1085,19,203,2411,30,79,13478,3,4640,817,886,3,7,114953,379,642,55530,325,1,7,6054,6107,31,3,4,2030,13016,47,12,27179,46615,28,94002,31,133,16348,628,108,971,49642,1079,13763,21494,4932,5,9575,48,1,44,1,635,13171,40736,19635,357,45736,18,3,49,1910,1906,885,293,86883,18,603,71930,7,369,159,29590,4332,771,2885,11,345,18130,1,625,18120,32,69,2985,2386,1108,2288,103,1,18,31855,297,5994,149,4007,4769,74,1,447,1161,221,9146,6,424,3,380,1,4281,3,15374,6370,3,162,473,342,1434,591,1,2,80090,34,8,13421,1291,884,6754,111,289,981,3324,5,99,60820,4008,16,36,7,47,238,217,1567,76840,252,30,306,2862,31,113104,312,85,358,5,29635,1752,520,2508,4,71,49,1103,3038,3,1624,130720,1736,95986,3,52,98482,24,18,1,1294,28,1,27,16,1,3,1482,1821,12062,5,16726,386,1506,14960,50,3,5,63064,3,7621,1,3349,7,18310,280,1,760,765,130,2,51,64,14,89,4,16,10,1125,1023,59,6,38325,121388,2,6039,5,81,8128,49393,62095,17964,34,2478,40883,87,13409,200,102,1683,2,250,154,92,251,1,3388,13705,33,199,3020,399,652,2648,5,12,32,803,1047,14,20,329,2,1,7161,1,96,8268,13457,17206,157,70433,4,12321,90856,5110,2945,74,9518,3547,3802,13923,39564,2,87,42675,1,44,25748,46,28832,31521,47232,121022,5,933,62,66,5141,30,37,32463,16080,1,309,3985,46,16130,26211,202,4684,4,2323,10214,46765,31114,1,1,18150,81,1172,8983,6467,78800,112373,126,14,1,12,41518,3,6,326,2,37538,120027,66322,65002,1,14008,82,1,4895,41,1,6,33,116,20514,101,6888,22121,1,70,932,3,751,125,9,21,2290,4402,6813,288,117002,14,40043,586,225,403,6971,262,904,74561,23,456,16,3,955,80,5985,2,7135,3,8,1980,12,545,5761,104,252,15,13317,9,730,12,30072,13819,1060,31558,908,2906,8890,272,2278,6964,316,83,669,548,500,21,7751,3,16028,1,422,52984,1,112417,1,14275,1,78677,115,4,1,37,37098,1799,1,4,1,20,4078,21969,2495,2443,10616,848,275,1576,2665,2,97746,716,87,4,27,6,141,5627,4,4549,4862,8223,40650,19064,227,4,79992,4302,3482,19590,6709,5,269,4508,16996,8378,5287,5360,322,6036,3,360,929,4,112570,502,1,3,5,107579,3169,839,1236,20205,11530,5289,18,4,36236,57,4095,43858,11427,2,539,24,3,166,6,520,129094,269,450,128942,22,26097,27,850,25,6730,121,301,1529,45,33210,95298,10,63759,2871,10907,120,558,362,733,88216,2157,55,1,64762,1,1372,4,608,1,309,608,18112,3,7,280,4904,53744,31414,83,338,3752,15684,783,4009,53,6793,5960,65,1065,941,5112,59,3365,2,28,136,5756,37981,5616,21,4616,125288,43,1,20306,25,27,51,17,1,31,7,8171,1,42995,138,5357,90,12,11,119548,1288,1114,11,2023,2145,23184,214,81213,1,967,1009,71871,16,10212,10113,2,1516,1,85448,14,3594,5239,10939,6469,28993,2770,53,45,13324,5134,13675,470,4260,221,6,223,24944,1,134,645,17,1,12,9,2018,81533,53,5128,981,29,2,5905,1,1722,33776,2,172,3992,47759,208,14,72412,53,1847,1,8448,699,737,52946,59788,37037,967,1125,21288,40,79,7,110127,2,197,2,5392,17645,1156,531,27,26183,4320,42,1,34361,542,5555,55125,919,2,2356,248,4,6,8,8175,8007,29,84,2,86893,198,21155,41216,63,1,127500,9,19,482,71,72,2224,3496,105164,1,76,29,251,235,103,12693,263,865,28677,6765,2,7551,320,12,2,5958,37648,23,479,3854,249,15784,48198,19571,21591,21,1,69,1938,73364,19,3,8,10,1,13777,229,97952,2968,119148,14,55789,53,1,2833,3452,679,122876,130,1844,83684,1428,10,275,1,1022,46,115352,5,4,21274,75,1,79,153,16,6,819,25,288,23,1124,170,94,599,73524,24573,290,42,1142,1778,3117,2,2712,48,104570,36,21276,1737,110437,1430,10395,55,2,204,1541,57,16756,1085,31941,76,255,22908,688,11,11,6747,99,838,6140,19,303,56945,148,406,245,470,29851,1,175,12,445,62235,9340,63597,1,22959,2095,74,1,27,16324,16031,19,6320,41831,1442,83,422,3118,1864,9,192,2946,1695,1634,76,15,200,7746,84,15327,677,1,10439,23,3,34667,679,5759,241,4,9831,3,114039,119,20,79,15,1045,3,338,5479,709,53,136,129537,36513,36,3,5,1,167,411,45581,116,36905,5776,8,22162,285,147,6045,4,42818,58780,311,7,27,222,463,20,1,2,6,19,2,669,146,112095,10517,5150,1634,71165,70,15517,83,38092,4,16471,5144,13,9,515,15,43742,2147,23,187,1,3,7503,394,9951,774,6154,68417,41,13,8,32955,199,1565,57218,6973,5382,19614,8669,4,7283,29619,212,21,21882,4,112,1,101,62,6,102095,3381,333,507,2066,3,1,1259,3,977,328,460,2246,143,8993,38737,50,10,7900,41,55209,466,866,8,8,56160,6,156,1357,99228,2,228,69181,1,74686,511,112153,239,20970,769,8,5,1,2,24,6094,66,97,422,274,8,10374,73785}
{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,32,33,34,35,36,37,38,39,40,41,42,43,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,400,401,402,403,405,406,407,408,409,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,480,481,482,483,484,485,486,487,488,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,557,558,559,560,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,585,586,587,588,589,590,591,593,594,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,773,774,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,812,813,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,853,854,855,856,857,858,859,860,861,862,863,865,866,867,868,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1073,1074,1075,1076,1077,1078,1079,1080,1081,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1398,1399,1400,1402,1403,1404,1405,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1455,1456,1458,1459,1460,1461,1462,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1490,1491,1492,1493,1494,1495,1496,1497,1498,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1616,1617,1618,1619,1620,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1868,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1910,1911,1912,1913,1914,1915,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2122,2123,2124,2125,2126,2127,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2150,2151,2152,2154,2155,2156,2157,2158,2159,2160,2161,2162,2163,2164,2165,2167,2168,2169,2170,2171,2172,2173,2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2199,2200,2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2223,2224,2225,2226,2227,2228,2229,2230,2232,2233,2234,2235,2236,2237,2238,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2265,2266,2267,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2294,2295,2296,2297,2298,2299,2300,2302,2303,2304,2305,2306,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2385,2387,2388,2389,2390,2391,2392,2393,2394,2395,2397,2399,2400,2401,2402,2403,2404,2405,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2436,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2451,2452,2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471,2472,2473,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500,2501,2502,2503,2504,2505,2506,2507,2508,2509,2510,2511,2512,2513,2514,2515,2516,2517,2518,2519,2520,2521,2522,2523,2524,2525,2526,2527,2528,2529,2530,2531,2532,2533,2534,2535,2536,2537,2538,2539,2540,2541,2542,2543,2545,2546,2547,2548,2550,2551,2552,2553,2554,2555,2556,2557,2558,2559,2561,2562,2563,2564,2565,2566,2567,2568,2569,2570,2571,2572,2573,2574,2576,2577,2578,2580,2581,2582,2583,2584,2585,2586,2587,2588,2589,2590,2591,2592,2593,2594,2595,2596,2597,2598,2599,2600}
Returns: 1738
131072
{110,1723,11432,61512,3,19,15044,69,23,56,5591,52550,676,72,2,657,185,33894,454,3,1,2544,1,5340,26,81638,38,75,74798,357,955,6931,44445,308,8,148,5032,775,999,280,1,64245,132,198,5,8163,135,120412,14,171,27509,12,1,3069,9800,66626,587,6,324,8843,827,42601,5,647,11117,82659,151,4407,270,2262,21258,1,456,7,18,442,4232,145,12,320,6,1,14,515,6,759,1,227,350,47,6555,447,37,2,3,7920,6,27183,8,63120,4,124743,33,32,3440,12,62283,38,222,6,237,34183,242,5840,152,53,7092,9,2670,135,2931,1765,6,2964,52859,3,18006,7925,48630,22028,20,334,1324,5224,1,39,8,17051,2,9,12,37631,469,2,76,644,5020,118835,100,14,148,6092,418,73,1455,13,81557,4805,1,42130,83,306,283,200,58,2468,122,7475,5,11,40,66860,1,382,178,4772,27,10,33,75285,5372,3734,31,1368,52886,184,1815,25021,111552,3570,3334,11318,10,1854,14465,16,9717,645,831,1,258,9,9120,20,5,23059,584,124436,99,2,98716,3,4116,61252,494,8,6,12,78,10,3,749,150,12941,541,1,3762,763,11,760,4414,206,34,2368,4846,271,58939,4,17,37004,114,406,13,24,107449,2418,6789,393,44510,367,51912,2,2287,647,8222,23975,131,8,2667,1251,15376,2,82614,4,3302,7,291,858,267,88,4,507,1084,4,60,2,1514,93,58,10172,1156,23324,34011,5,34,8903,54521,157,140,56,11,142,1,1759,75,435,1173,52445,1443,118,1,113,35,14504,2,4818,1,71887,1,1,3,10504,1,4,5,19096,8,2817,7223,19321,918,1,19501,1761,1,21,7,1310,4,24032,52,9,1,5133,43278,56,47,3,126694,169,3,15617,2,991,8,12,37926,71,224,5060,54215,6611,457,120,414,68,846,46636,32,29,47515,3,7,20,2,104491,127086,631,102530,139,1,7674,6083,102,8015,380,57,6,98772,5,2,64,100,69980,29807,162,8,84,2,21,5,27987,73579,2672,30438,1,111,206,1226,2,17594,659,27,1441,212,10,258,45,121,77,88,130,2682,5,2,80,58846,2777,3149,768,39407,3268,1030,84332,237,22,1787,15,168,38115,1,281,4,34242,531,15,54,4,72085,6208,339,9,2,2,91103,37,26045,82,601,11720,16297,790,46151,610,15,559,7,607,188,274,5910,1249,490,1,4,24,6,2347,18,69,28,2,10248,3010,106040,11352,5,35,4593,16,24,4,6613,5362,38,2299,52958,21,5340,314,11937,33640,2,5727,58099,86677,11895,17,1,45,14,646,1,20,1197,2101,107,152,1858,23471,11,71444,12142,604,585,24,2506,2,543,2,249,2,1166,5,11542,25017,56851,11223,59164,362,1652,21070,10,6,1699,83060,8233,69847,120,847,4,3,9,14,879,337,2,4297,17,2,76887,2,58,4,56,6649,264,12236,28,120922,87,1494,7599,2,49683,3,118364,5,7,121264,6540,225,10305,1,5758,11224,5370,143,9,627,676,237,70,277,6,1414,445,182,8047,3007,164,40131,938,1,2,74,3,1783,153,4766,1963,836,17618,2,9277,31,59,27373,12,46,31694,8,7,91378,5577,3,1,49916,29,1,482,20,39,19077,61,32,6,12,73183,266,9112,363,1,24304,1,242,1,34335,125,97846,11,1492,2,3,11353,3,1273,21942,2,785,113,18,10,270,154,466,41687,207,5215,96739,5398,8,9726,172,221,4315,36,255,3,1333,36127,67243,10156,14,206,33,525,7,3,787,171,4,80,8,140,33,9,4301,4,28702,4,60811,10653,9470,6263,1,3,11,16201,245,2716,85,27,8,11513,60319,196,69918,355,104,7,4,224,104,34568,982,44899,7533,280,2,5,6,1,1843,3874,2392,108,7,41649,164,7,621,16684,56592,13826,8,1,104252,5748,53,1160,951,3,12692,6,6700,279,4329,857,30,268,154,1,128,437,136,4864,3638,2,25147,1239,389,898,25852,29816,9954,30781,55,1970,49546,8187,1,1114,9745,58,7009,49844,26125,190,24,35382,32,5658,85359,34562,2380,4,10,198,1419,1,1641,15,30557,213,18,68,135,8879,46166,7609,3845,1915,80,137,37,137,74165,434,1183,1,3292,469,69279,400,1,3,1412,489,781,10038,2014,3,48278,1091,23735,11,2,30,5145,1311,45,132,1,14,122209,4923,1,20,15,25,7,11679,832,10,24,48,2,50385,1849,4,1,2,91,4928,9393,6,113,26,115,1903,3711,564,3262,3960,130363,302,49194,3748,10601,3778,1333,788,570,79,248,18691,221,16499,923,4,80459,3,1849,2030,56294,24303,21520,4,6,143,21,3,75,8,739,7,20875,3,1886,4,27,16,36584,399,3,35,22132,36664,168,12034,1747,8,5,1465,3917,48,22,418,645,9961,7023,23,59,2,1,72,102387,273,5,88,989,5100,82308,1,300,66659,928,18,57,1,2847,675,577,137,24876,47,45457,570,35116,58,669,2,31,3,23775,47365,670,1,4713,30,3,15,9037,1530,46,18,327,1981,9,104,15,41249,24,255,3282,1750,8526,2,1203,96,3251,679,279,246,11,78894,1083,161,49,122,15075,206,9,2157,6853,21,167,109,1,10923,2,4,9,132,18,17763,4205,15506,17597,31353,46,5,2,1,25233,1,15,12641,58,1920,91524,1239,60,79,84072,26,8103,112,1994,27,32233,2675,36429,80135,24,86673,4,35279,29284,11,5709,10,1803,35308,61,2329,63,8933,5672,9,318,7374,1191,5,183,3037,7,16,9,209,1652,40972,8,2412,17784,2596,5,4,10406,10,5753,749,1779,81,6,340,78,4,8,16,14,1,25469,162,37,108162,653,5,4,27,14,1,1553,7857,2445,169,3468,6979,943,447,163,11,1,2933,4,91,25469,8826,96,2969,30911,56,6,641,27378,24,13912,6118,93279,10727,20,3,8921,6720,62084,70,31666,160,49,2,12,44746,1,1,13178,8,196,14559,2192,48474,10,18,9,261,81150,5176,22415,748,126,3,1483,61,113240,116260,2491,37,3853,88412,20823,770,40,13410,392,1273,7434,1087,21779,815,124065,3,5,10,503,47214,47,15639,38,4725,3938,28,9,426,1,34602,21539,1847,2,10195,31593,1566,19236,10,17361,732,123491,2,71738,42072,33,183,1,99561,4537,35965,1890,416,145,93208,3578,4144,5512,59,171,10,4333,3820,10968,29,5,9,461,141,355,64,21574,19825,10134,11291,1,2188,705,2,681,24,15441,220,16,418,11,7147,7,59181,8819,3,68,31,348,298,14001,2,1,36,22,121772,6,8,542,3721,26,112,1,1,171,10,8310,17309,511,113999,1050,6,1,43,168,113546,653,1,1,37,318,5451,10869,1057,64754,3706,2,35,137,3238,46216,2223,8,1,10032,14810,651,106991,34,7515,58,30977,38687,33184,42958,359,2,71,35,41063,322,20951,115837,89,1030,21236,2442,2,53,1677,114622,2369,8308,27017,5574,1,12,2703,77653,65,2,54220,16,8336,60049,36315,20,81,2,16,1835,9256,91,599,10978,5612,120,22,9,12026,63972,23938,8650,59797,14356,632,8,4130,1,6930,1,461,9,2923,83483,4945,56737,3,57,4,6982,477,1978,4094,208,24,3398,1008,78,3,2441,6818,68691,82307,8,16942,3,1818,642,241,43,397,6510,5585,21,16226,1085,2850,3373,19,78,5,1010,7,22,108,991,1028,24,2305,96,1,652,54,23,11521,7114,26160,3634,4730,1223,29,15164,9197,11868,46,10877,26515,57,3,107653,35,2084,58,2296,3182,42342,13,101865,159,49145,13,17,100649,2,20494,3277,2,71372,6202,658,9,3,22,116829,2,431,121170,52256,289,1273,87569,7,2,2,6786,3,77354,33,196,1006,2,2,1,75655,42,26564,71462,3,3980,20,615,4110,2742,29,299,101881,19,1707,42,167,20,21,34917,2,3,11446,72,100967,24,1489,8750,14406,44,12038,130,64,3,60109,887,2,8,443,12,3086,3921,1331,7,60262,10,194,614,67930,2707,12,1114,4,27645,16,18,8,1711,24009,1,199,100133,298,11869,82059,12323,13360,57640,321,211,414,20,5,1621,5931,1,1033,1,14,1415,93,39,14,1180,7059,1,21,21664,24327,26,124,11,29323,427,54336,14,1,130760,90000,14423,2798,43427,10867,4674,13456,10442,9622,34755,2,32,23604,184,5610,87,56856,4,72822,15,1554,1292,22602,357,91560,4358,303,1,769,64,1,2386,580,8,864,1222,7090,99,1361,52535,9900,985,109636,5634,4326,177,100682,112,6,50,16,26153,3935,11792,556,2560,1600,15359,118,534,1,660,2,99,11,79676,30,15799,120356,30,4,25622,245,1,3815,43105,18761,33,61,13,342,2679,6500,21,193,1127,19248,529,15,228,129,10,19938,50,18728,2,86,2,17570,12633,28095,69,9,142,14,4436,70745,86,40,1,10687,14,1,2021,1189,2,990,216,427,9205,1,11,5,27,751,1,2971,5202,2078,26709,3,8884,57,190,29549,982,57,3,1566,1,56926,9,2661,17856,640,4679,773,60956,2,2745,3945,10730,223,479,419,54271,65287,775,123569,1137,174,213,8,10,2,385,938,50577,409,4322,25358,917,1,359,9897,12,1158,296,42332,26,24421,15,3789,5304,91,17,191,165,329,24090,9824,523,64849,6348,14583,40,3804,2,366,17,582,7,54,412,9359,643,582,30,23,4,501,661,4803,41491,125897,13573,57,56,10227,3272,20,97154,336,846,31,80,7,24449,429,1,20,656,80,691,26499,1,59,21457,265,68107,29979,2,71,713,1161,925,827,19633,14,52493,327,23708,16500,49714,6,15594,1,2,18171,3,12,76,13394,7,37,1,7,575,8616,3,61457,440,1,85794,109545,3,122124,27882,132,1,3,226,3,57,1157,323,4021,548,1820,6,2,5,1,7545,1615,9,336,12414,1,128125,5144,7295,2,521,110009,15937,361,55909,3035,57675,48,1,122,36,106,126348,45,219,885,367,4711,219,120,55,118737,3309,3,5,2737,1,196,77111,4440,6582,3,2923,3,263,2744,6363,2686,833,76542,8,8,153,75,618,22485,70345,847,1550,59462,19,9,5,2063,52,10,30874,6,297,163,454,181,677,3821,1,4871,19,36,4995,138,956,1,7,15070,128,98,37,6,3,72650,11108,618,1919,11191,3,7246,402,84,10665,3,40051,1660,4131,282,238,8108,1093,11,53912,27759,2,28,51,2,4377,16702,4205,2891,5,1644,121515,8821,102470,2,3,9025,2,163,22085,5583,9,49429,1,263,1,5,3,131,43533,12,31091,92,1,15,1388,31575,1655,1,4,87440,1864,716,7166,367,1331,12,35,110,19378,304,37,168,1,4,3851,325,18,2469,16,8,5,27,667,668,4834,12396,4666,20648,7,12107,996,238,988,61967,128613,24883,6,1,4,106,4309,106702,26074,81,2830,15,7,27796,1057,599,6192,366,39,1173,4,4,82172,33,10820,3,445,29574,3,1,2136,236,264,47522,130606,82,1,81943,3814,2,270,2,56,1,10447,23,64458,16,66129,131,3486,2,202,705,685,24,130,3,1458,1,2,2589,58,16028,78693,168,526,576,586,1,3654,6,40,20799,20,4,16967,36366,253,1,3,761,1501,2478,16,23106,47,11,224,104,9,29,3592,3,13,9,129,326,450,14,6,2923,128148,2,12,12,181,799,2017,13537,238,13,22,119,193,21019,305,5262,17,351,6,1808,1,21,12809,30263,36,1,106,32,3879,3768,49,3,2,6509,117,879,1604,40885,1,403,100,138,6,3365,8620,378,7,91298,10371,1679,282,51157,2004,8918,13560,112,19237,2,4040,39,2257,11,11198,89,990,3,218,2,119,163,19011,5872,14,36,1162,7,48492,66451,10,2,1082,2665,2339,28,14411,4176,84889,339,8,2676,28,1058,38238,3145,4,31330,1648,2,446,29969,2449,2883,19720,590,1,247,83676,1327,2915,9,538,4,68,72745,3,409,33328,5,25437,1,1,7,83,92,15,1887,976,3354,23,24518,8034,87,15,3,31385,1285,7053,660,84846,77992,29,631,3992,65250,80666,1,185,5,64989,4102,7,38627,40286,23039,56590,102436,89,80,4,129,30,2831,4,2,17292,6,13,14818,71,2434,3538,23985,2208,119,173,111,19865,67563,37323,14612,75,8,2581,7,8101,16819,18,13425,14736,81,4995,6,12,226,14,69,11,160,7,2,3,1,38456,71,20195,27,1429,5,2415,815,17466,4679,2016,90,137,913,1,73,38504,10428,28500,1,84345,10846,701,1,2483,4007,961,14,89502,43,5,13135,335,45746,12768,4,213,96,8,150,1772,207,108,23,55,8,17179,116,22560,51660,3,219,13493,179,61,28,102,2,38,21,34706,96767,44,111,76,580,67,31575,62615,4,95,1034,11596,1,3061,34,51090,43,19,41,42870,6,52945,26885,2944,23,38730,1,363,1435,10554,1995,1489,76,22,3427,97,78,157,21,362,151,40263,43385,14,8,519,2,11,12088,23,56479,44,249,91,11469,7851,196,10400,656,5,396,1713,5,37751,1683,5425,7428,3338,45,459,18485,90599,5,1124,210,37452,23262,7287,4,2,52,834,12097,6128,13,66,32918}
{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,145,146,147,148,149,151,152,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,270,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,320,321,322,323,324,325,326,327,328,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,492,493,494,495,496,497,498,499,500,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,533,534,535,536,537,538,539,540,541,542,543,544,546,547,548,550,551,552,553,554,556,557,558,559,560,561,562,563,564,565,566,567,568,569,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,611,612,613,614,615,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,649,650,651,652,653,654,655,656,658,659,660,661,662,663,664,665,666,667,668,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,766,767,768,769,770,771,773,774,775,776,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,902,903,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,979,980,981,982,983,984,985,986,987,989,990,991,992,994,995,996,997,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1170,1171,1172,1173,1174,1175,1176,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1267,1268,1269,1270,1271,1272,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1590,1591,1592,1593,1594,1596,1597,1598,1599,1600,1601,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1687,1688,1689,1691,1692,1693,1694,1695,1696,1697,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1754,1755,1756,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1811,1812,1813,1814,1815,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1867,1868,1869,1870,1871,1872,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2084,2085,2086,2087,2088,2089,2090,2091,2092,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2150,2151,2152,2153,2154,2155,2156,2157,2158,2159,2160,2161,2162,2163,2164,2165,2166,2167,2168,2169,2170,2171,2172,2173,2174,2175,2176,2177,2178,2179,2180,2181,2182,2184,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2200,2201,2202,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2224,2225,2226,2228,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2293,2294,2295,2296,2297,2298,2299,2300,2301,2302,2303,2304,2305,2306,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2350,2351,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2436,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2450,2451,2452,2453,2454,2455,2456,2457,2459,2460,2461,2462,2464,2465,2467,2468,2469,2470,2471,2472,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500,2501,2502,2504,2505,2506,2507,2508,2509,2510,2511,2512,2513,2514,2515,2516,2517,2518,2519,2520,2521,2522,2523,2524,2525,2526,2528,2529,2530,2531,2532,2533,2534,2536,2537,2538,2539,2540,2541,2542,2543,2544,2545,2546,2547,2548,2549,2550,2551,2552,2553,2554,2555,2556,2557,2558,2559,2560,2563,2564,2565,2567,2568,2569,2570,2571,2572,2573,2574,2575,2576,2577,2578,2579,2580,2581,2582,2584,2585,2586,2587,2588,2590,2591,2592,2593,2594,2595,2596,2597,2598,2599,2600}
Returns: 1743
32
{2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31 }
{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 }
Returns: 20