from random import randrange, random
import time
START_TIME = time.time()


def is_valid(ans_types: list, ans_val: int) -> bool:
    """ans_types(1-indexed)を選んだときに、
    答えがans_valになるかどうかを確かめる。"""
    res = 0

    tmp_last_days = {}
    for c_type in range(1, C_TYPES + 1):
        tmp_last_days[c_type] = 0
   
    for day in range(1, DAYS + 1):
        c_type = ans_types[day - 1]
        res += s[day][c_type]

        tmp_last_days[c_type] = day
        for c_type in range(1, C_TYPES + 1):
            res -= c[c_type] * (day - tmp_last_days[c_type])

    return res == ans_val


def search_max_point(day: int, last_days: dict):
    """day-1日目までに選んだコンテストが確定している状態で
    day日目にどのコンテストを選べば満足度を最適化できるか貪欲に探索する。
    dayは1-indexedに注意。
    返値として、選ぶコンテスト(1-indexed)、そのときに得られる満足度を返す。
    """
    max_val = -INF
    max_type = -1
    for c_type in range(1, C_TYPES + 1):
        tmp = s[day][c_type]
        for c_type2 in range(1, C_TYPES + 1):
            if c_type2 == c_type:
                continue
            tmp -= c[c_type2] * (day - last_days[c_type2])
        if max_val < tmp:
            max_val = tmp
            max_type = c_type
    return max_type, max_val


def change(ans_types: list, day: int, from_type: int, to_type:int):
    """day日目のコンテストをfrom_typeからto_typeに変更する。
    dayは1-indexed、選ぶコンテストは1-indexedに注意。
    返値として、そのときに得られる満足度の変化量を返す。
    """
    res_diff = 0
    res_diff = -s[day][from_type] + s[day][to_type]

    from_t = ans_types
    to_t = ans_types[0:]
    to_t[day - 1] = to_type

    l_day = {from_type: 0, to_type: 0}
    for day, type_c in enumerate(from_t):
        day += 1
        if type_c in l_day:
            l_day[type_c] = day
        for type_c2 in l_day:
            res_diff += c[type_c2] * (day - l_day[type_c2])

    l_day = {from_type: 0, to_type: 0}
    for day, type_c in enumerate(to_t):
        day += 1
        if type_c in l_day:
            l_day[type_c] = day
        for type_c2 in l_day:
            res_diff -= c[type_c2] * (day - l_day[type_c2])
    return res_diff


# 1-indexedに統一(重要！！！！)
# アクセスを早くするためにtupleにしておく
d = int(input())  # 365
c = tuple([0] + list(map(int, input().split())))
s = tuple([tuple([0 for i in range(27)])] + [tuple([0] + list(map(int, input().split()))) for i in range(d)])


