#include "Alice.h"
#include <bits/stdc++.h>
#define ll long long
#define db double
#define imx INT_MAX
#define imn INT_MIN
#define lmx LLONG_MAX
#define lmn LLONG_MIN
#define ld long double
#define lid id * 2 + 1
#define rid id * 2 + 2
using namespace std;
vector<pair<int, int>> Alice(){
ll x = setN(4996);
vector<int> perm = {3583, 3158, 175, 2453, 2248, 3572, 4971, 1511, 449, 4940, 2843, 208, 482, 4289, 3410, 3779, 757, 1795, 3605, 506, 282, 2958, 3282, 226, 3326, 885, 1226, 4694, 1004, 4946, 1339, 4513, 2846, 764, 4898, 1361, 2064, 3325, 3295, 1261, 2301, 2283, 1257, 3884, 1429, 841, 4476, 1002, 2171, 2938, 4043, 2080, 4253, 1315, 3676, 2461, 357, 2040, 2706, 43, 601, 785, 133, 448, 4893, 2709, 2012, 4130, 3462, 3166, 3443, 3283, 1762, 4259, 1506, 2078, 3284, 2431, 3829, 2290, 4422, 456, 362, 83, 3694, 1780, 2899, 1784, 3969, 3434, 1575, 3622, 708, 2997, 4239, 3618, 3104, 3754, 4205, 4365, 1438, 4602, 4444, 501, 3086, 1369, 2703, 4395, 3508, 2405, 584, 746, 4637, 3138, 545, 1820, 1114, 3368, 1139, 1649, 4153, 4986, 1500, 2065, 4265, 4518, 2162, 1031, 3061, 2423, 603, 779, 272, 3094, 4083, 2862, 4734, 3412, 1889, 4262, 3999, 1686, 4099, 558, 2407, 1130, 2619, 557, 4743, 512, 3461, 4540, 3943, 1441, 3715, 3686, 561, 1202, 295, 1663, 1742, 3996, 3850, 2763, 3175, 2747, 2044, 1021, 4530, 3044, 4652, 4314, 4341, 429, 407, 2803, 3287, 4416, 499, 4349, 568, 747, 4863, 190, 1460, 2673, 2325, 683, 3887, 3416, 1739, 1086, 55, 4451, 3845, 743, 949, 327, 735, 3988, 181, 3082, 4048, 2134, 2509, 325, 3108, 639, 4808, 4675, 2952, 4378, 4887, 3016, 4938, 81, 2090, 4992, 1177, 2278, 4227, 423, 514, 1393, 707, 1370, 1755, 4809, 2173, 1003, 2720, 868, 2368, 1884, 3666, 2727, 3027, 4722, 16, 69, 3256, 3305, 4578, 2402, 4127, 943, 4805, 1243, 134, 2914, 687, 2920, 2513, 3588, 3132, 3190, 2978, 856, 1408, 2277, 2287, 4003, 2433, 1777, 438, 1659, 2161, 4909, 3167, 3458, 2963, 4377, 3989, 4319, 3794, 516, 2922, 2020, 1151, 3472, 4414, 3807, 3098, 1282, 2662, 4930, 191, 4110, 3493, 2942, 2131, 2006, 1271, 4152, 3762, 1796, 264, 2498, 2970, 2572, 2495, 4657, 2776, 825, 192, 157, 3883, 3908, 1988, 1641, 4903, 2280, 4343, 2208, 3607, 3032, 3534, 2876, 3320, 3517, 1568, 1237, 3562, 4900, 919, 3392, 2626, 633, 2023, 765, 3587, 896, 123, 3363, 541, 241, 215, 536, 753, 2411, 3522, 1670, 2189, 4802, 2777, 3994, 1195, 2348, 3719, 2759, 1439, 987, 695, 148, 345, 470, 3059, 2330, 653, 4943, 2370, 314, 3820, 3745, 3444, 2231, 4691, 110, 4449, 2353, 738, 347, 1013, 403, 3394, 2314, 2548, 1364, 2722, 1399, 1610, 1891, 4305, 3950, 692, 2664, 4555, 4836, 727, 2681, 1936, 3339, 3168, 1205, 39, 3863, 1075, 1096, 4322, 471, 4861, 1594, 1701, 3332, 1473, 615, 3741, 2175, 4838, 4748, 2470, 3744, 473, 301, 2388, 4645, 2788, 2674, 4924, 3062, 3662, 3853, 4247, 4324, 2097, 1752, 974, 2058, 4454, 1115, 1340, 1900, 1382, 1881, 2167, 2274, 416, 1566, 436, 3930, 857, 409, 20, 3687, 2791, 1617, 4398, 3367, 2275, 4635, 3172, 3465, 4493, 4701, 1218, 1543, 3364, 1435, 3650, 4615, 2983, 1850, 1028, 3574, 4741, 1356, 1241, 1996, 1448, 2261, 2841, 4598, 2166, 3774, 479, 897, 2885, 2835, 278, 1280, 2377, 4619, 280, 1841, 4157, 2991, 3393, 3402, 4438, 3013, 2541, 4960, 2338, 3964, 2575, 2206, 2017, 580, 872, 56, 4559, 2909, 1614, 2927, 3055, 3210, 2847, 1582, 304, 3860, 1590, 2105, 76, 4147, 1790, 2487, 1388, 1735, 3438, 2832, 1547, 4674, 2976, 2635, 1124, 1084, 427, 2962, 2781, 1486, 815, 2830, 3516, 4833, 2062, 349, 1869, 3291, 4859, 3341, 3211, 1053, 2584, 3657, 2449, 1275, 3197, 2415, 1800, 2985, 4562, 3302, 909, 1255, 2164, 3929, 2451, 4283, 2819, 2387, 2696, 4639, 3519, 2849, 4744, 3119, 4801, 4709, 1432, 2502, 2101, 2904, 2390, 2786, 2392, 4184, 4798, 595, 2253, 4240, 4705, 2066, 1700, 1134, 3874, 2219, 4844, 4231, 4482, 2542, 58, 4036, 2357, 4807, 3896, 2564, 3963, 2247, 1581, 1140, 1123, 1295, 1813, 4073, 268, 1197, 1235, 1684, 3014, 2464, 4787, 1487, 4617, 1654, 2724, 297, 736, 4865, 4441, 2373, 3987, 4023, 1030, 2217, 4560, 1998, 2586, 726, 1623, 1792, 4823, 4713, 1527, 1685, 2257, 193, 710, 2191, 1672, 641, 2688, 4654, 3678, 2226, 892, 3242, 426, 251, 3386, 4631, 4786, 3922, 1009, 4039, 1259, 3955, 4953, 4533, 2345, 2240, 273, 4040, 2641, 1562, 3192, 1804, 1860, 4095, 1585, 4270, 2104, 1708, 997, 1771, 4763, 4396, 3215, 1391, 1905, 1502, 2298, 1631, 3440, 1331, 1970, 4830, 255, 4370, 1854, 563, 2701, 4335, 3509, 836, 3800, 1855, 3424, 4274, 4718, 1467, 1885, 874, 1911, 4103, 2416, 956, 2579, 309, 1465, 4837, 2895, 1425, 3296, 4348, 3915, 1785, 1389, 3473, 3366, 3889, 1080, 3159, 3450, 3097, 45, 1898, 2734, 3369, 440, 2264, 1794, 4733, 321, 1719, 1662, 1579, 3066, 3906, 3403, 1642, 1442, 2363, 1455, 4038, 350, 629, 3075, 4742, 999, 2515, 98, 2205, 4199, 2906, 1023, 3156, 476, 2630, 2168, 3268, 3225, 4498, 2612, 921, 521, 3747, 3035, 2980, 222, 3398, 414, 4183, 1763, 4528, 3811, 3613, 942, 4527, 26, 3071, 4368, 798, 2177, 3684, 2969, 186, 1499, 1342, 840, 4058, 412, 4217, 4811, 4387, 4853, 203, 1397, 4935, 1897, 125, 4591, 528, 4575, 1371, 3496, 1697, 1622, 4929, 1664, 1186, 3099, 4693, 3668, 3280, 2323, 4431, 4445, 503, 95, 4024, 1293, 2341, 152, 621, 3827, 4050, 3813, 1385, 2607, 2356, 1725, 1754, 530, 1109, 171, 640, 2982, 3997, 2321, 2512, 3979, 4242, 4355, 4060, 2342, 3221, 767, 3634, 3888, 35, 4415, 1923, 1674, 998, 1723, 4429, 3425, 4948, 3230, 1729, 734, 1170, 4135, 844, 2478, 2028, 4523, 3077, 3521, 903, 2272, 4925, 1981, 3033, 2295, 292, 129, 1574, 57, 4499, 4100, 2680, 1913, 2939, 2396, 4446, 4729, 2833, 355, 3724, 3347, 599, 104, 4539, 4292, 240, 3791, 4412, 14, 908, 296, 3269, 4867, 3480, 697, 2307, 3830, 4180, 4901, 2312, 3129, 3633, 2071, 1095, 4297, 4382, 3518, 3711, 2631, 645, 2610, 1380, 542, 2857, 3824, 1516, 4634, 3927, 3103, 3009, 4785, 4358, 725, 1667, 1682, 1363, 4284, 2014, 3327, 4442, 1039, 1633, 1459, 1837, 1263, 4947, 2196, 1848, 4062, 1300, 801, 3432, 1146, 2092, 2798, 1128, 4682, 4916, 796, 1875, 3659, 954, 4706, 2549, 4280, 924, 672, 4855, 1367, 3049, 4720, 4373, 2138, 2981, 4425, 3427, 1509, 51, 1020, 4988, 1206, 491, 4203, 4642, 4881, 3507, 3273, 1450, 221, 3041, 230, 365, 620, 975, 2723, 3948, 3448, 1387, 1006, 4572, 3681, 4408, 4678, 61, 4369, 2108, 2494, 3740, 2615, 1346, 18, 4894, 1495, 2087, 2721, 2339, 2778, 3648, 3479, 945, 861, 259, 2725, 2710, 3048, 4098, 4105, 1061, 721, 1765, 4736, 1504, 88, 1479, 1368, 2784, 3892, 1427, 428, 4301, 204, 4351, 4804, 2889, 159, 4010, 90, 4304, 713, 1973, 2714, 1904, 3569, 1301, 644, 155, 879, 1992, 1773, 446, 121, 869, 839, 3481, 3011, 2426, 3912, 1750, 2137, 1311, 668, 3623, 4768, 544, 2110, 306, 1396, 2141, 938, 2992, 4142, 3229, 4821, 578, 4320, 291, 1646, 3232, 1724, 3903, 564, 4455, 4331, 378, 385, 2455, 2266, 4640, 1240, 911, 363, 1620, 4849, 4731, 4005, 828, 1285, 3428, 4162, 1726, 4665, 1185, 4891, 2931, 1453, 3710, 806, 2497, 108, 1909, 2496, 391, 1939, 3271, 2143, 443, 2374, 3436, 971, 535, 4633, 887, 3690, 2531, 298, 4391, 3040, 560, 3692, 4246, 3965, 2731, 2638, 3017, 1799, 4014, 154, 2715, 2333, 4869, 2912, 2244, 556, 487, 1689, 4480, 4078, 1803, 3510, 2254, 3489, 12, 3101, 4897, 162, 202, 4224, 575, 4757, 2118, 1552, 1444, 3531, 670, 4243, 1826, 2998, 1968, 673, 3379, 1083, 3153, 3343, 784, 2642, 2089, 2539, 2547, 786, 4113, 461, 1181, 3373, 4361, 3726, 1738, 4663, 2965, 3219, 1297, 3502, 1054, 875, 1652, 508, 1972, 944, 1600, 1821, 2505, 3184, 3437, 4011, 1644, 1643, 2129, 2027, 376, 1635, 510, 402, 1497, 3243, 4944, 4721, 2995, 2692, 1603, 3991, 2765, 481, 3959, 1404, 1861, 4579, 3238, 1466, 1870, 467, 1783, 884, 2772, 4468, 3789, 4496, 1788, 851, 983, 317, 2953, 1598, 742, 2004, 4350, 3088, 1153, 2032, 337, 4102, 3050, 1969, 1373, 4794, 3872, 354, 4381, 4755, 379, 873, 1375, 4187, 4827, 913, 4797, 2136, 1928, 2789, 2603, 4248, 3409, 53, 2047, 3873, 631, 964, 3492, 1611, 845, 2546, 23, 4671, 4525, 1256, 1392, 3018, 1517, 3313, 842, 614, 1336, 382, 2602, 2749, 24, 3848, 1069, 3926, 1975, 3407, 2761, 4028, 1918, 4138, 2030, 654, 4052, 3316, 3895, 1222, 689, 1060, 54, 4041, 343, 3257, 1588, 4457, 2327, 3267, 889, 4488, 3037, 2859, 4267, 4864, 566, 1720, 2941, 384, 4760, 660, 170, 135, 1563, 3702, 1505, 661, 891, 3289, 3404, 1669, 524, 3743, 2384, 3315, 2039, 4287, 4318, 4086, 4817, 2300, 4626, 754, 25, 3348, 2346, 1722, 398, 2856, 4271, 302, 2124, 52, 3500, 594, 2921, 3921, 4831, 4750, 4854, 1273, 4417, 4776, 4363, 1410, 413, 720, 3351, 4918, 923, 1583, 2212, 2267, 2491, 4021, 555, 2730, 2165, 4056, 4656, 4190, 1957, 3951, 3709, 3370, 3553, 3560, 907, 3310, 4192, 3594, 4079, 1808, 2911, 3080, 1104, 901, 3441, 351, 1395, 980, 4956, 551, 940, 4034, 4875, 79, 648, 1842, 4958, 1967, 4211, 4327, 2746, 2098, 2085, 699, 2359, 2447, 2764, 1926, 4846, 4996, 1108, 3116, 4908, 3876, 44, 3661, 4829, 2444, 1751, 3749, 1474, 4505, 2743, 2870, 4660, 3877, 4491, 1671, 1100, 2594, 2501, 3233, 4594, 1679, 1272, 1365, 1768, 2657, 3995, 276, 3371, 1065, 1260, 2404, 3255, 2732, 29, 4565, 1289, 928, 474, 1034, 4470, 2852, 3381, 478, 970, 4096, 2589, 4549, 3628, 256, 3557, 1436, 3826, 3038, 4009, 831, 3764, 4186, 2929, 4847, 567, 147, 4810, 642, 3739, 1787, 1561, 1409, 4238, 666, 1193, 3344, 4690, 3630, 3506, 922, 1546, 373, 4302, 430, 4143, 4118, 4030, 1014, 2286, 1845, 3528, 2067, 4409, 3671, 3052, 247, 3728, 3216, 2475, 2739, 4796, 3203, 2717, 931, 715, 1238, 1711, 850, 1540, 2276, 1823, 1476, 1279, 2961, 2232, 4128, 2959, 4490, 4430, 3767, 2236, 3735, 4443, 3182, 1532, 3695, 4463, 2163, 1062, 3952, 1125, 2174, 4556, 1879, 3372, 249, 3937, 2637, 780, 2421, 4921, 197, 424, 2802, 4129, 2281, 2729, 2376, 3311, 2907, 2479, 550, 3703, 2989, 812, 4456, 533, 1437, 4607, 4179, 2919, 1022, 3688, 867, 2332, 3212, 1308, 996, 2651, 4484, 1055, 1221, 4453, 3837, 1333, 2477, 608, 3858, 1580, 2891, 3913, 3700, 4307, 1178, 136, 682, 2597, 3340, 1234, 1171, 4629, 3151, 2620, 2591, 1961, 1521, 4880, 4745, 1508, 576, 2758, 1732, 1043, 2794, 4686, 3029, 582, 224, 1117, 62, 2646, 1070, 565, 2695, 2713, 1183, 505, 150, 4298, 3581, 3365, 808, 3262, 117, 2227, 4070, 1423, 961, 1323, 1266, 21, 1492, 2799, 91, 1172, 2705, 1265, 4815, 1327, 3760, 4091, 2120, 319, 3867, 4385, 4832, 2072, 2866, 3231, 1121, 4313, 3079, 1214, 3596, 2917, 3001, 1119, 3639, 3561, 4957, 2562, 1011, 3328, 2736, 333, 3135, 293, 3793, 3540, 1428, 1398, 2250, 3625, 1419, 4461, 1558, 3395, 1038, 4146, 1696, 3087, 2235, 2265, 4149, 643, 4726, 1940, 1534, 3641, 623, 2834, 3078, 48, 4710, 1916, 3598, 146, 3106, 3248, 468, 2614, 4160, 1050, 4121, 2590, 2950, 1960, 42, 3482, 1216, 2310, 4661, 3880, 1589, 2535, 3144, 4609, 1536, 1047, 1384, 2563, 700, 1781, 3851, 2752, 3644, 4919, 1122, 1551, 1718, 860, 1494, 1907, 1126, 223, 2685, 2806, 3924, 3355, 2379, 1434, 756, 4388, 2019, 1947, 4125, 1626, 3796, 4922, 3526, 211, 1498, 1858, 1637, 4225, 2892, 2768, 1572, 4814, 2324, 2329, 234, 3303, 4466, 2305, 4877, 2671, 4464, 2466, 4065, 969, 4535, 2580, 1212, 655, 1817, 3491, 205, 3021, 3096, 3834, 2355, 4376, 2410, 4961, 2785, 4326, 4123, 2218, 218, 622, 3891, 1276, 4910, 4781, 3910, 3868, 3112, 3307, 932, 109, 4230, 2783, 4000, 266, 4803, 4592, 2977, 2581, 3306, 3317, 310, 2660, 4601, 164, 2077, 1246, 3484, 719, 3836, 906, 2587, 2460, 169, 459, 2091, 4711, 94, 2184, 1162, 2650, 2737, 2968, 3391, 1164, 1159, 662, 2656, 3430, 1951, 253, 4581, 3463, 2011, 3738, 3429, 866, 4201, 3542, 832, 1539, 1757, 671, 1807, 1136, 3456, 2928, 4544, 1943, 2335, 1351, 4093, 3958, 421, 3731, 4959, 950, 4987, 3240, 540, 4806, 3136, 1995, 4140, 2311, 1805, 3890, 4426, 1215, 2979, 2853, 2757, 3034, 1874, 4126, 1089, 3947, 1294, 2413, 3019, 3786, 4067, 2831, 1001, 3558, 4213, 4759, 1892, 11, 75, 3626, 2201, 3568, 523, 2762, 2056, 3006, 3389, 3176, 1974, 307, 2469, 3620, 4501, 4334, 3960, 898, 2780, 3323, 4166, 3449, 3475, 1018, 485, 2427, 1326, 3567, 4354, 4751, 1883, 1859, 823, 2536, 4979, 1717, 758, 441, 716, 2532, 494, 1675, 2719, 1559, 1077, 3716, 2103, 78, 904, 4728, 1896, 2683, 1401, 3992, 248, 2409, 269, 1624, 124, 3113, 127, 830, 2623, 4717, 1571, 752, 4064, 4529, 804, 2016, 3790, 3638, 1832, 2527, 1743, 4868, 849, 3330, 72, 3589, 1529, 1569, 1952, 2113, 492, 2313, 2585, 1836, 1894, 3554, 522, 3730, 4448, 2258, 3455, 2829, 3487, 4842, 1337, 2395, 2340, 3198, 477, 4707, 2868, 3582, 678, 2525, 1767, 2836, 1267, 1843, 635, 1945, 101, 2273, 4252, 1059, 3818, 4333, 3904, 4195, 4974, 130, 3054, 1248, 2005, 2826, 144, 4604, 118, 2718, 4089, 3196, 4025, 855, 1078, 2243, 978, 3499, 1938, 4063, 3919, 3861, 3555, 1811, 4145, 2318, 4977, 2633, 2955, 4394, 4583, 3304, 3571, 1882, 2263, 2303, 2084, 4740, 176, 1137, 358, 3042, 4770, 1129, 2437, 1535, 1024, 1306, 1705, 3698, 951, 3879, 3604, 2467, 179, 2655, 4286, 2424, 284, 2908, 1066, 984, 3227, 270, 3862, 611, 4165, 2804, 963, 4399, 2554, 475, 4800, 2350, 1008, 2823, 553, 4392, 4820, 209, 2738, 1553, 3962, 4296, 3146, 816, 2347, 1270, 4077, 1321, 1176, 1901, 3237, 858, 2448, 3466, 3265, 939, 2828, 2949, 2488, 1690, 570, 2037, 724, 3353, 216, 4870, 3520, 139, 4932, 451, 579, 2156, 3917, 38, 2319, 759, 1977, 1118, 1236, 1179, 1730, 1621, 1471, 4949, 3010, 1602, 4644, 4700, 3420, 2704, 4608, 2322, 2574, 1557, 569, 1493, 3866, 729, 4437, 2923, 3193, 2842, 3124, 322, 2592, 1983, 1402, 1106, 2617, 744, 1025, 3838, 4589, 4114, 173, 3600, 834, 3358, 2038, 3474, 1828, 457, 852, 3549, 3140, 1188, 4207, 1577, 187, 1608, 4502, 2848, 1873, 3966, 2326, 1231, 770, 4088, 3120, 445, 3470, 2975, 4723, 957, 3207, 4812, 257, 3275, 2675, 1262, 237, 1829, 4708, 4421, 2446, 730, 3977, 1440, 2079, 819, 2403, 4212, 4622, 652, 2234, 437, 691, 914, 4027, 217, 3803, 1464, 1710, 3020, 372, 381, 3771, 3250, 4697, 1687, 3261, 4051, 3148, 2010, 1775, 2127, 2519, 4214, 1048, 3993, 2115, 1537, 4739, 13, 4053, 2825, 2676, 1258, 151, 4569, 3606, 370, 207, 1927, 3105, 463, 1548, 1175, 3983, 3024, 1525, 4724, 4571, 4250, 2288, 3840, 1094, 3788, 1131, 1914, 3321, 4712, 3808, 2297, 4390, 1252, 3673, 3134, 4055, 1447, 1019, 2996, 464, 3089, 2486, 4288, 1814, 4972, 4261, 2677, 657, 4879, 4766, 1143, 3699, 3154, 1319, 2779, 3597, 1461, 4393, 3580, 3902, 4016, 3971, 2684, 2352, 3471, 1304, 4772, 2315, 539, 3585, 4595, 3460, 592, 4196, 2913, 4989, 3781, 818, 2771, 1091, 1747, 97, 4071, 3109, 3452, 2670, 4074, 3675, 2154, 2073, 4294, 1857, 1068, 2228, 4517, 1127, 1865, 2524, 3593, 3536, 910, 1746, 4570, 37, 3376, 4427, 4081, 1110, 1457, 2207, 1964, 669, 1303, 912, 1227, 3174, 4198, 888, 417, 2148, 2182, 1416, 1035, 977, 1418, 122, 2933, 3249, 2008, 138, 1989, 880, 4254, 3956, 4618, 120, 3680, 2213, 4092, 194, 4124, 1154, 4293, 4646, 3804, 1169, 1052, 3849, 2485, 4507, 4684, 285, 1932, 1049, 1341, 4340, 114, 3875, 4752, 1150, 3612, 1163, 1477, 3188, 2251, 4825, 1042, 1085, 4269, 183, 1233, 119, 3844, 4835, 2951, 458, 1046, 1158, 2900, 4773, 2945, 1156, 4951, 2152, 3178, 1650, 3637, 4955, 4950, 4936, 2697, 2865, 1902, 4244, 2256, 2320, 1377, 4616, 918, 1809, 2179, 4824, 1411, 1716, 802, 3292, 573, 1555, 2260, 4017, 2742, 2459, 4683, 2454, 3056, 4975, 947, 2200, 4219, 4792, 2557, 1149, 1417, 2627, 990, 3773, 829, 1920, 1966, 3274, 1510, 4862, 933, 991, 185, 244, 2875, 4548, 4620, 1779, 3660, 40, 1987, 3122, 1010, 2886, 132, 2385, 33, 2418, 3258, 2616, 4459, 2051, 1067, 420, 3916, 4552, 4309, 2204, 1482, 1782, 2334, 36, 658, 4323, 585, 2956, 2149, 1703, 4874, 3787, 2903, 3390, 4257, 1116, 1955, 2890, 3251, 731, 2824, 1230, 2948, 320, 4044, 3204, 4405, 4216, 290, 2702, 1731, 2246, 4732, 1344, 3795, 4628, 4526, 2805, 4551, 2540, 4574, 3841, 1522, 967, 3199, 4264, 3223, 3137, 116, 3658, 4432, 718, 4360, 1915, 386, 4756, 2210, 2864, 3293, 4220, 3642, 2653, 1328, 3083, 1000, 2088, 3805, 2159, 2055, 876, 4492, 1148, 1601, 1997, 2063, 1135, 2932, 680, 4858, 4194, 4181, 1868, 2440, 4779, 3093, 1290, 3864, 4538, 2905, 2197, 1984, 890, 1666, 562, 3218, 4428, 2456, 2436, 3750, 1834, 267, 4299, 2807, 1530, 1211, 418, 4131, 15, 1647, 1714, 790, 2199, 609, 2659, 1513, 3595, 4316, 4789, 3801, 3621, 3252, 1895, 2609, 3356, 4746, 4923, 1092, 3708, 4550, 2367, 3961, 1196, 3523, 1734, 4655, 2123, 1999, 1749, 3121, 4934, 1253, 4117, 771, 4983, 1343, 2699, 4725, 665, 3748, 3421, 1648, 74, 927, 4647, 1949, 1201, 3383, 883, 4679, 2126, 3081, 1899, 4504, 1925, 723, 1155, 1518, 4774, 4084, 439, 3486, 3763, 4514, 3147, 4404, 3677, 3635, 1015, 2365, 4178, 2146, 3478, 2142, 4553, 3821, 4568, 3046, 46, 341, 4651, 3454, 3907, 693, 161, 140, 369, 2556, 4653, 2082, 335, 4108, 252, 916, 1407, 3543, 3535, 4791, 2993, 4912, 800, 73, 3766, 262, 1819, 1681, 1661, 1660, 2372, 702, 1564, 3590, 3515, 3336, 3091, 4511, 882, 1232, 3814, 329, 4031, 986, 31, 3777, 3457, 1229, 3855, 1088, 3318, 2694, 2425, 1704, 3177, 1292, 2317, 1607, 1965, 4068, 3074, 4506, 4911, 1220, 3733, 4315, 871, 3127, 1942, 4164, 2057, 4624, 3334, 3603, 4765, 2643, 3615, 2474, 3578, 188, 2814, 195, 624, 3495, 93, 3665, 2389, 577, 1831, 3663, 3152, 4850, 3823, 2690, 2935, 3163, 4101, 4737, 3923, 4521, 821, 4097, 4767, 4357, 4668, 2221, 1274, 1950, 4510, 1523, 4383, 3732, 2203, 406, 1640, 2076, 3856, 1830, 2787, 3350, 1192, 4139, 3118, 4754, 3683, 1693, 4926, 2445, 326, 571, 2237, 2443, 2371, 1612, 2538, 3953, 1680, 2428, 597, 1475, 1324, 1445, 374, 1778, 17, 3477, 504, 2809, 4189, 4780, 3246, 989, 973, 3636, 4004, 484, 453, 1959, 2844, 3125, 2753, 1629, 612, 3565, 4332, 3689, 4371, 411, 3195, 1503, 3205, 1317, 4519, 2268, 1332, 3720, 1810, 1209, 1772, 3504, 2678, 2150, 3833, 2608, 4758, 1818, 1190, 4795, 2095, 1944, 1847, 625, 4658, 3224, 4902, 2490, 2293, 2406, 1208, 4167, 769, 87, 3978, 4191, 4418, 4281, 210, 1541, 3045, 3707, 2957, 4175, 3130, 4308, 1636, 2492, 2812, 4730, 2528, 1835, 959, 2668, 502, 822, 4964, 2625, 4075, 4059, 3012, 4037, 3272, 3885, 1986, 4475, 65, 4424, 634, 3881, 3898, 2337, 2601, 3945, 4353, 1645, 4662, 4692, 2031, 663, 2242, 3817, 2570, 791, 2048, 1113, 4406, 4735, 1284, 1452, 2881, 3408, 2925, 4364, 493, 3191, 2302, 3377, 781, 1812, 4677, 454, 1470, 2188, 462, 4567, 4920, 126, 1312, 2432, 330, 3798, 3446, 1846, 1316, 1335, 2858, 2224, 794, 965, 955, 380, 1488, 4834, 4648, 3299, 4001, 2029, 2632, 3649, 1893, 1683, 966, 1524, 4137, 3133, 600, 1064, 3155, 486, 3679, 4104, 878, 993, 3982, 3419, 4159, 659, 3529, 2851, 1877, 2769, 3550, 3894, 4109, 1322, 2508, 1791, 3513, 3727, 1165, 103, 2537, 4681, 3090, 4447, 3901, 3757, 1180, 2094, 231, 3107, 2147, 733, 2468, 2130, 4234, 3751, 466, 242, 4087, 1921, 795, 837, 3406, 2122, 2003, 1313, 3260, 2770, 2107, 1074, 4636, 3115, 679, 3706, 3998, 4339, 843, 2644, 4472, 1421, 4576, 3319, 4497, 2813, 4906, 3697, 2034, 4154, 1016, 864, 2144, 172, 2578, 3023, 1630, 59, 4822, 4985, 4963, 2198, 3220, 4245, 4330, 1063, 1372, 2430, 1963, 915, 4715, 3095, 361, 245, 4593, 881, 3770, 2551, 4372, 4380, 3247, 4907, 3186, 3933, 4777, 497, 227, 2013, 1318, 3445, 589, 4277, 1533, 2837, 2506, 2375, 4279, 2160, 2910, 4790, 1797, 324, 2489, 1707, 3384, 419, 113, 4072, 1688, 1531, 2304, 3085, 338, 1360, 1985, 3905, 4002, 4937, 2093, 4856, 2560, 3285, 4580, 1702, 2972, 2940, 225, 4954, 238, 2618, 1844, 206, 2282, 1698, 3843, 3831, 1886, 2386, 1853, 3780, 344, 3063, 4738, 3721, 2986, 102, 1480, 2344, 1249, 3575, 1348, 2988, 2331, 2820, 3114, 4664, 1320, 3546, 3180, 4462, 4966, 3940, 2135, 3935, 3729, 4851, 2194, 2216, 4508, 435, 1362, 3631, 1774, 3236, 2634, 1307, 646, 526, 1239, 1538, 2622, 3000, 303, 3102, 4883, 2299, 2990, 96, 3004, 2973, 532, 4641, 4771, 4033, 3696, 2773, 3714, 4042, 4939, 4389, 174, 1668, 1191, 3822, 2100, 1394, 4260, 2901, 239, 1737, 2112, 1007, 1250, 3512, 737, 2839, 2808, 2362, 4981, 3900, 1501, 3627, 1695, 598, 3423, 3338, 158, 2682, 3954, 3975, 4632, 3128, 2503, 4643, 848, 1578, 2050, 3117, 2096, 3447, 1864, 1105, 1658, 359, 2024, 703, 3314, 917, 142, 77, 444, 3385, 3264, 1051, 2599, 4251, 287, 3990, 1247, 1567, 498, 3776, 1296, 826, 2669, 979, 4020, 1639, 200, 3654, 3899, 415, 1770, 2186, 1141, 2544, 3611, 2658, 4688, 3530, 618, 1414, 3375, 4845, 4400, 1242, 4473, 3655, 3469, 3110, 1956, 3169, 4197, 400, 1917, 3068, 1424, 4134, 543, 3753, 2380, 4564, 4885, 3539, 2543, 2629, 3388, 3290, 4111, 260, 4650, 1756, 2582, 1040, 4532, 4793, 4255, 3254, 271, 1934, 422, 985, 4410, 1550, 4990, 3911, 2000, 2937, 1168, 1776, 4857, 4300, 339, 2075, 4563, 2744, 2728, 1556, 2873, 3939, 1345, 3464, 3920, 3483, 2476, 4276, 1330, 2606, 432, 189, 308, 4176, 1456, 4968, 92, 50, 3538, 572, 2308, 3067, 4345, 2397, 3181, 4119, 1381, 3485, 3235, 4603, 2412, 4762, 3324, 1072, 4541, 4290, 2598, 4384, 360, 4379, 4952, 3742, 3333, 1310, 1764, 3382, 1458, 1147, 4317, 4852, 2760, 500, 709, 766, 64, 99, 1715, 3968, 3387, 3772, 4980, 4237, 3189, 4275, 827, 972, 4522, 2974, 1491, 2566, 694, 1217, 1706, 3624, 106, 2530, 4223, 1329, 968, 3957, 745, 3537, 789, 368, 2069, 2667, 4202, 2898, 4676, 1801, 4022, 865, 4884, 728, 3511, 4282, 3909, 49, 2748, 4346, 145, 3682, 3878, 3278, 937, 4524, 1483, 1451, 1618, 706, 4450, 3414, 4076, 397, 775, 3300, 4899, 588, 4249, 4122, 3380, 4136, 1910, 863, 630, 342, 3936, 799, 3599, 762, 2915, 2605, 1924, 2441, 581, 232, 2291, 1699, 2111, 3060, 681, 143, 3374, 2233, 3051, 3758, 3131, 1244, 2583, 3725, 1355, 3653, 452, 2711, 393, 4477, 4483, 2679, 469, 4931, 1929, 511, 2595, 4193, 141, 4630, 814, 4116, 3532, 712, 4606, 3266, 392, 4229, 2514, 3397, 277, 1515, 1032, 3008, 3967, 447, 1027, 3533, 1041, 677, 2887, 1228, 4872, 2672, 1138, 768, 1919, 3503, 3162, 1712, 2861, 1593, 549, 649, 1490, 4783, 4965, 460, 1979, 2042, 741, 4423, 3755, 47, 3043, 3886, 776, 772, 788, 4235, 936, 4485, 4018, 4625, 2750, 2943, 390, 3433, 1245, 3944, 70, 1953, 3976, 2117, 3362, 166, 4080, 1073, 3629, 2382, 2918, 1204, 1207, 4543, 4614, 3005, 4984, 2766, 32, 2041, 774, 4621, 3435, 2153, 688, 3691, 1378, 2187, 4782, 3610, 507, 404, 2882, 288, 958, 3651, 3816, 3214, 3819, 1194, 650, 1254, 1931, 3602, 3525, 111, 4342, 4209, 1174, 4816, 3882, 2558, 2628, 177, 739, 3073, 3185, 4557, 3701, 3070, 4623, 2121, 2568, 1472, 4727, 1878, 1305, 3928, 1766, 3297, 19, 2946, 1512, 3415, 495, 3259, 4799, 4032, 4008, 2026, 1933, 3577, 2002, 1359, 3072, 1161, 2378, 2916, 2181, 787, 2795, 1251, 3775, 3601, 870, 2083, 3036, 4889, 1224, 2647, 4976, 4890, 274, 3241, 4478, 4554, 2652, 3026, 667, 4747, 3713, 3656, 3123, 2070, 4547, 399, 833, 2471, 2052, 2022, 383, 2015, 2854, 2810, 1677, 2452, 3973, 1133, 408, 3396, 1443, 515, 926, 250, 605, 1379, 2756, 1976, 755, 1573, 1352, 1937, 2960, 3100, 3576, 4994, 1350, 2133, 1838, 1044, 4303, 1591, 3286, 4337, 1852, 3228, 538, 60, 2007, 935, 3401, 3058, 433, 1542, 1871, 1876, 2818, 2482, 82, 4761, 2238, 3925, 1793, 3301, 902, 2816, 4667, 2465, 1045, 3942, 4813, 4295, 2180, 3201, 2661, 2222, 2119, 2522, 3417, 396, 617, 4982, 4613, 1101, 3592, 1721, 1544, 636, 1948, 1079, 4995, 803, 2523, 3723, 3217, 2211, 4172, 2225, 3815, 4945, 1990, 4969, 1386, 1549, 1980, 2001, 2021, 401, 4486, 4411, 4993, 537, 4356, 3759, 4534, 3142, 3209, 793, 3226, 4566, 1789, 4465, 2517, 3245, 2249, 3277, 265, 547, 988, 632, 1349, 3717, 714, 2394, 1890, 1469, 1526, 3143, 3160, 2151, 1676, 3734, 1314, 2874, 3761, 1353, 2518, 198, 4590, 4407, 4769, 3047, 4015, 3852, 3785, 3053, 2533, 1288, 2565, 1638, 480, 4107, 1462, 2259, 2045, 1420, 490, 2472, 4233, 2902, 2049, 2157, 3799, 1157, 3871, 2640, 2897, 2158, 3213, 2845, 3359, 4210, 472, 1390, 2801, 4784, 2306, 2934, 2624, 3467, 1277, 893, 2419, 783, 1446, 3870, 2328, 4680, 2665, 3476, 4775, 3022, 2081, 3494, 1413, 1632, 3141, 3783, 4545, 797, 356, 2269, 2966, 2102, 4226, 2604, 626, 3632, 4177, 534, 196, 3170, 3835, 2435, 1102, 2500, 353, 1867, 2099, 2068, 71, 4435, 4537, 4310, 1309, 3946, 2420, 4106, 2964, 2552, 1613, 3276, 67, 3335, 4222, 761, 4188, 1866, 835, 1017, 862, 4168, 596, 877, 4057, 425, 2639, 2872, 2878, 2438, 2398, 1604, 778, 2481, 2663, 3705, 559, 2473, 3932, 1816, 4841, 3736, 220, 4132, 2567, 1400, 1576, 1597, 4695, 3752, 410, 1433, 705, 995, 131, 2782, 1609, 3712, 2800, 1120, 3084, 1586, 2128, 1991, 1152, 1037, 4156, 518, 1740, 2139, 2815, 2822, 300, 4338, 1058, 900, 2521, 4716, 2516, 4826, 3704, 2936, 346, 3669, 3342, 2462, 2984, 3941, 1403, 348, 676, 1286, 3459, 4882, 3847, 4440, 316, 2285, 3854, 281, 820, 3769, 1057, 4375, 2526, 4970, 701, 2924, 3685, 4819, 1628, 4374, 2450, 233, 4173, 607, 3614, 1520, 318, 3164, 1798, 3524, 854, 4670, 2215, 586, 34, 4069, 4573, 2145, 2053, 2480, 3674, 178, 3806, 168, 2520, 3591, 4436, 929, 3357, 4689, 941, 3857, 86, 236, 4200, 1634, 4878, 1656, 1678, 1625, 554, 2214, 3768, 2687, 1112, 2429, 4469, 367, 1268, 1281, 3765, 690, 1454, 488, 3981, 2534, 66, 3778, 1200, 1287, 807, 1426, 4610, 254, 2555, 68, 4362, 4520, 4612, 4871, 387, 749, 4597, 1519, 313, 3810, 1347, 1851, 3756, 3064, 895, 2511, 112, 587, 107, 3505, 105, 602, 2686, 1827, 4256, 1619, 4312, 1962, 2999, 4161, 180, 905, 1993, 4150, 279, 1908, 323, 1166, 1468, 4479, 3608, 1673, 1431, 2054, 696, 3984, 4531, 3812, 4886, 4163, 3667, 2043, 3737, 4873, 517, 1376, 698, 604, 3426, 2740, 228, 1489, 1005, 2611, 3566, 2596, 3405, 4094, 289, 4007, 2202, 3413, 1223, 4848, 3346, 489, 294, 656, 637, 3028, 395, 4006, 331, 4704, 1769, 2967, 751, 638, 685, 156, 3331, 3150, 948, 2351, 4321, 4174, 2193, 1741, 3514, 1144, 235, 3025, 531, 1595, 3431, 732, 4403, 2954, 2893, 3488, 628, 4586, 2880, 3399, 1484, 3972, 1412, 388, 2292, 3931, 4367, 2708, 2987, 838, 84, 2877, 2400, 2712, 2366, 2741, 4546, 165, 2971, 4596, 1299, 527, 3839, 2775, 4049, 2726, 4828, 1087, 1565, 3003, 3279, 299, 2855, 1863, 3573, 3139, 4019, 2545, 4973, 4687, 3202, 2821, 2241, 4158, 1481, 2869, 2894, 2116, 3897, 813, 2262, 805, 4905, 3541, 1833, 4474, 340, 1736, 1694, 552, 777, 4516, 1616, 1264, 275, 4402, 3239, 2422, 2271, 3501, 1132, 1815, 2613, 212, 1887, 3548, 2178, 1802, 2698, 1405, 4778, 2439, 2484, 1278, 4649, 4917, 1978, 1029, 3165, 2573, 2457, 4895, 3974, 4818, 4588, 375, 3563, 2132, 2229, 2458, 509, 1744, 2185, 4460, 4764, 4749, 3418, 1806, 2035, 167, 3647, 704, 583, 894, 1354, 2700, 3869, 3442, 994, 4291, 4169, 2060, 4585, 1056, 4115, 2383, 1599, 1184, 2947, 2109, 3308, 163, 3914, 3337, 1325, 4272, 1627, 1994, 529, 760, 3007, 4587, 4638, 2571, 3846, 4046, 3544, 1103, 2360, 371, 2510, 627, 2343, 3298, 2195, 4401, 442, 4843, 496, 261, 2046, 4509, 2434, 952, 1098, 4892, 3570, 1142, 311, 4753, 1198, 2561, 2393, 3183, 63, 717, 2190, 4218, 4542, 953, 4611, 3617, 128, 2170, 2689, 4515, 201, 1554, 773, 4439, 946, 3031, 1358, 1145, 3809, 792, 886, 2883, 1366, 149, 1839, 4582, 1269, 4536, 4666, 305, 2361, 4904, 934, 3111, 2391, 981, 2364, 2036, 394, 3039, 2863, 4397, 1357, 3643, 1449, 2994, 4268, 925, 4896, 283, 214, 1748, 982, 750, 2483, 3559, 4273, 2061, 899, 1651, 2106, 3664, 1012, 3842, 4328, 3792, 1822, 1935, 1203, 1709, 3329, 4699, 1374, 1727, 28, 2381, 2576, 2336, 684, 2493, 2220, 2504, 1605, 2529, 3918, 2296, 2125, 2693, 1507, 2827, 3322, 4605, 1485, 2767, 2691, 3294, 3378, 4026, 2733, 1655, 2086, 3970, 4696, 1954, 3584, 4182, 3498, 3652, 2155, 4151, 811, 3949, 4876, 2192, 2860, 3065, 4481, 4419, 1111, 1213, 2252, 3784, 1761, 431, 824, 2018, 3161, 4672, 2577, 450, 4788, 3270, 4962, 3015, 332, 2289, 647, 2270, 664, 2349, 286, 434, 4325, 3616, 3222, 455, 4915, 3149, 3451, 616, 3552, 3545, 3859, 41, 2316, 4512, 2442, 1422, 3619, 4840, 2790, 4914, 546, 334, 2255, 4913, 722, 184, 3439, 2593, 2792, 1160, 2176, 1592, 3076, 3746, 3126, 4669, 1922, 2707, 2926, 1653, 182, 4155, 4236, 1840, 199, 4386, 1692, 3187, 1338, 4112, 519, 674, 1615, 2009, 1187, 1786, 4941, 3349, 336, 1982, 4352, 3092, 3361, 1199, 2230, 3547, 2621, 1912, 853, 405, 1872, 4967, 4600, 2399, 4928, 3312, 4204, 651, 574, 3782, 1093, 4144, 2797, 613, 1758, 1107, 4866, 3171, 1570, 4685, 3586, 2867, 4434, 2645, 2774, 1415, 2796, 960, 1958, 846, 2896, 4120, 89, 1528, 4061, 619, 4029, 1291, 2553, 2417, 4185, 312, 4306, 465, 2871, 4503, 3244, 27, 2223, 1824, 4494, 4991, 100, 3200, 3234, 2245, 3173, 962, 4054, 3208, 1210, 4206, 2735, 3281, 364, 4489, 3802, 2414, 4171, 328, 1856, 2059, 389, 1082, 3986, 3825, 1657, 2884, 2408, 4263, 4839, 4714, 1496, 4487, 2588, 4090, 513, 2354, 3309, 1946, 4942, 2369, 2401, 3206, 4888, 4558, 4366, 1903, 4703, 1463, 4215, 80, 2559, 1189, 3893, 3980, 3865, 3551, 2944, 3527, 1225, 4221, 1733, 1825, 1430, 3497, 593, 4500, 3579, 1587, 3157, 817, 2745, 4336, 4599, 3718, 4012, 2463, 1514, 2209, 1941, 1906, 4085, 4927, 2654, 2499, 3645, 3938, 590, 4561, 1759, 2666, 3179, 2838, 2811, 1888, 3360, 2279, 2309, 1302, 2033, 2550, 366, 4133, 1283, 3288, 4673, 1691, 3253, 483, 4659, 810, 2183, 1971, 3828, 2025, 763, 3354, 2294, 2793, 1745, 2074, 4344, 1478, 1182, 1584, 3490, 2879, 2636, 2754, 4359, 2755, 246, 219, 4285, 591, 3722, 3453, 2239, 1081, 686, 85, 3030, 1026, 1097, 847, 3352, 1099, 1713, 1560, 3411, 4420, 4066, 2140, 4241, 4232, 263, 3985, 213, 748, 675, 548, 3670, 1383, 3797, 3400, 3556, 3934, 2569, 1036, 1406, 976, 4329, 2716, 606, 930, 4082, 4266, 3646, 4933, 1545, 4702, 153, 22, 2358, 3468, 3069, 4458, 525, 1076, 1753, 1219, 4495, 2169, 3002, 2751, 229, 2284, 4035, 782, 3057, 859, 4627, 2840, 1728, 4045, 809, 920, 1090, 4433, 4141, 4467, 4347, 3693, 1334, 1930, 1880, 3345, 4978, 1665, 1033, 3609, 4047, 2930, 4148, 1849, 4228, 377, 243, 4413, 3564, 4452, 2172, 4278, 4258, 3640, 2114, 4719, 160, 1167, 1173, 4013, 1596, 992, 3672, 4698, 2600, 352, 1298, 610, 4584, 1760, 4860, 2817, 2850, 2648, 4311, 3194, 1862, 2888, 4577, 3422, 2649, 258, 711, 2507, 315, 4170, 30, 740, 3832, 1606, 115, 137, 3263, 1071, 520, 4208, 3145, 4471};
vector<pair<int, int>> v;
for (int i = 0; i < 9; i++) v.push_back(make_pair(i + 1, i + 2));
for (int i = 0; i < 18; i++) {
for (int j = 0; j < 277; j++) {
v.push_back(make_pair(x % 10 + 1, perm.back()));
perm.pop_back();
}
x /= 10;
}
return v;
}
#include "Bob.h"
#include <bits/stdc++.h>
#define ll long long
#define db double
#define imx INT_MAX
#define imn INT_MIN
#define lmx LLONG_MAX
#define lmn LLONG_MIN
#define ld long double
#define lid id * 2 + 1
#define rid id * 2 + 2
using namespace std;
ll Bob(vector<pair<int, int>> v){
ll ans = 0, mult = 1;
vector<int> perm = {3583, 3158, 175, 2453, 2248, 3572, 4971, 1511, 449, 4940, 2843, 208, 482, 4289, 3410, 3779, 757, 1795, 3605, 506, 282, 2958, 3282, 226, 3326, 885, 1226, 4694, 1004, 4946, 1339, 4513, 2846, 764, 4898, 1361, 2064, 3325, 3295, 1261, 2301, 2283, 1257, 3884, 1429, 841, 4476, 1002, 2171, 2938, 4043, 2080, 4253, 1315, 3676, 2461, 357, 2040, 2706, 43, 601, 785, 133, 448, 4893, 2709, 2012, 4130, 3462, 3166, 3443, 3283, 1762, 4259, 1506, 2078, 3284, 2431, 3829, 2290, 4422, 456, 362, 83, 3694, 1780, 2899, 1784, 3969, 3434, 1575, 3622, 708, 2997, 4239, 3618, 3104, 3754, 4205, 4365, 1438, 4602, 4444, 501, 3086, 1369, 2703, 4395, 3508, 2405, 584, 746, 4637, 3138, 545, 1820, 1114, 3368, 1139, 1649, 4153, 4986, 1500, 2065, 4265, 4518, 2162, 1031, 3061, 2423, 603, 779, 272, 3094, 4083, 2862, 4734, 3412, 1889, 4262, 3999, 1686, 4099, 558, 2407, 1130, 2619, 557, 4743, 512, 3461, 4540, 3943, 1441, 3715, 3686, 561, 1202, 295, 1663, 1742, 3996, 3850, 2763, 3175, 2747, 2044, 1021, 4530, 3044, 4652, 4314, 4341, 429, 407, 2803, 3287, 4416, 499, 4349, 568, 747, 4863, 190, 1460, 2673, 2325, 683, 3887, 3416, 1739, 1086, 55, 4451, 3845, 743, 949, 327, 735, 3988, 181, 3082, 4048, 2134, 2509, 325, 3108, 639, 4808, 4675, 2952, 4378, 4887, 3016, 4938, 81, 2090, 4992, 1177, 2278, 4227, 423, 514, 1393, 707, 1370, 1755, 4809, 2173, 1003, 2720, 868, 2368, 1884, 3666, 2727, 3027, 4722, 16, 69, 3256, 3305, 4578, 2402, 4127, 943, 4805, 1243, 134, 2914, 687, 2920, 2513, 3588, 3132, 3190, 2978, 856, 1408, 2277, 2287, 4003, 2433, 1777, 438, 1659, 2161, 4909, 3167, 3458, 2963, 4377, 3989, 4319, 3794, 516, 2922, 2020, 1151, 3472, 4414, 3807, 3098, 1282, 2662, 4930, 191, 4110, 3493, 2942, 2131, 2006, 1271, 4152, 3762, 1796, 264, 2498, 2970, 2572, 2495, 4657, 2776, 825, 192, 157, 3883, 3908, 1988, 1641, 4903, 2280, 4343, 2208, 3607, 3032, 3534, 2876, 3320, 3517, 1568, 1237, 3562, 4900, 919, 3392, 2626, 633, 2023, 765, 3587, 896, 123, 3363, 541, 241, 215, 536, 753, 2411, 3522, 1670, 2189, 4802, 2777, 3994, 1195, 2348, 3719, 2759, 1439, 987, 695, 148, 345, 470, 3059, 2330, 653, 4943, 2370, 314, 3820, 3745, 3444, 2231, 4691, 110, 4449, 2353, 738, 347, 1013, 403, 3394, 2314, 2548, 1364, 2722, 1399, 1610, 1891, 4305, 3950, 692, 2664, 4555, 4836, 727, 2681, 1936, 3339, 3168, 1205, 39, 3863, 1075, 1096, 4322, 471, 4861, 1594, 1701, 3332, 1473, 615, 3741, 2175, 4838, 4748, 2470, 3744, 473, 301, 2388, 4645, 2788, 2674, 4924, 3062, 3662, 3853, 4247, 4324, 2097, 1752, 974, 2058, 4454, 1115, 1340, 1900, 1382, 1881, 2167, 2274, 416, 1566, 436, 3930, 857, 409, 20, 3687, 2791, 1617, 4398, 3367, 2275, 4635, 3172, 3465, 4493, 4701, 1218, 1543, 3364, 1435, 3650, 4615, 2983, 1850, 1028, 3574, 4741, 1356, 1241, 1996, 1448, 2261, 2841, 4598, 2166, 3774, 479, 897, 2885, 2835, 278, 1280, 2377, 4619, 280, 1841, 4157, 2991, 3393, 3402, 4438, 3013, 2541, 4960, 2338, 3964, 2575, 2206, 2017, 580, 872, 56, 4559, 2909, 1614, 2927, 3055, 3210, 2847, 1582, 304, 3860, 1590, 2105, 76, 4147, 1790, 2487, 1388, 1735, 3438, 2832, 1547, 4674, 2976, 2635, 1124, 1084, 427, 2962, 2781, 1486, 815, 2830, 3516, 4833, 2062, 349, 1869, 3291, 4859, 3341, 3211, 1053, 2584, 3657, 2449, 1275, 3197, 2415, 1800, 2985, 4562, 3302, 909, 1255, 2164, 3929, 2451, 4283, 2819, 2387, 2696, 4639, 3519, 2849, 4744, 3119, 4801, 4709, 1432, 2502, 2101, 2904, 2390, 2786, 2392, 4184, 4798, 595, 2253, 4240, 4705, 2066, 1700, 1134, 3874, 2219, 4844, 4231, 4482, 2542, 58, 4036, 2357, 4807, 3896, 2564, 3963, 2247, 1581, 1140, 1123, 1295, 1813, 4073, 268, 1197, 1235, 1684, 3014, 2464, 4787, 1487, 4617, 1654, 2724, 297, 736, 4865, 4441, 2373, 3987, 4023, 1030, 2217, 4560, 1998, 2586, 726, 1623, 1792, 4823, 4713, 1527, 1685, 2257, 193, 710, 2191, 1672, 641, 2688, 4654, 3678, 2226, 892, 3242, 426, 251, 3386, 4631, 4786, 3922, 1009, 4039, 1259, 3955, 4953, 4533, 2345, 2240, 273, 4040, 2641, 1562, 3192, 1804, 1860, 4095, 1585, 4270, 2104, 1708, 997, 1771, 4763, 4396, 3215, 1391, 1905, 1502, 2298, 1631, 3440, 1331, 1970, 4830, 255, 4370, 1854, 563, 2701, 4335, 3509, 836, 3800, 1855, 3424, 4274, 4718, 1467, 1885, 874, 1911, 4103, 2416, 956, 2579, 309, 1465, 4837, 2895, 1425, 3296, 4348, 3915, 1785, 1389, 3473, 3366, 3889, 1080, 3159, 3450, 3097, 45, 1898, 2734, 3369, 440, 2264, 1794, 4733, 321, 1719, 1662, 1579, 3066, 3906, 3403, 1642, 1442, 2363, 1455, 4038, 350, 629, 3075, 4742, 999, 2515, 98, 2205, 4199, 2906, 1023, 3156, 476, 2630, 2168, 3268, 3225, 4498, 2612, 921, 521, 3747, 3035, 2980, 222, 3398, 414, 4183, 1763, 4528, 3811, 3613, 942, 4527, 26, 3071, 4368, 798, 2177, 3684, 2969, 186, 1499, 1342, 840, 4058, 412, 4217, 4811, 4387, 4853, 203, 1397, 4935, 1897, 125, 4591, 528, 4575, 1371, 3496, 1697, 1622, 4929, 1664, 1186, 3099, 4693, 3668, 3280, 2323, 4431, 4445, 503, 95, 4024, 1293, 2341, 152, 621, 3827, 4050, 3813, 1385, 2607, 2356, 1725, 1754, 530, 1109, 171, 640, 2982, 3997, 2321, 2512, 3979, 4242, 4355, 4060, 2342, 3221, 767, 3634, 3888, 35, 4415, 1923, 1674, 998, 1723, 4429, 3425, 4948, 3230, 1729, 734, 1170, 4135, 844, 2478, 2028, 4523, 3077, 3521, 903, 2272, 4925, 1981, 3033, 2295, 292, 129, 1574, 57, 4499, 4100, 2680, 1913, 2939, 2396, 4446, 4729, 2833, 355, 3724, 3347, 599, 104, 4539, 4292, 240, 3791, 4412, 14, 908, 296, 3269, 4867, 3480, 697, 2307, 3830, 4180, 4901, 2312, 3129, 3633, 2071, 1095, 4297, 4382, 3518, 3711, 2631, 645, 2610, 1380, 542, 2857, 3824, 1516, 4634, 3927, 3103, 3009, 4785, 4358, 725, 1667, 1682, 1363, 4284, 2014, 3327, 4442, 1039, 1633, 1459, 1837, 1263, 4947, 2196, 1848, 4062, 1300, 801, 3432, 1146, 2092, 2798, 1128, 4682, 4916, 796, 1875, 3659, 954, 4706, 2549, 4280, 924, 672, 4855, 1367, 3049, 4720, 4373, 2138, 2981, 4425, 3427, 1509, 51, 1020, 4988, 1206, 491, 4203, 4642, 4881, 3507, 3273, 1450, 221, 3041, 230, 365, 620, 975, 2723, 3948, 3448, 1387, 1006, 4572, 3681, 4408, 4678, 61, 4369, 2108, 2494, 3740, 2615, 1346, 18, 4894, 1495, 2087, 2721, 2339, 2778, 3648, 3479, 945, 861, 259, 2725, 2710, 3048, 4098, 4105, 1061, 721, 1765, 4736, 1504, 88, 1479, 1368, 2784, 3892, 1427, 428, 4301, 204, 4351, 4804, 2889, 159, 4010, 90, 4304, 713, 1973, 2714, 1904, 3569, 1301, 644, 155, 879, 1992, 1773, 446, 121, 869, 839, 3481, 3011, 2426, 3912, 1750, 2137, 1311, 668, 3623, 4768, 544, 2110, 306, 1396, 2141, 938, 2992, 4142, 3229, 4821, 578, 4320, 291, 1646, 3232, 1724, 3903, 564, 4455, 4331, 378, 385, 2455, 2266, 4640, 1240, 911, 363, 1620, 4849, 4731, 4005, 828, 1285, 3428, 4162, 1726, 4665, 1185, 4891, 2931, 1453, 3710, 806, 2497, 108, 1909, 2496, 391, 1939, 3271, 2143, 443, 2374, 3436, 971, 535, 4633, 887, 3690, 2531, 298, 4391, 3040, 560, 3692, 4246, 3965, 2731, 2638, 3017, 1799, 4014, 154, 2715, 2333, 4869, 2912, 2244, 556, 487, 1689, 4480, 4078, 1803, 3510, 2254, 3489, 12, 3101, 4897, 162, 202, 4224, 575, 4757, 2118, 1552, 1444, 3531, 670, 4243, 1826, 2998, 1968, 673, 3379, 1083, 3153, 3343, 784, 2642, 2089, 2539, 2547, 786, 4113, 461, 1181, 3373, 4361, 3726, 1738, 4663, 2965, 3219, 1297, 3502, 1054, 875, 1652, 508, 1972, 944, 1600, 1821, 2505, 3184, 3437, 4011, 1644, 1643, 2129, 2027, 376, 1635, 510, 402, 1497, 3243, 4944, 4721, 2995, 2692, 1603, 3991, 2765, 481, 3959, 1404, 1861, 4579, 3238, 1466, 1870, 467, 1783, 884, 2772, 4468, 3789, 4496, 1788, 851, 983, 317, 2953, 1598, 742, 2004, 4350, 3088, 1153, 2032, 337, 4102, 3050, 1969, 1373, 4794, 3872, 354, 4381, 4755, 379, 873, 1375, 4187, 4827, 913, 4797, 2136, 1928, 2789, 2603, 4248, 3409, 53, 2047, 3873, 631, 964, 3492, 1611, 845, 2546, 23, 4671, 4525, 1256, 1392, 3018, 1517, 3313, 842, 614, 1336, 382, 2602, 2749, 24, 3848, 1069, 3926, 1975, 3407, 2761, 4028, 1918, 4138, 2030, 654, 4052, 3316, 3895, 1222, 689, 1060, 54, 4041, 343, 3257, 1588, 4457, 2327, 3267, 889, 4488, 3037, 2859, 4267, 4864, 566, 1720, 2941, 384, 4760, 660, 170, 135, 1563, 3702, 1505, 661, 891, 3289, 3404, 1669, 524, 3743, 2384, 3315, 2039, 4287, 4318, 4086, 4817, 2300, 4626, 754, 25, 3348, 2346, 1722, 398, 2856, 4271, 302, 2124, 52, 3500, 594, 2921, 3921, 4831, 4750, 4854, 1273, 4417, 4776, 4363, 1410, 413, 720, 3351, 4918, 923, 1583, 2212, 2267, 2491, 4021, 555, 2730, 2165, 4056, 4656, 4190, 1957, 3951, 3709, 3370, 3553, 3560, 907, 3310, 4192, 3594, 4079, 1808, 2911, 3080, 1104, 901, 3441, 351, 1395, 980, 4956, 551, 940, 4034, 4875, 79, 648, 1842, 4958, 1967, 4211, 4327, 2746, 2098, 2085, 699, 2359, 2447, 2764, 1926, 4846, 4996, 1108, 3116, 4908, 3876, 44, 3661, 4829, 2444, 1751, 3749, 1474, 4505, 2743, 2870, 4660, 3877, 4491, 1671, 1100, 2594, 2501, 3233, 4594, 1679, 1272, 1365, 1768, 2657, 3995, 276, 3371, 1065, 1260, 2404, 3255, 2732, 29, 4565, 1289, 928, 474, 1034, 4470, 2852, 3381, 478, 970, 4096, 2589, 4549, 3628, 256, 3557, 1436, 3826, 3038, 4009, 831, 3764, 4186, 2929, 4847, 567, 147, 4810, 642, 3739, 1787, 1561, 1409, 4238, 666, 1193, 3344, 4690, 3630, 3506, 922, 1546, 373, 4302, 430, 4143, 4118, 4030, 1014, 2286, 1845, 3528, 2067, 4409, 3671, 3052, 247, 3728, 3216, 2475, 2739, 4796, 3203, 2717, 931, 715, 1238, 1711, 850, 1540, 2276, 1823, 1476, 1279, 2961, 2232, 4128, 2959, 4490, 4430, 3767, 2236, 3735, 4443, 3182, 1532, 3695, 4463, 2163, 1062, 3952, 1125, 2174, 4556, 1879, 3372, 249, 3937, 2637, 780, 2421, 4921, 197, 424, 2802, 4129, 2281, 2729, 2376, 3311, 2907, 2479, 550, 3703, 2989, 812, 4456, 533, 1437, 4607, 4179, 2919, 1022, 3688, 867, 2332, 3212, 1308, 996, 2651, 4484, 1055, 1221, 4453, 3837, 1333, 2477, 608, 3858, 1580, 2891, 3913, 3700, 4307, 1178, 136, 682, 2597, 3340, 1234, 1171, 4629, 3151, 2620, 2591, 1961, 1521, 4880, 4745, 1508, 576, 2758, 1732, 1043, 2794, 4686, 3029, 582, 224, 1117, 62, 2646, 1070, 565, 2695, 2713, 1183, 505, 150, 4298, 3581, 3365, 808, 3262, 117, 2227, 4070, 1423, 961, 1323, 1266, 21, 1492, 2799, 91, 1172, 2705, 1265, 4815, 1327, 3760, 4091, 2120, 319, 3867, 4385, 4832, 2072, 2866, 3231, 1121, 4313, 3079, 1214, 3596, 2917, 3001, 1119, 3639, 3561, 4957, 2562, 1011, 3328, 2736, 333, 3135, 293, 3793, 3540, 1428, 1398, 2250, 3625, 1419, 4461, 1558, 3395, 1038, 4146, 1696, 3087, 2235, 2265, 4149, 643, 4726, 1940, 1534, 3641, 623, 2834, 3078, 48, 4710, 1916, 3598, 146, 3106, 3248, 468, 2614, 4160, 1050, 4121, 2590, 2950, 1960, 42, 3482, 1216, 2310, 4661, 3880, 1589, 2535, 3144, 4609, 1536, 1047, 1384, 2563, 700, 1781, 3851, 2752, 3644, 4919, 1122, 1551, 1718, 860, 1494, 1907, 1126, 223, 2685, 2806, 3924, 3355, 2379, 1434, 756, 4388, 2019, 1947, 4125, 1626, 3796, 4922, 3526, 211, 1498, 1858, 1637, 4225, 2892, 2768, 1572, 4814, 2324, 2329, 234, 3303, 4466, 2305, 4877, 2671, 4464, 2466, 4065, 969, 4535, 2580, 1212, 655, 1817, 3491, 205, 3021, 3096, 3834, 2355, 4376, 2410, 4961, 2785, 4326, 4123, 2218, 218, 622, 3891, 1276, 4910, 4781, 3910, 3868, 3112, 3307, 932, 109, 4230, 2783, 4000, 266, 4803, 4592, 2977, 2581, 3306, 3317, 310, 2660, 4601, 164, 2077, 1246, 3484, 719, 3836, 906, 2587, 2460, 169, 459, 2091, 4711, 94, 2184, 1162, 2650, 2737, 2968, 3391, 1164, 1159, 662, 2656, 3430, 1951, 253, 4581, 3463, 2011, 3738, 3429, 866, 4201, 3542, 832, 1539, 1757, 671, 1807, 1136, 3456, 2928, 4544, 1943, 2335, 1351, 4093, 3958, 421, 3731, 4959, 950, 4987, 3240, 540, 4806, 3136, 1995, 4140, 2311, 1805, 3890, 4426, 1215, 2979, 2853, 2757, 3034, 1874, 4126, 1089, 3947, 1294, 2413, 3019, 3786, 4067, 2831, 1001, 3558, 4213, 4759, 1892, 11, 75, 3626, 2201, 3568, 523, 2762, 2056, 3006, 3389, 3176, 1974, 307, 2469, 3620, 4501, 4334, 3960, 898, 2780, 3323, 4166, 3449, 3475, 1018, 485, 2427, 1326, 3567, 4354, 4751, 1883, 1859, 823, 2536, 4979, 1717, 758, 441, 716, 2532, 494, 1675, 2719, 1559, 1077, 3716, 2103, 78, 904, 4728, 1896, 2683, 1401, 3992, 248, 2409, 269, 1624, 124, 3113, 127, 830, 2623, 4717, 1571, 752, 4064, 4529, 804, 2016, 3790, 3638, 1832, 2527, 1743, 4868, 849, 3330, 72, 3589, 1529, 1569, 1952, 2113, 492, 2313, 2585, 1836, 1894, 3554, 522, 3730, 4448, 2258, 3455, 2829, 3487, 4842, 1337, 2395, 2340, 3198, 477, 4707, 2868, 3582, 678, 2525, 1767, 2836, 1267, 1843, 635, 1945, 101, 2273, 4252, 1059, 3818, 4333, 3904, 4195, 4974, 130, 3054, 1248, 2005, 2826, 144, 4604, 118, 2718, 4089, 3196, 4025, 855, 1078, 2243, 978, 3499, 1938, 4063, 3919, 3861, 3555, 1811, 4145, 2318, 4977, 2633, 2955, 4394, 4583, 3304, 3571, 1882, 2263, 2303, 2084, 4740, 176, 1137, 358, 3042, 4770, 1129, 2437, 1535, 1024, 1306, 1705, 3698, 951, 3879, 3604, 2467, 179, 2655, 4286, 2424, 284, 2908, 1066, 984, 3227, 270, 3862, 611, 4165, 2804, 963, 4399, 2554, 475, 4800, 2350, 1008, 2823, 553, 4392, 4820, 209, 2738, 1553, 3962, 4296, 3146, 816, 2347, 1270, 4077, 1321, 1176, 1901, 3237, 858, 2448, 3466, 3265, 939, 2828, 2949, 2488, 1690, 570, 2037, 724, 3353, 216, 4870, 3520, 139, 4932, 451, 579, 2156, 3917, 38, 2319, 759, 1977, 1118, 1236, 1179, 1730, 1621, 1471, 4949, 3010, 1602, 4644, 4700, 3420, 2704, 4608, 2322, 2574, 1557, 569, 1493, 3866, 729, 4437, 2923, 3193, 2842, 3124, 322, 2592, 1983, 1402, 1106, 2617, 744, 1025, 3838, 4589, 4114, 173, 3600, 834, 3358, 2038, 3474, 1828, 457, 852, 3549, 3140, 1188, 4207, 1577, 187, 1608, 4502, 2848, 1873, 3966, 2326, 1231, 770, 4088, 3120, 445, 3470, 2975, 4723, 957, 3207, 4812, 257, 3275, 2675, 1262, 237, 1829, 4708, 4421, 2446, 730, 3977, 1440, 2079, 819, 2403, 4212, 4622, 652, 2234, 437, 691, 914, 4027, 217, 3803, 1464, 1710, 3020, 372, 381, 3771, 3250, 4697, 1687, 3261, 4051, 3148, 2010, 1775, 2127, 2519, 4214, 1048, 3993, 2115, 1537, 4739, 13, 4053, 2825, 2676, 1258, 151, 4569, 3606, 370, 207, 1927, 3105, 463, 1548, 1175, 3983, 3024, 1525, 4724, 4571, 4250, 2288, 3840, 1094, 3788, 1131, 1914, 3321, 4712, 3808, 2297, 4390, 1252, 3673, 3134, 4055, 1447, 1019, 2996, 464, 3089, 2486, 4288, 1814, 4972, 4261, 2677, 657, 4879, 4766, 1143, 3699, 3154, 1319, 2779, 3597, 1461, 4393, 3580, 3902, 4016, 3971, 2684, 2352, 3471, 1304, 4772, 2315, 539, 3585, 4595, 3460, 592, 4196, 2913, 4989, 3781, 818, 2771, 1091, 1747, 97, 4071, 3109, 3452, 2670, 4074, 3675, 2154, 2073, 4294, 1857, 1068, 2228, 4517, 1127, 1865, 2524, 3593, 3536, 910, 1746, 4570, 37, 3376, 4427, 4081, 1110, 1457, 2207, 1964, 669, 1303, 912, 1227, 3174, 4198, 888, 417, 2148, 2182, 1416, 1035, 977, 1418, 122, 2933, 3249, 2008, 138, 1989, 880, 4254, 3956, 4618, 120, 3680, 2213, 4092, 194, 4124, 1154, 4293, 4646, 3804, 1169, 1052, 3849, 2485, 4507, 4684, 285, 1932, 1049, 1341, 4340, 114, 3875, 4752, 1150, 3612, 1163, 1477, 3188, 2251, 4825, 1042, 1085, 4269, 183, 1233, 119, 3844, 4835, 2951, 458, 1046, 1158, 2900, 4773, 2945, 1156, 4951, 2152, 3178, 1650, 3637, 4955, 4950, 4936, 2697, 2865, 1902, 4244, 2256, 2320, 1377, 4616, 918, 1809, 2179, 4824, 1411, 1716, 802, 3292, 573, 1555, 2260, 4017, 2742, 2459, 4683, 2454, 3056, 4975, 947, 2200, 4219, 4792, 2557, 1149, 1417, 2627, 990, 3773, 829, 1920, 1966, 3274, 1510, 4862, 933, 991, 185, 244, 2875, 4548, 4620, 1779, 3660, 40, 1987, 3122, 1010, 2886, 132, 2385, 33, 2418, 3258, 2616, 4459, 2051, 1067, 420, 3916, 4552, 4309, 2204, 1482, 1782, 2334, 36, 658, 4323, 585, 2956, 2149, 1703, 4874, 3787, 2903, 3390, 4257, 1116, 1955, 2890, 3251, 731, 2824, 1230, 2948, 320, 4044, 3204, 4405, 4216, 290, 2702, 1731, 2246, 4732, 1344, 3795, 4628, 4526, 2805, 4551, 2540, 4574, 3841, 1522, 967, 3199, 4264, 3223, 3137, 116, 3658, 4432, 718, 4360, 1915, 386, 4756, 2210, 2864, 3293, 4220, 3642, 2653, 1328, 3083, 1000, 2088, 3805, 2159, 2055, 876, 4492, 1148, 1601, 1997, 2063, 1135, 2932, 680, 4858, 4194, 4181, 1868, 2440, 4779, 3093, 1290, 3864, 4538, 2905, 2197, 1984, 890, 1666, 562, 3218, 4428, 2456, 2436, 3750, 1834, 267, 4299, 2807, 1530, 1211, 418, 4131, 15, 1647, 1714, 790, 2199, 609, 2659, 1513, 3595, 4316, 4789, 3801, 3621, 3252, 1895, 2609, 3356, 4746, 4923, 1092, 3708, 4550, 2367, 3961, 1196, 3523, 1734, 4655, 2123, 1999, 1749, 3121, 4934, 1253, 4117, 771, 4983, 1343, 2699, 4725, 665, 3748, 3421, 1648, 74, 927, 4647, 1949, 1201, 3383, 883, 4679, 2126, 3081, 1899, 4504, 1925, 723, 1155, 1518, 4774, 4084, 439, 3486, 3763, 4514, 3147, 4404, 3677, 3635, 1015, 2365, 4178, 2146, 3478, 2142, 4553, 3821, 4568, 3046, 46, 341, 4651, 3454, 3907, 693, 161, 140, 369, 2556, 4653, 2082, 335, 4108, 252, 916, 1407, 3543, 3535, 4791, 2993, 4912, 800, 73, 3766, 262, 1819, 1681, 1661, 1660, 2372, 702, 1564, 3590, 3515, 3336, 3091, 4511, 882, 1232, 3814, 329, 4031, 986, 31, 3777, 3457, 1229, 3855, 1088, 3318, 2694, 2425, 1704, 3177, 1292, 2317, 1607, 1965, 4068, 3074, 4506, 4911, 1220, 3733, 4315, 871, 3127, 1942, 4164, 2057, 4624, 3334, 3603, 4765, 2643, 3615, 2474, 3578, 188, 2814, 195, 624, 3495, 93, 3665, 2389, 577, 1831, 3663, 3152, 4850, 3823, 2690, 2935, 3163, 4101, 4737, 3923, 4521, 821, 4097, 4767, 4357, 4668, 2221, 1274, 1950, 4510, 1523, 4383, 3732, 2203, 406, 1640, 2076, 3856, 1830, 2787, 3350, 1192, 4139, 3118, 4754, 3683, 1693, 4926, 2445, 326, 571, 2237, 2443, 2371, 1612, 2538, 3953, 1680, 2428, 597, 1475, 1324, 1445, 374, 1778, 17, 3477, 504, 2809, 4189, 4780, 3246, 989, 973, 3636, 4004, 484, 453, 1959, 2844, 3125, 2753, 1629, 612, 3565, 4332, 3689, 4371, 411, 3195, 1503, 3205, 1317, 4519, 2268, 1332, 3720, 1810, 1209, 1772, 3504, 2678, 2150, 3833, 2608, 4758, 1818, 1190, 4795, 2095, 1944, 1847, 625, 4658, 3224, 4902, 2490, 2293, 2406, 1208, 4167, 769, 87, 3978, 4191, 4418, 4281, 210, 1541, 3045, 3707, 2957, 4175, 3130, 4308, 1636, 2492, 2812, 4730, 2528, 1835, 959, 2668, 502, 822, 4964, 2625, 4075, 4059, 3012, 4037, 3272, 3885, 1986, 4475, 65, 4424, 634, 3881, 3898, 2337, 2601, 3945, 4353, 1645, 4662, 4692, 2031, 663, 2242, 3817, 2570, 791, 2048, 1113, 4406, 4735, 1284, 1452, 2881, 3408, 2925, 4364, 493, 3191, 2302, 3377, 781, 1812, 4677, 454, 1470, 2188, 462, 4567, 4920, 126, 1312, 2432, 330, 3798, 3446, 1846, 1316, 1335, 2858, 2224, 794, 965, 955, 380, 1488, 4834, 4648, 3299, 4001, 2029, 2632, 3649, 1893, 1683, 966, 1524, 4137, 3133, 600, 1064, 3155, 486, 3679, 4104, 878, 993, 3982, 3419, 4159, 659, 3529, 2851, 1877, 2769, 3550, 3894, 4109, 1322, 2508, 1791, 3513, 3727, 1165, 103, 2537, 4681, 3090, 4447, 3901, 3757, 1180, 2094, 231, 3107, 2147, 733, 2468, 2130, 4234, 3751, 466, 242, 4087, 1921, 795, 837, 3406, 2122, 2003, 1313, 3260, 2770, 2107, 1074, 4636, 3115, 679, 3706, 3998, 4339, 843, 2644, 4472, 1421, 4576, 3319, 4497, 2813, 4906, 3697, 2034, 4154, 1016, 864, 2144, 172, 2578, 3023, 1630, 59, 4822, 4985, 4963, 2198, 3220, 4245, 4330, 1063, 1372, 2430, 1963, 915, 4715, 3095, 361, 245, 4593, 881, 3770, 2551, 4372, 4380, 3247, 4907, 3186, 3933, 4777, 497, 227, 2013, 1318, 3445, 589, 4277, 1533, 2837, 2506, 2375, 4279, 2160, 2910, 4790, 1797, 324, 2489, 1707, 3384, 419, 113, 4072, 1688, 1531, 2304, 3085, 338, 1360, 1985, 3905, 4002, 4937, 2093, 4856, 2560, 3285, 4580, 1702, 2972, 2940, 225, 4954, 238, 2618, 1844, 206, 2282, 1698, 3843, 3831, 1886, 2386, 1853, 3780, 344, 3063, 4738, 3721, 2986, 102, 1480, 2344, 1249, 3575, 1348, 2988, 2331, 2820, 3114, 4664, 1320, 3546, 3180, 4462, 4966, 3940, 2135, 3935, 3729, 4851, 2194, 2216, 4508, 435, 1362, 3631, 1774, 3236, 2634, 1307, 646, 526, 1239, 1538, 2622, 3000, 303, 3102, 4883, 2299, 2990, 96, 3004, 2973, 532, 4641, 4771, 4033, 3696, 2773, 3714, 4042, 4939, 4389, 174, 1668, 1191, 3822, 2100, 1394, 4260, 2901, 239, 1737, 2112, 1007, 1250, 3512, 737, 2839, 2808, 2362, 4981, 3900, 1501, 3627, 1695, 598, 3423, 3338, 158, 2682, 3954, 3975, 4632, 3128, 2503, 4643, 848, 1578, 2050, 3117, 2096, 3447, 1864, 1105, 1658, 359, 2024, 703, 3314, 917, 142, 77, 444, 3385, 3264, 1051, 2599, 4251, 287, 3990, 1247, 1567, 498, 3776, 1296, 826, 2669, 979, 4020, 1639, 200, 3654, 3899, 415, 1770, 2186, 1141, 2544, 3611, 2658, 4688, 3530, 618, 1414, 3375, 4845, 4400, 1242, 4473, 3655, 3469, 3110, 1956, 3169, 4197, 400, 1917, 3068, 1424, 4134, 543, 3753, 2380, 4564, 4885, 3539, 2543, 2629, 3388, 3290, 4111, 260, 4650, 1756, 2582, 1040, 4532, 4793, 4255, 3254, 271, 1934, 422, 985, 4410, 1550, 4990, 3911, 2000, 2937, 1168, 1776, 4857, 4300, 339, 2075, 4563, 2744, 2728, 1556, 2873, 3939, 1345, 3464, 3920, 3483, 2476, 4276, 1330, 2606, 432, 189, 308, 4176, 1456, 4968, 92, 50, 3538, 572, 2308, 3067, 4345, 2397, 3181, 4119, 1381, 3485, 3235, 4603, 2412, 4762, 3324, 1072, 4541, 4290, 2598, 4384, 360, 4379, 4952, 3742, 3333, 1310, 1764, 3382, 1458, 1147, 4317, 4852, 2760, 500, 709, 766, 64, 99, 1715, 3968, 3387, 3772, 4980, 4237, 3189, 4275, 827, 972, 4522, 2974, 1491, 2566, 694, 1217, 1706, 3624, 106, 2530, 4223, 1329, 968, 3957, 745, 3537, 789, 368, 2069, 2667, 4202, 2898, 4676, 1801, 4022, 865, 4884, 728, 3511, 4282, 3909, 49, 2748, 4346, 145, 3682, 3878, 3278, 937, 4524, 1483, 1451, 1618, 706, 4450, 3414, 4076, 397, 775, 3300, 4899, 588, 4249, 4122, 3380, 4136, 1910, 863, 630, 342, 3936, 799, 3599, 762, 2915, 2605, 1924, 2441, 581, 232, 2291, 1699, 2111, 3060, 681, 143, 3374, 2233, 3051, 3758, 3131, 1244, 2583, 3725, 1355, 3653, 452, 2711, 393, 4477, 4483, 2679, 469, 4931, 1929, 511, 2595, 4193, 141, 4630, 814, 4116, 3532, 712, 4606, 3266, 392, 4229, 2514, 3397, 277, 1515, 1032, 3008, 3967, 447, 1027, 3533, 1041, 677, 2887, 1228, 4872, 2672, 1138, 768, 1919, 3503, 3162, 1712, 2861, 1593, 549, 649, 1490, 4783, 4965, 460, 1979, 2042, 741, 4423, 3755, 47, 3043, 3886, 776, 772, 788, 4235, 936, 4485, 4018, 4625, 2750, 2943, 390, 3433, 1245, 3944, 70, 1953, 3976, 2117, 3362, 166, 4080, 1073, 3629, 2382, 2918, 1204, 1207, 4543, 4614, 3005, 4984, 2766, 32, 2041, 774, 4621, 3435, 2153, 688, 3691, 1378, 2187, 4782, 3610, 507, 404, 2882, 288, 958, 3651, 3816, 3214, 3819, 1194, 650, 1254, 1931, 3602, 3525, 111, 4342, 4209, 1174, 4816, 3882, 2558, 2628, 177, 739, 3073, 3185, 4557, 3701, 3070, 4623, 2121, 2568, 1472, 4727, 1878, 1305, 3928, 1766, 3297, 19, 2946, 1512, 3415, 495, 3259, 4799, 4032, 4008, 2026, 1933, 3577, 2002, 1359, 3072, 1161, 2378, 2916, 2181, 787, 2795, 1251, 3775, 3601, 870, 2083, 3036, 4889, 1224, 2647, 4976, 4890, 274, 3241, 4478, 4554, 2652, 3026, 667, 4747, 3713, 3656, 3123, 2070, 4547, 399, 833, 2471, 2052, 2022, 383, 2015, 2854, 2810, 1677, 2452, 3973, 1133, 408, 3396, 1443, 515, 926, 250, 605, 1379, 2756, 1976, 755, 1573, 1352, 1937, 2960, 3100, 3576, 4994, 1350, 2133, 1838, 1044, 4303, 1591, 3286, 4337, 1852, 3228, 538, 60, 2007, 935, 3401, 3058, 433, 1542, 1871, 1876, 2818, 2482, 82, 4761, 2238, 3925, 1793, 3301, 902, 2816, 4667, 2465, 1045, 3942, 4813, 4295, 2180, 3201, 2661, 2222, 2119, 2522, 3417, 396, 617, 4982, 4613, 1101, 3592, 1721, 1544, 636, 1948, 1079, 4995, 803, 2523, 3723, 3217, 2211, 4172, 2225, 3815, 4945, 1990, 4969, 1386, 1549, 1980, 2001, 2021, 401, 4486, 4411, 4993, 537, 4356, 3759, 4534, 3142, 3209, 793, 3226, 4566, 1789, 4465, 2517, 3245, 2249, 3277, 265, 547, 988, 632, 1349, 3717, 714, 2394, 1890, 1469, 1526, 3143, 3160, 2151, 1676, 3734, 1314, 2874, 3761, 1353, 2518, 198, 4590, 4407, 4769, 3047, 4015, 3852, 3785, 3053, 2533, 1288, 2565, 1638, 480, 4107, 1462, 2259, 2045, 1420, 490, 2472, 4233, 2902, 2049, 2157, 3799, 1157, 3871, 2640, 2897, 2158, 3213, 2845, 3359, 4210, 472, 1390, 2801, 4784, 2306, 2934, 2624, 3467, 1277, 893, 2419, 783, 1446, 3870, 2328, 4680, 2665, 3476, 4775, 3022, 2081, 3494, 1413, 1632, 3141, 3783, 4545, 797, 356, 2269, 2966, 2102, 4226, 2604, 626, 3632, 4177, 534, 196, 3170, 3835, 2435, 1102, 2500, 353, 1867, 2099, 2068, 71, 4435, 4537, 4310, 1309, 3946, 2420, 4106, 2964, 2552, 1613, 3276, 67, 3335, 4222, 761, 4188, 1866, 835, 1017, 862, 4168, 596, 877, 4057, 425, 2639, 2872, 2878, 2438, 2398, 1604, 778, 2481, 2663, 3705, 559, 2473, 3932, 1816, 4841, 3736, 220, 4132, 2567, 1400, 1576, 1597, 4695, 3752, 410, 1433, 705, 995, 131, 2782, 1609, 3712, 2800, 1120, 3084, 1586, 2128, 1991, 1152, 1037, 4156, 518, 1740, 2139, 2815, 2822, 300, 4338, 1058, 900, 2521, 4716, 2516, 4826, 3704, 2936, 346, 3669, 3342, 2462, 2984, 3941, 1403, 348, 676, 1286, 3459, 4882, 3847, 4440, 316, 2285, 3854, 281, 820, 3769, 1057, 4375, 2526, 4970, 701, 2924, 3685, 4819, 1628, 4374, 2450, 233, 4173, 607, 3614, 1520, 318, 3164, 1798, 3524, 854, 4670, 2215, 586, 34, 4069, 4573, 2145, 2053, 2480, 3674, 178, 3806, 168, 2520, 3591, 4436, 929, 3357, 4689, 941, 3857, 86, 236, 4200, 1634, 4878, 1656, 1678, 1625, 554, 2214, 3768, 2687, 1112, 2429, 4469, 367, 1268, 1281, 3765, 690, 1454, 488, 3981, 2534, 66, 3778, 1200, 1287, 807, 1426, 4610, 254, 2555, 68, 4362, 4520, 4612, 4871, 387, 749, 4597, 1519, 313, 3810, 1347, 1851, 3756, 3064, 895, 2511, 112, 587, 107, 3505, 105, 602, 2686, 1827, 4256, 1619, 4312, 1962, 2999, 4161, 180, 905, 1993, 4150, 279, 1908, 323, 1166, 1468, 4479, 3608, 1673, 1431, 2054, 696, 3984, 4531, 3812, 4886, 4163, 3667, 2043, 3737, 4873, 517, 1376, 698, 604, 3426, 2740, 228, 1489, 1005, 2611, 3566, 2596, 3405, 4094, 289, 4007, 2202, 3413, 1223, 4848, 3346, 489, 294, 656, 637, 3028, 395, 4006, 331, 4704, 1769, 2967, 751, 638, 685, 156, 3331, 3150, 948, 2351, 4321, 4174, 2193, 1741, 3514, 1144, 235, 3025, 531, 1595, 3431, 732, 4403, 2954, 2893, 3488, 628, 4586, 2880, 3399, 1484, 3972, 1412, 388, 2292, 3931, 4367, 2708, 2987, 838, 84, 2877, 2400, 2712, 2366, 2741, 4546, 165, 2971, 4596, 1299, 527, 3839, 2775, 4049, 2726, 4828, 1087, 1565, 3003, 3279, 299, 2855, 1863, 3573, 3139, 4019, 2545, 4973, 4687, 3202, 2821, 2241, 4158, 1481, 2869, 2894, 2116, 3897, 813, 2262, 805, 4905, 3541, 1833, 4474, 340, 1736, 1694, 552, 777, 4516, 1616, 1264, 275, 4402, 3239, 2422, 2271, 3501, 1132, 1815, 2613, 212, 1887, 3548, 2178, 1802, 2698, 1405, 4778, 2439, 2484, 1278, 4649, 4917, 1978, 1029, 3165, 2573, 2457, 4895, 3974, 4818, 4588, 375, 3563, 2132, 2229, 2458, 509, 1744, 2185, 4460, 4764, 4749, 3418, 1806, 2035, 167, 3647, 704, 583, 894, 1354, 2700, 3869, 3442, 994, 4291, 4169, 2060, 4585, 1056, 4115, 2383, 1599, 1184, 2947, 2109, 3308, 163, 3914, 3337, 1325, 4272, 1627, 1994, 529, 760, 3007, 4587, 4638, 2571, 3846, 4046, 3544, 1103, 2360, 371, 2510, 627, 2343, 3298, 2195, 4401, 442, 4843, 496, 261, 2046, 4509, 2434, 952, 1098, 4892, 3570, 1142, 311, 4753, 1198, 2561, 2393, 3183, 63, 717, 2190, 4218, 4542, 953, 4611, 3617, 128, 2170, 2689, 4515, 201, 1554, 773, 4439, 946, 3031, 1358, 1145, 3809, 792, 886, 2883, 1366, 149, 1839, 4582, 1269, 4536, 4666, 305, 2361, 4904, 934, 3111, 2391, 981, 2364, 2036, 394, 3039, 2863, 4397, 1357, 3643, 1449, 2994, 4268, 925, 4896, 283, 214, 1748, 982, 750, 2483, 3559, 4273, 2061, 899, 1651, 2106, 3664, 1012, 3842, 4328, 3792, 1822, 1935, 1203, 1709, 3329, 4699, 1374, 1727, 28, 2381, 2576, 2336, 684, 2493, 2220, 2504, 1605, 2529, 3918, 2296, 2125, 2693, 1507, 2827, 3322, 4605, 1485, 2767, 2691, 3294, 3378, 4026, 2733, 1655, 2086, 3970, 4696, 1954, 3584, 4182, 3498, 3652, 2155, 4151, 811, 3949, 4876, 2192, 2860, 3065, 4481, 4419, 1111, 1213, 2252, 3784, 1761, 431, 824, 2018, 3161, 4672, 2577, 450, 4788, 3270, 4962, 3015, 332, 2289, 647, 2270, 664, 2349, 286, 434, 4325, 3616, 3222, 455, 4915, 3149, 3451, 616, 3552, 3545, 3859, 41, 2316, 4512, 2442, 1422, 3619, 4840, 2790, 4914, 546, 334, 2255, 4913, 722, 184, 3439, 2593, 2792, 1160, 2176, 1592, 3076, 3746, 3126, 4669, 1922, 2707, 2926, 1653, 182, 4155, 4236, 1840, 199, 4386, 1692, 3187, 1338, 4112, 519, 674, 1615, 2009, 1187, 1786, 4941, 3349, 336, 1982, 4352, 3092, 3361, 1199, 2230, 3547, 2621, 1912, 853, 405, 1872, 4967, 4600, 2399, 4928, 3312, 4204, 651, 574, 3782, 1093, 4144, 2797, 613, 1758, 1107, 4866, 3171, 1570, 4685, 3586, 2867, 4434, 2645, 2774, 1415, 2796, 960, 1958, 846, 2896, 4120, 89, 1528, 4061, 619, 4029, 1291, 2553, 2417, 4185, 312, 4306, 465, 2871, 4503, 3244, 27, 2223, 1824, 4494, 4991, 100, 3200, 3234, 2245, 3173, 962, 4054, 3208, 1210, 4206, 2735, 3281, 364, 4489, 3802, 2414, 4171, 328, 1856, 2059, 389, 1082, 3986, 3825, 1657, 2884, 2408, 4263, 4839, 4714, 1496, 4487, 2588, 4090, 513, 2354, 3309, 1946, 4942, 2369, 2401, 3206, 4888, 4558, 4366, 1903, 4703, 1463, 4215, 80, 2559, 1189, 3893, 3980, 3865, 3551, 2944, 3527, 1225, 4221, 1733, 1825, 1430, 3497, 593, 4500, 3579, 1587, 3157, 817, 2745, 4336, 4599, 3718, 4012, 2463, 1514, 2209, 1941, 1906, 4085, 4927, 2654, 2499, 3645, 3938, 590, 4561, 1759, 2666, 3179, 2838, 2811, 1888, 3360, 2279, 2309, 1302, 2033, 2550, 366, 4133, 1283, 3288, 4673, 1691, 3253, 483, 4659, 810, 2183, 1971, 3828, 2025, 763, 3354, 2294, 2793, 1745, 2074, 4344, 1478, 1182, 1584, 3490, 2879, 2636, 2754, 4359, 2755, 246, 219, 4285, 591, 3722, 3453, 2239, 1081, 686, 85, 3030, 1026, 1097, 847, 3352, 1099, 1713, 1560, 3411, 4420, 4066, 2140, 4241, 4232, 263, 3985, 213, 748, 675, 548, 3670, 1383, 3797, 3400, 3556, 3934, 2569, 1036, 1406, 976, 4329, 2716, 606, 930, 4082, 4266, 3646, 4933, 1545, 4702, 153, 22, 2358, 3468, 3069, 4458, 525, 1076, 1753, 1219, 4495, 2169, 3002, 2751, 229, 2284, 4035, 782, 3057, 859, 4627, 2840, 1728, 4045, 809, 920, 1090, 4433, 4141, 4467, 4347, 3693, 1334, 1930, 1880, 3345, 4978, 1665, 1033, 3609, 4047, 2930, 4148, 1849, 4228, 377, 243, 4413, 3564, 4452, 2172, 4278, 4258, 3640, 2114, 4719, 160, 1167, 1173, 4013, 1596, 992, 3672, 4698, 2600, 352, 1298, 610, 4584, 1760, 4860, 2817, 2850, 2648, 4311, 3194, 1862, 2888, 4577, 3422, 2649, 258, 711, 2507, 315, 4170, 30, 740, 3832, 1606, 115, 137, 3263, 1071, 520, 4208, 3145, 4471};
vector<int> cor(5000, -1);
for (int i = 0; i < v.size(); i++) cor[v[i].second - 1] = v[i].first - 1;
for (int i = 0; i < 18; i++) {
bool added = false;
for (int j = 0; j < 277; j++) {
if (added or cor[perm.back() - 1] == -1) {
perm.pop_back();
continue;
}
ans += mult * cor[perm.back() - 1];
added = true;
perm.pop_back();
}
if (not added) return -1;
mult *= 10;
}
return ans;
}
Compilation message
Bob.cpp: In function 'long long int Bob(std::vector<std::pair<int, int> >)':
Bob.cpp:18:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for (int i = 0; i < v.size(); i++) cor[v[i].second - 1] = v[i].first - 1;
| ~~^~~~~~~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
1044 KB |
Correct. |
2 |
Incorrect |
2 ms |
1048 KB |
Incorrect answer. |
3 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
1044 KB |
Correct. |
2 |
Incorrect |
2 ms |
1048 KB |
Incorrect answer. |
3 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
1044 KB |
Correct. |
2 |
Incorrect |
2 ms |
1048 KB |
Incorrect answer. |
3 |
Halted |
0 ms |
0 KB |
- |