z1 := (1,2)(3,7)(4,9)(5,11)(6,13)(8,17)(10,14)(12,24)(15,29)(16,23)(18,34)(19, 26)(20,27)(21,37)(22,38)(25,43)(28,46)(30,49)(31,51)(32,53)(33,48)(35,58) (36,60)(39,66)(40,68)(41,70)(42,65)(44,75)(45,77)(47,81)(50,86)(52,89) (54,92)(55,94)(56,96)(57,91)(59,101)(61,104)(62,79)(63,106)(64,108)(67, 113)(69,116)(71,119)(72,121)(73,123)(74,118)(76,128)(78,131)(80,133)(82, 136)(83,138)(84,140)(85,135)(87,114)(88,146)(90,150)(93,155)(95,158)(97, 160)(98,162)(99,164)(100,127)(102,129)(103,170)(105,174)(107,177)(109, 178)(110,180)(111,182)(112,175)(115,188)(117,192)(120,197)(122,200)(124, 202)(125,204)(126,206)(130,212)(132,216)(134,218)(137,221)(139,224)(141, 183)(142,228)(143,230)(144,226)(145,233)(147,189)(148,235)(149,239)(151, 243)(152,245)(153,247)(154,242)(156,222)(157,253)(159,257)(161,261)(163, 264)(165,267)(166,269)(167,271)(168,266)(169,274)(171,278)(172,276)(173, 281)(176,285)(179,291)(181,294)(184,298)(185,300)(186,296)(187,303)(190, 305)(191,309)(193,313)(194,315)(195,317)(196,312)(198,292)(199,323)(201, 327)(203,331)(205,334)(207,337)(208,339)(209,341)(210,336)(211,344)(213, 348)(214,346)(215,351)(217,355)(219,359)(220,358)(223,365)(225,295)(227, 297)(229,373)(231,301)(232,376)(234,380)(236,306)(237,307)(238,383)(240, 310)(241,387)(244,392)(246,395)(248,398)(249,400)(250,402)(251,397)(252, 322)(254,408)(255,406)(256,411)(258,328)(259,416)(260,414)(262,393)(263, 422)(265,426)(268,431)(270,433)(272,435)(273,437)(275,441)(277,443)(279, 447)(280,448)(282,451)(283,453)(284,354)(286,458)(287,456)(288,290)(289, 461)(293,467)(299,474)(302,477)(304,481)(308,484)(311,488)(314,493)(316, 496)(318,499)(319,501)(320,503)(321,498)(324,509)(325,507)(326,512)(329, 517)(330,515)(332,494)(333,523)(335,527)(338,532)(340,534)(342,536)(343, 538)(345,542)(347,544)(349,548)(350,549)(352,552)(353,371)(356,558)(357, 556)(360,563)(361,565)(362,567)(363,562)(364,466)(366,573)(367,571)(368, 576)(369,578)(370,580)(372,583)(374,475)(375,588)(377,591)(378,592)(379, 480)(381,595)(382,597)(384,485)(385,486)(386,602)(388,605)(389,607)(390, 609)(391,604)(394,615)(396,619)(399,624)(401,627)(403,629)(404,631)(405, 633)(407,635)(409,639)(410,640)(412,643)(413,514)(415,516)(417,649)(418, 519)(419,533)(420,648)(421,582)(423,657)(424,655)(425,660)(427,664)(428, 666)(429,668)(430,663)(432,520)(434,675)(436,679)(438,682)(439,683)(440, 541)(442,686)(444,689)(445,688)(446,691)(449,697)(450,698)(452,702)(454, 704)(455,685)(457,707)(459,711)(460,713)(462,598)(463,718)(464,720)(465, 716)(468,726)(469,724)(470,729)(471,731)(472,733)(473,735)(476,740)(478, 743)(479,744)(482,747)(483,749)(487,753)(489,756)(490,690)(491,759)(492, 755)(495,764)(497,767)(500,771)(502,773)(504,775)(505,777)(506,779)(508, 781)(510,785)(511,786)(513,789)(518,795)(521,794)(522,703)(524,803)(525, 801)(526,672)(528,809)(529,811)(530,813)(531,808)(535,819)(537,823)(539, 826)(540,827)(543,830)(545,625)(546,832)(547,833)(550,839)(551,840)(553, 844)(554,614)(555,829)(557,847)(559,851)(560,853)(561,855)(564,814)(566, 859)(568,861)(569,863)(570,723)(572,865)(574,868)(575,869)(577,872)(579, 875)(581,878)(584,882)(585,880)(586,738)(587,739)(589,876)(590,890)(593, 745)(594,893)(596,898)(599,750)(600,897)(601,752)(603,900)(606,907)(608, 758)(610,763)(611,909)(612,911)(613,760)(616,765)(617,915)(618,918)(620, 921)(621,922)(622,923)(623,920)(626,928)(628,932)(630,936)(632,778)(634, 941)(636,782)(637,943)(638,947)(641,952)(642,953)(644,957)(645,958)(646, 792)(647,960)(650,796)(651,965)(652,817)(653,799)(654,966)(656,968)(658, 804)(659,972)(661,694)(662,975)(665,980)(667,983)(669,717)(670,986)(671, 985)(673,798)(674,990)(676,820)(677,994)(678,992)(680,981)(681,1000)(684, 828)(687,831)(692,1012)(693,1010)(695,1015)(696,1008)(699,1022)(700,1020) (701,1023)(705,845)(706,846)(708,1030)(709,1029)(710,850)(712,1035)(714, 854)(715,1038)(719,1042)(721,1044)(722,1046)(725,1048)(727,1051)(728, 1052)(730,1054)(732,1057)(734,1060)(736,1063)(737,1061)(741,1058)(742, 1071)(746,1073)(748,1078)(751,1077)(754,1080)(757,1087)(761,1088)(762, 1089)(766,1092)(768,1097)(769,1098)(770,1096)(772,1103)(774,1107)(776, 1111)(780,1116)(783,1118)(784,1122)(787,1127)(788,1128)(790,1132)(791, 1133)(793,1134)(797,1139)(800,1140)(802,1142)(805,1146)(806,836)(807, 1149)(810,1154)(812,1157)(815,1160)(816,1159)(818,1164)(821,1167)(822, 959)(824,1155)(825,1172)(834,1183)(835,1181)(837,1186)(838,1180)(841, 1193)(842,1191)(843,1194)(848,1199)(849,1198)(852,1203)(856,1206)(857, 1208)(858,1204)(860,1213)(862,991)(864,1219)(866,1220)(867,1141)(870, 1227)(871,1228)(873,1231)(874,1056)(877,1237)(879,1240)(881,1242)(883, 1246)(884,1065)(885,1248)(886,1177)(887,1102)(888,1069)(889,1210)(891, 1253)(892,1255)(894,1257)(895,1259)(896,1261)(899,1079)(901,1267)(902, 1082)(903,1083)(904,1084)(905,1272)(906,1266)(908,1277)(910,1280)(912, 1090)(913,1282)(914,1028)(916,1093)(917,1284)(919,1286)(924,1293)(925, 1295)(926,1297)(927,1068)(929,1300)(930,1271)(931,1303)(933,1108)(934, 1307)(935,1016)(937,1290)(938,1113)(939,1163)(940,1115)(942,1318)(944, 1119)(945,1320)(946,1321)(948,1123)(949,1323)(950,1326)(951,1317)(954, 1333)(955,1331)(956,1335)(961,1342)(962,1136)(963,1137)(964,1341)(967, 1050)(969,1353)(970,1351)(971,1145)(973,1147)(974,1148)(976,1033)(977, 1361)(978,1363)(979,1359)(982,1369)(984,1278)(987,1376)(988,1378)(989, 1114)(993,1383)(995,1037)(996,1236)(997,1386)(998,1385)(999,1171)(1001, 1392)(1002,1390)(1003,1394)(1004,1176)(1005,1067)(1006,1178)(1007,1179) (1009,1399)(1011,1346)(1013,1403)(1014,1185)(1017,1188)(1018,1408)(1019, 1407)(1021,1411)(1024,1195)(1025,1414)(1026,1418)(1027,1420)(1031,1423) (1032,1424)(1034,1425)(1036,1041)(1039,1429)(1040,1431)(1043,1434)(1045, 1165)(1047,1440)(1049,1441)(1053,1448)(1055,1451)(1059,1457)(1062,1461) (1064,1465)(1066,1467)(1070,1416)(1072,1472)(1074,1475)(1075,1477)(1076, 1479)(1081,1485)(1085,1490)(1086,1484)(1091,1498)(1094,1500)(1095,1501) (1099,1506)(1100,1508)(1101,1510)(1104,1513)(1105,1489)(1106,1364)(1109, 1518)(1110,1187)(1112,1503)(1117,1527)(1120,1529)(1121,1530)(1124,1532) (1125,1535)(1126,1526)(1129,1337)(1130,1540)(1131,1306)(1135,1548)(1138, 1547)(1143,1287)(1144,1557)(1150,1201)(1151,1212)(1152,1567)(1153,1564) (1156,1572)(1158,1495)(1161,1579)(1162,1581)(1166,1586)(1168,1456)(1169, 1589)(1170,1588)(1173,1595)(1174,1593)(1175,1597)(1182,1552)(1184,1605) (1189,1610)(1190,1609)(1192,1613)(1196,1616)(1197,1619)(1200,1623)(1202, 1624)(1205,1627)(1207,1630)(1209,1432)(1211,1612)(1214,1435)(1215,1636) (1216,1590)(1217,1631)(1218,1638)(1221,1545)(1222,1641)(1223,1563)(1224, 1556)(1225,1344)(1226,1402)(1229,1507)(1230,1647)(1232,1452)(1233,1453) (1234,1652)(1235,1649)(1238,1655)(1239,1657)(1241,1460)(1243,1664)(1244, 1662)(1245,1667)(1247,1466)(1249,1672)(1250,1469)(1251,1470)(1252,1674) (1254,1678)(1256,1680)(1258,1684)(1260,1298)(1262,1689)(1263,1481)(1264, 1688)(1265,1483)(1268,1696)(1269,1487)(1270,1488)(1273,1699)(1274,1701) (1275,1493)(1276,1698)(1279,1706)(1281,1497)(1283,1710)(1285,1676)(1288, 1716)(1289,1714)(1291,1720)(1292,1722)(1294,1449)(1296,1727)(1299,1730) (1301,1733)(1302,1515)(1304,1735)(1305,1517)(1308,1739)(1309,1741)(1310, 1315)(1311,1738)(1312,1705)(1313,1523)(1314,1524)(1316,1743)(1319,1748) (1322,1753)(1324,1533)(1325,1754)(1327,1757)(1328,1645)(1329,1760)(1330, 1756)(1332,1762)(1334,1763)(1336,1543)(1338,1766)(1339,1442)(1340,1546) (1343,1646)(1345,1551)(1347,1553)(1348,1554)(1349,1660)(1350,1445)(1352, 1773)(1354,1775)(1355,1578)(1356,1777)(1357,1562)(1358,1444)(1360,1565) (1362,1566)(1365,1785)(1366,1787)(1367,1784)(1368,1571)(1370,1724)(1371, 1790)(1372,1794)(1373,1719)(1374,1797)(1375,1560)(1377,1800)(1379,1803) (1380,1583)(1381,1640)(1382,1805)(1384,1587)(1387,1437)(1388,1591)(1389, 1811)(1391,1813)(1393,1817)(1395,1598)(1396,1599)(1397,1820)(1398,1601) (1400,1824)(1401,1826)(1404,1831)(1405,1832)(1406,1752)(1409,1611)(1410, 1433)(1412,1838)(1413,1836)(1415,1617)(1417,1841)(1419,1843)(1421,1847) (1422,1849)(1426,1625)(1427,1853)(1428,1856)(1430,1859)(1436,1863)(1438, 1860)(1439,1865)(1443,1868)(1446,1550)(1447,1604)(1450,1873)(1454,1877) (1455,1874)(1458,1880)(1459,1881)(1462,1886)(1463,1884)(1464,1889)(1468, 1894)(1471,1718)(1473,1896)(1474,1897)(1476,1900)(1478,1511)(1480,1648) (1482,1904)(1486,1909)(1491,1912)(1492,1914)(1494,1911)(1496,1919)(1499, 1922)(1502,1925)(1504,1928)(1505,1930)(1509,1934)(1512,1936)(1514,1939) (1516,1941)(1519,1945)(1520,1947)(1521,1944)(1522,1918)(1525,1949)(1528, 1954)(1531,1959)(1534,1960)(1536,1963)(1537,1872)(1538,1966)(1539,1962) (1541,1967)(1542,1968)(1544,1971)(1549,1679)(1555,1846)(1558,1977)(1559, 1978)(1561,1980)(1568,1987)(1569,1988)(1570,1986)(1573,1931)(1574,1991) (1575,1995)(1576,1927)(1577,1998)(1580,2001)(1582,2004)(1584,1867)(1585, 2006)(1592,2010)(1594,2012)(1596,2016)(1600,2018)(1602,2021)(1603,2023) (1606,2028)(1607,2029)(1608,1958)(1614,2033)(1615,2031)(1618,2036)(1620, 2038)(1621,2040)(1622,2042)(1626,2044)(1628,2049)(1629,2048)(1632,1861) (1633,1782)(1634,1810)(1635,1993)(1637,2055)(1639,2057)(1642,2061)(1643, 2062)(1644,1871)(1650,2067)(1651,1876)(1653,2069)(1654,2071)(1656,2060) (1658,1882)(1659,2075)(1661,2078)(1663,2080)(1665,2003)(1666,1888)(1668, 1890)(1669,2084)(1670,2088)(1671,2090)(1673,1723)(1675,2094)(1677,2096) (1681,1837)(1682,2100)(1683,1899)(1685,2099)(1686,2105)(1687,2056)(1690, 2109)(1691,2110)(1692,1834)(1693,1907)(1694,1707)(1695,1835)(1697,2113) (1700,2117)(1702,2119)(1703,1981)(1704,2121)(1708,1921)(1709,2125)(1711, 1772)(1712,1923)(1713,1924)(1715,2129)(1717,1926)(1721,1983)(1725,2135) (1726,2130)(1728,2103)(1729,2139)(1731,2140)(1732,2142)(1734,2053)(1736, 2147)(1737,2148)(1740,2152)(1742,2153)(1744,2156)(1745,1828)(1746,2159) (1747,2155)(1749,2163)(1750,1956)(1751,2165)(1755,2171)(1758,1964)(1759, 1965)(1761,2176)(1764,1969)(1765,1970)(1767,1972)(1768,2179)(1769,2170) (1770,2167)(1771,1976)(1774,2181)(1776,1979)(1778,1916)(1779,2185)(1780, 1929)(1781,2188)(1783,2190)(1786,2194)(1788,2196)(1789,1990)(1791,2198) (1792,1862)(1793,2158)(1795,2164)(1796,1997)(1798,2205)(1799,2000)(1801, 2203)(1802,1887)(1804,2210)(1806,2007)(1807,2212)(1808,2009)(1809,2213) (1812,2070)(1814,2218)(1815,2217)(1816,2221)(1818,2017)(1819,2032)(1821, 2226)(1822,2227)(1823,2228)(1825,2232)(1827,2024)(1829,2235)(1830,2231) (1833,2030)(1839,2245)(1840,2246)(1842,2037)(1844,2251)(1845,2252)(1848, 2041)(1850,2255)(1851,2182)(1852,2257)(1854,2259)(1855,2261)(1857,2265) (1858,2264)(1864,2269)(1866,2270)(1869,2273)(1870,2274)(1875,2277)(1878, 2279)(1879,2281)(1883,2093)(1885,2285)(1891,2288)(1892,2291)(1893,2293) (1895,2295)(1898,2299)(1901,2298)(1902,2303)(1903,2065)(1905,2307)(1906, 2308)(1908,1920)(1910,2311)(1913,2315)(1915,2317)(1917,2051)(1932,2328) (1933,2324)(1935,2332)(1937,2333)(1938,2335)(1940,2268)(1942,2122)(1943, 2338)(1946,2238)(1948,2342)(1950,2345)(1951,2025)(1952,2348)(1953,2344) (1955,2352)(1957,2354)(1961,2250)(1973,2365)(1974,2359)(1975,2356)(1982, 2369)(1984,2372)(1985,2145)(1989,2376)(1992,2378)(1994,2347)(1996,2353) (1999,2385)(2002,2383)(2005,2390)(2008,2392)(2011,2280)(2013,2397)(2014, 2396)(2015,2400)(2019,2403)(2020,2404)(2022,2087)(2026,2409)(2027,2406) (2034,2417)(2035,2418)(2039,2422)(2043,2193)(2045,2425)(2046,2427)(2047, 2249)(2050,2086)(2052,2432)(2054,2435)(2058,2271)(2059,2199)(2063,2439) (2064,2276)(2066,2440)(2068,2157)(2072,2222)(2073,2138)(2074,2283)(2076, 2253)(2077,2254)(2079,2284)(2081,2149)(2082,2447)(2083,2448)(2085,2289) (2089,2292)(2091,2454)(2092,2134)(2095,2456)(2097,2457)(2098,2297)(2101, 2141)(2102,2301)(2104,2302)(2106,2143)(2107,2137)(2108,2306)(2111,2309) (2112,2416)(2114,2470)(2115,2168)(2116,2469)(2118,2474)(2120,2478)(2123, 2480)(2124,2320)(2126,2321)(2127,2482)(2128,2323)(2131,2325)(2132,2326) (2133,2327)(2136,2487)(2144,2490)(2146,2434)(2150,2340)(2151,2494)(2154, 2438)(2160,2477)(2161,2502)(2162,2504)(2166,2355)(2169,2358)(2172,2512) (2173,2361)(2174,2511)(2175,2363)(2177,2207)(2178,2437)(2180,2519)(2183, 2367)(2184,2522)(2186,2526)(2187,2371)(2189,2529)(2191,2531)(2192,2527) (2195,2533)(2197,2248)(2200,2242)(2201,2535)(2202,2382)(2204,2536)(2206, 2540)(2208,2532)(2209,2236)(2211,2391)(2214,2548)(2215,2394)(2216,2551) (2219,2398)(2220,2554)(2223,2304)(2224,2557)(2225,2331)(2229,2560)(2230, 2561)(2233,2507)(2234,2408)(2237,2424)(2239,2565)(2240,2412)(2241,2549) (2243,2415)(2244,2310)(2247,2419)(2256,2521)(2258,2411)(2260,2577)(2262, 2428)(2263,2421)(2266,2290)(2267,2581)(2272,2379)(2275,2585)(2278,2346) (2282,2401)(2286,2339)(2287,2590)(2294,2594)(2296,2516)(2300,2334)(2305, 2330)(2312,2430)(2313,2357)(2314,2602)(2316,2467)(2318,2609)(2319,2483) (2322,2455)(2329,2612)(2336,2615)(2337,2479)(2341,2618)(2343,2584)(2349, 2608)(2350,2625)(2351,2627)(2360,2571)(2362,2570)(2364,2387)(2366,2639) (2368,2640)(2370,2644)(2373,2647)(2374,2645)(2375,2649)(2377,2420)(2380, 2414)(2381,2651)(2384,2652)(2386,2655)(2388,2648)(2389,2410)(2393,2537) (2395,2663)(2399,2463)(2402,2465)(2405,2449)(2407,2630)(2413,2661)(2423, 2481)(2426,2677)(2429,2495)(2431,2568)(2433,2582)(2436,2583)(2441,2586) (2442,2505)(2443,2555)(2444,2575)(2445,2486)(2446,2689)(2450,2691)(2451, 2562)(2452,2592)(2453,2593)(2458,2541)(2459,2596)(2460,2597)(2461,2588) (2462,2491)(2464,2492)(2466,2693)(2468,2515)(2471,2603)(2472,2501)(2473, 2508)(2475,2606)(2476,2701)(2484,2610)(2485,2520)(2488,2706)(2489,2614) (2493,2617)(2496,2710)(2497,2621)(2498,2635)(2499,2684)(2500,2712)(2503, 2626)(2506,2629)(2509,2716)(2510,2633)(2513,2719)(2514,2544)(2517,2637) (2518,2563)(2523,2552)(2524,2725)(2525,2643)(2528,2646)(2530,2599)(2534, 2730)(2538,2732)(2539,2654)(2542,2657)(2543,2545)(2546,2737)(2547,2660) (2550,2662)(2553,2665)(2556,2713)(2558,2658)(2559,2667)(2564,2669)(2566, 2694)(2567,2671)(2569,2673)(2572,2674)(2573,2675)(2574,2611)(2576,2676) (2578,2678)(2579,2619)(2580,2672)(2587,2628)(2589,2721)(2591,2740)(2595, 2656)(2598,2616)(2600,2686)(2601,2636)(2604,2624)(2605,2631)(2607,2696) (2613,2763)(2620,2764)(2622,2751)(2623,2765)(2632,2709)(2634,2771)(2638, 2668)(2641,2664)(2642,2690)(2650,2738)(2653,2776)(2659,2781)(2666,2766) (2670,2704)(2679,2777)(2680,2773)(2681,2788)(2682,2728)(2683,2742)(2685, 2752)(2687,2753)(2688,2754)(2692,2775)(2695,2795)(2697,2757)(2698,2758) (2699,2759)(2700,2746)(2702,2760)(2703,2796)(2705,2798)(2707,2726)(2708, 2729)(2711,2745)(2714,2767)(2715,2792)(2717,2769)(2718,2801)(2720,2772) (2722,2749)(2723,2774)(2724,2755)(2727,2748)(2731,2733)(2734,2778)(2735, 2779)(2736,2780)(2739,2782)(2741,2783)(2743,2784)(2744,2785)(2747,2786) (2750,2791)(2756,2802)(2761,2810)(2762,2812)(2768,2808)(2770,2815)(2787, 2806)(2789,2807)(2790,2803)(2793,2809)(2794,2805)(2797,2811)(2799,2813) (2800,2814)(2804,2816);