#d = 365
#c = (0, 66, 66, 45, 6, 72, 21, 54, 44, 12, 33, 25, 75, 98, 73, 18, 48, 49, 79, 43, 40, 17, 38, 41, 0, 10, 38)
#s = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 16858, 13990, 2663, 7331, 17106, 12355, 9619, 250, 10442, 9268, 99, 13773, 12935, 19369, 18688, 18383, 19341, 12822, 984, 14958, 7842, 6138, 17729, 15475, 470, 7859], [0, 19975, 18607, 10617, 7550, 4647, 6575, 5869, 16848, 1864, 12428, 4030, 10162, 1128, 3672, 8076, 3408, 12123, 3224, 9054, 13523, 1204, 11084, 7201, 18253, 15901, 2749], [0, 16388, 15277, 556, 7727, 15271, 11718, 13104, 5400, 9691, 8552, 3992, 5279, 19386, 12556, 19493, 19780, 6618, 9441, 10681, 603, 1615, 5745, 12530, 13426, 686, 11363], [0, 3798, 7034, 3294, 19573, 851, 14428, 4059, 18566, 3392, 13792, 1940, 16657, 17688, 13718, 12364, 9363, 1178, 5662, 18022, 15998, 17567, 19849, 17668, 2628, 15892, 7352], [0, 19111, 3036, 887, 17410, 6374, 18388, 1716, 18903, 6156, 10715, 2226, 1098, 2301, 5465, 5678, 1925, 8478, 16314, 9062, 288, 6781, 13852, 18603, 231, 10884, 8870], [0, 4983, 510, 18438, 13769, 15772, 9459, 16226, 4615, 16189, 10071, 7754, 4943, 9143, 7834, 1300, 8517, 15868, 15829, 10714, 623, 603, 14450, 7781, 13187, 17508, 6185], [0, 10431, 13499, 18519, 12580, 5330, 4643, 3138, 889, 6729, 13435, 5867, 9259, 507, 18202, 6074, 13988, 280, 15231, 19539, 11484, 13800, 1081, 3610, 8035, 9675, 6708], [0, 17009, 16394, 19609, 19032, 8105, 16071, 8173, 14179, 18380, 999, 8491, 17352, 17035, 5180, 11974, 16445, 14499, 14999, 19578, 11496, 14637, 1595, 4951, 5919, 14019, 8826], [0, 8485, 11058, 15804, 11716, 18378, 17609, 15376, 7128, 9300, 6658, 14470, 7812, 15597, 19543, 9489, 6899, 19225, 525, 4678, 14115, 17436, 12980, 10269, 14482, 4737, 14358], [0, 12662, 12449, 17083, 110, 17478, 5112, 2628, 943, 17457, 2058, 4516, 14689, 10372, 9535, 15426, 17082, 6132, 13556, 10722, 15004, 4646, 957, 7438, 3728, 10924, 12706], [0, 4078, 11665, 12061, 7411, 2040, 2923, 12749, 18118, 1479, 56, 12719, 6120, 2319, 6842, 877, 10626, 15686, 11212, 5604, 19323, 7871, 14888, 19240, 19638, 422, 18744], [0, 2166, 15419, 15502, 4003, 5757, 13676, 14522, 5501, 10706, 905, 4872, 6826, 14885, 9530, 1941, 8063, 205, 12471, 8843, 932, 17110, 15676, 5390, 1193, 3041, 16294], [0, 2556, 1126, 6581, 17152, 12965, 12323, 3909, 1643, 3209, 3678, 1568, 8166, 7485, 14085, 2211, 15999, 5805, 2223, 4155, 3604, 14825, 15572, 15020, 4354, 6783, 12984], [0, 10956, 14975, 10493, 14239, 14953, 3265, 19247, 9637, 11327, 13370, 19825, 16994, 2305, 14100, 3685, 9349, 17215, 4215, 3144, 16136, 12570, 18465, 12366, 2553, 754, 15492], [0, 12080, 5337, 4394, 18691, 4605, 19246, 9870, 6236, 2678, 5770, 4742, 5540, 9607, 10196, 19095, 14906, 4799, 17785, 11655, 2197, 13044, 17467, 11802, 360, 18921, 5281], [0, 4858, 14647, 5646, 4269, 8569, 18937, 1225, 13719, 6344, 11829, 1648, 18165, 4845, 11995, 3104, 5176, 10492, 8428, 16080, 18003, 6231, 13776, 12701, 5915, 3027, 19097], [0, 6247, 5257, 7372, 3599, 6779, 17616, 13538, 13081, 8411, 12390, 18508, 326, 5579, 2603, 13873, 4704, 8016, 14568, 18774, 2231, 18195, 11125, 11849, 5778, 13347, 16357], [0, 13780, 13667, 16198, 19274, 4657, 8610, 7148, 12602, 8147, 8130, 15787, 3463, 2266, 7592, 12301, 1347, 1686, 9761, 9395, 2695, 6338, 8039, 16513, 13558, 15805, 13975], [0, 18687, 9759, 6839, 7122, 8118, 7706, 18162, 3031, 10961, 17630, 757, 19660, 14463, 9346, 13243, 4682, 6007, 19709, 14942, 14872, 13458, 15019, 8175, 3839, 13457, 3659], [0, 1636, 14959, 16561, 2130, 1870, 13842, 9293, 14951, 18730, 472, 15859, 987, 8948, 4220, 7117, 823, 18894, 3121, 7386, 9185, 5338, 17417, 3855, 14178, 16179, 4933], [0, 5972, 9018, 909, 16253, 11778, 16761, 14451, 8244, 4358, 18122, 9837, 7096, 1831, 14948, 13835, 19881, 9061, 18740, 2500, 11571, 3037, 8563, 19868, 8817, 9895, 9263], [0, 19699, 8706, 9465, 5471, 1099, 11859, 180, 13684, 15963, 13248, 4601, 4782, 5778, 7652, 11162, 6628, 13201, 15063, 7106, 5430, 15439, 5714, 5067, 12334, 1924, 13742], [0, 10699, 18710, 13465, 7631, 13648, 12949, 2927, 12315, 13680, 5011, 16610, 14687, 8164, 15652, 15173, 4441, 7740, 16857, 5476, 1774, 8590, 12933, 4777, 542, 3801, 13364], [0, 8000, 11191, 732, 5241, 18460, 3114, 4788, 12110, 9901, 11161, 10734, 6839, 3226, 17678, 315, 13683, 14800, 10664, 197, 16298, 16632, 8399, 5509, 10294, 10647, 2375], [0, 18670, 14927, 8419, 13134, 8737, 10529, 15615, 1381, 3799, 18380, 18126, 13786, 8085, 5498, 4255, 4792, 7705, 1581, 941, 2768, 11757, 12457, 11988, 147, 4528, 4923], [0, 16645, 6207, 791, 11429, 10245, 11309, 16872, 12085, 10286, 6911, 669, 2511, 18471, 7006, 4824, 17419, 18076, 14898, 19157, 11970, 4045, 2356, 7290, 6566, 8583, 11419], [0, 15704, 14482, 9347, 19277, 2687, 8913, 10154, 12956, 9756, 6011, 14926, 7617, 6262, 11520, 16598, 4329, 6239, 5240, 755, 9715, 19089, 8426, 18784, 11843, 1785, 175], [0, 6534, 7576, 4596, 4424, 6393, 9140, 17821, 8088, 1803, 16554, 4976, 8344, 5778, 5214, 13398, 19694, 5225, 10708, 9615, 11945, 12793, 15194, 4370, 19976, 5537, 15956], [0, 19920, 9640, 12365, 10230, 19310, 17630, 11111, 2072, 12233, 11204, 7291, 901, 299, 3256, 6582, 11541, 16705, 2572, 12499, 8823, 2486, 10386, 18558, 12443, 12368, 11738], [0, 6606, 4315, 16764, 4341, 15819, 1573, 19053, 378, 14882, 9706, 12211, 5371, 3591, 8317, 14736, 13732, 18629, 16058, 15697, 8592, 13899, 10362, 14075, 18051, 5518, 16331], [0, 14446, 16502, 7628, 6166, 6345, 9660, 15585, 12279, 8473, 7965, 11439, 10635, 14795, 19359, 3583, 14956, 15493, 12408, 10417, 6950, 15523, 17072, 6653, 3990, 12120, 1273], [0, 18066, 6199, 3979, 9160, 12669, 13882, 19439, 9057, 8634, 2402, 18666, 9541, 8853, 5067, 1073, 18653, 16832, 16693, 18841, 15776, 3623, 3182, 11579, 13752, 19947, 3572], [0, 17830, 1187, 11865, 17814, 9624, 3803, 6015, 19094, 4232, 8271, 34, 11054, 3596, 11852, 6397, 10822, 1567, 16912, 14013, 12286, 6008, 12544, 6742, 14060, 18467, 205], [0, 6893, 6067, 7337, 19773, 17499, 17478, 9801, 10921, 11467, 6057, 16847, 19869, 333, 18619, 1150, 12806, 4743, 5774, 19387, 12115, 1506, 14799, 6120, 10784, 1859, 2795], [0, 14039, 3545, 14415, 12065, 5141, 4484, 17749, 16924, 12772, 15092, 12095, 12661, 16538, 6078, 7547, 5689, 9696, 2493, 1106, 13477, 27, 13894, 7935, 16923, 9228, 4828], [0, 13422, 19956, 6354, 10166, 17264, 3705, 11900, 11089, 13760, 5893, 1126, 12570, 3543, 18350, 4666, 1564, 10987, 18933, 12419, 6846, 12524, 11631, 252, 5, 17888, 16925], [0, 6298, 9668, 6431, 10466, 17600, 9623, 18306, 10557, 5552, 18312, 8624, 2668, 5740, 8253, 8864, 3853, 12402, 11242, 1685, 18669, 7122, 10156, 18932, 2422, 908, 2839], [0, 17542, 15199, 1443, 7246, 18573, 13732, 13787, 8209, 8674, 12004, 6915, 7486, 14614, 6907, 2645, 19244, 9487, 2151, 4701, 5739, 13850, 15865, 1411, 18562, 18938, 4204], [0, 5250, 17579, 174, 4892, 1981, 8921, 10365, 8491, 5709, 8282, 16616, 6277, 17717, 4671, 4942, 4682, 6972, 5239, 18936, 1343, 12965, 10939, 4295, 12865, 14667, 5712], [0, 6093, 5931, 15804, 3923, 19530, 2294, 5250, 10816, 2628, 18513, 19069, 17314, 5117, 16210, 1528, 14770, 3492, 4816, 4668, 15639, 9494, 17040, 18, 2970, 6491, 6504], [0, 692, 19265, 9241, 753, 13213, 17553, 10092, 13340, 13106, 13135, 18598, 1549, 7662, 4625, 14273, 10306, 15493, 1742, 14207, 19714, 1653, 2072, 16781, 6545, 3668, 19908], [0, 17509, 5279, 11862, 9759, 12743, 19187, 1480, 5874, 76, 4609, 15791, 15056, 17436, 4796, 11466, 6463, 14620, 5798, 1341, 12886, 10661, 17918, 2566, 18613, 5977, 13408], [0, 19411, 18019, 656, 16636, 6266, 16146, 6591, 4553, 15491, 13892, 18712, 2866, 8672, 13587, 17491, 2604, 3808, 7814, 5149, 5200, 15274, 19065, 7679, 8858, 19263, 4541], [0, 4684, 10854, 11262, 15458, 14055, 8575, 11194, 10501, 10281, 18249, 8103, 4940, 2494, 11486, 7057, 2945, 5778, 7228, 11374, 4427, 8154, 15315, 19589, 13922, 14948, 2694], [0, 7457, 12727, 7727, 7304, 4877, 14008, 9948, 11069, 3052, 9180, 7035, 385, 18766, 5917, 2616, 10143, 19432, 1326, 10332, 3979, 4062, 17947, 5201, 2943, 14123, 5731], [0, 17973, 10404, 5102, 12053, 19259, 11910, 10831, 4325, 2213, 18136, 17207, 346, 18663, 7175, 11672, 16158, 8183, 12531, 15365, 17076, 8561, 17204, 7080, 2483, 14536, 435], [0, 16252, 9228, 18885, 6512, 12827, 18597, 7684, 18428, 4032, 7120, 3563, 15971, 15389, 10223, 17932, 2936, 8717, 11303, 9751, 3280, 8845, 708, 14406, 4089, 17180, 6667], [0, 13331, 14201, 19291, 3382, 15034, 781, 19140, 7283, 14359, 7899, 16346, 16862, 18632, 91, 15193, 19865, 15132, 11643, 3085, 10348, 7329, 10263, 3688, 10125, 17628, 8573], [0, 1216, 3653, 5591, 4267, 9599, 18742, 9044, 801, 17202, 15599, 17830, 2063, 369, 2236, 1202, 12048, 18590, 13805, 18216, 19820, 3497, 1316, 17452, 14601, 4915, 7098], [0, 14433, 17170, 9194, 15389, 1973, 16366, 1497, 543, 17504, 18198, 16162, 17190, 14029, 2749, 15382, 16265, 17137, 12459, 1584, 17518, 10474, 12951, 3611, 14163, 19762, 14079], [0, 2012, 6121, 15943, 885, 2176, 10663, 8863, 15168, 6680, 18594, 4681, 19723, 16004, 10466, 2210, 15609, 18445, 4347, 8522, 17772, 16993, 333, 668, 9804, 13792, 10099], [0, 4663, 17520, 12011, 13860, 16966, 7001, 3142, 9940, 8295, 4530, 19551, 12186, 17600, 17433, 16058, 5191, 15178, 10669, 12646, 19515, 14625, 13896, 18044, 17045, 4125, 3205], [0, 1196, 16539, 4003, 9558, 1458, 5985, 12855, 13883, 1668, 8697, 19702, 10629, 996, 15523, 10324, 6570, 4064, 15750, 6897, 2159, 14199, 15476, 3507, 16932, 16833, 7860], [0, 15868, 16581, 4369, 18, 2823, 17445, 7803, 7295, 17367, 4338, 15068, 12725, 8735, 12066, 12744, 18934, 9443, 19917, 5883, 1895, 5134, 3827, 1195, 1675, 7685, 16774], [0, 2452, 18497, 8640, 10574, 10420, 15415, 12576, 13727, 2760, 2331, 4663, 30, 11664, 4688, 17336, 12291, 11242, 12420, 18280, 7148, 18936, 5785, 17268, 4176, 9214, 5925], [0, 10496, 961, 1105, 1825, 840, 2728, 7328, 8925, 3914, 5992, 11315, 13461, 11907, 13681, 9677, 4672, 13508, 7714, 3365, 18543, 18, 15755, 10387, 19954, 11197, 19198], [0, 3219, 763, 11581, 10015, 10711, 10622, 1413, 13271, 11234, 8752, 12308, 18045, 18238, 2999, 207, 60, 17065, 164, 2214, 440, 6421, 489, 7182, 17347, 8318, 18933], [0, 248, 6342, 9461, 8197, 3704, 4600, 641, 8680, 10170, 17910, 3663, 11240, 6470, 6758, 14093, 6291, 17779, 9711, 14617, 11976, 7480, 10130, 12574, 5565, 6779, 2699], [0, 6168, 6528, 6995, 15759, 9820, 8128, 11776, 14563, 11587, 7965, 6556, 100, 12181, 2462, 4427, 8884, 6120, 6998, 15060, 19453, 19188, 2257, 4841, 2823, 19084, 1041], [0, 14039, 17660, 14271, 11100, 2034, 15052, 15253, 19672, 3631, 7969, 9527, 13924, 19182, 6570, 15797, 1906, 1378, 11762, 14281, 18915, 1687, 12395, 18446, 4502, 9194, 9084], [0, 12786, 11739, 15291, 15682, 14866, 15288, 3330, 292, 17727, 11234, 371, 19258, 15588, 16086, 18952, 9411, 7233, 7259, 11642, 18945, 2751, 8429, 2912, 11970, 19002, 4148], [0, 12932, 886, 18736, 14336, 12921, 6457, 4229, 4093, 10806, 6112, 16514, 195, 10112, 4503, 8234, 6869, 1501, 17075, 14146, 16043, 14484, 7436, 17812, 9330, 327, 960], [0, 19627, 13682, 12198, 11801, 18019, 12846, 10950, 13721, 18910, 4341, 15255, 12844, 13698, 12338, 1452, 2192, 10656, 14327, 11646, 4704, 5111, 12836, 12468, 2302, 18459, 15604], [0, 7138, 17939, 16643, 10861, 2090, 8629, 4012, 13825, 18342, 2347, 5090, 13891, 13191, 7656, 2430, 8009, 4854, 10921, 335, 12077, 465, 14251, 8650, 9197, 3306, 9366], [0, 19342, 15235, 4758, 15863, 15101, 15219, 7964, 3210, 14691, 2847, 8953, 11661, 14407, 12567, 8137, 19933, 11817, 1403, 15845, 13964, 9887, 13036, 3342, 9715, 9309, 4096], [0, 14118, 10785, 13792, 3002, 17812, 10193, 18303, 14367, 11074, 6247, 11644, 18199, 9890, 15121, 13037, 5681, 14511, 15895, 6402, 11172, 17304, 14601, 3905, 9220, 9454, 177], [0, 16091, 15916, 98, 3576, 2047, 3353, 18928, 17838, 13596, 19178, 7220, 1930, 7325, 4750, 12805, 5049, 6866, 15872, 3190, 1844, 18676, 8347, 11335, 2240, 3589, 11302], [0, 16777, 11316, 7852, 11604, 11085, 10076, 7451, 13520, 16986, 3018, 13195, 3423, 7846, 4073, 13663, 13490, 13806, 18928, 6935, 3220, 8674, 12986, 9601, 15557, 1096, 16885], [0, 7574, 15799, 11195, 18668, 18869, 18367, 11003, 5782, 12441, 9275, 4208, 4892, 6516, 14193, 4137, 2106, 7860, 2167, 896, 4846, 9064, 11406, 16749, 8461, 18112, 12290], [0, 11401, 15835, 11019, 10729, 13282, 6347, 12736, 18840, 18490, 574, 8248, 1822, 11372, 6955, 8321, 16538, 2726, 16024, 341, 3765, 14142, 1526, 16621, 8199, 2179, 13590], [0, 16235, 15069, 19354, 2157, 4937, 11347, 1010, 17516, 953, 1523, 19291, 7138, 1721, 10494, 12319, 13081, 17100, 14491, 11633, 2803, 16968, 17595, 213, 17822, 9369, 16612], [0, 1452, 10032, 3888, 8643, 4758, 12252, 8401, 2360, 2378, 10614, 8736, 13263, 4620, 12026, 5282, 16603, 17641, 15547, 6847, 2132, 13374, 14301, 10735, 14690, 16790, 14144], [0, 6715, 17873, 11448, 1308, 14220, 9134, 717, 3208, 5462, 4282, 997, 14603, 6142, 13861, 2366, 2735, 8462, 312, 19288, 6494, 4041, 6062, 3179, 14013, 14143, 10180], [0, 13337, 582, 9326, 14839, 5707, 14573, 8932, 7660, 13401, 14764, 3196, 13448, 16578, 19106, 1553, 10285, 15603, 119, 16141, 6896, 13757, 17353, 11600, 3703, 7816, 2488], [0, 8763, 6156, 14495, 14271, 8961, 17260, 8376, 5702, 2652, 13110, 9465, 16385, 9852, 9322, 3024, 3089, 19149, 9456, 1275, 7876, 18088, 18862, 19327, 7417, 3839, 188], [0, 13769, 14745, 663, 15154, 14175, 4253, 18274, 2329, 6260, 16281, 2214, 10697, 18317, 11034, 221, 7672, 15862, 16411, 11028, 10574, 19235, 13697, 4629, 3226, 7726, 10225], [0, 4862, 6685, 19419, 9386, 5835, 2289, 11530, 11710, 3359, 9059, 11803, 7802, 13957, 13178, 1567, 10060, 12213, 19874, 17787, 12103, 3059, 291, 12085, 2367, 9939, 17713], [0, 4957, 8867, 8686, 18832, 19061, 9873, 6347, 11211, 14679, 13069, 6339, 9314, 19105, 6426, 7302, 19358, 18407, 15903, 4828, 10889, 3743, 7488, 3344, 7896, 1454, 18337], [0, 4266, 3807, 4581, 12644, 14336, 7723, 16107, 15585, 3889, 5364, 2131, 15728, 17418, 13923, 11730, 18755, 14900, 4233, 7704, 10715, 6858, 7950, 18230, 19457, 11262, 6716], [0, 15509, 8643, 11945, 3401, 8215, 3808, 7293, 14242, 736, 10524, 3382, 8398, 14579, 2207, 9067, 18062, 19161, 15158, 13641, 15050, 248, 7697, 10476, 18853, 18153, 13272], [0, 3493, 7531, 15247, 10299, 4718, 18982, 12182, 2725, 15099, 1946, 2467, 9510, 12464, 7462, 12642, 12078, 9235, 17473, 3038, 5583, 19864, 5556, 13921, 19507, 17520, 11072], [0, 1857, 5857, 900, 2887, 12410, 4139, 14553, 11703, 9053, 14589, 16245, 7379, 19709, 12829, 1068, 8812, 17895, 8610, 486, 19781, 5793, 11734, 13267, 10404, 3773, 17558], [0, 6295, 19529, 3424, 19396, 6112, 14128, 7454, 3837, 16123, 616, 15629, 2646, 7278, 51, 14754, 11279, 1776, 13122, 7045, 4664, 10055, 12646, 3250, 6194, 18690, 3261], [0, 7244, 3828, 19414, 8189, 14523, 9825, 3410, 16800, 9923, 10835, 473, 7631, 13662, 16103, 4453, 5108, 12507, 16590, 3769, 19115, 413, 16205, 19054, 11060, 15479, 2700], [0, 8032, 6702, 17857, 5742, 6729, 16502, 4367, 19487, 13877, 18005, 2032, 19106, 3215, 2605, 13213, 19207, 12380, 5208, 16965, 16994, 7899, 11375, 10492, 8156, 2282, 12456], [0, 4152, 10292, 5026, 206, 11382, 10122, 13028, 15628, 1128, 1687, 6459, 1691, 3276, 2263, 17027, 7158, 6777, 6919, 19265, 13036, 14457, 6213, 10223, 2483, 9730, 19217], [0, 13965, 3375, 19495, 15797, 15566, 12482, 12475, 7221, 681, 15180, 6041, 16952, 5855, 1470, 6264, 227, 6078, 19688, 3872, 12571, 14583, 19413, 8568, 15501, 12902, 9275], [0, 17408, 2430, 726, 6555, 4196, 12999, 5487, 11829, 15392, 294, 4852, 14249, 13049, 19247, 6465, 6740, 7131, 18800, 3493, 15687, 10892, 3592, 3626, 17436, 15277, 3130], [0, 18182, 1989, 18840, 11550, 3809, 11608, 6950, 7750, 17312, 3446, 10620, 4353, 2350, 1117, 10316, 14536, 14969, 10994, 3796, 13321, 13653, 16828, 13547, 12517, 16102, 5873], [0, 15384, 10232, 6210, 1236, 14961, 12971, 14131, 3071, 14368, 7356, 2214, 2507, 9201, 11136, 19339, 680, 17309, 4899, 10583, 1876, 3294, 1791, 7545, 7264, 6877, 1910], [0, 7479, 9667, 17673, 10111, 17697, 19527, 13854, 19034, 18589, 11231, 13385, 3152, 6626, 4256, 12440, 12246, 18923, 3747, 195, 5504, 5311, 15282, 13107, 7739, 2081, 19933], [0, 11321, 8529, 19559, 7539, 14504, 780, 19819, 18774, 2785, 2579, 4030, 19044, 5484, 16124, 10516, 8312, 9200, 16802, 1651, 13607, 11406, 17133, 8996, 14935, 6805, 2559], [0, 15210, 6481, 18946, 11677, 12648, 10268, 14171, 10810, 14893, 4282, 2252, 9622, 17874, 5638, 14244, 8659, 17685, 11184, 11279, 11675, 18812, 7279, 8398, 12973, 5516, 4769], [0, 9900, 5288, 18187, 9383, 2889, 11447, 17599, 9609, 18537, 11527, 11731, 4243, 9338, 17100, 11638, 11393, 17341, 16903, 14657, 7406, 18246, 8968, 5844, 7068, 8930, 7055], [0, 18391, 17285, 704, 6927, 2679, 19316, 17413, 2382, 5400, 79, 7170, 2832, 2437, 4670, 6093, 10920, 15565, 5006, 15975, 11052, 9042, 5677, 16176, 8603, 18530, 14963], [0, 350, 654, 3957, 7128, 1931, 19047, 18089, 10887, 9285, 18183, 2723, 8477, 3207, 2227, 18022, 1255, 18481, 11436, 7215, 16712, 12752, 523, 18594, 3731, 4087, 3003], [0, 6602, 14624, 14045, 15799, 1496, 14601, 15132, 42, 11386, 17726, 19436, 16942, 2197, 10661, 7410, 5955, 15706, 18192, 11051, 16415, 17229, 3223, 13722, 17324, 8151, 123], [0, 5065, 11534, 12567, 15637, 1546, 17858, 5767, 14256, 2261, 18612, 17118, 12455, 2126, 2711, 13355, 6205, 7656, 14079, 18120, 15235, 7248, 14934, 14428, 4297, 9719, 9098], [0, 19820, 2873, 18325, 19264, 10631, 9931, 11541, 11171, 17275, 6080, 1602, 9631, 4053, 18191, 6581, 1942, 12383, 13784, 14943, 17904, 19052, 8435, 16732, 213, 9263, 5506], [0, 1499, 2865, 18577, 7071, 71, 5647, 19410, 17254, 13931, 17367, 10817, 6077, 6111, 18595, 594, 6568, 9679, 6747, 13136, 18945, 9437, 16405, 9191, 18882, 551, 12048], [0, 61, 2706, 17566, 13566, 4652, 19976, 3219, 9488, 14644, 18925, 615, 19135, 2192, 15251, 2276, 19991, 9934, 16251, 19668, 6101, 2416, 3207, 2982, 12851, 17375, 15949], [0, 9088, 623, 10135, 13740, 367, 857, 19336, 2597, 17285, 18066, 10269, 10769, 1312, 12959, 10110, 16213, 2237, 3644, 7163, 12523, 14334, 19554, 12543, 11846, 16631, 4983], [0, 489, 8194, 9449, 16644, 10874, 3250, 12738, 4454, 12944, 15554, 3443, 16034, 12327, 7528, 12697, 6321, 12324, 1652, 1817, 7368, 14013, 3493, 13780, 6077, 14973, 13651], [0, 4679, 11035, 18866, 7155, 8385, 4272, 6846, 7098, 12038, 932, 19731, 13796, 13844, 9652, 17135, 14722, 9727, 12966, 15562, 19028, 1917, 19567, 4567, 6555, 15575, 3040], [0, 14408, 18542, 722, 9997, 9444, 1331, 11538, 7454, 18672, 15171, 5865, 2279, 13897, 18748, 4255, 8792, 2838, 14393, 5632, 1531, 13954, 5814, 19107, 16927, 8391, 1300], [0, 10499, 9651, 6471, 3303, 9342, 3076, 10841, 7220, 15354, 4482, 19507, 1711, 10111, 6671, 11219, 11929, 16663, 15478, 15355, 9304, 17184, 866, 5007, 18606, 18258, 17736], [0, 8226, 16663, 1434, 2767, 2212, 12916, 17821, 19718, 6686, 6629, 11374, 1569, 3039, 869, 16953, 18037, 10717, 19805, 18215, 17987, 1156, 1379, 9475, 657, 12571, 10797], [0, 11028, 12684, 13660, 13190, 14203, 18909, 17686, 17734, 2963, 8270, 5248, 16482, 8561, 16242, 16681, 11799, 3576, 832, 5830, 11806, 6834, 1411, 12790, 14120, 2718, 2427], [0, 6282, 15818, 14686, 13842, 11691, 16792, 16913, 6862, 975, 12547, 2622, 2544, 14093, 14368, 18056, 1420, 11259, 7833, 19608, 10608, 15256, 6121, 6862, 3611, 2425, 8766], [0, 6160, 17634, 18261, 14089, 4478, 5987, 17195, 6424, 106, 13495, 13383, 296, 3469, 7049, 270, 15662, 13154, 4895, 7420, 19856, 9384, 4936, 14769, 16422, 17815, 10623], [0, 3967, 5906, 8353, 18839, 18878, 18586, 8396, 4041, 8735, 14845, 11430, 375, 9934, 8583, 17447, 211, 14224, 11875, 17995, 18945, 15768, 14646, 11046, 2321, 8760, 11541], [0, 4699, 17851, 15477, 3971, 6373, 437, 1519, 13844, 5702, 6245, 2774, 8217, 6124, 3659, 17477, 18468, 5787, 14191, 3449, 8363, 814, 11344, 16452, 10528, 6523, 14592], [0, 19283, 324, 6521, 7379, 15971, 6412, 14020, 1042, 16525, 17385, 10735, 8423, 5722, 18122, 418, 7603, 15723, 18542, 691, 1953, 8930, 2741, 15965, 13305, 1941, 14213], [0, 14954, 19646, 17264, 9288, 5198, 14122, 16048, 366, 11899, 18454, 6217, 9176, 17003, 3946, 1590, 17408, 11242, 3688, 8963, 13078, 11419, 1858, 7564, 12009, 14853, 9010], [0, 16059, 12558, 7144, 17711, 3084, 6906, 4740, 15757, 12718, 177, 18680, 148, 17159, 4261, 8240, 13377, 6231, 1344, 4580, 7634, 8167, 1838, 6910, 13592, 9644, 15576], [0, 12291, 10888, 6664, 9338, 10854, 3525, 1184, 5784, 18773, 19288, 19696, 5860, 13937, 7614, 6149, 13236, 14194, 7031, 3678, 9074, 5668, 11752, 7194, 8341, 7145, 19582], [0, 16040, 7493, 9848, 11791, 15290, 1622, 15483, 17031, 594, 2246, 1031, 16781, 4051, 9828, 12212, 16485, 10593, 9684, 6470, 11757, 13028, 1662, 1441, 3719, 7383, 3093], [0, 8888, 7256, 6716, 16904, 10548, 9210, 1092, 5449, 4682, 3368, 18144, 4915, 4135, 14336, 7464, 8173, 9323, 12934, 10506, 4299, 13276, 4593, 11173, 9268, 3400, 15230], [0, 14443, 11117, 17258, 13009, 7425, 14176, 10180, 4849, 381, 9976, 921, 13335, 4765, 5927, 2084, 1704, 18837, 17756, 10603, 6076, 3577, 4093, 17989, 11850, 10563, 15770], [0, 16590, 13403, 17899, 13992, 10974, 2423, 6903, 1030, 7322, 18413, 13042, 16923, 1764, 18693, 1044, 8768, 5871, 72, 2365, 15671, 2040, 16685, 18371, 14706, 10153, 2481], [0, 11797, 6265, 13809, 9508, 1878, 14588, 11173, 16039, 3486, 17169, 11004, 17123, 17263, 17476, 15436, 9608, 2044, 11850, 16354, 2973, 14223, 12186, 3224, 2297, 10409, 17453], [0, 3214, 17272, 1586, 4202, 17942, 5998, 9384, 9004, 16943, 14227, 2300, 1569, 18711, 11778, 11797, 9987, 5203, 8024, 5065, 7526, 11111, 13034, 4642, 1297, 811, 11284], [0, 13310, 2740, 10764, 18776, 2561, 9129, 13995, 15992, 559, 6458, 3401, 10964, 13273, 306, 18040, 16764, 13325, 18332, 13731, 4501, 7730, 431, 5900, 8037, 6379, 16196], [0, 19353, 5309, 1544, 17917, 12488, 19797, 12093, 18206, 1704, 16684, 14411, 18019, 16913, 5214, 4921, 4538, 16485, 9275, 12015, 13136, 15263, 19196, 14300, 10848, 19880, 2896], [0, 12999, 19709, 19281, 13145, 11150, 16603, 2614, 8748, 8185, 14235, 13199, 17441, 19169, 7046, 14255, 5746, 15239, 6955, 13372, 18311, 16198, 5324, 16581, 3885, 10449, 2383], [0, 7748, 4420, 2238, 342, 16576, 5095, 19214, 19787, 19753, 17911, 6939, 897, 8019, 13371, 19731, 6600, 15035, 11365, 9587, 10488, 17389, 11732, 12196, 15644, 2833, 3157], [0, 14299, 17761, 2412, 608, 16067, 4295, 7858, 15333, 7110, 11736, 9901, 14306, 11251, 466, 14762, 2237, 497, 1141, 18770, 5992, 13550, 6899, 12756, 15566, 8173, 992], [0, 2665, 15330, 1508, 19827, 16747, 1653, 9600, 473, 3696, 17107, 14365, 1106, 16165, 4373, 10900, 8524, 16879, 7449, 3605, 10832, 9053, 5297, 8086, 15366, 10849, 13165], [0, 11242, 4053, 4994, 16019, 11433, 15461, 14003, 59, 2397, 15925, 10201, 7224, 15938, 18381, 14321, 5301, 9512, 12351, 18739, 15995, 14352, 2390, 6937, 12384, 13804, 11148], [0, 15407, 9432, 11634, 6131, 7088, 17468, 1180, 14125, 9294, 12771, 8553, 12578, 15419, 1272, 1162, 18352, 5619, 19337, 4142, 18897, 8536, 2416, 12980, 9510, 10705, 4444], [0, 4579, 18628, 18611, 17493, 19346, 10112, 5960, 1141, 16084, 9438, 5374, 15793, 3196, 10777, 10984, 4509, 17556, 12333, 2553, 8262, 18700, 10459, 11489, 16146, 12693, 2831], [0, 15000, 10978, 17702, 5600, 12692, 290, 1226, 11108, 18505, 110, 13703, 18886, 7597, 2428, 12721, 4925, 13170, 5444, 4445, 4523, 18281, 3525, 17316, 1081, 1923, 1942], [0, 5296, 1736, 15719, 12499, 435, 629, 10279, 18621, 2280, 15151, 11983, 17775, 13319, 9314, 10838, 8470, 2826, 11889, 7688, 9876, 12478, 19631, 4203, 16764, 18422, 2239], [0, 6671, 2490, 13941, 18745, 351, 7172, 9538, 18461, 10311, 8294, 15349, 5277, 4004, 14641, 14171, 14065, 3138, 12899, 9467, 2776, 7528, 9056, 672, 10566, 11885, 13673], [0, 8282, 12307, 8156, 202, 6742, 9457, 10194, 8256, 5286, 14848, 2436, 3327, 12208, 16412, 17577, 8374, 19517, 8382, 1918, 17818, 8010, 10516, 16547, 5128, 6415, 14132], [0, 3474, 12865, 9912, 19032, 11136, 11093, 5682, 4313, 13080, 16433, 7852, 6891, 4254, 17949, 13010, 699, 10495, 12575, 6018, 7341, 5762, 7009, 4701, 11714, 13407, 1772], [0, 18431, 7712, 6074, 7888, 18938, 8385, 3762, 4892, 14558, 10293, 17190, 1598, 4638, 3097, 9265, 19110, 11103, 2463, 1113, 3137, 14838, 14940, 8102, 373, 3300, 2659], [0, 3698, 15222, 7796, 10475, 9061, 7117, 6804, 3833, 17246, 5192, 5392, 16469, 11768, 9892, 12542, 10869, 13116, 5638, 4396, 13119, 9736, 17138, 8700, 8506, 6245, 11492], [0, 386, 7600, 2820, 5987, 1745, 1859, 19961, 14182, 11117, 11374, 6580, 9451, 19529, 12976, 18, 17803, 1443, 6420, 11478, 18886, 17293, 9622, 14080, 6700, 17507, 16367], [0, 8733, 14657, 9710, 12523, 10974, 16679, 165, 13573, 6811, 10973, 16139, 10948, 13497, 12684, 6400, 4714, 14176, 12840, 7644, 5738, 1604, 4444, 7263, 15160, 8069, 10395], [0, 13631, 13203, 13345, 13330, 8217, 11332, 6201, 4076, 490, 12787, 18840, 2522, 2963, 3826, 12184, 11658, 13328, 17876, 6465, 10622, 15484, 4717, 6351, 1303, 4456, 16383], [0, 10583, 627, 3310, 4962, 9673, 5962, 9638, 17925, 13493, 1723, 13094, 5399, 12393, 15538, 12204, 16879, 1911, 18247, 7275, 15412, 9369, 13359, 9241, 1013, 1818, 5433], [0, 11529, 8806, 1527, 18700, 1890, 11023, 10976, 5007, 3193, 14388, 9359, 11110, 10588, 5275, 6035, 7715, 2952, 15825, 18546, 2449, 18096, 16409, 8859, 5488, 4030, 19059], [0, 11296, 545, 18828, 7787, 6554, 5782, 6235, 14546, 15042, 8489, 14087, 3799, 12115, 19349, 2381, 19943, 6399, 15363, 12839, 18597, 5023, 13628, 9923, 9946, 11037, 12512], [0, 306, 17162, 8323, 2701, 674, 16416, 9002, 5010, 12688, 15003, 6020, 4668, 4801, 5729, 8678, 8264, 7082, 6641, 1256, 4020, 13139, 10394, 6991, 16927, 7636, 8705], [0, 14015, 13523, 12020, 5551, 6522, 871, 1888, 1161, 14261, 16865, 19348, 7362, 14872, 12744, 12076, 15008, 16468, 5718, 279, 18655, 10870, 18820, 4034, 9968, 721, 8518], [0, 2487, 1409, 16904, 14032, 3392, 4209, 19584, 3474, 13425, 19704, 8926, 2452, 11220, 15906, 5764, 8521, 15996, 11611, 9419, 2001, 8924, 9442, 13265, 14209, 16470, 17659], [0, 8292, 899, 16379, 8978, 6376, 3617, 19250, 3853, 16978, 16092, 18200, 92, 10778, 5392, 828, 5965, 13978, 3980, 12014, 8181, 14900, 13083, 11236, 9075, 11788, 9502], [0, 19953, 2582, 17242, 15707, 7810, 2066, 1692, 15553, 17295, 811, 375, 14153, 16418, 1001, 9726, 19150, 18297, 13537, 12781, 469, 16269, 3728, 12068, 8529, 12637, 4351], [0, 3892, 6520, 15001, 7624, 2214, 13859, 1035, 2096, 9529, 3450, 1298, 3388, 6932, 6646, 7167, 2135, 11600, 522, 9691, 4828, 5733, 14505, 4226, 13462, 4921, 1684], [0, 17382, 11400, 5873, 9958, 11119, 12408, 2766, 12144, 9209, 5296, 2469, 15233, 18602, 1058, 16287, 17432, 12157, 6492, 5125, 3696, 18734, 12813, 74, 419, 11340, 4783], [0, 10893, 14024, 16533, 14551, 6153, 9034, 7155, 5064, 15534, 16968, 16696, 4571, 8551, 16412, 13209, 9190, 13344, 19986, 10261, 5160, 4344, 3511, 8620, 9801, 15097, 3974], [0, 1584, 17463, 1610, 7097, 2952, 2874, 9155, 12409, 18739, 3306, 2999, 12059, 10824, 230, 14933, 9980, 8846, 17196, 10757, 7166, 12759, 15138, 10006, 2931, 6689, 494], [0, 16600, 5383, 13248, 16519, 12217, 8679, 11290, 9250, 18184, 14972, 1499, 6532, 7963, 4162, 14731, 8448, 4170, 5136, 6223, 7820, 3387, 16822, 5461, 529, 610, 16973], [0, 13202, 6699, 6905, 6629, 17523, 15220, 7769, 12057, 18710, 7564, 11365, 18179, 8984, 8491, 6332, 3566, 4972, 8947, 19147, 1110, 14047, 9013, 2377, 10123, 19259, 19591], [0, 18268, 12862, 19732, 15478, 5347, 13928, 5774, 9951, 14390, 2237, 13378, 14740, 15171, 9734, 14553, 6426, 12345, 6099, 18863, 4468, 4029, 8860, 3492, 4558, 4767, 10429], [0, 11947, 2550, 2907, 15641, 17689, 2000, 5950, 8086, 12164, 10756, 15386, 16254, 437, 7326, 11260, 16792, 10425, 14290, 505, 6757, 3550, 19001, 4244, 8342, 10976, 3601], [0, 7222, 3549, 8508, 16772, 17015, 19797, 16384, 5579, 15249, 1836, 15868, 5353, 2305, 12211, 14494, 2732, 8831, 2385, 14587, 16816, 6650, 12213, 14344, 14485, 9951, 11644], [0, 3745, 3869, 7705, 15967, 504, 862, 16063, 906, 13696, 12771, 4533, 10785, 850, 13501, 7876, 15613, 18209, 6511, 13870, 16506, 7236, 9174, 11237, 11314, 1216, 4113], [0, 13007, 12565, 13396, 9202, 196, 9543, 18382, 7360, 8941, 7617, 7252, 10172, 16450, 16877, 19243, 709, 10226, 11391, 208, 19927, 8959, 1347, 17336, 93, 14568, 6536], [0, 18366, 9310, 13117, 964, 14949, 7128, 6323, 11993, 18377, 5949, 7983, 19322, 10511, 14514, 1892, 17099, 18771, 6222, 10405, 13598, 5092, 8629, 6700, 3124, 315, 1707], [0, 17237, 10317, 17984, 3271, 611, 2611, 5862, 17847, 8887, 9321, 8359, 15423, 8572, 15884, 6777, 13531, 10670, 14440, 12515, 18461, 11545, 5893, 10432, 14210, 6079, 18664], [0, 3378, 10675, 14470, 3708, 10701, 12409, 8197, 13053, 2232, 4296, 6178, 9431, 16252, 14241, 19507, 17328, 2491, 7171, 15438, 18175, 1826, 9646, 13092, 12151, 14919, 2594], [0, 6739, 748, 3866, 17431, 11295, 12928, 13709, 7032, 19160, 15361, 19484, 2852, 15578, 13673, 865, 16725, 11061, 3638, 3486, 9573, 3617, 10149, 11850, 17206, 16895, 12552], [0, 16455, 19274, 10209, 17064, 112, 16531, 18961, 16639, 5595, 2451, 10198, 18591, 3432, 3894, 191, 17184, 12281, 2235, 1820, 9184, 1744, 4660, 7814, 6476, 16528, 19403], [0, 11137, 13557, 19506, 6977, 9764, 7539, 16106, 11430, 4242, 3252, 17159, 17115, 4057, 7786, 11204, 15284, 14022, 1554, 5919, 2083, 12191, 13668, 14039, 8415, 18395, 3897], [0, 16457, 17906, 4162, 7145, 8695, 16557, 14991, 15385, 18190, 14352, 8013, 10114, 5552, 9440, 13887, 13376, 4447, 19133, 5990, 329, 5002, 5078, 1864, 4403, 6282, 15028], [0, 12853, 8568, 11234, 18638, 10378, 17143, 8708, 11075, 18277, 9434, 6964, 8029, 15073, 18150, 495, 17183, 19141, 11291, 19579, 7747, 3836, 18274, 14275, 3980, 7658, 4303], [0, 5999, 10196, 18344, 17982, 4229, 4911, 13843, 11402, 11976, 16544, 17183, 4228, 15165, 3588, 11248, 6531, 18260, 2413, 15155, 13482, 13679, 5690, 6946, 7211, 11594, 10182], [0, 3955, 11538, 17663, 15744, 13236, 11497, 16224, 15607, 6653, 8070, 19390, 4463, 10846, 17816, 11879, 15511, 16887, 3298, 1286, 10532, 5303, 18120, 5163, 3261, 15399, 2744], [0, 11561, 1287, 783, 9685, 15590, 5750, 9061, 5920, 7529, 19527, 11150, 11732, 18198, 12287, 10688, 2591, 11161, 15831, 15269, 5837, 19472, 19799, 18513, 6609, 13073, 19023], [0, 2778, 2796, 7597, 5418, 8858, 15129, 3845, 606, 3988, 3890, 18393, 5235, 303, 19943, 10298, 10415, 12765, 14025, 16859, 8368, 16140, 16757, 4933, 12886, 4922, 7330], [0, 16859, 262, 15816, 19478, 15744, 19780, 3662, 18962, 5877, 4806, 8398, 1312, 3020, 12328, 5247, 16305, 8414, 12651, 5594, 17190, 5208, 7812, 9717, 10269, 15121, 19890], [0, 1960, 9729, 11773, 13320, 2939, 6928, 13589, 13239, 14524, 14740, 6269, 8411, 12860, 2390, 11332, 17176, 16074, 2942, 13616, 11396, 18312, 4239, 4122, 11163, 2448, 8277], [0, 12401, 15738, 2688, 18122, 15391, 12496, 4824, 2382, 2492, 13572, 1726, 16572, 9972, 7615, 8262, 3499, 7072, 7207, 1301, 12099, 16329, 19189, 9989, 15789, 18341, 15994], [0, 19671, 4043, 4434, 14400, 5971, 17209, 13038, 16954, 9577, 4210, 9597, 3715, 8585, 19471, 1733, 8442, 6097, 1411, 14569, 4653, 5814, 14654, 10081, 8675, 18743, 4024], [0, 12776, 12401, 7021, 12647, 19312, 389, 1994, 14548, 2334, 13325, 17159, 7327, 18557, 829, 4355, 15910, 16093, 17378, 19404, 16972, 4766, 5944, 17935, 12287, 4567, 18522], [0, 15802, 11211, 2949, 8785, 16111, 9706, 2920, 7755, 8019, 13585, 12772, 13055, 6943, 8405, 13676, 18771, 7775, 6763, 4604, 16391, 15099, 483, 8678, 18051, 12252, 18394], [0, 14354, 12202, 16543, 7940, 17612, 7189, 11814, 1261, 14834, 2810, 962, 63, 1264, 2737, 8771, 16223, 14694, 8927, 654, 2391, 12774, 15254, 15530, 13900, 1568, 14802], [0, 8287, 4018, 11023, 9667, 651, 11031, 16508, 3493, 1338, 15752, 1211, 169, 2786, 4931, 9303, 3836, 12443, 10826, 4008, 11508, 11766, 14526, 17113, 489, 2203, 10163], [0, 163, 5911, 3337, 12967, 6568, 2265, 12448, 951, 18294, 6572, 17230, 12086, 7160, 18143, 1794, 18639, 12707, 14260, 9598, 15748, 15605, 4369, 10909, 13176, 15012, 18224], [0, 9235, 489, 8506, 2805, 13769, 801, 2103, 10272, 0, 6168, 1903, 12368, 64, 18314, 2403, 8631, 16980, 19916, 3882, 14855, 9064, 1627, 10000, 4040, 17479, 1914], [0, 8396, 8992, 4740, 16007, 8861, 13329, 14054, 12864, 7062, 7944, 1791, 13081, 19742, 17684, 17871, 9025, 16388, 10810, 1655, 16601, 4750, 15399, 6555, 15828, 15121, 8970], [0, 6765, 6751, 15915, 15543, 6339, 12164, 1478, 17205, 16887, 16409, 13310, 13575, 9752, 8397, 14116, 6900, 2160, 7676, 594, 18652, 15924, 14346, 11716, 12880, 5523, 12526], [0, 10697, 27, 3343, 16621, 104, 14097, 17165, 9004, 13462, 11673, 4665, 15833, 16987, 3243, 6361, 4897, 13902, 10750, 523, 4167, 17022, 785, 15147, 18387, 19138, 13921], [0, 15956, 3098, 14051, 9136, 11433, 5107, 8175, 3332, 13594, 18280, 15078, 8207, 7349, 7146, 1491, 6548, 15581, 18331, 13518, 10136, 4664, 15808, 19135, 9771, 8123, 5217], [0, 6701, 10089, 6180, 17364, 8032, 1559, 11192, 15216, 19096, 16951, 17899, 807, 14296, 12711, 10712, 12895, 671, 6103, 9820, 3995, 8055, 3577, 8965, 16802, 5870, 1972], [0, 8015, 10336, 11017, 7508, 4197, 2462, 9200, 19955, 7817, 8708, 13774, 769, 4429, 9494, 2569, 15023, 16303, 16786, 3519, 5413, 16057, 17340, 9304, 14846, 16356, 2504], [0, 7005, 7665, 9839, 222, 10621, 4777, 19580, 12471, 1562, 10917, 3878, 5239, 14892, 11536, 8810, 7865, 18603, 4092, 18591, 11638, 15113, 17919, 8855, 10832, 3046, 8121], [0, 4279, 8499, 19528, 6484, 1247, 7653, 19114, 11492, 3218, 5709, 435, 9952, 12613, 11306, 10860, 3931, 16332, 14524, 136, 8064, 17662, 2046, 11424, 7079, 3447, 15692], [0, 11851, 4586, 3740, 4824, 11579, 7756, 12655, 1797, 19311, 4032, 18832, 7939, 9964, 16356, 16239, 1528, 5423, 16005, 4412, 17977, 3451, 16907, 12268, 2786, 6104, 16868], [0, 1090, 11890, 2889, 10324, 5761, 10481, 6266, 2270, 4110, 1709, 3303, 52, 7331, 11911, 4863, 2659, 18175, 19961, 13620, 5835, 14880, 18278, 6860, 1539, 8364, 2323], [0, 16262, 9413, 10451, 10799, 19723, 19667, 12938, 6112, 8497, 13413, 5556, 10382, 9256, 6651, 9085, 8345, 13229, 14356, 11631, 14905, 16831, 3467, 13645, 3928, 395, 5273], [0, 19349, 19075, 10427, 12252, 8283, 896, 8266, 6168, 7308, 123, 16391, 12426, 3936, 17023, 15594, 2684, 3429, 15562, 5789, 13278, 12416, 17901, 15993, 17573, 3745, 17148], [0, 14010, 18698, 14895, 7649, 5561, 8362, 1643, 1875, 8050, 16364, 442, 768, 2392, 35, 14384, 10116, 12384, 7439, 16, 11149, 3986, 18772, 4519, 6150, 12198, 11460], [0, 6303, 14371, 12715, 12186, 17243, 3045, 14649, 3599, 5493, 16452, 15748, 14891, 18157, 16996, 1620, 15626, 3480, 6901, 2378, 7024, 19189, 8152, 9240, 6975, 10372, 4514], [0, 16801, 5224, 17451, 8403, 12362, 6518, 4604, 11355, 2249, 15451, 14003, 19461, 16551, 9429, 9750, 3531, 12109, 17161, 19345, 18960, 14867, 13638, 9998, 118, 2006, 2751], [0, 16566, 7172, 4208, 12041, 10207, 17177, 8437, 8704, 5294, 13911, 17730, 4932, 7070, 12713, 4759, 9249, 2066, 12849, 8844, 16102, 11690, 341, 17298, 13176, 11668, 11106], [0, 4457, 13511, 2209, 14763, 17954, 3804, 13439, 8601, 15552, 16108, 263, 17534, 4409, 10386, 19349, 11892, 13282, 19617, 19370, 15289, 231, 11429, 6961, 13673, 5053, 16393], [0, 19333, 15223, 905, 16748, 16573, 4864, 7969, 19944, 6933, 11979, 18494, 9682, 17530, 106, 15994, 10960, 8668, 12282, 4004, 7414, 12130, 3438, 2376, 18543, 8837, 2387], [0, 561, 8261, 877, 15087, 18123, 19147, 1631, 14600, 16762, 5005, 14318, 11350, 16232, 4528, 10526, 18673, 10080, 5307, 10594, 11443, 7814, 9623, 1771, 6548, 7256, 2126], [0, 17546, 9433, 7877, 4308, 11887, 7963, 7300, 16474, 8182, 15351, 3488, 3159, 2997, 13428, 16535, 16755, 3868, 14505, 561, 18237, 9360, 18589, 10310, 12768, 14279, 2754], [0, 4357, 9435, 16928, 4543, 16202, 3262, 11966, 11932, 3736, 9396, 19242, 12612, 19894, 9992, 4016, 13762, 11600, 9329, 17744, 18069, 17804, 12818, 18242, 12, 6611, 17739], [0, 2370, 201, 18392, 14882, 17769, 5483, 11992, 14927, 4301, 7059, 15047, 19279, 14349, 2905, 8088, 19582, 17441, 1568, 8615, 10153, 18140, 13909, 8445, 4695, 12400, 1407], [0, 18950, 7379, 17990, 10965, 10578, 13025, 18878, 10462, 5046, 19824, 8918, 8451, 11793, 19566, 1686, 5974, 5673, 12228, 2225, 19795, 1799, 18485, 4445, 11025, 10141, 11087], [0, 19589, 12890, 4054, 14979, 12774, 1892, 10714, 6852, 1438, 13049, 1723, 1715, 14597, 7601, 13449, 18439, 5982, 1318, 6101, 14306, 7115, 1471, 9356, 6517, 13452, 17822], [0, 15115, 17255, 13690, 4041, 18024, 15999, 2398, 6942, 13754, 3241, 11893, 8998, 5176, 6123, 6632, 9169, 4375, 16772, 14413, 1051, 14471, 836, 3188, 1940, 7055, 15306], [0, 5351, 2151, 4142, 19738, 319, 12144, 5898, 8259, 7702, 9829, 4157, 9178, 19124, 10247, 3708, 15671, 15378, 16921, 16453, 17334, 91, 4391, 19412, 18121, 17795, 12979], [0, 6534, 1773, 19793, 17981, 14780, 19937, 5770, 6480, 5198, 10568, 1083, 12574, 10296, 7715, 968, 3117, 15584, 12801, 10947, 16711, 1370, 2564, 9106, 15341, 19839, 10116], [0, 10620, 13165, 13182, 17218, 5573, 8419, 14053, 13715, 13342, 7160, 725, 10926, 6869, 8880, 9192, 2937, 8296, 363, 11770, 1395, 13288, 15668, 15705, 6962, 8531, 1465], [0, 13643, 14382, 3703, 3897, 4079, 15318, 9469, 12360, 18227, 6294, 7536, 12768, 18890, 2838, 5172, 19625, 9864, 6214, 1885, 4358, 13384, 5797, 17686, 14646, 7364, 8490], [0, 18386, 1917, 17069, 17517, 14107, 3658, 4460, 467, 4831, 19851, 8543, 7155, 2966, 3084, 1810, 5108, 13701, 19769, 2439, 14135, 15560, 17589, 14021, 9763, 2199, 11190], [0, 2882, 16763, 3427, 10832, 8353, 14149, 10754, 3878, 19247, 13565, 4588, 11060, 11145, 7822, 4185, 12830, 3273, 1814, 6187, 9838, 188, 16652, 14601, 9791, 12716, 15631], [0, 8600, 8352, 19129, 4908, 1864, 2362, 5460, 14273, 6891, 14877, 14978, 1022, 15426, 14363, 9422, 14693, 8240, 8932, 13337, 10278, 16261, 16630, 10987, 2518, 5663, 12746], [0, 4991, 151, 180, 9788, 5669, 17135, 16968, 1248, 18413, 4413, 3441, 4501, 10193, 8155, 4686, 9240, 1865, 839, 12295, 16446, 15228, 8850, 7270, 10804, 18880, 16967], [0, 5290, 13199, 10445, 18367, 1187, 19088, 18505, 3378, 6344, 5321, 11056, 5661, 13254, 6132, 12541, 4889, 11190, 17161, 12429, 11246, 8507, 15044, 6776, 6475, 16644, 12592], [0, 5208, 1725, 13552, 4297, 3470, 8465, 16199, 16968, 10596, 18883, 17099, 4190, 9053, 19382, 11427, 12874, 2530, 10631, 5194, 3864, 8976, 17775, 7810, 8197, 17435, 4235], [0, 588, 18490, 7873, 12715, 12319, 7619, 6296, 12579, 4681, 9900, 16238, 12557, 15230, 6142, 14644, 11219, 4692, 12828, 15476, 4082, 15183, 7454, 8050, 6969, 1360, 1469], [0, 17766, 10058, 2291, 13333, 1290, 16243, 16950, 18138, 17391, 19468, 18453, 13816, 15866, 339, 15165, 9504, 2794, 3429, 10599, 12399, 5596, 2505, 14696, 7527, 11837, 2694], [0, 4270, 11169, 3473, 6267, 16956, 94, 5801, 14954, 12879, 10566, 7884, 5384, 15007, 12261, 9719, 6673, 7409, 18395, 19768, 10802, 194, 12537, 17847, 19073, 8387, 15479], [0, 3258, 15665, 19113, 7871, 13410, 5440, 3205, 15503, 6416, 8291, 2522, 9988, 13051, 8669, 8037, 11463, 10150, 2462, 7558, 5472, 15269, 7874, 17258, 6869, 7266, 5082], [0, 13028, 7181, 6090, 19036, 15808, 203, 16994, 3441, 10086, 16643, 7428, 19354, 3923, 4969, 3355, 17986, 7827, 14111, 9000, 3717, 12346, 9235, 4440, 14494, 7568, 4112], [0, 6088, 1309, 1239, 2999, 7995, 15912, 5761, 12334, 10500, 12192, 12586, 10572, 18639, 18577, 18620, 9494, 3591, 485, 16194, 8825, 8893, 2987, 8854, 12738, 12522, 13015], [0, 5913, 11120, 12579, 8745, 9985, 7072, 18039, 3394, 14922, 1456, 4940, 6977, 8117, 10777, 43, 12038, 5955, 19618, 4115, 1100, 19961, 9053, 10596, 2561, 17863, 4908], [0, 16875, 19732, 404, 8456, 6589, 2879, 19246, 13724, 8214, 10876, 14070, 14566, 8945, 6953, 13482, 43, 6439, 1894, 1386, 15268, 17703, 1590, 8701, 1108, 14061, 9118], [0, 2735, 12660, 16581, 14796, 7015, 1087, 12044, 18856, 10408, 8426, 12223, 707, 15648, 18647, 3309, 15401, 7019, 10739, 11073, 9839, 6404, 15658, 10337, 4965, 7331, 14578], [0, 15758, 15356, 4732, 11377, 1593, 8631, 8116, 19422, 16252, 17054, 15205, 1050, 10351, 5949, 7759, 5392, 10206, 3137, 13219, 18337, 18023, 17786, 7407, 378, 5673, 4104], [0, 8000, 10863, 17952, 17964, 11319, 15227, 347, 4746, 3884, 831, 14859, 17408, 8775, 13390, 3828, 2629, 16421, 11778, 5633, 9162, 19672, 8262, 9776, 3997, 6444, 10312], [0, 7176, 6469, 11923, 14713, 12338, 10931, 17595, 15403, 5405, 3177, 8097, 16566, 14531, 15905, 13172, 7457, 11371, 19383, 7250, 4709, 18032, 15921, 3626, 6828, 13706, 14732], [0, 88, 9496, 1875, 11866, 10184, 5398, 13603, 10767, 18161, 4672, 18425, 17063, 16803, 15030, 19978, 5306, 3501, 12273, 1445, 1839, 2706, 13468, 17987, 6727, 3102, 5707], [0, 376, 6822, 18254, 10573, 17375, 15023, 3485, 9226, 11069, 17876, 1576, 2879, 4281, 11389, 9277, 3881, 18771, 8156, 4562, 5556, 5426, 17063, 3059, 17528, 4886, 12617], [0, 10025, 8721, 18059, 11444, 13774, 19224, 3716, 18910, 4022, 8299, 8713, 4664, 13457, 15282, 9036, 203, 1243, 12504, 14048, 12555, 3710, 16072, 8920, 17596, 19101, 2529], [0, 11111, 1298, 15596, 16738, 11779, 11880, 9730, 4736, 5960, 6840, 15247, 11510, 9570, 1487, 18566, 8113, 5975, 16403, 1422, 3773, 18248, 13898, 13375, 13489, 17697, 9221], [0, 14493, 0, 3379, 12335, 14712, 12745, 19267, 2601, 2541, 15127, 4720, 5216, 738, 483, 8813, 19494, 3272, 16182, 2202, 14008, 11361, 14052, 9928, 2711, 6276, 1919], [0, 8401, 8162, 14260, 8731, 11004, 699, 2504, 7351, 18214, 1965, 8703, 2237, 1631, 15073, 7570, 18826, 572, 5914, 2837, 14648, 11137, 16914, 6773, 10128, 3570, 1396], [0, 14879, 18217, 16538, 8535, 1167, 19647, 18278, 1121, 19348, 3739, 6700, 8631, 292, 8246, 18220, 17309, 17375, 8272, 6721, 9436, 19905, 15963, 16697, 1381, 19060, 14825], [0, 5560, 9931, 13112, 14088, 2254, 1996, 13982, 4477, 11117, 16914, 10941, 19734, 16006, 6996, 2076, 14378, 5210, 17794, 4980, 8246, 3090, 16622, 6300, 809, 19693, 7846], [0, 6941, 10535, 1133, 10871, 7459, 14355, 11149, 15413, 7736, 6841, 18154, 15974, 15586, 3619, 9441, 11167, 19711, 18583, 14897, 18258, 13218, 1201, 5340, 6187, 5375, 992], [0, 5440, 2538, 15, 4132, 5096, 18647, 1702, 7006, 8594, 433, 18735, 9901, 13482, 787, 5943, 17456, 10638, 208, 14844, 17831, 11147, 9178, 5358, 3175, 10884, 5599], [0, 430, 14496, 9408, 14848, 17712, 12033, 7759, 4064, 10742, 5431, 15494, 6618, 15544, 13369, 3498, 14623, 18478, 10525, 13274, 10341, 1120, 12915, 1177, 10184, 4426, 19643], [0, 9111, 12913, 16024, 8340, 2950, 11249, 6321, 11561, 12899, 3120, 14779, 1446, 18134, 875, 2982, 6922, 6554, 4011, 676, 19407, 15427, 4020, 4084, 812, 3565, 17937], [0, 19427, 4916, 12017, 15992, 13959, 12900, 5207, 1092, 2788, 11578, 650, 756, 15290, 7233, 6784, 15265, 14661, 12817, 16982, 11748, 17220, 18235, 1368, 12764, 16512, 6243], [0, 16191, 1953, 4720, 8759, 12414, 2294, 6894, 778, 7589, 2509, 2987, 4509, 15724, 4200, 13963, 5384, 8845, 18347, 4521, 15652, 18023, 5771, 5473, 18689, 6141, 11005], [0, 19716, 244, 6505, 18643, 4152, 13767, 17844, 12993, 4763, 17475, 17161, 12962, 4111, 19219, 13327, 5747, 19987, 4825, 5522, 8829, 3761, 8095, 18106, 10883, 6828, 14119], [0, 8317, 9883, 15813, 14117, 1690, 11277, 15374, 9957, 12894, 9723, 11589, 17511, 14067, 8294, 1364, 19133, 18329, 13724, 10318, 10889, 1201, 500, 495, 7977, 16382, 6654], [0, 7901, 18530, 9656, 15773, 12904, 9925, 10424, 2528, 7070, 15360, 6977, 4751, 245, 13234, 14137, 15651, 6594, 2560, 18188, 14410, 9129, 11896, 17292, 9116, 6025, 12875], [0, 10253, 1258, 1126, 19172, 14608, 10622, 6041, 12657, 10099, 728, 19579, 6971, 12259, 4303, 5342, 12070, 3066, 4895, 19130, 6857, 16389, 1496, 8095, 16535, 10085, 6548], [0, 16323, 10071, 8881, 14096, 15528, 4583, 11318, 14713, 18102, 15265, 8359, 18836, 9697, 5816, 2584, 13948, 19765, 9628, 13681, 11384, 19569, 7103, 9768, 12631, 5756, 17418], [0, 1549, 18947, 16675, 12854, 5380, 14366, 2794, 12754, 1512, 7731, 1458, 15003, 415, 9286, 18486, 14403, 627, 18802, 12295, 7342, 19006, 16165, 16765, 9570, 14096, 3783], [0, 16139, 8101, 19244, 6805, 1658, 16894, 17126, 6903, 16634, 5681, 5530, 12625, 13338, 2924, 10966, 15055, 9846, 14531, 15720, 11982, 17694, 5490, 8243, 15705, 8495, 4789], [0, 7458, 909, 8151, 9724, 18177, 5885, 12624, 9542, 7143, 8070, 8362, 10443, 1218, 19764, 12218, 15112, 11312, 7422, 5089, 6301, 13341, 1653, 13905, 15204, 1631, 3785], [0, 7038, 17613, 16187, 10852, 10417, 9858, 15630, 6182, 10143, 16362, 8765, 4275, 2565, 2403, 99, 10270, 12370, 10649, 15052, 1670, 63, 14124, 7475, 6699, 2067, 4581], [0, 5563, 10901, 19648, 9317, 8341, 15009, 8805, 4840, 9818, 16245, 7148, 10752, 19214, 17085, 14827, 19815, 16340, 12883, 13475, 177, 7773, 10770, 13804, 19933, 6612, 18312], [0, 8742, 2346, 2670, 16757, 11231, 6223, 19748, 566, 13314, 4131, 7226, 13125, 8808, 8816, 5498, 7635, 18496, 1013, 15680, 15231, 6714, 956, 16775, 6928, 10092, 19808], [0, 3863, 2145, 19732, 4442, 7423, 6569, 15313, 6316, 12198, 7826, 11557, 13409, 15680, 19964, 13376, 19168, 1746, 3194, 4088, 4151, 12217, 15289, 16805, 3976, 19512, 15569], [0, 13242, 8003, 17501, 16834, 17874, 12197, 11707, 16103, 3288, 12411, 5130, 13490, 5720, 17286, 8475, 15264, 13801, 17170, 8246, 18595, 3075, 6733, 17882, 14422, 14550, 15989], [0, 10681, 2766, 10574, 8771, 641, 10266, 19756, 13494, 6852, 5756, 7916, 7912, 16499, 3879, 1745, 10628, 1685, 17668, 17788, 5891, 13900, 18022, 16702, 4862, 7065, 3933], [0, 16526, 1238, 3364, 2316, 16486, 3512, 8402, 5336, 9509, 1083, 3249, 9736, 13858, 10312, 10116, 5840, 16202, 16684, 896, 18168, 19856, 461, 14512, 17373, 9039, 15805], [0, 19163, 18670, 4498, 13417, 16755, 15283, 4107, 4692, 11040, 5902, 7703, 3803, 17843, 4855, 10019, 15080, 15304, 7418, 5245, 2094, 5708, 5342, 17609, 7222, 18804, 3307], [0, 9834, 13516, 5058, 18820, 15130, 16954, 13171, 13780, 18900, 19745, 16601, 11355, 3623, 5978, 8635, 14402, 11166, 10777, 366, 1897, 14060, 5229, 6238, 259, 15840, 18905], [0, 6139, 12460, 459, 8617, 18243, 8003, 304, 13218, 885, 7881, 13756, 968, 17387, 19064, 11985, 2229, 18430, 8707, 17560, 2516, 13416, 16750, 16399, 13531, 2372, 18844], [0, 17935, 19763, 7597, 5621, 14317, 11427, 6544, 14888, 12909, 3122, 12128, 18032, 13356, 8087, 16231, 6723, 18472, 4948, 11844, 7982, 7782, 11757, 15822, 7572, 7231, 9656], [0, 10074, 4370, 1516, 2610, 11551, 3318, 12362, 7900, 11036, 11524, 8802, 9486, 14034, 14338, 16367, 4173, 17837, 12323, 17409, 5859, 2981, 17501, 2757, 6485, 17574, 3393], [0, 8624, 10230, 17843, 14471, 583, 10746, 14965, 11798, 9210, 9889, 15598, 12953, 12419, 646, 11782, 16304, 13510, 12442, 602, 15178, 9246, 13464, 19112, 5780, 9219, 15392], [0, 14450, 4010, 17220, 4886, 16975, 4301, 8793, 11942, 13430, 6449, 18757, 240, 7574, 16375, 12022, 15464, 11677, 15364, 9788, 3009, 9281, 4577, 1348, 925, 15209, 19249], [0, 15467, 295, 6238, 15234, 14459, 8077, 19570, 15870, 15510, 948, 14172, 11994, 2886, 575, 11769, 3044, 16023, 12531, 17027, 13350, 3336, 2218, 16266, 8239, 17291, 15033], [0, 8112, 13092, 3540, 3958, 17986, 1173, 19056, 8380, 16589, 9642, 11603, 3097, 8586, 10752, 18948, 13418, 12622, 4870, 10117, 12404, 13376, 8916, 5781, 5751, 10436, 10757], [0, 241, 13936, 2595, 14002, 4678, 12046, 8976, 9087, 5660, 12592, 918, 10880, 3453, 8041, 9286, 16660, 15563, 7627, 13101, 7923, 2670, 16269, 4116, 17325, 11377, 10035], [0, 19461, 7950, 18791, 3410, 14426, 5562, 14470, 6345, 19013, 5411, 6910, 6582, 10859, 3421, 13944, 4518, 18422, 1533, 19682, 5752, 17609, 3467, 8299, 15063, 15096, 12357], [0, 161, 6607, 2527, 2079, 678, 19962, 15336, 11749, 18737, 9997, 18575, 14765, 15488, 7497, 2615, 765, 12419, 12490, 6841, 15824, 16298, 204, 1749, 13886, 16741, 17081], [0, 18849, 612, 1753, 9279, 2060, 14790, 15224, 889, 14369, 7526, 862, 16210, 8877, 8197, 4893, 7774, 2690, 4219, 12933, 8196, 8436, 1312, 13544, 9049, 3714, 19426], [0, 13676, 12691, 5222, 3903, 6587, 16350, 11797, 12199, 628, 1071, 17620, 1594, 12244, 10793, 10129, 236, 1527, 362, 12635, 18536, 4665, 11523, 7202, 12211, 6841, 14119], [0, 7500, 4937, 15113, 14609, 3231, 11471, 1712, 1828, 15842, 18826, 13178, 18356, 4912, 9174, 19695, 13896, 8955, 15961, 18580, 12231, 5775, 10096, 16844, 9122, 9563, 4029], [0, 11267, 19027, 16094, 2776, 6767, 4968, 19423, 5952, 10222, 10897, 8183, 14400, 15428, 11313, 5006, 19847, 11693, 19474, 14204, 7574, 9265, 2688, 14040, 18638, 4657, 7883], [0, 8483, 1270, 13404, 3168, 2416, 3824, 7626, 19624, 17383, 3381, 10885, 5267, 12997, 1956, 6817, 17848, 5773, 17284, 17356, 7997, 19175, 15131, 12357, 4029, 157, 7412], [0, 5381, 333, 13629, 7478, 7023, 15364, 4784, 8561, 8582, 4888, 163, 19758, 7030, 11713, 6945, 3702, 3211, 10771, 7173, 12461, 12509, 6840, 10022, 15158, 12099, 7331], [0, 16389, 458, 4236, 19632, 1654, 8963, 7857, 7754, 4498, 15694, 10840, 18371, 8337, 12553, 11094, 12906, 10508, 14278, 2628, 13103, 15222, 15317, 15442, 16868, 2631, 3614], [0, 6217, 19584, 11642, 8914, 10104, 11568, 10765, 2260, 5064, 11968, 14637, 6234, 16870, 6451, 11639, 9373, 5591, 10467, 12528, 17344, 10929, 15545, 10687, 17131, 19280, 430], [0, 840, 15627, 8522, 6268, 5786, 18816, 5489, 17696, 18433, 1556, 15731, 12994, 18570, 3137, 1413, 5788, 13307, 4070, 4596, 3424, 2425, 13046, 16476, 18112, 627, 18375], [0, 4739, 14188, 3752, 8320, 2525, 19093, 19268, 10614, 8975, 2358, 6648, 18065, 12770, 12642, 3957, 15699, 6192, 12301, 13349, 4562, 1289, 3192, 3017, 13362, 5358, 12185], [0, 6298, 6553, 13061, 19676, 10813, 17583, 4544, 15544, 6525, 14544, 336, 11838, 450, 1376, 230, 2996, 11042, 12921, 12552, 5630, 7137, 12603, 14969, 1852, 9679, 17364], [0, 6765, 11043, 2338, 537, 8195, 800, 10958, 12717, 2834, 9432, 15202, 12479, 18304, 2985, 9324, 2249, 5432, 14908, 5271, 5555, 1654, 1963, 15150, 13744, 8680, 2100], [0, 16429, 13430, 12905, 13116, 19758, 4170, 10921, 12080, 13489, 2753, 4630, 10240, 6049, 13306, 9029, 2062, 7894, 1699, 13510, 32, 3930, 3746, 7179, 9347, 5323, 6606], [0, 12724, 748, 16885, 6879, 13443, 2901, 9781, 16653, 11348, 11306, 14911, 18711, 2847, 11204, 8294, 6584, 390, 15714, 19144, 13537, 3978, 1224, 5968, 6749, 7059, 7820], [0, 18950, 9168, 10266, 9818, 2892, 17543, 1147, 12926, 2371, 4355, 6502, 7318, 16176, 17239, 16667, 9672, 13735, 1865, 6001, 11889, 8746, 3345, 15255, 17163, 1044, 13014], [0, 17520, 19156, 6854, 9554, 17021, 15964, 16291, 2137, 10149, 5706, 10395, 7184, 8695, 14239, 5324, 12929, 11489, 1004, 9270, 4432, 2759, 16049, 5703, 13515, 3890, 11591], [0, 9697, 11407, 12941, 7093, 18673, 1985, 3343, 816, 3858, 9243, 678, 7527, 5831, 5632, 11327, 9011, 2984, 10185, 5858, 12068, 17825, 4114, 690, 17151, 10665, 16202], [0, 8030, 5070, 10921, 3973, 7155, 10607, 13651, 5902, 17800, 18260, 13912, 14969, 10358, 364, 12967, 267, 9767, 11091, 16066, 16800, 12910, 17137, 7224, 2122, 18356, 1129], [0, 10331, 8763, 1893, 6481, 3552, 11003, 8900, 12661, 6131, 710, 13280, 3634, 4438, 9716, 15989, 18820, 17996, 11535, 2769, 18212, 10424, 18068, 8460, 8449, 6856, 16515], [0, 8649, 5047, 10456, 14682, 9690, 19840, 17312, 9932, 12581, 7422, 11892, 18481, 15826, 5427, 18063, 2473, 14180, 9734, 19647, 10463, 5298, 7004, 19066, 5454, 11478, 5054], [0, 9977, 13529, 14548, 5378, 11921, 10335, 17150, 15728, 15741, 15737, 19892, 2187, 8534, 7647, 15961, 13563, 17043, 2969, 15590, 18953, 6511, 10401, 3716, 5722, 8517, 9163], [0, 15553, 4475, 7586, 4148, 6049, 9415, 8245, 18345, 13860, 9924, 19966, 10097, 14791, 136, 19432, 9414, 6969, 11714, 7011, 7222, 11988, 14601, 13897, 19683, 17296, 19835], [0, 7378, 10139, 15737, 995, 14144, 3211, 18288, 4370, 6636, 4617, 2848, 12298, 17605, 10087, 9847, 18841, 18762, 4541, 2798, 5055, 1789, 5268, 19102, 3545, 14648, 10447], [0, 16389, 12495, 2266, 284, 4407, 14582, 13978, 11417, 456, 6190, 3877, 13018, 8277, 4447, 11169, 58, 7788, 14563, 16526, 3107, 14369, 7195, 9911, 15379, 17804, 5427], [0, 12298, 13754, 15708, 16457, 19245, 8042, 10032, 13468, 2099, 18269, 17868, 7947, 17244, 1509, 6962, 3772, 14972, 8413, 12916, 17192, 15569, 12715, 15598, 1260, 9509, 1415], [0, 19336, 11989, 10457, 17209, 14603, 5854, 4257, 2764, 19024, 7973, 10329, 6836, 17457, 11653, 8808, 12088, 590, 14716, 6927, 5170, 3120, 8177, 15757, 13278, 5434, 890], [0, 14522, 5845, 18674, 9497, 5573, 10964, 7605, 17222, 2666, 16990, 18113, 7042, 14985, 15789, 5419, 7747, 29, 9998, 732, 13541, 9248, 11571, 3311, 9857, 15368, 12534], [0, 18926, 2161, 4475, 7293, 8159, 11510, 14352, 9810, 14456, 14145, 1780, 17425, 9195, 13545, 10390, 7252, 5440, 4513, 13464, 4635, 3766, 10864, 2489, 16848, 5557, 14370], [0, 1961, 17535, 2808, 793, 8185, 14381, 10989, 14769, 18322, 57, 19410, 14364, 8018, 2105, 507, 14050, 15854, 10057, 13422, 9933, 14810, 9720, 8843, 1856, 19037, 5233], [0, 7179, 16682, 691, 13889, 12529, 19108, 2147, 5036, 8393, 2030, 7810, 12045, 19843, 12428, 1809, 9600, 18580, 8405, 8206, 7513, 1031, 18164, 8657, 11511, 17774, 9563], [0, 6777, 15104, 18663, 19913, 431, 1616, 2280, 3137, 15312, 716, 16072, 3787, 17233, 13709, 13760, 17415, 4635, 13479, 12416, 16826, 16667, 11273, 2795, 18958, 6081, 7286], [0, 9892, 10433, 13270, 12105, 15179, 16559, 149, 16131, 5025, 3199, 14539, 2435, 2982, 4796, 9505, 827, 1719, 13920, 14473, 5674, 12421, 7413, 3735, 3437, 9692, 17397], [0, 12230, 13645, 5466, 1964, 5907, 11502, 13837, 11325, 9411, 13725, 18378, 9706, 18019, 14437, 14699, 14883, 12734, 7026, 17341, 7559, 19174, 19136, 4326, 7884, 902, 624], [0, 10847, 432, 19189, 19128, 7691, 19409, 16675, 5796, 8008, 1607, 13393, 9797, 5457, 978, 17727, 1979, 4833, 14573, 13155, 17505, 1686, 9895, 18096, 11355, 434, 10313], [0, 19073, 15930, 12120, 18995, 17414, 3803, 6861, 14196, 13000, 1952, 2452, 2495, 4257, 5548, 15061, 113, 3460, 3931, 17907, 4372, 12785, 13148, 4361, 12215, 44, 8491], [0, 19175, 3951, 11885, 5054, 16873, 5561, 12151, 13427, 1608, 10610, 5695, 8864, 12053, 12424, 12863, 4322, 9309, 5733, 16017, 19579, 19948, 13066, 9956, 9465, 1096, 14309], [0, 2613, 18392, 18484, 6156, 1718, 6710, 2686, 19838, 19627, 11102, 1810, 16098, 5572, 1727, 10301, 1519, 1998, 10500, 2562, 3438, 17329, 13631, 19088, 1749, 3273, 14400], [0, 17480, 4841, 8256, 18925, 11612, 15533, 11027, 13325, 12162, 14940, 18274, 17946, 2773, 11871, 9537, 5029, 10283, 17085, 8262, 11786, 13549, 15086, 11568, 19201, 3583, 2485], [0, 1457, 17056, 2912, 12964, 842, 6670, 8505, 17382, 9395, 6956, 17720, 18545, 1664, 1555, 2752, 3275, 18168, 5141, 13507, 7880, 13809, 17413, 11120, 14052, 8923, 4031], [0, 1615, 4202, 17051, 18489, 10705, 15773, 1030, 4564, 2236, 7558, 15379, 1666, 16523, 9565, 3224, 292, 11001, 5472, 16409, 19730, 9406, 17900, 1010, 8717, 12484, 14956], [0, 9753, 10443, 10605, 11605, 4667, 3001, 12869, 6823, 2890, 13774, 6659, 19199, 9792, 7605, 11061, 15725, 16835, 4242, 18855, 9361, 5827, 14640, 16850, 5030, 16676, 3245], [0, 6457, 19219, 4704, 13447, 18705, 185, 15884, 15421, 18077, 6361, 38, 10912, 11487, 15516, 4335, 3929, 3454, 4917, 4940, 18007, 18621, 1983, 15892, 14847, 15920, 7216], [0, 4499, 18686, 8344, 15769, 19905, 2289, 7433, 8147, 18636, 2921, 5842, 1796, 2113, 6227, 8774, 6452, 17173, 19685, 15557, 5856, 9656, 338, 15288, 2309, 10957, 17032], [0, 11507, 9747, 12009, 18796, 7364, 11157, 6011, 11524, 10122, 2639, 5522, 11255, 10062, 13488, 1067, 5592, 14157, 12507, 13990, 18130, 17501, 9031, 437, 4218, 18119, 9583], [0, 11983, 2658, 8486, 14301, 19721, 1907, 17217, 947, 8737, 5726, 10208, 17714, 7040, 7026, 423, 11611, 18093, 14694, 17207, 18224, 11862, 9275, 2729, 17552, 3936, 19364], [0, 17335, 15397, 17106, 143, 12044, 9885, 5341, 942, 19916, 5283, 12748, 6830, 11951, 6937, 7903, 16943, 19833, 6506, 11531, 6619, 2918, 7454, 13979, 9297, 3323, 10573], [0, 16017, 6978, 17089, 10583, 3021, 12439, 4058, 6202, 18486, 89, 13862, 2635, 6556, 7601, 15137, 15580, 18857, 17859, 1103, 8540, 5372, 15688, 7842, 6453, 8257, 10935], [0, 15298, 9412, 3280, 17567, 13790, 1282, 10385, 212, 19617, 189, 11040, 13867, 689, 489, 5929, 14559, 17936, 19109, 6822, 932, 3495, 5941, 7324, 149, 11102, 10659], [0, 8580, 726, 2324, 8750, 12660, 8928, 3131, 1098, 4828, 15049, 10619, 12727, 7593, 10528, 5337, 12200, 8050, 13331, 7255, 160, 7489, 18172, 1387, 19290, 172, 2599], [0, 17987, 12723, 1455, 2534, 6363, 19077, 7724, 11565, 15293, 10104, 11274, 19927, 8850, 19863, 14655, 3013, 14322, 10524, 17283, 15138, 5884, 9187, 9478, 14692, 7999, 9243], [0, 16815, 7971, 19735, 9210, 3389, 7825, 1105, 10048, 1955, 13893, 2186, 9211, 17585, 2935, 8053, 1547, 13601, 7293, 1863, 16126, 4894, 17521, 14106, 17047, 976, 8577], [0, 5172, 1087, 10246, 9886, 8577, 3572, 18666, 8916, 15715, 6612, 2451, 2248, 16455, 1399, 15320, 7461, 9131, 5532, 9188, 8795, 10485, 13169, 3578, 19083, 8918, 3038], [0, 3060, 10033, 4778, 12763, 17414, 1780, 4537, 7510, 7040, 19207, 9556, 19179, 142, 18633, 14385, 771, 13803, 18258, 12634, 17089, 11501, 91, 9053, 14293, 18396, 17675], [0, 15203, 15088, 1163, 19871, 15757, 1686, 1833, 17158, 3477, 10867, 17222, 6621, 15510, 5559, 15524, 217, 1892, 15036, 17511, 12524, 9185, 11944, 8098, 6921, 416, 9101], [0, 154, 661, 17648, 12888, 2279, 1959, 8072, 14752, 17160, 4263, 5553, 5135, 13102, 17681, 19675, 8199, 14850, 11232, 5359, 6987, 3662, 19530, 6884, 192, 1039, 10422], [0, 9960, 2553, 1868, 12054, 7461, 463, 19894, 11828, 16146, 15701, 19170, 455, 3045, 6287, 19623, 4243, 17281, 132, 5639, 17070, 17194, 7243, 11263, 19979, 896, 1525], [0, 5676, 11022, 4168, 8411, 2194, 8981, 7557, 9832, 15759, 18327, 7022, 8730, 4126, 19205, 3842, 5346, 4798, 502, 15500, 18595, 3821, 19688, 13885, 9997, 2187, 1302], [0, 4400, 17340, 6472, 14108, 18946, 16628, 10812, 13139, 18276, 14785, 9202, 3343, 10046, 12892, 3355, 4870, 2467, 11969, 5609, 1299, 9339, 3676, 4039, 11446, 19987, 10027], [0, 11982, 10866, 11643, 15555, 5666, 8070, 10726, 14801, 13111, 8738, 3746, 10611, 11580, 4256, 5361, 14858, 7096, 13595, 9424, 2702, 11156, 13130, 16135, 13309, 1855, 6415], [0, 3474, 17956, 4117, 16026, 10168, 8692, 13489, 4778, 2946, 12839, 14003, 7248, 9277, 7189, 10933, 9323, 19432, 15990, 4411, 5256, 13991, 7826, 19733, 15061, 15257, 15313], [0, 14217, 1429, 4527, 18051, 7358, 10837, 2237, 15945, 8083, 14468, 17912, 7854, 576, 708, 4144, 12081, 4973, 12848, 1545, 3727, 1682, 9607, 7085, 3086, 14614, 12684], [0, 17335, 3340, 2696, 9396, 8836, 1189, 11041, 17311, 11218, 12142, 19599, 19985, 451, 18060, 815, 18097, 11219, 5424, 4929, 3101, 2715, 13733, 16419, 9848, 2408, 4890], [0, 13525, 10132, 11520, 706, 10429, 12384, 17292, 10372, 17209, 17567, 15175, 9718, 13445, 3906, 8285, 13844, 1308, 13699, 2937, 3052, 19997, 10877, 11081, 6012, 5633, 261], [0, 18605, 3383, 9874, 17319, 12029, 17103, 5797, 3930, 15514, 7686, 1409, 15750, 5138, 19789, 13808, 10160, 19660, 19569, 3551, 6048, 4156, 18994, 6075, 9230, 17305, 6572], [0, 18727, 6753, 15129, 10656, 18635, 9042, 14609, 666, 5687, 8244, 781, 285, 8198, 12628, 13954, 11174, 9016, 8122, 16296, 14432, 4452, 8260, 10696, 18597, 5735, 3968], [0, 7021, 2337, 7096, 15068, 9561, 17383, 6346, 6837, 16773, 8818, 178, 10139, 2262, 6350, 3576, 17369, 7083, 13358, 3697, 18714, 18057, 1024, 16063, 12168, 7382, 16399], [0, 17285, 11765, 10426, 15816, 13671, 4955, 8632, 14649, 3914, 11702, 590, 17313, 6879, 11125, 8934, 15252, 13459, 5334, 8205, 15915, 13368, 7319, 4317, 11365, 12884, 899], [0, 18040, 4285, 7683, 11417, 12769, 5008, 2323, 19794, 8111, 14409, 8902, 16476, 8637, 16758, 2967, 3691, 16413, 15203, 526, 18135, 10897, 17149, 12601, 1217, 11110, 10627], [0, 15558, 1312, 11975, 14125, 17791, 5508, 3927, 15226, 1956, 10307, 9553, 8353, 6119, 1081, 3361, 16538, 15406, 1812, 7334, 2160, 13115, 17338, 18795, 13127, 18417, 19360], [0, 19867, 3795, 1259, 5776, 11800, 6965, 6974, 4326, 4688, 14703, 6268, 4712, 849, 13457, 181, 4758, 813, 4783, 8829, 12946, 10642, 3594, 16975, 621, 15577, 7451], [0, 18348, 10910, 12322, 12071, 15618, 9808, 7017, 11004, 9095, 9113, 17818, 5704, 8062, 2780, 7906, 5795, 16594, 15356, 11382, 1240, 18128, 12318, 3011, 2011, 5515, 1502], [0, 2299, 14263, 2033, 5125, 10170, 18386, 12008, 15707, 19894, 987, 18609, 2210, 9258, 13184, 15735, 16653, 16914, 18559, 10347, 13097, 19913, 7397, 1822, 6675, 1776, 11247], [0, 8353, 5043, 12152, 6442, 14327, 7030, 9428, 3247, 14448, 14446, 220, 6051, 12172, 1944, 14959, 3207, 10379, 9003, 12041, 5885, 19185, 2392, 11782, 13220, 15483, 12171], [0, 11604, 4926, 6746, 321, 2694, 4824, 3010, 10522, 19922, 5419, 15840, 10428, 6455, 2768, 311, 16950, 1986, 779, 17066, 17175, 18215, 3783, 10423, 4091, 13579, 17206], [0, 10472, 6192, 10107, 10544, 41, 3523, 19358, 4742, 6154, 11476, 6406, 13415, 10332, 8412, 7593, 5918, 11509, 1375, 10069, 11527, 9743, 10344, 14678, 10706, 18454, 3241], [0, 8007, 18351, 6549, 4875, 6966, 6253, 851, 13598, 8228, 12475, 13735, 13003, 15153, 10807, 2246, 15536, 5420, 14701, 13047, 7870, 8939, 9400, 9819, 3383, 8426, 17481], [0, 9108, 17480, 9904, 10147, 13949, 17882, 7104, 5332, 990, 17381, 14589, 6170, 11547, 16744, 6716, 19616, 8171, 12512, 3574, 11533, 5797, 16889, 7573, 17191, 3467, 2927], [0, 14352, 12045, 820, 11266, 1389, 12768, 14347, 4014, 6964, 1305, 3454, 10782, 18935, 13384, 9880, 16648, 10421, 7308, 19305, 10990, 10230, 12070, 19854, 17375, 9705, 8932], [0, 14065, 15196, 933, 7575, 18779, 2863, 2999, 3757, 7447, 5547, 9058, 12238, 18760, 8967, 11105, 38, 16643, 19297, 6715, 14830, 8124, 15824, 5857, 12442, 7669, 7918], [0, 2346, 13254, 10802, 8907, 11810, 16585, 17561, 9471, 1002, 16757, 9079, 11516, 4813, 3365, 6874, 15298, 5820, 8216, 4056, 17130, 5110, 8147, 608, 7408, 17417, 10512], [0, 19342, 7715, 4161, 12698, 3943, 6655, 14109, 8713, 5055, 276, 14731, 2575, 10780, 3324, 11775, 1868, 8340, 16719, 6170, 1454, 15729, 14880, 8842, 1617, 7983, 16743], [0, 18568, 7907, 2532, 6000, 759, 11488, 5985, 19207, 8611, 13239, 11001, 12451, 13374, 11182, 13876, 16465, 16726, 13058, 15001, 1469, 12772, 67, 3472, 11112, 18951, 5315], [0, 4604, 1277, 5472, 19429, 9896, 14634, 16228, 18717, 14662, 1625, 2270, 14695, 9678, 13208, 17075, 4857, 19365, 6526, 4660, 15879, 18877, 845, 11143, 12010, 11813, 4820], [0, 11195, 4414, 4197, 18058, 5132, 5110, 1610, 2696, 3031, 2154, 10889, 10852, 7414, 14193, 12518, 2515, 1492, 5575, 14028, 14653, 18174, 14185, 17679, 11476, 14140, 14172], [0, 5575, 12181, 3485, 7925, 9208, 6171, 629, 13487, 3954, 18990, 5788, 13770, 16869, 2981, 10401, 12471, 13866, 18386, 3721, 11374, 11976, 9466, 14700, 9923, 12426, 17835], [0, 14987, 3344, 6356, 16738, 6961, 778, 13949, 19201, 12110, 8718, 17630, 7593, 16907, 18523, 14000, 18583, 10501, 17449, 9426, 8873, 18234, 16647, 5051, 4245, 14291, 8271], [0, 11907, 3067, 18170, 17227, 18228, 17198, 14233, 13205, 16395, 16359, 16792, 17360, 16181, 9078, 6902, 755, 10008, 4679, 14588, 8964, 15620, 16320, 7618, 19299, 19968, 12536], [0, 9611, 12984, 41, 16307, 9513, 3533, 12615, 3252, 2222, 13185, 15190, 19383, 5921, 3124, 17571, 1698, 6896, 12105, 4108, 3419, 18100, 9649, 17786, 17825, 7335, 3608], [0, 1162, 14138, 13161, 743, 2955, 540, 5807, 608, 16934, 12443, 858, 8477, 6476, 17240, 19511, 17511, 6071, 13580, 18828, 16888, 18779, 15065, 14104, 10657, 7413, 8087], [0, 5766, 9421, 3152, 13876, 16225, 727, 10243, 15836, 8486, 16078, 7304, 12330, 18477, 18573, 16197, 5412, 10463, 12995, 16371, 10948, 195, 18553, 15936, 19486, 3283, 8404], [0, 11281, 8352, 14652, 1180, 4054, 2412, 9044, 15019, 16697, 14104, 3908, 10947, 7077, 14320, 6265, 18208, 18338, 5675, 17310, 13831, 5952, 17903, 17505, 16784, 275, 15565], [0, 9211, 4756, 19723, 11481, 13028, 1030, 2061, 19882, 8672, 1627, 16254, 19006, 18997, 5525, 10817, 18317, 19142, 9300, 4791, 12733, 6247, 17700, 4016, 11075, 8379, 17633], [0, 13486, 10636, 10614, 12579, 14523, 6503, 9531, 18170, 5284, 3580, 4716, 15764, 3182, 14112, 18548, 9596, 18548, 6806, 14643, 4767, 7459, 5549, 1233, 19138, 12942, 13312], [0, 9832, 4440, 2288, 6343, 5065, 11958, 6466, 13543, 12157, 4949, 18543, 13356, 16697, 13513, 803, 14124, 14774, 13423, 18698, 17767, 9607, 10945, 16988, 19596, 9139, 2392], [0, 8183, 18526, 6492, 13361, 14739, 10078, 11607, 7251, 9856, 18475, 10742, 3916, 14073, 7342, 10832, 13281, 15924, 542, 3519, 15511, 16401, 4252, 13103, 19867, 14307, 16750]]


                                                 
# 定数たち
DAYS = d
C_TYPES = 26
INF = 10 ** 18
NAPIER = 2.71828182846

