{0: [0], 249: [0, 249], 1: [1, 249], 248: [1, 248], 2: [2, 248], 247: [2, 247], 3: [3, 247], 246: [3, 246], 4: [4, 246], 245: [4, 245], 5: [5, 245], 244: [5, 244], 6: [6, 244], 243: [6, 243], 7: [7, 243], 242: [7, 242], 8: [8, 242], 241: [8, 241], 9: [9, 241], 240: [9, 240], 10: [10, 240], 239: [10, 239], 11: [11, 239], 238: [11, 238], 12: [12, 238], 237: [12, 237], 13: [13, 237], 236: [13, 236], 14: [14, 236], 235: [14, 235], 15: [15, 235], 234: [15, 234], 16: [16, 234], 233: [16, 233], 17: [17, 233], 232: [17, 232], 18: [18, 232], 231: [18, 231], 19: [19, 231], 230: [19, 230], 20: [20, 230], 229: [20, 229], 21: [21, 229], 228: [21, 228], 22: [22, 228], 227: [22, 227], 23: [23, 227], 226: [23, 226], 24: [24, 226], 225: [24, 225], 25: [25, 225], 224: [25, 224], 26: [26, 224], 223: [26, 223], 27: [27, 223], 222: [27, 222], 28: [28, 222], 221: [28, 221], 29: [29, 221], 220: [29, 220], 30: [30, 220], 219: [30, 219], 31: [31, 219], 218: [31, 218], 32: [32, 218], 217: [32, 217], 33: [33, 217], 216: [33, 216], 34: [34, 216], 215: [34, 215], 35: [35, 215], 214: [35, 214], 36: [36, 214], 213: [36, 213], 37: [37, 213], 212: [37, 212], 38: [38, 212], 211: [38, 211], 39: [39, 211], 210: [39, 210], 40: [40, 210], 209: [40, 209], 41: [41, 209], 208: [41, 208], 42: [42, 208], 207: [42, 207], 43: [43, 207], 206: [43, 206], 44: [44, 206], 205: [44, 205], 45: [45, 205], 204: [45, 204], 46: [46, 204], 203: [46, 203], 47: [47, 203], 202: [47, 202], 48: [48, 202], 201: [48, 201], 49: [49, 201], 200: [49, 200], 50: [50, 200], 199: [50, 199], 51: [51, 199], 198: [51, 198], 52: [52, 198], 197: [52, 197], 53: [53, 197], 196: [53, 196], 54: [54, 196], 195: [54, 195], 55: [55, 195], 194: [55, 194], 56: [56, 194], 193: [56, 193], 57: [57, 193], 192: [57, 192], 58: [58, 192], 191: [58, 191], 59: [59, 191], 190: [59, 190], 60: [60, 190], 189: [60, 189], 61: [61, 189], 188: [61, 188], 62: [62, 188], 187: [62, 187], 63: [63, 187], 186: [63, 186], 64: [64, 186], 185: [64, 185], 65: [65, 185], 184: [65, 184], 66: [66, 184], 183: [66, 183], 67: [67, 183], 182: [67, 182], 68: [68, 182], 181: [68, 181], 69: [69, 181], 180: [69, 180], 70: [70, 180], 179: [70, 179], 71: [71, 179], 178: [71, 178], 72: [72, 178], 177: [72, 177], 73: [73, 177], 176: [73, 176], 74: [74, 176], 175: [74, 175], 75: [75, 175], 174: [75, 174], 76: [76, 174], 173: [76, 173], 77: [77, 173], 172: [77, 172], 78: [78, 172], 171: [78, 171], 79: [79, 171], 170: [79, 170], 80: [80, 170], 169: [80, 169], 81: [81, 169], 168: [81, 168], 82: [82, 168], 167: [82, 167], 83: [83, 167], 166: [83, 166], 84: [84, 166], 165: [84, 165], 85: [85, 165], 164: [85, 164], 86: [86, 164], 163: [86, 163], 87: [87, 163], 162: [87, 162], 88: [88, 162], 161: [88, 161], 89: [89, 161], 160: [89, 160], 90: [90, 160], 159: [90, 159], 91: [91, 159], 158: [91, 158], 92: [92, 158], 157: [92, 157], 93: [93, 157], 156: [93, 156], 94: [94, 156], 155: [94, 155], 95: [95, 155], 154: [95, 154], 96: [96, 154], 153: [96, 153], 97: [97, 153], 152: [97, 152], 98: [98, 152], 151: [98, 151], 99: [99, 151], 150: [99, 150], 100: [100, 150], 149: [100, 149], 101: [101, 149], 148: [101, 148], 102: [102, 148], 147: [102, 147], 103: [103, 147], 146: [103, 146], 104: [104, 146], 145: [104, 145], 105: [105, 145], 144: [105, 144], 106: [106, 144], 143: [106, 143], 107: [107, 143], 142: [107, 142], 108: [108, 142], 141: [108, 141], 109: [109, 141], 140: [109, 140], 110: [110, 140], 139: [110, 139], 111: [111, 139], 138: [111, 138], 112: [112, 138], 137: [112, 137], 113: [113, 137], 136: [113, 136], 114: [114, 136], 135: [114, 135], 115: [115, 135], 134: [115, 134], 116: [116, 134], 133: [116, 133], 117: [117, 133], 132: [117, 132], 118: [118, 132], 131: [118, 131], 119: [119, 131], 130: [119, 130], 120: [120, 130], 129: [120, 129], 121: [121, 129], 128: [121, 128], 122: [122, 128], 127: [122, 127], 123: [123, 127], 126: [123, 126], 124: [124, 126], 125: [124, 125]} {0: [0, 249], 1: [1, 248], 2: [2, 247], 3: [3, 246], 4: [4, 245], 5: [5, 244], 6: [6, 243], 7: [7, 242], 8: [8, 241], 9: [9, 240], 10: [10, 239], 11: [11, 238], 12: [12, 237], 13: [13, 236], 14: [14, 235], 15: [15, 234], 16: [16, 233], 17: [17, 232], 18: [18, 231], 19: [19, 230], 20: [20, 229], 21: [21, 228], 22: [22, 227], 23: [23, 226], 24: [24, 225], 25: [25, 224], 26: [26, 223], 27: [27, 222], 28: [28, 221], 29: [29, 220], 30: [30, 219], 31: [31, 218], 32: [32, 217], 33: [33, 216], 34: [34, 215], 35: [35, 214], 36: [36, 213], 37: [37, 212], 38: [38, 211], 39: [39, 210], 40: [40, 209], 41: [41, 208], 42: [42, 207], 43: [43, 206], 44: [44, 205], 45: [45, 204], 46: [46, 203], 47: [47, 202], 48: [48, 201], 49: [49, 200], 50: [50, 199], 51: [51, 198], 52: [52, 197], 53: [53, 196], 54: [54, 195], 55: [55, 194], 56: [56, 193], 57: [57, 192], 58: [58, 191], 59: [59, 190], 60: [60, 189], 61: [61, 188], 62: [62, 187], 63: [63, 186], 64: [64, 185], 65: [65, 184], 66: [66, 183], 67: [67, 182], 68: [68, 181], 69: [69, 180], 70: [70, 179], 71: [71, 178], 72: [72, 177], 73: [73, 176], 74: [74, 175], 75: [75, 174], 76: [76, 173], 77: [77, 172], 78: [78, 171], 79: [79, 170], 80: [80, 169], 81: [81, 168], 82: [82, 167], 83: [83, 166], 84: [84, 165], 85: [85, 164], 86: [86, 163], 87: [87, 162], 88: [88, 161], 89: [89, 160], 90: [90, 159], 91: [91, 158], 92: [92, 157], 93: [93, 156], 94: [94, 155], 95: [95, 154], 96: [96, 153], 97: [97, 152], 98: [98, 151], 99: [99, 150], 100: [100, 149], 101: [101, 148], 102: [102, 147], 103: [103, 146], 104: [104, 145], 105: [105, 144], 106: [106, 143], 107: [107, 142], 108: [108, 141], 109: [109, 140], 110: [110, 139], 111: [111, 138], 112: [112, 137], 113: [113, 136], 114: [114, 135], 115: [115, 134], 116: [116, 133], 117: [117, 132], 118: [118, 131], 119: [119, 130], 120: [120, 129], 121: [121, 128], 122: [122, 127], 123: [123, 126], 124: [124, 125], 125: [125], 126: [124, 126], 127: [123, 127], 128: [122, 128], 129: [121, 129], 130: [120, 130], 131: [119, 131], 132: [118, 132], 133: [117, 133], 134: [116, 134], 135: [115, 135], 136: [114, 136], 137: [113, 137], 138: [112, 138], 139: [111, 139], 140: [110, 140], 141: [109, 141], 142: [108, 142], 143: [107, 143], 144: [106, 144], 145: [105, 145], 146: [104, 146], 147: [103, 147], 148: [102, 148], 149: [101, 149], 150: [100, 150], 151: [99, 151], 152: [98, 152], 153: [97, 153], 154: [96, 154], 155: [95, 155], 156: [94, 156], 157: [93, 157], 158: [92, 158], 159: [91, 159], 160: [90, 160], 161: [89, 161], 162: [88, 162], 163: [87, 163], 164: [86, 164], 165: [85, 165], 166: [84, 166], 167: [83, 167], 168: [82, 168], 169: [81, 169], 170: [80, 170], 171: [79, 171], 172: [78, 172], 173: [77, 173], 174: [76, 174], 175: [75, 175], 176: [74, 176], 177: [73, 177], 178: [72, 178], 179: [71, 179], 180: [70, 180], 181: [69, 181], 182: [68, 182], 183: [67, 183], 184: [66, 184], 185: [65, 185], 186: [64, 186], 187: [63, 187], 188: [62, 188], 189: [61, 189], 190: [60, 190], 191: [59, 191], 192: [58, 192], 193: [57, 193], 194: [56, 194], 195: [55, 195], 196: [54, 196], 197: [53, 197], 198: [52, 198], 199: [51, 199], 200: [50, 200], 201: [49, 201], 202: [48, 202], 203: [47, 203], 204: [46, 204], 205: [45, 205], 206: [44, 206], 207: [43, 207], 208: [42, 208], 209: [41, 209], 210: [40, 210], 211: [39, 211], 212: [38, 212], 213: [37, 213], 214: [36, 214], 215: [35, 215], 216: [34, 216], 217: [33, 217], 218: [32, 218], 219: [31, 219], 220: [30, 220], 221: [29, 221], 222: [28, 222], 223: [27, 223], 224: [26, 224], 225: [25, 225], 226: [24, 226], 227: [23, 227], 228: [22, 228], 229: [21, 229], 230: [20, 230], 231: [19, 231], 232: [18, 232], 233: [17, 233], 234: [16, 234], 235: [15, 235], 236: [14, 236], 237: [13, 237], 238: [12, 238], 239: [11, 239], 240: [10, 240], 241: [9, 241], 242: [8, 242], 243: [7, 243], 244: [6, 244], 245: [5, 245], 246: [4, 246], 247: [3, 247], 248: [2, 248], 249: [1, 249]} {(0, 0): 0, (0, 249): 0, (1, 1): 0, (1, 248): 0, (2, 2): 0, (2, 247): 0, (3, 3): 0, (3, 246): 0, (4, 4): 0, (4, 245): 0, (5, 5): 0, (5, 244): 0, (6, 6): 0, (6, 243): 0, (7, 7): 0, (7, 242): 0, (8, 8): 0, (8, 241): 0, (9, 9): 0, (9, 240): 0, (10, 10): 0, (10, 239): 0, (11, 11): 0, (11, 238): 0, (12, 12): 0, (12, 237): 0, (13, 13): 0, (13, 236): 0, (14, 14): 0, (14, 235): 0, (15, 15): 0, (15, 234): 0, (16, 16): 0, (16, 233): 0, (17, 17): 0, (17, 232): 0, (18, 18): 0, (18, 231): 0, (19, 19): 0, (19, 230): 0, (20, 20): 0, (20, 229): 0, (21, 21): 0, (21, 228): 0, (22, 22): 0, (22, 227): 0, (23, 23): 0, (23, 226): 0, (24, 24): 0, (24, 225): 0, (25, 25): 0, (25, 224): 0, (26, 26): 0, (26, 223): 0, (27, 27): 0, (27, 222): 0, (28, 28): 0, (28, 221): 0, (29, 29): 0, (29, 220): 0, (30, 30): 0, (30, 219): 0, (31, 31): 0, (31, 218): 0, (32, 32): 0, (32, 217): 0, (33, 33): 0, (33, 216): 0, (34, 34): 0, (34, 215): 0, (35, 35): 0, (35, 214): 0, (36, 36): 0, (36, 213): 0, (37, 37): 0, (37, 212): 0, (38, 38): 0, (38, 211): 0, (39, 39): 0, (39, 210): 0, (40, 40): 0, (40, 209): 0, (41, 41): 0, (41, 208): 0, (42, 42): 0, (42, 207): 0, (43, 43): 0, (43, 206): 0, (44, 44): 0, (44, 205): 0, (45, 45): 0, (45, 204): 0, (46, 46): 0, (46, 203): 0, (47, 47): 0, (47, 202): 0, (48, 48): 0, (48, 201): 0, (49, 49): 0, (49, 200): 0, (50, 50): 0, (50, 199): 0, (51, 51): 0, (51, 198): 0, (52, 52): 0, (52, 197): 0, (53, 53): 0, (53, 196): 0, (54, 54): 0, (54, 195): 0, (55, 55): 0, (55, 194): 0, (56, 56): 0, (56, 193): 0, (57, 57): 0, (57, 192): 0, (58, 58): 0, (58, 191): 0, (59, 59): 0, (59, 190): 0, (60, 60): 0, (60, 189): 0, (61, 61): 0, (61, 188): 0, (62, 62): 0, (62, 187): 0, (63, 63): 0, (63, 186): 0, (64, 64): 0, (64, 185): 0, (65, 65): 0, (65, 184): 0, (66, 66): 0, (66, 183): 0, (67, 67): 0, (67, 182): 0, (68, 68): 0, (68, 181): 0, (69, 69): 0, (69, 180): 0, (70, 70): 0, (70, 179): 0, (71, 71): 0, (71, 178): 0, (72, 72): 0, (72, 177): 0, (73, 73): 0, (73, 176): 0, (74, 74): 0, (74, 175): 0, (75, 75): 0, (75, 174): 0, (76, 76): 0, (76, 173): 0, (77, 77): 0, (77, 172): 0, (78, 78): 0, (78, 171): 0, (79, 79): 0, (79, 170): 0, (80, 80): 0, (80, 169): 0, (81, 81): 0, (81, 168): 0, (82, 82): 0, (82, 167): 0, (83, 83): 0, (83, 166): 0, (84, 84): 0, (84, 165): 0, (85, 85): 0, (85, 164): 0, (86, 86): 0, (86, 163): 0, (87, 87): 0, (87, 162): 0, (88, 88): 0, (88, 161): 0, (89, 89): 0, (89, 160): 0, (90, 90): 0, (90, 159): 0, (91, 91): 0, (91, 158): 0, (92, 92): 0, (92, 157): 0, (93, 93): 0, (93, 156): 0, (94, 94): 0, (94, 155): 0, (95, 95): 0, (95, 154): 0, (96, 96): 0, (96, 153): 0, (97, 97): 0, (97, 152): 0, (98, 98): 0, (98, 151): 0, (99, 99): 0, (99, 150): 0, (100, 100): 0, (100, 149): 0, (101, 101): 0, (101, 148): 0, (102, 102): 0, (102, 147): 0, (103, 103): 0, (103, 146): 0, (104, 104): 0, (104, 145): 0, (105, 105): 0, (105, 144): 0, (106, 106): 0, (106, 143): 0, (107, 107): 0, (107, 142): 0, (108, 108): 0, (108, 141): 0, (109, 109): 0, (109, 140): 0, (110, 110): 0, (110, 139): 0, (111, 111): 0, (111, 138): 0, (112, 112): 0, (112, 137): 0, (113, 113): 0, (113, 136): 0, (114, 114): 0, (114, 135): 0, (115, 115): 0, (115, 134): 0, (116, 116): 0, (116, 133): 0, (117, 117): 0, (117, 132): 0, (118, 118): 0, (118, 131): 0, (119, 119): 0, (119, 130): 0, (120, 120): 0, (120, 129): 0, (121, 121): 0, (121, 128): 0, (122, 122): 0, (122, 127): 0, (123, 123): 0, (123, 126): 0, (124, 124): 0, (124, 125): 0, (125, 125): 0, (126, 124): 0, (126, 126): 0, (127, 123): 0, (127, 127): 0, (128, 122): 0, (128, 128): 0, (129, 121): 0, (129, 129): 0, (130, 120): 0, (130, 130): 0, (131, 119): 0, (131, 131): 0, (132, 118): 0, (132, 132): 0, (133, 117): 0, (133, 133): 0, (134, 116): 0, (134, 134): 0, (135, 115): 0, (135, 135): 0, (136, 114): 0, (136, 136): 0, (137, 113): 0, (137, 137): 0, (138, 112): 0, (138, 138): 0, (139, 111): 0, (139, 139): 0, (140, 110): 0, (140, 140): 0, (141, 109): 0, (141, 141): 0, (142, 108): 0, (142, 142): 0, (143, 107): 0, (143, 143): 0, (144, 106): 0, (144, 144): 0, (145, 105): 0, (145, 145): 0, (146, 104): 0, (146, 146): 0, (147, 103): 0, (147, 147): 0, (148, 102): 0, (148, 148): 0, (149, 101): 0, (149, 149): 0, (150, 100): 0, (150, 150): 0, (151, 99): 0, (151, 151): 0, (152, 98): 0, (152, 152): 0, (153, 97): 0, (153, 153): 0, (154, 96): 0, (154, 154): 0, (155, 95): 0, (155, 155): 0, (156, 94): 0, (156, 156): 0, (157, 93): 0, (157, 157): 0, (158, 92): 0, (158, 158): 0, (159, 91): 0, (159, 159): 0, (160, 90): 0, (160, 160): 0, (161, 89): 0, (161, 161): 0, (162, 88): 0, (162, 162): 0, (163, 87): 0, (163, 163): 0, (164, 86): 0, (164, 164): 0, (165, 85): 0, (165, 165): 0, (166, 84): 0, (166, 166): 0, (167, 83): 0, (167, 167): 0, (168, 82): 0, (168, 168): 0, (169, 81): 0, (169, 169): 0, (170, 80): 0, (170, 170): 0, (171, 79): 0, (171, 171): 0, (172, 78): 0, (172, 172): 0, (173, 77): 0, (173, 173): 0, (174, 76): 0, (174, 174): 0, (175, 75): 0, (175, 175): 0, (176, 74): 0, (176, 176): 0, (177, 73): 0, (177, 177): 0, (178, 72): 0, (178, 178): 0, (179, 71): 0, (179, 179): 0, (180, 70): 0, (180, 180): 0, (181, 69): 0, (181, 181): 0, (182, 68): 0, (182, 182): 0, (183, 67): 0, (183, 183): 0, (184, 66): 0, (184, 184): 0, (185, 65): 0, (185, 185): 0, (186, 64): 0, (186, 186): 0, (187, 63): 0, (187, 187): 0, (188, 62): 0, (188, 188): 0, (189, 61): 0, (189, 189): 0, (190, 60): 0, (190, 190): 0, (191, 59): 0, (191, 191): 0, (192, 58): 0, (192, 192): 0, (193, 57): 0, (193, 193): 0, (194, 56): 0, (194, 194): 0, (195, 55): 0, (195, 195): 0, (196, 54): 0, (196, 196): 0, (197, 53): 0, (197, 197): 0, (198, 52): 0, (198, 198): 0, (199, 51): 0, (199, 199): 0, (200, 50): 0, (200, 200): 0, (201, 49): 0, (201, 201): 0, (202, 48): 0, (202, 202): 0, (203, 47): 0, (203, 203): 0, (204, 46): 0, (204, 204): 0, (205, 45): 0, (205, 205): 0, (206, 44): 0, (206, 206): 0, (207, 43): 0, (207, 207): 0, (208, 42): 0, (208, 208): 0, (209, 41): 0, (209, 209): 0, (210, 40): 0, (210, 210): 0, (211, 39): 0, (211, 211): 0, (212, 38): 0, (212, 212): 0, (213, 37): 0, (213, 213): 0, (214, 36): 0, (214, 214): 0, (215, 35): 0, (215, 215): 0, (216, 34): 0, (216, 216): 0, (217, 33): 0, (217, 217): 0, (218, 32): 0, (218, 218): 0, (219, 31): 0, (219, 219): 0, (220, 30): 0, (220, 220): 0, (221, 29): 0, (221, 221): 0, (222, 28): 0, (222, 222): 0, (223, 27): 0, (223, 223): 0, (224, 26): 0, (224, 224): 0, (225, 25): 0, (225, 225): 0, (226, 24): 0, (226, 226): 0, (227, 23): 0, (227, 227): 0, (228, 22): 0, (228, 228): 0, (229, 21): 0, (229, 229): 0, (230, 20): 0, (230, 230): 0, (231, 19): 0, (231, 231): 0, (232, 18): 0, (232, 232): 0, (233, 17): 0, (233, 233): 0, (234, 16): 0, (234, 234): 0, (235, 15): 0, (235, 235): 0, (236, 14): 0, (236, 236): 0, (237, 13): 0, (237, 237): 0, (238, 12): 0, (238, 238): 0, (239, 11): 0, (239, 239): 0, (240, 10): 0, (240, 240): 0, (241, 9): 0, (241, 241): 0, (242, 8): 0, (242, 242): 0, (243, 7): 0, (243, 243): 0, (244, 6): 0, (244, 244): 0, (245, 5): 0, (245, 245): 0, (246, 4): 0, (246, 246): 0, (247, 3): 0, (247, 247): 0, (248, 2): 0, (248, 248): 0, (249, 1): 0, (249, 249): 0}