# last_days: 最後にコンテストを行った日を記録する
last_days = {}
for c_type in range(1, C_TYPES + 1):
    last_days[c_type] = 0

# Step1.
# 貪欲で初期解を構築する
ans_val = 0
ans_types = []
for day in range(1, DAYS + 1):
    c_type, val = search_max_point(day, last_days)
    ans_types.append(c_type)
    ans_val += val
    last_days[c_type] = day

# 解が不当な場合(アルゴリズムが正しく構築できてない場合)、REにさせる。
if not is_valid(ans_types, ans_val):
    print(re)
    exit()

# Step2.
# 最も良いrouteを焼きなまし法で決める
T = 100
cool = 0.9999
best_score = ans_val
best_types = ans_types[0:]
score = ans_val
types = ans_types[0:]

while time.time() - START_TIME < 1.8:

    # スワップ対象の選定
    day = randrange(1, DAYS + 1)
    from_type = types[day - 1]
    while True:
        to_type = randrange(1, C_TYPES + 1)
        if to_type != from_type:
            break

    # 差を求める
    diff = change(types, day, from_type, to_type)
    
    # 温度から確率を定義
    p = pow(NAPIER, -abs(diff) / T)
    
    # 遷移
    if (diff > 0 or random() < p):
        types[day - 1] = to_type
        score = score + diff
        
    # ベストスコアを保存しておく
    if score > best_score:
        best_score = score
        best_types = types[0:]
        
    # 温度を下げる
    T = T * cool

# 解が不当な場合(アルゴリズムが正しく構築できてない場合)、REにさせる。
if not is_valid(best_types, best_score):
    print(re)
    exit()

for i in best_types:
    print(i)

Measured memory_bytes: 86300